Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/osf1 Add entry for flock() syscall.
details: https://anonhg.NetBSD.org/src/rev/63b2ad76166c
branches: trunk
changeset: 511619:63b2ad76166c
user: dmcmahill <dmcmahill%NetBSD.org@localhost>
date: Sat Jun 23 02:45:54 2001 +0000
description:
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.
diffstat:
sys/compat/osf1/syscalls.master | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 2ecb2c7a0ae6 -r 63b2ad76166c sys/compat/osf1/syscalls.master
--- a/sys/compat/osf1/syscalls.master Sat Jun 23 02:42:32 2001 +0000
+++ b/sys/compat/osf1/syscalls.master Sat Jun 23 02:45:54 2001 +0000
@@ -1,4 +1,4 @@
- $NetBSD: syscalls.master,v 1.36 2001/05/30 11:37:30 mrg Exp $
+ $NetBSD: syscalls.master,v 1.37 2001/06/23 02:45:54 dmcmahill Exp $
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
@@ -227,7 +227,7 @@
129 STD { int osf1_sys_truncate(const char *path, \
off_t length); }
130 STD { int osf1_sys_ftruncate(int fd, off_t length); }
-131 UNIMPL flock
+131 NOARGS { int sys_flock(int fd, int operation); }
132 STD { int osf1_sys_setgid(gid_t gid); }
133 STD { int osf1_sys_sendto(int s, caddr_t buf, size_t len, \
int flags, struct sockaddr *to, int tolen); }
Home |
Main Index |
Thread Index |
Old Index