summaryrefslogtreecommitdiff
path: root/static/unix-v10/man3/getshares.3
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-26 16:38:00 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-26 16:38:00 -0400
commit97d5c458cfa039d857301e1ca7d5af3beb37131d (patch)
treeb460cd850d0537eb71806ba30358840377b27688 /static/unix-v10/man3/getshares.3
parentb89dc2331a50c63f8b33272a5c4c61ab98abdaa3 (diff)
build: Better Build System
Diffstat (limited to 'static/unix-v10/man3/getshares.3')
-rw-r--r--static/unix-v10/man3/getshares.343
1 files changed, 43 insertions, 0 deletions
diff --git a/static/unix-v10/man3/getshares.3 b/static/unix-v10/man3/getshares.3
new file mode 100644
index 00000000..afbf6741
--- /dev/null
+++ b/static/unix-v10/man3/getshares.3
@@ -0,0 +1,43 @@
+.TH GETSHARES 3 SHARE
+.SH NAME
+getshares \- get shares file entry given uid
+.SH SYNOPSIS
+.B "#include <shares.h>"
+.br
+.sp
+.B "unsigned long getshares(lp, uid, lock)"
+.br
+.B "struct lnode * lp;"
+.br
+.B "int uid;"
+.br
+.B "int lock;"
+.SH DESCRIPTION
+.I Getshares
+finds the shares entry with the same uid as
+.I uid
+and reads it into an area pointed to by
+.IR lp .
+.I lock
+should be non-zero if the shares data-base should be opened for writing.
+Returns zero if no entry exists,
+(in which case all
+.RI non- uid
+fields of
+.I *lp
+will have been cleared),
+or the ``last used'' time of the entry.
+.I lp\->l_uid
+will always have been set to
+.I uid
+on return.
+.SH "SEE ALSO"
+closeshares(3),
+getshput(3),
+openshares(3),
+putshares(3),
+sharesfile(3).
+.SH DIAGNOSTICS
+.I Getshares
+returns 0
+if entry can't be found, or on error.