Subject: CVS commit: syssrc/sys/compat/osf1
To: None <source-changes@netbsd.org>
From: Dan McMahill <dmcmahill@netbsd.org>
List: source-changes
Date: 06/23/2001 05:45:55
Module Name: syssrc
Committed By: dmcmahill
Date: Sat Jun 23 02:45:55 UTC 2001
Modified Files:
syssrc/sys/compat/osf1: syscalls.master
Log Message:
Add entry for flock() syscall.
From the NetBSD and OSF man pages, the arguments and operation of the
2 flocks are identical. The only differences are in some of the possible
values for errno which may be set in the event of certain errors. These
differences are (again from the manual pages):
The NetBSD flock may set errno to
[EOPNOTSUPP] The argument fd refers to an object other than a file.
and the OSF flock doesn't list this is a possible error code.
The OSF flock may set errno to:
[EINTR] A signal interuppted the flock call.
[ENOLCK] The lock table is full. Too many regions are already locked.
[EDEADLK] The lock is blocked by some lock from another process. Putting
the calling process to sleep while waiting for that lock to
become free would cause a deadlock.
while the NetBSD flock does not list these as possibilities.
The remainder of the possible error codes are the same.
commit cleared with thorpej first.
To generate a diff of this commit:
cvs rdiff -r1.36 -r1.37 syssrc/sys/compat/osf1/syscalls.master
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.