mycroft
57ae5a9baa
Add links for uid_from_user(3) and gid_from_group(3).
1998-07-28 19:58:25 +00:00
mycroft
f091800e8b
Fix a typo in a comment.
1998-07-28 18:13:53 +00:00
mycroft
7be86bdd6d
Document uid_from_user() and gid_from_group().
1998-07-28 17:09:10 +00:00
mycroft
76428db157
Import the version from pax(1), with a few changes:
...
* Functions renamed to match libc interface.
* Fixed to actually put entries into the hash tables!
* Different hash function, simpler but with the same distribution.
1998-07-28 16:58:36 +00:00
mycroft
1020d7970d
Use writev(2) (like perror(3)).
1998-07-28 12:21:07 +00:00
mycroft
a51215c951
Delint (partially).
1998-07-27 14:16:35 +00:00
mycroft
131e747015
Make these compile without __AUDIT__.
1998-07-27 09:47:44 +00:00
mycroft
f9f7e98dab
const poisoning.
1998-07-27 07:41:31 +00:00
mycroft
778e6e0151
const poisoning.
1998-07-26 19:34:10 +00:00
mycroft
92f92d6c49
Nit; use strncpy() rather than bcopy().
1998-07-26 19:30:00 +00:00
mycroft
e5d9823796
const poisoning.
1998-07-26 19:05:06 +00:00
mycroft
0c4d98ae35
const poisoning.
1998-07-26 17:53:10 +00:00
mycroft
0034bdfa78
const poisoning.
1998-07-26 14:30:47 +00:00
mycroft
982e920022
const poisoning.
1998-07-26 14:13:00 +00:00
mycroft
eb69773cbb
const poisoning.
1998-07-26 13:51:44 +00:00
mycroft
4a05bcf0da
Use warn(3).
1998-07-26 13:51:27 +00:00
mycroft
4bedec238e
const poisoning.
1998-07-26 13:47:20 +00:00
mycroft
4024f73640
const poisoning.
1998-07-26 13:34:18 +00:00
mycroft
9ad899cc18
constify some tables.
1998-07-26 11:24:14 +00:00
mycroft
b3b504b51a
Suppress blank fields due to continuation lines.
1998-07-21 13:36:54 +00:00
lukem
786b86d71b
use AF_LOCAL instead of AF_UNIX
1998-07-18 05:04:35 +00:00
thorpej
555571f7e9
Add Elf32 support for i386, m68k, and sparc.
1998-07-12 01:43:26 +00:00
kleink
2f804d05e9
Fix sys_siglist and sys_signame declarations with reality; from John F. Woods
...
in PR lib/5720.
1998-07-07 21:26:02 +00:00
thorpej
b9cfbb01cd
Use pread(2) in one place.
1998-06-30 20:47:37 +00:00
nathanw
e14ca04293
Document shortcorename support and control.
1998-06-28 21:36:55 +00:00
thorpej
43c06f3fa9
Fix a serious symbol collision problem introduced when pw_scan() was added
...
to libc. Note, pw_scan() is NO LONGER exported from libc (it never should
have been, and we're just going to pretend like it never was).
1998-06-27 05:08:22 +00:00
kleink
cb63b5cd8c
* Remove GLOB_QUOTE, add GLOB_NOESCAPE. Per POSIX, backslash quoting of
...
special characters is the default behaviour, which may be disabled by
setting GLOB_NOESCAPE.
* If no matching pathnames have been found and GLOB_NOCHECK was not set
(or special csh(1)-specific treatment of magic characters was requested),
return GLOB_NOMATCH instead of 0; the latter would indicate a successful
operation.
* Use strcoll() instead of strcmp() to sort globbed pathnames.
1998-06-19 22:53:57 +00:00
mikel
f417553506
include <errno.h> instead of declaring errno locally
1998-06-09 06:58:41 +00:00
lukem
fc90756956
Implement a new manual page category ``SECURITY CONSIDERATIONS''
...
(suggested by mycroft)
1998-06-08 12:41:41 +00:00
lukem
9557a71026
* move pw_scan() from libutil to libc
...
* add support for YP "master.passwd.by*" (master.passwd in YP, including
pw_passwd) and "passwd.adjunct.by*" (SunOS `secure' maps (?)), based
on code in FreeBSD and partially from OpenBSD.
this is only used if euid == 0.
with this, the YP "passwd.by*" maps can have `*' in the pw_passwd field.
* use pw_scan() to parse YP "passwd.by*" and "master.passwd.by*" entries
XXX: i didn't test the "passwd.adjunct" support...
1998-06-08 03:17:59 +00:00
kleink
e344bda27d
Document the return values of isatty(3) (`true' resp. `false' aren't valid
...
return values), and add an ERRORS section.
1998-06-06 19:50:38 +00:00
kleink
1a288eef77
Prototype has moved: change inclusion of <unistd.h> to <stdlib.h> in the
...
synopsis of valloc().
1998-06-01 20:15:13 +00:00
kleink
4a20914f7f
Need <stdlib.h> for ttyslot() prototype.
1998-06-01 20:13:30 +00:00
kleink
f33fd3125d
Prototype has moved: add inclusion of <stdlib.h> to the synopsis of ttyslot().
1998-06-01 20:12:36 +00:00
kleink
3a9e28caea
Declare this interface obsoleted by sysconf(_SC_PAGESIZE), which is the
...
portable equivalent to getpagesize().
1998-05-24 20:26:02 +00:00
kleink
3759ec18f5
Add support to query PAGESIZE, PAGE_SIZE, _POSIX_FSYNC and _XOPEN_SHM via
...
sysconf().
1998-05-24 20:12:25 +00:00
kleink
2a4b2482f5
Permit checking the availability of the POSIX File Synchronization Option
...
(a/k/a fsync(2)), System V style message queues, semaphores and shared memory
at runtime by adding a sysctl variable for each.
1998-05-24 19:52:01 +00:00
kleink
1c0fc070d8
Substitute `domain name' for `host name' at a couple of places; this was
...
obviously copied from gethostname.3.
1998-05-08 15:51:39 +00:00
kleink
42feb529b8
For consistency with the {get,set}hostname() change, change the type of
...
the `namelen' argument to {get,set}domainname() from int to size_t.
1998-05-06 19:53:41 +00:00
kleink
e3bbd3db6f
Per X/Open XNS5 (a/k/a C523), change the type of the `namelen' argument to
...
gethostname() from int to size_t. Change sethostname() in the same way
for consistency.
1998-05-06 19:48:39 +00:00
thorpej
5d42accb94
Document tcp.cwm_burstsize and tcp.ack_on_push.
1998-05-02 04:19:58 +00:00
thorpej
d2bb972036
Document net.inet.ip.mtudisc and net.inet.ip.mtudisctimeout.
1998-04-30 21:42:53 +00:00
thorpej
2629358a9a
Rework some of the documentation pertaining to tcp.init_win and
...
tcp.mss_ifmtu, in an attempt to make it a little more clear. Also,
document tcp.mssdflt, tcp.sack, tcp.win_scale, tcp.timestamps,
tcp.compat_42, tcp.cwm, and tcp.cwm_burstsize.
1998-04-30 21:32:47 +00:00
fair
f6f1a1889b
fix bad .Xr
1998-04-29 19:13:09 +00:00
fair
0047adf48c
Fix a few bad .Xr's. Nuke rampant abuse of .Nm.
...
Clarify examples through the judicious use of .Qq and .Em.
1998-04-29 19:12:09 +00:00
fair
095ab11cb7
Fix mdoc .Xr reference for syntax or correctness (e.g. exec(2) versus exec(3)).
...
Make other mdoc corrections as inspection dictated.
1998-04-28 20:11:33 +00:00
fair
fb4082bf39
fix mdoc reference, plus some other mdoc problems
1998-04-28 19:02:14 +00:00
fair
53a1274f8f
make explicit why an MLINKS for setpwfile.3 is commented out
1998-04-28 17:54:41 +00:00
fair
dc026e0515
Change occurrences of "UNIX" to .Ux or .At as appropriate.
1998-04-28 06:00:51 +00:00
fair
c46ab392dc
Principally, change foo(N) to .Xr foo N
...
Also, do some other mdoc tagging.
1998-04-28 04:07:04 +00:00
fair
5df3b6dcca
fix a small nroff bug & sort the references
1998-04-27 22:19:02 +00:00
kml
fcf0227962
Fix to ensure that the correct MSS is advertised for loopback
...
TCP connections by using the MTU of the interface. Also added
a knob, mss_ifmtu, to force all connections to use the MTU of
the interface to calculate the advertised MSS.
1998-04-13 21:18:19 +00:00
kleink
5e97b3b18a
Replace the old GLOB_ABEND constant with (the standardized) GLOB_ABORTED,
...
and explicitly state that the former is no longer supported.
1998-03-31 20:37:20 +00:00
kleink
d555fccde7
Replace the old GLOB_ABEND constant with (the standardized) GLOB_ABORTED.
1998-03-31 20:32:48 +00:00
kleink
f42a18d608
Need <stddef.h> for NULL definition.
1998-03-30 14:51:42 +00:00
kleink
c0fa575ede
Need <time.h> for CLK_TCK definition.
1998-03-30 14:36:00 +00:00
kleink
b0ade0de76
Need <time.h> for time() prototype.
1998-03-30 14:34:48 +00:00
kleink
c5f58ab93c
Need <time.h> for CLK_TCK definition.
1998-03-30 14:33:22 +00:00
kleink
ad4c63a33a
Need <time.h> for clock() prototype.
1998-03-30 14:27:17 +00:00
tv
f4de506a31
PR 3673: possible to close the wrong fds
1998-03-19 18:21:25 +00:00
fair
e3652383f9
remove getsubopt.3 - there is another man page for this in ../stdlib that came from the Lite2 merge. This closes PR4600
1998-03-19 08:22:53 +00:00
tv
902d175a04
PR 5170: don't fclose twice, or call ferror after fclose.
...
required removing fcloses and/or moving them, nulling the pointers
like they should have been, and adding a terminating null byte and break
in one case (perhaps we never ran into those problems before).
cgetclose() already does a fclose and null of the pointer, so don't
duplicate it when we don't need to.
1998-03-18 20:29:27 +00:00
lukem
2b0e1bd9bd
backout parts of the lite2 merge; it causes undesirable lossage:
...
* $PWD was used if it appeared ``correct''. this `enhancment' was
not documented in getcwd(3), and caused problems for pwd(1) (which
uses getcwd(3)), and in turn <bsd.obj.mk> (which uses pwd) when $PWD
is set to the logical path instead of the real path (e.g, symlink
/usr/src -> /z/NetBSD-current/src).
[$PWD is set to the logical path by tcsh(1) with set symlinks=expand]
* as getcwd() without the $PWD code is just a wrapper to getcwd_physical(),
rename the latter to the latter. hack realpath() to use the getcwd().
yet another case of `it was a good idea, but...'
1998-03-14 03:27:59 +00:00
mycroft
79654a9459
Back out the changes that broke old executables referring to sys_errlist[].
1998-03-03 00:34:38 +00:00
thorpej
669c5bea18
Fix type size lossage on the Alpha.
1998-03-02 23:39:49 +00:00
enami
01e1d15a0e
Just nuke cast to the argument of free() rather than changing it
...
from (caddr_t) to (void *). Lint doesn't complains about it.
1998-02-28 12:57:28 +00:00
enami
137b066143
Just nuke the cast rather than changing (char *) to (void *). Even lint
...
doesn't complain about it.
1998-02-28 12:54:39 +00:00
perry
c4ab44f1dd
trivial changes to quiet lint.
1998-02-27 20:11:34 +00:00
perry
52e17564a0
changes to quiet lint.
1998-02-27 19:01:03 +00:00
perry
16073c51c4
trivial changes to quiet lint.
1998-02-27 18:55:46 +00:00
perry
8205792218
trivial changes to quiet lint.
1998-02-27 18:34:06 +00:00
perry
5f05b863b4
trivial changes to quiet lint.
1998-02-27 18:21:19 +00:00
perry
853e41b336
trivial changes to quiet lint.
1998-02-27 18:05:09 +00:00
perry
301e5f4bfe
trivial changes to reduce lint complaints
1998-02-26 03:13:18 +00:00
perry
1f95191dfb
trivial changes to reduce lint complaints
1998-02-26 03:01:12 +00:00
perry
1ea84adf39
trivial changes to reduce lint complaints
1998-02-26 02:40:11 +00:00
perry
597e2701ac
trivial changes to reduce lint complaints
1998-02-26 02:26:12 +00:00
kleink
05debce7f3
Sync SYNOPSIS with reality, and add RETURN VALUE and ERRORS sections.
1998-02-16 15:47:40 +00:00
kleink
80a22b46d4
Sync prototype with <unistd.h> (which DTRT all the time).
1998-02-12 20:18:23 +00:00
mrg
c135ae8203
allow root to use pwd.db.
1998-02-10 03:56:33 +00:00
kleink
7cf291e0dd
Add ENOMSG.
1998-02-08 19:04:31 +00:00
mikel
fff4d1182d
add EAUTH, ENEEDAUTH, EIDRM
1998-02-06 08:44:21 +00:00
perry
312aca536f
add LIBRARY section to man page
1998-02-05 18:45:17 +00:00
perry
dc1e66a8e4
remove illegal quotes from .Dd directives
1998-02-05 07:28:01 +00:00
gwr
84a618151f
Do not try to use PS_STRINGS unless USRSTACK is defined.
...
(On m68k it is defined only for kernel compilation.)
1998-02-05 04:15:28 +00:00
tron
3a57b77a87
Fix a severe bug in popen() which only showed up with NetBSD's true
...
vfork() implementation and close a possible file descriptor leak.
1998-02-04 00:03:54 +00:00
perry
a16d9e868b
.Bx'ize
1998-02-03 21:42:54 +00:00
perry
4146d58604
remove obsolete register declarations
1998-02-03 18:23:37 +00:00
perry
677ae55ec2
force twoway and type out of registers in order to shut up a gcc
...
warning. What a crock!
1998-02-03 01:16:03 +00:00
perry
5769bb1db8
add some fixes to realpath() that were in the old realpath.c
1998-02-02 23:33:44 +00:00
perry
1698d73479
add realpath.3, getsubopt.[c3]
1998-02-02 23:24:03 +00:00
perry
f41c5d7661
it turns out we don't want getvfsbyname after all.
1998-02-02 22:52:15 +00:00
perry
90320e4c2a
fix typo from lite-2 commit
1998-02-02 02:54:28 +00:00
perry
08b0946f73
merge/update to lite-2
1998-02-02 02:41:17 +00:00
perry
2f7fe0fea0
import lite-2
1998-02-02 00:12:06 +00:00
perry
4e067afcb1
RCS Id Police.
1998-01-09 03:15:09 +00:00
lukem
028802f851
document net.inet.ip.anonport{min,max}
1998-01-05 09:59:03 +00:00
lukem
99f9342863
note that $HOME is used in ~/ globs
1997-12-28 04:37:14 +00:00
hubertf
56b5c3db8d
sys/stat.h needed for S_IFBLK/S_IFCHR.
1997-12-23 22:46:27 +00:00
kleink
916831ec4e
Add lockf(), an alternate interface to perform advisory record locking;
...
per XPG4.2.
1997-12-20 20:23:15 +00:00
mrg
c1ae52841a
use MAP_COPY|MAP_FILE.
1997-12-15 05:43:50 +00:00
thorpej
e9fb88d6e1
Document net.inet.tcp.init_win.
1997-12-11 23:30:47 +00:00
matthias
5822b3639f
add lint stubs for files that are implemented in assembler on the pc532.
1997-12-07 00:24:50 +00:00
mikel
335c5b7630
s/EACCESS/EACCES/, from Brian Evans via OpenBSD
1997-11-27 07:36:24 +00:00
kleink
f8cb8b4c14
Per XPG4.2, use useconds_t as argument and return type.
1997-11-25 18:03:45 +00:00
kleink
53d8f2fbbe
Per XPG4.2, use useconds_t as argument and return type; eliminate use of the
...
`register' keyword.
1997-11-25 18:02:36 +00:00
kleink
a57dd5b211
Per XPG4.2:
...
* Change argument to type useconds_t, return an int.
* If an interval of 1,000,000 or more microseconds was requested, fail with
-1/EINVAL.
1997-11-24 19:56:30 +00:00
lukem
0e3b290810
fix .Nx usage (use 1.0 instead of 0.9a, etc), and other minor cleanups
1997-11-24 06:28:50 +00:00
enami
760bb2c1ce
Un-capitalize function names at the beginning of line.
1997-11-23 04:23:48 +00:00
enami
5e60b1695a
In the SEE ALSO list,
...
- remove duplicated `environ(7)'.
- remove unexistent system call `trace(2)'.
- delete a period at the end.
1997-11-23 04:18:30 +00:00
enami
3b0a9ac90d
Allocate one more element for arg vector, like execl.c rev 1.5.
1997-11-23 01:16:46 +00:00
mjacob
eb498a6ab2
argv alloca'd is too short. Alloc an extra member.
1997-11-20 01:26:45 +00:00
mrg
4e252e8c4d
add missing .Nm entries. from spz@serpens.swb.de.
1997-11-14 02:04:36 +00:00
cgd
023cd79c6b
lint stubs for functions which ports use assembly versions. When using
...
an assembly version of a function, add the right lint stub to the Makefile.inc
which specifies the source to build the function (see the
arch/i386/*/Makefile.inc). Can't just lint the normal C versions of these
functions, because some of them don't _have_ normal C versions and if
that were done dependencies would get messed up.
1997-11-06 00:51:04 +00:00
cgd
59846e6495
lint stubs for functions which ports use assembly versions. When using
...
an assembly version of a function, add the right lint stub to the Makefile.inc
which specifies the source to build the function (see the
arch/i386/*/Makefile.inc). Can't just lint the normal C versions of these
functions, because some of them don't _have_ normal C versions and if
that were done dependencies would get messed up.
1997-11-06 00:50:36 +00:00
thorpej
2a43f22095
__warn_references and __indr_reference semicolon fixups. From
...
Chris Demetriou <cgd@pa.dec.com>.
1997-11-04 23:52:05 +00:00
kleink
20d81f8f56
Forgot to add basename()/dirname() manpages in last commit.
1997-11-03 17:47:44 +00:00
kleink
8bfc0cef1e
Add basename() and dirname(), from XPG4.2.
1997-11-02 16:48:25 +00:00
mycroft
a839cc8b41
s/u_int/unsigned int/
1997-11-02 07:23:09 +00:00
kleink
db674c76eb
Add appropriate conformance notice; noticed while fixing PR standards/4351.
1997-11-01 19:10:32 +00:00
kleink
01b7b3de51
isascii() is not specified by ANSI C but X/Open; noticed by Peter Seebach
...
<seebs@puddle.plethora.net> in PR standards/4351.
1997-11-01 19:05:14 +00:00
thorpej
38ba03f125
Allow the old-name functions to be compiled from the same source file as
...
the renamed functions, and add some #error directives to force the
issue with weak symbols for renamed functions when we support weak
symbols in the C library.
1997-10-22 06:37:42 +00:00
fvdl
21e1e24df3
New hacks to make libc work painlessly without bumping the major number:
...
use type func(arg1s) asm("emitted_name") gcc mechanism.
Suggested by Bill Sommerfeld.
1997-10-22 00:51:45 +00:00
fvdl
d6b51107ce
Hacks to enable libc to work without bumping the major.
1997-10-21 00:55:10 +00:00
thorpej
14cd99880c
Fix the shared library versioning snafu caused by the recent changes
...
to the stat(2) family and msync(2). This uses a primitive function
versioning scheme.
This reverts the libc shared library major version from 13 to 12, and
adds a few new interfaces to bring us to libc version 12.20.
From Frank van der Linden <fvdl@NetBSD.ORG>.
1997-10-20 22:05:06 +00:00
christos
121197f0ea
Bring timezone back to libc.
1997-10-20 15:50:22 +00:00
scottr
94cf433266
Add support for DTR/CTS flow control, from Bill Studenmund.
1997-10-20 08:07:47 +00:00
thorpej
232739024a
Document net.inet.ip.allowsrcrt and net.inet.ip.subnetsarelocal.
1997-10-17 21:30:36 +00:00
christos
34e76ae8f8
moved to libcompat
1997-10-16 23:07:26 +00:00
christos
631a35f9ca
change second argument of unvis from char to int
1997-10-16 23:06:13 +00:00
christos
e34cf3d406
__ps_strings is now extern and not modified locally.
1997-10-16 23:05:33 +00:00
christos
051a7d3051
timezone moved to libcompat
1997-10-16 23:04:38 +00:00
fvdl
05ea709dff
Fix another getdents() botch. I must've had a Makefile without
...
warnings on.
1997-10-10 14:31:55 +00:00
fvdl
b57ab4df0f
Use getdents(). Read NFS directories in one go (just as union dirs, but
...
without removing double entries). This makes sure that we get a
consistent snapshot of the directory, and protects against any
'bad cookie' errors.
1997-10-10 02:18:18 +00:00
christos
525e2bc598
Revert all slash removing changes; it is not worth it...
...
The latest one broke "ls foo.c/". Sync with Lite-2.
1997-10-09 22:59:18 +00:00
mycroft
7b360ef2b7
Make _sys_nerr const.
1997-10-09 11:31:05 +00:00
pk
98cfb5140f
Restore the NAPPEND macro, as it existed until revision 1.13, that deals
...
with roots consisting of a single slash. This special case of special
cases cannot be dealt with in fts_open() by simply chopping of a
trailing slash.
All this to avoid the occasional doubling of slashes. Oh well..
1997-10-08 19:56:59 +00:00
mycroft
5ae3044c2d
Make sure the command list is properly terminated when parsing an
...
octal mode. From Alasdair Baird in PR 4232.
1997-10-08 17:19:13 +00:00
kleink
8a7cd68e8b
getcwd(3) is not defined by ANSI C but by 1003.1; pointed out by Alan Curry
...
in PR lib/4238.
1997-10-08 09:28:01 +00:00
pk
3beb1a70cf
In fts_alloc() copy the trailing 0 character explicitly, instead of
...
relying on the passed input string having a 0 character at the right spot.
Takes care of PR#4234.
1997-10-07 23:02:17 +00:00
enami
9512162b01
Delete `: %m' from a format string passed to err().
1997-09-29 06:52:40 +00:00
enami
16602dcb61
Use warn() instead of err() as an example of ``Warn of an error''.
1997-09-29 05:33:03 +00:00
pk
4c956be8c9
The change in revision 1.13 to avoid doubling slashes in path names
...
messes up the internal administrations of the fts engine.
Do this differently by simply stripping one trailing slash (if any)
from root paths passed to fts_open().
1997-09-27 22:53:07 +00:00
hubertf
8b3a21aeca
Fix some typos reported by entropy@tardis.bernstein.com.
...
Fixed PR lib/4154.
1997-09-27 19:39:26 +00:00
mikel
1ff7d5da2e
crib text from sleep(3) to document response to signals; fixes PR 4008
1997-09-20 04:52:36 +00:00
leo
a539aec784
Commit userland part of pr-1891.
1997-09-19 19:17:17 +00:00
thorpej
4ccbd4b430
Make this safe in environments that have a Real vfork(2). Bug pointed
...
out by Chuck Cranor <chuck@netbsd.org>
1997-09-16 00:35:47 +00:00
jtc
5b466bef97
Changed order of STANDARDS and HISTORY subheads to conform with
...
specification in mdoc(7).
1997-09-09 07:26:02 +00:00
kleink
66105c37fc
Lseek(2) usage cleanup: the use of L_SET/L_INCR/L_XTND is deprecated,
...
use SEEK_SET/SEEK_CUR/SEEK_END instead.
1997-08-25 19:31:43 +00:00
mikel
e9484eba42
fix overflow problem found by Rick Byers <rickb@iaw.on.ca>; fix by
...
<entropy@tardis.bernstein.com> in PR lib/4005.
1997-08-19 04:34:15 +00:00