summaryrefslogtreecommitdiff
path: root/static/unix-v10/man2/setgid.2
diff options
context:
space:
mode:
Diffstat (limited to 'static/unix-v10/man2/setgid.2')
-rw-r--r--static/unix-v10/man2/setgid.225
1 files changed, 25 insertions, 0 deletions
diff --git a/static/unix-v10/man2/setgid.2 b/static/unix-v10/man2/setgid.2
new file mode 100644
index 00000000..870d5d99
--- /dev/null
+++ b/static/unix-v10/man2/setgid.2
@@ -0,0 +1,25 @@
+.th SETGID II 8/5/73
+.sh NAME
+setgid \*- set process group ID
+.sh SYNOPSIS
+(setgid = 46.; not in assembler)
+.br
+(group ID in r0)
+.ft B
+.br
+sys setgid
+.s3
+setgid(gid)
+.ft R
+.sh DESCRIPTION
+The group ID of the current process is set to
+the argument.
+Both the effective and the real group ID are set.
+This call is only permitted to the super-user
+or if the argument is the real group ID.
+.sh "SEE ALSO"
+getgid(II)
+.sh DIAGNOSTICS
+Error bit
+(c-bit) is set as indicated;
+from C, a \*-1 value is returned.