diff options
| author | cgd <cgd@NetBSD.org> | 1995-02-27 12:31:34 +0000 |
|---|---|---|
| committer | cgd <cgd@NetBSD.org> | 1995-02-27 12:31:34 +0000 |
| commit | 4eab61bd40c07b2fc612ad50cface2b77fc110d0 (patch) | |
| tree | 7118747f1d9919499fdea5d7c6908c5cfe04e5a8 /lib/libc/sys/open.2 | |
| parent | c67e54a2e2b9f3d455a30d68ea4e09e56d7b9136 (diff) | |
merge with lite, keeping most local changes. clean up Ids
Diffstat (limited to 'lib/libc/sys/open.2')
| -rw-r--r-- | lib/libc/sys/open.2 | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/lib/libc/sys/open.2 b/lib/libc/sys/open.2 index 928418e7722..cf215d87d85 100644 --- a/lib/libc/sys/open.2 +++ b/lib/libc/sys/open.2 @@ -1,5 +1,7 @@ -.\" Copyright (c) 1980, 1991 Regents of the University of California. -.\" All rights reserved. +.\" $NetBSD: open.2,v 1.8 1995/02/27 12:35:14 cgd Exp $ +.\" +.\" Copyright (c) 1980, 1991, 1993 +.\" The Regents of the University of California. All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions @@ -29,10 +31,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" from: @(#)open.2 6.7 (Berkeley) 5/27/91 -.\" $Id: open.2,v 1.7 1994/04/19 00:11:13 jtc Exp $ +.\" @(#)open.2 8.2 (Berkeley) 11/16/93 .\" -.Dd May 27, 1991 +.Dd November 16, 1993 .Dt OPEN 2 .Os BSD 4 .Sh NAME @@ -63,7 +64,7 @@ and modified by the process' umask value (see .Xr umask 2 ) . .Pp The flags specified are formed by -.Em or Ap ing +.Em or Ns 'ing the following values .Pp .Bd -literal -offset indent -compact @@ -128,11 +129,14 @@ the request for the lock will never fail .Pp If successful, .Fn open -returns a non-negative integer, termed a -file descriptor. It returns -1 on failure. +returns a non-negative integer, termed a file descriptor. +It returns -1 on failure. The file pointer used to mark the current position within the file is set to the beginning of the file. .Pp +When a new file is created it is given the group of the directory +which contains it. +.Pp The new descriptor is set to remain open across .Xr execve system calls; see |
