BSD 4_2 development
authorCSRG <csrg@ucbvax.Berkeley.EDU>
Thu, 31 Mar 1983 15:00:18 +0000 (07:00 -0800)
committerCSRG <csrg@ucbvax.Berkeley.EDU>
Thu, 31 Mar 1983 15:00:18 +0000 (07:00 -0800)
Work on file usr/man/man2/getdtablesize.2
Work on file usr/man/man2/getgid.2

Synthesized-from: CSRG/cd1/4.2

usr/man/man2/getdtablesize.2 [new file with mode: 0644]
usr/man/man2/getgid.2 [new file with mode: 0644]

diff --git a/usr/man/man2/getdtablesize.2 b/usr/man/man2/getdtablesize.2
new file mode 100644 (file)
index 0000000..b400de5
--- /dev/null
@@ -0,0 +1,19 @@
+.TH GETDTABLESIZE 2 "12 February 1983"
+.UC 4
+.SH NAME
+getdtablesize \- get descriptor table size
+.SH SYNOPSIS
+.nf
+.ft B
+nds = getdtablesize()
+int nds;
+.fi
+.SH DESCRIPTION
+Each process has a fixed size descriptor table
+which is guaranteed to have at least 20 slots.  The entries in
+the descriptor table are numbered with small integers starting at 0.
+The call
+.I getdtablesize
+returns the size of this table.
+.SH "SEE ALSO"
+close(2), dup(2), open(2)
diff --git a/usr/man/man2/getgid.2 b/usr/man/man2/getgid.2
new file mode 100644 (file)
index 0000000..23c0ed1
--- /dev/null
@@ -0,0 +1,28 @@
+.TH GETGID 2 "12 February 1983"
+.UC 4
+.SH NAME
+getgid, getegid \- get group identity
+.SH SYNOPSIS
+.nf
+.ft B
+gid = getgid()
+int gid;
+.PP
+.ft B
+egid = getegid()
+int egid;
+.fi
+.SH DESCRIPTION
+.I Getgid
+returns the real group ID of the current process,
+.I getegid
+the effective group ID.
+.PP
+The real group ID is specified at login time.
+.PP
+The effective group ID is more transient, and determines
+additional access permission during execution of a
+``set-group-ID'' process, and it is for such processes
+that \fIgetgid\fP is most useful.
+.SH "SEE ALSO"
+getuid(2), setregid(2), setgid(3)