HP-UX Reference (11i v3 07/02) - 4 File Formats (vol 8)

s
sd(4) sd(4)
LOCKING
These commands use a common locking mechanism for reading and modifying both root directories and
software depots. This mechanism allows multiple readers but only one writer on a root or depot.
The commands which modify software in an (alternate) root directory are restricted from simultaneous
modification using fcntl(2) locking on the file
var/adm/sw/products/swlock
relative to the root directory (e.g. /var/adm/sw/products/swlock
).
The commands which modify software in a depot are restricted from simultaneous modification using
fcntl(2) locking on the file
catalog/swlock
relative to the depot directory (e.g. /var/spool/sw/catalog/swlock
).
All commands set fcntl(2) read locks on roots and depots using the
swlock file mentioned above. When a
read lock is set, it prevents other commands from performing modifications (i.e. from setting write locks).
The
swacl command is restricted from simultaneous modification of an ACL using fcntl(2) read and write
locks on the
_LOCK_FILE
associated with each ACL.
AUTHOR
Software Distributor was developed by the Hewlett-Packard Company.
swagent, swcopy, swin-
stall
, swlist, and swpackage were developed by the Hewlett-Packard Company and Mark H. Col-
burn (see pax(1)).
SEE ALSO
swacl(1M), swagentd(1M), swask(1M), swconfig(1M), swcopy(1M), swinstall(1M), swjob(1M), swlist(1M),
swmodify(1M), swpackage(1M), swreg(1M), swremove(1M), swverify(1M), swpackage(4), sd(5).
Software Distributor Administration Guide, available at
http://docs.hp.com.
410 Hewlett-Packard Company 25 HP-UX 11i Version 3: February 2007