SCO mail system

Dan Heller dheller at cory.Berkeley.EDU
Fri Dec 23 08:28:59 AEST 1988


In article <462 at chief.UUCP> root at chief.UUCP (Lance Ellinghouse) writes:
> Does anyone know how the people at SCO lock their mail files
> when they are scanned in by mail? I would like to write a similar
> one that does not have the shell escape and I cannot figure out
> what they use as a lock. DO they actually lock it, or do they use
> a temp file?
> 
> Lance Ellinghouse                        
> Chief Numismatics, Inc
> UUCP: ...!{hermix|srhqla|ucla-an|alphacm}!chief!lance
> ARPA: ucla-an!hermix!chief!lance at ee.UCLA.EDU

SCO's xenix, unfortunately, uses a file locking mechanism which
is not available to the end user.  Execmail use a temp lock file
called /tmp/.mlkXXXXX to lock the file, but other things are done
as well, so just creating the file won't do.  The routine to lock
the file is not in a library; it's part of the source to execmail.
Probably someone at sco should elaborate on this, but the bottom
line is that writing your own mail user agent is tricky.  The best
you can do is to use lockf().

Dan Heller	<island!argv at sun.com>



More information about the Comp.unix.xenix mailing list