[comp.mail.misc] Mailbox locking on BSD 4.2/4.3 - Help please

iiitsh@cybaswan.UUCP (Steve Hosgood) (01/22/91)

I would like to know how 'mailx' (running on a Pyramid under OSx) locks
the user's mail spool file before altering it.

Obviously this must be the same method used by the delivery agent! The
spool file is '/usr/spool/mail/$LOGNAME'.

I tried using the fcntl system, but mail happily delivers to the file
regardless! There does not seem to be any use of a '$LOGNAME.lck' file
in the spool directory.

Help would be appreciated. Thanks in advance.

Steve                                              |  WALES: "If Wales was
iiitsh@pyr.swan.ac.uk                              | flattened out, it would
..or in Britain, where we drive on the other side: | be bigger than England".
iiitsh@uk.ac.swan.pyr                              |                 - Gren.