summaryrefslogtreecommitdiff
path: root/static/v10/man3/openshares.3
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/man3/openshares.3
parent3258a063c1f189d7b019e40e525b46bef9b9a7b1 (diff)
docs: Added UNIX V10 Manuals
Diffstat (limited to 'static/v10/man3/openshares.3')
-rw-r--r--static/v10/man3/openshares.333
1 files changed, 33 insertions, 0 deletions
diff --git a/static/v10/man3/openshares.3 b/static/v10/man3/openshares.3
new file mode 100644
index 00000000..270c64e4
--- /dev/null
+++ b/static/v10/man3/openshares.3
@@ -0,0 +1,33 @@
+.TH OPENSHARES 3 SHARE
+.SH NAME
+openshares \- open shares file
+.SH SYNOPSIS
+.B "int openshares(lock)"
+.br
+.B "int lock;"
+.SH DESCRIPTION
+.I Openshares
+attempts to open the shares file for writing,
+otherwise,
+if
+.I lock
+is 0,
+it attempts to open it for reading.
+If one of the opens succeeds,
+it returns 1,
+otherwise it returns 0.
+.PP
+If the shares file is already open,
+this routine does nothing.
+.SH FILES
+.PD 0
+.TP "\w'/etc/sharesXXXX'u"
+/etc/shares
+Shares data-base.
+.PD
+.SH "SEE ALSO"
+closeshares(3),
+getshares(3),
+getshput(3),
+putshares(3),
+sharesfile(3).