atomic_op man page on Ultrix

Man page or keyword search:  
man Server   3690 pages
apropos Keyword Search (all sections)
Output format
Ultrix logo
[printable version]

atomic_op(2)							  atomic_op(2)

       atomic_op - perform test and set operation.

       #include <sys/lock.h>

       int atomic_op(op, addr)
       int op;
       int *addr;

       op	      This  argument  is the operation type.  If the operation
		      type is ATOMIC_SET, this call specifies the test and set
		      operation	 on  location  addr.  If the operation type is
		      ATOMIC_CLEAR, this call specifies the clear operation on
		      location addr.

       addr	      This is the target address of the operation.

       The call provides test and set operation at a user address.

       For  RISC  systems,  is	executed as a system call.  For VAX systems, a
       system call is not executed for this library function.

Return Values
       If the atomic_op operation succeeds, then 0 is returned.	  Otherwise  a
       -1 is returned, and a more specific error code is stored in errno.

       [EBUSY]	      The location specified by addr is already set.

       [EINVAL]	      The op is not a valid operation type.

       [EACCES]	      The address specified in addr is not write accessible.

       [EALIGN]	      The addr is not on an integer boundary.


List of man pages available for Ultrix

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net