blob: 270c64e4bb945209e0756a067028766b83c21771 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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).
|