summaryrefslogtreecommitdiff
path: root/static/v10/man2/nochk.2
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-25 21:07:28 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-25 21:07:28 -0400
commit711594636704defae873be1a355a292505585afd (patch)
tree59ee13f863830d8beba6cfd02bbe813dd486c26f /static/v10/man2/nochk.2
parent3258a063c1f189d7b019e40e525b46bef9b9a7b1 (diff)
docs: Added UNIX V10 Manuals
Diffstat (limited to 'static/v10/man2/nochk.2')
-rw-r--r--static/v10/man2/nochk.232
1 files changed, 32 insertions, 0 deletions
diff --git a/static/v10/man2/nochk.2 b/static/v10/man2/nochk.2
new file mode 100644
index 00000000..33aadfea
--- /dev/null
+++ b/static/v10/man2/nochk.2
@@ -0,0 +1,32 @@
+.TH NOCHK 2
+.SH NAME
+nochk \- control security checking by file
+.SH SYNOPSIS
+.B nochk(fd, onoff);
+.SH DESCRIPTION
+.I Nochk
+modifies file security checks in processes that have capability
+.BR T_NOCHK .
+If
+.I onoff
+is 1, file descriptor
+.I fd
+becomes exempt from security checks; this is the default state.
+If
+.I onoff
+is 0, the file descriptor will be checked as if the process
+did not have capability
+.BR T_NOCHK .
+.PP
+The return value is the previous checking state.
+.SH SEE ALSO
+.IR getplab (2)
+.SH DIAGNOSTICS
+.B EBADF
+.SH BUGS
+It would have been wise to let 0 be the default state,
+but this would have required modifying standard
+utilities, such as
+.IR fsck (8),
+which must be run with privilege
+.BR T_NOCHK .