getfsent.3 (115143) | getfsent.3 (115225) |
---|---|
1.\" Copyright (c) 1983, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)getfsent.3 8.1 (Berkeley) 6/4/93 | 1.\" Copyright (c) 1983, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)getfsent.3 8.1 (Berkeley) 6/4/93 |
33.\" $FreeBSD: head/lib/libc/gen/getfsent.3 115143 2003-05-18 21:05:22Z ru $ | 33.\" $FreeBSD: head/lib/libc/gen/getfsent.3 115225 2003-05-22 13:02:28Z ru $ |
34.\" 35.Dd April 7, 2003 36.Dt GETFSENT 3 37.Os 38.Sh NAME 39.Nm getfsent , 40.Nm getfsspec , 41.Nm getfsfile , 42.Nm setfsent , 43.Nm endfsent 44.Nd get file system descriptor file entry 45.Sh LIBRARY 46.Lb libc 47.Sh SYNOPSIS 48.In fstab.h | 34.\" 35.Dd April 7, 2003 36.Dt GETFSENT 3 37.Os 38.Sh NAME 39.Nm getfsent , 40.Nm getfsspec , 41.Nm getfsfile , 42.Nm setfsent , 43.Nm endfsent 44.Nd get file system descriptor file entry 45.Sh LIBRARY 46.Lb libc 47.Sh SYNOPSIS 48.In fstab.h |
49.Ft struct fstab * | 49.Ft "struct fstab *" |
50.Fn getfsent void | 50.Fn getfsent void |
51.Ft struct fstab * | 51.Ft "struct fstab *" |
52.Fn getfsspec "const char *spec" | 52.Fn getfsspec "const char *spec" |
53.Ft struct fstab * | 53.Ft "struct fstab *" |
54.Fn getfsfile "const char *file" 55.Ft int 56.Fn setfsent void 57.Ft void 58.Fn endfsent void 59.Ft void 60.Fn setfstab "const char *file" | 54.Fn getfsfile "const char *file" 55.Ft int 56.Fn setfsent void 57.Ft void 58.Fn endfsent void 59.Ft void 60.Fn setfstab "const char *file" |
61.Ft const char * | 61.Ft "const char *" |
62.Fn getfstab void 63.Sh DESCRIPTION 64The 65.Fn getfsent , 66.Fn getfsspec , 67and 68.Fn getfsfile 69functions --- 28 unchanged lines hidden (view full) --- 98closes the file. 99.Pp 100The 101.Fn setfstab 102function sets the file to be used by subsequent operations. 103The value set by 104.Fn setfstab 105does not persist across calls to | 62.Fn getfstab void 63.Sh DESCRIPTION 64The 65.Fn getfsent , 66.Fn getfsspec , 67and 68.Fn getfsfile 69functions --- 28 unchanged lines hidden (view full) --- 98closes the file. 99.Pp 100The 101.Fn setfstab 102function sets the file to be used by subsequent operations. 103The value set by 104.Fn setfstab 105does not persist across calls to |
106.Fn endfsent | 106.Fn endfsent . |
107.Pp 108The 109.Fn getfstab | 107.Pp 108The 109.Fn getfstab |
110function returns the name of the file that that will be used. | 110function returns the name of the file that will be used. |
111.Pp 112The 113.Fn getfsspec 114and 115.Fn getfsfile 116functions 117search the entire file (opening it if necessary) for a matching special 118file name or file system file name. --- 21 unchanged lines hidden (view full) --- 140.Fn setfsent 141function 142returns 0 on failure, 1 on success. 143The 144.Fn endfsent 145function 146returns nothing. 147.Sh ENVIRONMENT | 111.Pp 112The 113.Fn getfsspec 114and 115.Fn getfsfile 116functions 117search the entire file (opening it if necessary) for a matching special 118file name or file system file name. --- 21 unchanged lines hidden (view full) --- 140.Fn setfsent 141function 142returns 0 on failure, 1 on success. 143The 144.Fn endfsent 145function 146returns nothing. 147.Sh ENVIRONMENT |
148.Bl -tag -width PATH_FSTAB 149.It Pa PATH_FSTAB | 148.Bl -tag -width ".Ev PATH_FSTAB" 149.It Ev PATH_FSTAB |
150If the environment variable | 150If the environment variable |
151.Pa PATH_FSTAB 152is set all operations are performed against the specified file. 153.Pa PATH_FSTAB | 151.Ev PATH_FSTAB 152is set, all operations are performed against the specified file. 153.Ev PATH_FSTAB |
154will not be honored if the process environment or memory address space is 155considred 156.Dq tainted . 157(See | 154will not be honored if the process environment or memory address space is 155considred 156.Dq tainted . 157(See |
158.Fn issetugid | 158.Xr issetugid 2 |
159for more information.) 160.El 161.Sh FILES 162.Bl -tag -width /etc/fstab -compact 163.It Pa /etc/fstab 164.El 165.Sh SEE ALSO 166.Xr fstab 5 --- 23 unchanged lines hidden --- | 159for more information.) 160.El 161.Sh FILES 162.Bl -tag -width /etc/fstab -compact 163.It Pa /etc/fstab 164.El 165.Sh SEE ALSO 166.Xr fstab 5 --- 23 unchanged lines hidden --- |