|
|
1.1 ! root 1: .\" Copyright (c) 1986 Regents of the University of California. ! 2: .\" All rights reserved. The Berkeley software License Agreement ! 3: .\" specifies the terms and conditions for redistribution. ! 4: .\" ! 5: .\" @(#)2.t 6.6 (Berkeley) 4/14/86 ! 6: .\" ! 7: .SH ! 8: .LG ! 9: .ce ! 10: Section 2 ! 11: .SM ! 12: .sp ! 13: .PP ! 14: The error codes for Section 2 entries have been carefully ! 15: scrutinized to insure that the documentation properly reflects ! 16: the source code. User-visible changes in this section lie ! 17: mostly in the area of the interprocess communication facilities; ! 18: the Xerox Network System communication procotocols have ! 19: been added and the existing communication facilities have ! 20: been extended and made more robust. ! 21: .PP ! 22: .BP adjtime ! 23: A new system call which skews the system clock ! 24: to correct the time of day. ! 25: .BP fcntl ! 26: The FASYNC option to enable the SIGIO signal ! 27: now works with sockets as well as with ttys. ! 28: The interpretation of process groups set with F_SETOWN ! 29: is the same for sockets and for ttys: ! 30: negative values refer to process groups, ! 31: positive values to processes. ! 32: This is the reverse of the previous interpretation ! 33: of socket process groups set using \fIioctl\fP to enable SIGURG. ! 34: .BP kill ! 35: The error returned when trying to signal one's own process group ! 36: when no process group is set was changed to ESRCH. ! 37: Signal 0 can now be used as documented. ! 38: .BP lseek ! 39: Returns an ESPIPE error when seeking on sockets ! 40: (including pipes) for backward compatibility. ! 41: .BP open ! 42: When doing an open with flags O_CREAT and O_EXCL (create only if the file ! 43: did not exist), it is now considered to be an error if the target exists ! 44: and is a symbolic link, even if the symbolic link refers to a nonexistent ! 45: file. ! 46: This behavior was added for the security of programs that ! 47: need to create ! 48: files with predictable names. ! 49: .BP ptrace ! 50: A new header file, <\fIsys/ptrace.h\fP>, defines the request types. ! 51: When the process being traced stops, the parent now receives a SIGCHLD. ! 52: .BP readlink ! 53: Returns EINVAL instead of ENXIO when trying to read something other ! 54: than a symbolic link. ! 55: .BP rename ! 56: If the ISVTX (sticky text) bit is set in the mode of a directory, ! 57: files in that directory may not be the source or target of a \fIrename\fP ! 58: except by the owner of the file, the owner of the directory, or the superuser. ! 59: .BP select ! 60: Now handles more descriptors. ! 61: The mask arguments to \fIselect\fP are now treated as ! 62: pointers to arrays of integers, with the first argument determining the size ! 63: of the array. ! 64: A set of macros in ! 65: <\fIsys/types.h\fP> is provided for manipulating the file descriptor sets. ! 66: The descriptor masks are only modified when no error is returned. ! 67: .BP setsockopt ! 68: Options that could only be \fIset\fP in 4.2BSD (e.g. SO_DEBUG, SO_REUSEADDR) ! 69: can now be set or reset. To implement this change all options must now ! 70: supply an option value which specifies if the option is to be turned on or off. ! 71: The SO_LINGER option takes a structure as its option value, including both ! 72: a boolean and an interval. ! 73: New options have been added: to get or set the amount of buffering allocated ! 74: for the socket, to get the type of the socket, and to check on error status. ! 75: Options can be set in any protocol layer that supports them; ! 76: IP, TCP and SPP all use this mechanism. ! 77: .BP setpriority ! 78: The error returned on an attempt to change another user's priority ! 79: was changed from EACCES to EPERM. ! 80: .BP setreuid ! 81: Now sets the process \fIp_uid\fP to the new effective user ID instead ! 82: of the real ID for consistency with usage elsewhere. ! 83: This avoids problems with processes that are not able ! 84: to signal themselves. ! 85: .BP sigreturn ! 86: Is a new system call designed for restoring a process' context to a ! 87: previously saved one (see \fIsetjmp/longjmp\fP). ! 88: .BP sigvec ! 89: Three new signals have been added, SIGWINCH, SIGUSR1, and ! 90: SIGUSR2. The first is for notification of window size changes ! 91: and the other two have been reserved for users. ! 92: .BP socket ! 93: The usage of the (undocumented) SIOCSPGRP \fIioctl\fP has changed. ! 94: For consistency with \fIfcntl\fP, the argument is treated ! 95: as a process if positive and as a process group if negative. ! 96: Asynchronous I/O using SIGIO is now possible on sockets. ! 97: .BP swapon ! 98: The error returned for when requesting a device which was not ! 99: configured as a swap device was changed from ENODEV to EINVAL. ! 100: In addition, \fIswapon\fP now searches the swap device tables from ! 101: from the beginning instead of the second entry. ! 102: .BP unlink ! 103: If the ISVTX (sticky text) bit is set in the mode of a directory, ! 104: files may only be removed from that directory by the owner of the file, ! 105: the owner of the directory, or the superuser.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.