Home
last modified time | relevance | path

Searched refs:mnttabp (Results 1 – 2 of 2) sorted by relevance

/titanic_41/usr/src/lib/libbc/libc/gen/common/
H A Dmntent.c90 mnttabscan(FILE *mnttabp, struct mntent *mnt) in mnttabscan() argument
98 cp = fgets(line, BUFSIZ, mnttabp); in mnttabscan()
125 FILE *mnttabp; in setmntent() local
127 if ((mnttabp = fopen(fname, flag)) == NULL) { in setmntent()
132 if (flock(fileno(mnttabp), LOCK_EX) < 0) { in setmntent()
133 fclose(mnttabp); in setmntent()
139 return (mnttabp); in setmntent()
143 endmntent(FILE *mnttabp) in endmntent() argument
146 if (mnttabp) { in endmntent()
147 fclose(mnttabp); in endmntent()
[all …]
/titanic_41/usr/src/cmd/rexd/
H A Dmntent.c37 int getmntent(FILE *mnttabp, struct mnttab *mp);
97 mnttabscan(FILE *mnttabp, struct mnttab *mnt) in mnttabscan() argument
106 cp = fgets(line, 256, mnttabp); in mnttabscan()
133 FILE *mnttabp; local
135 if ((mnttabp = fopen(fname, flag)) == NULL)
143 if (lockf(fileno(mnttabp), LOCK_EX, 0) < 0)
145 fclose(mnttabp);
151 return (mnttabp);
155 endmntent(mnttabp) in endmntent() argument
156 FILE *mnttabp; in endmntent()
[all …]