Bruce Evans
08398af376
Fixed #include and/or prototype bugs in synopsis.
1997-04-13 13:16:20 +00:00
Mike Pritchard
b0b21f924b
Typo police. Part of PR# 3242.
...
Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
1997-04-09 23:05:04 +00:00
Andrey A. Chernov
21d58869ce
Speedup in case locale not used
1997-04-04 19:16:08 +00:00
Andrey A. Chernov
6a575f6e24
Eliminate some function calls when locale not used
1997-04-04 19:08:19 +00:00
Andrey A. Chernov
5058254947
Speedup in case locale not used
1997-04-04 18:44:19 +00:00
Mike Pritchard
5d00c0a499
Honor the nouser/nogroup flag when determing if NULL should
...
be returned if a cached uid/gid does not exist in the password
file.
1997-04-03 01:51:34 +00:00
Mike Pritchard
1595890a1f
The user_from_{uid,gid} routines would return garbage if the
...
uid/gid in question was in the cache, but did not exist
in the password file. This causes the -nouser and -nogroup
options to find(1) to only print the first file owned by
an unknown user/group in some cases.
1997-04-02 06:20:04 +00:00
David Nugent
c333ae82c1
Remove minor warning (for -Wall -Wshadow); clarifies code.
1997-03-26 15:42:09 +00:00
Warner Losh
62f187a4cf
Buffer overflow. Similar, but different, to the fix that Julian A submitted
...
in PR 2580.
Obtained from: BSDi by way of Keith Bostic
Should be in 2.2 and 2.1.x. I'll merge into 2.2.
1997-03-23 23:31:50 +00:00
Mike Pritchard
8a7f0369b3
Use the .Tn macro for generic FreeBSD references. Other minor cleanup.
1997-03-21 20:57:20 +00:00
Mike Pritchard
9de8ddb8bc
Mdoc cleanup.
1997-03-21 20:46:30 +00:00
John Polstra
cf49f43912
Add backward compatibility so that static executables built on
...
modern FreeBSD systems will syslog properly on older systems that
still name the logging socket "/dev/log". This includes pre-2.2
versions of FreeBSD as well as BSD/OS systems. If the connect to
"/var/run/log" fails, the function now tries to connect to
"/dev/log" as a fallback.
1997-03-20 16:28:27 +00:00
Bruce Evans
1d23531445
FIxed arg types (mostly missing consts) in synopsis.
1997-03-19 00:58:07 +00:00
Bruce Evans
09589ca82e
FIxed arg types (mostly missing consts) in synopsis.
1997-03-19 00:52:58 +00:00
Bruce Evans
7a30f18397
Added missing #include of <stdarg.h> to synopsis. Moved prototypes for
...
`v' functions after this #include (same organisation as in printf.3 for
printf/vprintf).
1997-03-19 00:43:13 +00:00
Bruce Evans
3ce29386aa
Fixed missing function types in synopsis.
1997-03-19 00:32:42 +00:00
Bruce Evans
f68da8d891
Fixed synopsis (put all of the function (return) type info in .Ft and
...
none in .Fn).
1997-03-19 00:06:09 +00:00
Peter Wemm
098f04f5d1
Back out a dubious Lite2 change to "optimise" getcwd() to look at $PWD
...
because it's potentially dangerous (think: symlink races). Move
realpath() back to it's original location, and remove getcwd_physical()
by renaming it back to getcwd() and zapping the original getcwd wrapper.
Noticed by: bde
1997-03-13 06:45:38 +00:00
Mike Pritchard
1d104f9fbd
More cleanup - I didn't realize that this was a new man page
...
and need extra attention :-)
1997-03-12 15:21:57 +00:00
Mike Pritchard
1da7386d34
Mdoc cleanup.
1997-03-12 15:14:07 +00:00
Bruce Evans
c047aec843
Fixed merging error. Lite2 fixed premature failure and didn't
...
touch duplicate group suppression, but the merge blew away our
duplicate group suppression.
The merge also blew away the -Wall cleanup in rev.1.5, but that
was misformatted, so I didn't restore it.
1997-03-12 14:54:22 +00:00
Bruce Evans
03dcee8db1
Fixed errors in the Lite2 merge. Some style changes were mismerged.
...
My changes to preserve errno across free() and close() and to report
fstat() errors properly were blown away.
Updated the FreeBSD changes to match the Lite2 style fixes.
1997-03-12 12:35:44 +00:00
Bruce Evans
e1dfe717ec
Document that popen() uses a bidirectional pipe (in FreeBSD) and not a
...
socket pair (as in Lite2).
1997-03-11 19:28:24 +00:00
Bruce Evans
035e5608d5
Fixed cleaning up after malloc failure, which was broken by Lite2.
...
We don't use socketpair(), so don't #include <sys/socket.h>.
Restored some gcc-quieting parentheses that were lost in the Lite2 merge.
1997-03-11 18:51:43 +00:00
Bruce Evans
1662ffff99
Install the Lite2 getvfsbyname.3. The old getvfsbyname() interface is
...
still available and described in getvfsent.3.
1997-03-11 18:20:06 +00:00
Bruce Evans
6d50b78d4d
Fixed #include's in synopsis.
1997-03-11 18:16:02 +00:00
Peter Wemm
adf6ad9e69
Merge from Lite2:
...
filesystem include updates, duplicate group suppression, cleanups,
filesystem whiteout support (unionfs), bidir popen().
1997-03-11 11:52:33 +00:00
Peter Wemm
0014b4c0e1
Merge from Lite2: man page updates
1997-03-11 11:47:52 +00:00
Peter Wemm
1edb99c337
Merge from Lite2 (YAMFL2? :-)
...
Document that popen() can now create bidirectional pipes and handles.
Note that this needs to be updated since we have a native bidirectional
pipe and don't use socketpair() here.
1997-03-11 11:46:19 +00:00
Peter Wemm
e5574dc8c0
Merge from Lite2 (+realpath.3)
1997-03-11 11:42:56 +00:00
Peter Wemm
9dc1164189
merge from Lite2 - realpath() now shares a lot of code with getcwd()
...
and is now in the same file.
1997-03-11 11:37:59 +00:00
Peter Wemm
e5493ddb0f
This commit was generated by cvs2svn to compensate for changes in r23658,
...
which included commits to RCS files with non-trunk default branches.
1997-03-11 11:29:42 +00:00
Peter Wemm
662909a780
Import CSRG 4.4BSD-Lite2 lib/libc onto vendor branch
1997-03-11 11:29:42 +00:00
Peter Wemm
0b7ae03c1a
Import CSRG 4.4BSD-Lite2 includes onto vendor branch
1997-03-11 11:11:37 +00:00
Bill Paul
09e8462819
Fix brain-o in SunOS passwd.adjunct stuff: !strstr(s, "##") is a) bad
...
style and b) the wrong logic. Should be strstr(s, "##") != NULL. (Note
that the passwd.adjunct stuff has not been merged into 2.2 so this bug
is not in that branch.)
1997-03-10 16:47:19 +00:00
Mike Pritchard
2d3868141d
The first argument to fts_set was wrong. Part of PR# 2917.
1997-03-09 00:43:49 +00:00
Mike Pritchard
e2493e0fc3
Pause() is made obsolete by sigsuspend(2), not sigpause(3).
...
Part of PR# 2917.
1997-03-09 00:42:46 +00:00
Wolfram Schneider
4ccb26e49a
Allow comments in group database.
...
The character `#' introduces a comment. Leading spaces and tabs are
ignored: '^[ \t]*#.*\n$'
Count an empty line - only spaces, tabs or newline - also as a comment.
(to be compatibel with password database comments). '^[ \t]*\n$'
1997-03-08 16:21:40 +00:00
Bruce Evans
cdd42308ce
Enabled the Lite2 getvfsbyname(). It's actually named new_getvfsbyname()
...
for now so that we don't lose library compatibility. Applications should
define _NEW_VFSCONF and use getvfsbyname() instead of new_getvfsbyname()
if they want the new vfsconf interface. Parts of the old interface
(enough to load vfs modules, I hope) are still available.
1997-03-03 13:08:33 +00:00
Andrey A. Chernov
09f3779132
Don't add/subtract 1 to MAXLOGNAME, it is already NUL-terminated
1997-03-03 08:11:28 +00:00
Mike Pritchard
10fd17786f
Change vfc_typenum back to vfc_index in response to bde's
...
commit to getvfsent.c rev 1.10.
1997-03-03 06:02:54 +00:00
Bruce Evans
0df382bd0f
Changed vfc_typenum back to vfc_index. The old vfsconf struct is now
...
visible again, and the new vfsconf struct didn't match reality.
1997-03-03 05:53:54 +00:00
Bruce Evans
08f68ac6a6
Attempt to import Lite2's getvfsbyname.c.
1997-03-02 18:13:14 +00:00
Bruce Evans
095777c6a0
This commit was generated by cvs2svn to compensate for changes in r23291,
...
which included commits to RCS files with non-trunk default branches.
1997-03-02 18:13:14 +00:00
Mike Pritchard
7dbe27136f
Oops! I accidently commited a change that wasn't ready for prime
...
time yet. Revert to rev 1.2.
1997-02-28 06:26:26 +00:00
Mike Pritchard
cd1b6738ab
The struct vfsconf element vfc_index is now vfs_typenum.
1997-02-28 06:22:29 +00:00
Mike Pritchard
28f86af297
Correct the xref section - it was incorrectly using .Fn instead
...
of .Xr for the xrefs.
1997-02-28 05:46:19 +00:00
Peter Wemm
7e546392b5
Revert $FreeBSD$ to $Id$
1997-02-22 15:12:41 +00:00
Peter Wemm
b97fa2ef50
Revert $FreeBSD$ to $Id$
1997-02-22 14:13:04 +00:00
Daniel O'Callaghan
589dde865b
Typogrammatical error 'with' -> 'when'.
...
This could be put into 2.2.
1997-02-20 06:50:31 +00:00