matt
8e8f38e0f2
Add a sysctl for newreno (default to off).
1998-10-06 00:20:44 +00:00
christos
c1d4ffba28
Remove old lint files.
1998-09-27 16:42:40 +00:00
christos
1ebb9bf289
Adapt to new signal changes (from Jason)
1998-09-26 23:53:36 +00:00
christos
cdfcc0bd0b
Use posix system calls.
1998-09-26 23:52:30 +00:00
christos
0ae61213bb
Fix array bounds (from Jason)
1998-09-26 23:50:40 +00:00
kleink
0263cca7db
Use localtime_r() rather than localtime(); removes a potential source of
...
surprise for the application.
1998-09-13 16:09:06 +00:00
kleink
4bbb5fd353
Add a multiple-reader/single-writer lock to protect environ.
1998-09-11 21:03:18 +00:00
mouse
b95116821c
Create tcp.keepidle, tcp.keepintvl, tcp.keepcnt, tcp.slowhz sysctls.
1998-09-10 10:46:03 +00:00
kleink
4fe78e340f
Explicitly cast -1 to time_t, and some KNF nits.
1998-09-07 15:26:18 +00:00
lukem
ce83c69e00
first pass at fixing up capitalization of function names and
...
arguments; ensure that each is correct with respect to the
implementation, rather than being correct as per english.
1998-08-29 08:32:32 +00:00
perry
98b9f211ee
fix bcopy->memcpy with memcpy->memmove -- not strictly needed, but...
1998-08-26 00:38:39 +00:00
thorpej
e79648d085
Add some braces to make egcs happy.
1998-08-18 23:50:08 +00:00
perry
a843f0f8a5
bzero->memset, bcopy->memcpy, bcmp->memcmp
1998-08-10 02:43:08 +00:00
kleink
22384accd7
Add support for _SC_SYNCHRONIZED_IO and _SC_IOV_MAX. Rearrange documentation
...
a bit, and actually document _SC_XOPEN_SHM.
1998-08-03 14:41:21 +00:00
kleink
5404ba4886
Add support to query the
...
* availability of POSIX Synchronized I/O (kern.synchronized_io),
* maximum number of iovec structures to be used in readv(2) etc. (kern.iov_max)
via sysctl().
1998-08-03 14:38:20 +00:00
mycroft
5a33f6d7e8
Fix obvious typo.
1998-08-02 04:52:54 +00:00
jeremy
630bf35030
Removed extraneous DESCRIPTION section header.
1998-08-02 03:20:41 +00:00
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
mikel
7f65a4ecfc
don't forget d_type when copying dirent structure; from Giles Lean in
...
PR lib/3913. also, replace d_ino with d_fileno.
1997-08-03 06:19:40 +00:00
jtc
990a11b9c6
Fix files using old TNF copyright notice
1997-07-30 23:53:32 +00:00
thorpej
5780269849
Document new UDP and TCP tunables.
1997-07-28 22:24:01 +00:00
jtc
43fa6fe319
If port provides __weak_alias(), provide an Standard C and POSIX pure
...
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore. The library will use those
names internally. Weak aliases are used to provide the original names
to the API.
This is only the first part of this change. It is most of the functions
which are implemented in C for all NetBSD ports. Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
1997-07-21 14:06:24 +00:00
kleink
d77864a270
Substitute a `2' with STDERR_FILENO for clarity; minor KNF.
1997-07-19 19:43:59 +00:00
kleink
897349ed1e
__RCSID() police, typo in variable name; from jbernard@tater.mines.edu in
...
PR lib/3889.
1997-07-19 16:02:05 +00:00
kleink
fd8f56cb11
__RCSID() police; from jbernard@tater.mines.edu in PR lib/3890.
1997-07-19 15:58:31 +00:00
jtc
2526fda257
Implement sleep() and usleep() in terms of nanosleep(). Uses only one
...
syscall instead of eight, and doesn't have any interactions with alarm
or interval timers.
1997-07-19 02:42:30 +00:00
thorpej
2d0f14c527
"Fix" the non-__indr_reference verions of the user-callable versions
...
of these functions. This is somewhat of a kludge, but there is not
much else we can do for this case.
Because of how the callable versions are created, by CPP trickery
and inclusion of another .c file, we cannot allow the included .c
file to pull in "namespace.h", since it undoes the CPP trickery we
have performed. Introduce a CPP macro that prevents the included .c
file from pulling in "namespace.h".
1997-07-17 21:33:14 +00:00
thorpej
c1109ff89e
- Don't deref a bad pointer in the event the object has no symbol
...
section header. Instead, treat the object as stripped.
- Add a "default" case to the symbol type switch to calm GCC's jets.
1997-07-17 00:54:27 +00:00
mikel
ab18bfe1bf
add toascii(3)
1997-07-16 06:22:07 +00:00
mikel
bd37c10e9d
add NetBSD RCSid
1997-07-16 06:20:20 +00:00
mikel
b797d3b1e5
import 4.4BSD-Lite2 version
1997-07-16 06:18:11 +00:00
kleink
c213a3af8b
Add missing `STANDARDS' compliance statements. As we #define _POSIX_VERSION
...
to 199009L, bump existing statements to 1003.1-1990.
1997-07-14 23:19:39 +00:00
kleink
b9ae69fdae
KNF.
1997-07-14 19:40:49 +00:00
mikel
e6f7684f2a
xref getlogin(2) not getlogin(3)
1997-07-14 02:07:10 +00:00
christos
26cc2d4f50
Fix RCSID's
1997-07-13 19:45:36 +00:00
christos
3e24b5bccd
Use "namespace.h"
...
Fix RCSID's
1997-07-13 19:43:28 +00:00
christos
7df7f83e92
Fix RCSID's
...
Fix gcc warnings.
1997-07-13 19:43:00 +00:00
christos
464fdb2e8e
Fix RCSID's
...
Use "namespace.h"
1997-07-13 19:42:37 +00:00
christos
28db57eb43
Fix RCSID's
...
Use "namespace.h"
1997-07-13 19:42:12 +00:00
christos
3f8967b868
Add prototype for sleephandler
...
Fix RCSID's
1997-07-13 19:41:46 +00:00
christos
bcc1cc51d6
Fix gcc warning
...
Fix RCSID's
1997-07-13 19:41:13 +00:00
christos
f4e2b6ec66
Fix RCSID's
...
Fix gcc warnings
1997-07-13 19:35:36 +00:00
christos
615413beb6
Include "extern.h" to get prototype for _tztab
...
Fix gcc warnings.
Fix RCSID's
1997-07-13 19:35:08 +00:00
christos
129c9a2b53
Pacify gcc
...
Fix RCSID's
1997-07-13 19:34:16 +00:00
christos
68c8f13fd6
Include "extern.h" to pick up prototype for sysctl.
...
Fix RCSID's
1997-07-13 19:33:49 +00:00
christos
f01d533d35
Fix RCSID's
...
Remove unused variable
1997-07-13 19:32:15 +00:00
christos
47d1af8a89
Fix RCSID's
...
Use namespace.h
1997-07-13 19:31:49 +00:00
christos
918197d3b3
Prototype sleephandler
...
Fix RCSID's
1997-07-13 19:31:25 +00:00
christos
1200f6cd80
Fix RCSID's
...
pacify gcc
1997-07-13 19:18:39 +00:00
christos
5ea18919c4
Fix RCSID's
...
Add missing unistd.h include
1997-07-13 19:18:05 +00:00
christos
6ca98be503
Fix RCSID's
...
Add missing unistd.h unclude
1997-07-13 19:17:41 +00:00
christos
28af8b8ef8
Fix RCSID's
...
Parenthesize
1997-07-13 19:17:13 +00:00
christos
7febd1ef31
Fix RCSID's
...
Use extern.h don't make local prototypes
1997-07-13 19:16:45 +00:00
christos
db55960be8
Fix clobbered variable warning
...
Fix RCSID's
1997-07-13 19:16:07 +00:00
christos
70e0aeb159
Use namespace.h
1997-07-13 19:15:28 +00:00
christos
004c816903
Fix readdirfunc prototype
...
Fix RCSID's
1997-07-13 19:15:11 +00:00
christos
052e43e478
Fix gcc warnings
...
Add missing prototypes
Fix RCSID's
1997-07-13 19:14:35 +00:00
christos
1adc5f2d31
Fix gcc warnings (unused variables, missing prototypes, etc.)
...
Fix RCSID's
1997-07-13 19:13:59 +00:00
christos
3e458a6238
Fix RCSID's
...
Fix gcc warning
1997-07-13 19:13:01 +00:00
christos
8b1ce69490
Add missing unistd.h include
...
Fix RCSID's
1997-07-13 19:12:30 +00:00
christos
f7f1b818de
Fix RCSID's
...
Use namespace.h
1997-07-13 19:12:05 +00:00
christos
8a80fc440f
Add extern.h to get missing __getlogin prototype
...
Fix RCSID's
1997-07-13 19:03:35 +00:00
christos
6f65806265
Add missing unistd.h include
...
Fix RCSID's
1997-07-13 19:02:53 +00:00
christos
23f517328b
Fix RCSID's
...
Fix inconsistent function definition with unistd.h
Fix gcc warnings
1997-07-13 19:02:23 +00:00
christos
11cac2080a
Add missing prototypes
...
Fix RCSID's
Fix gcc warnings
1997-07-13 19:01:22 +00:00
christos
d177cac3ba
Fix RCSID's
...
Fix gcc warnings.
1997-07-13 19:00:13 +00:00
christos
e91aca9696
Fix namespace problems
...
Fix RCSID's
Fix gcc warnings.
1997-07-13 18:59:34 +00:00
christos
282afa2f88
Fix RCSID's
...
Add missing prototypes.
Fix rest of gcc warnings.
1997-07-13 18:59:02 +00:00
christos
7957cf151f
Fix RCSID's
...
Fix bogus NULL casts
GC constant strings.
Fix gcc warnings.
1997-07-13 18:58:23 +00:00
christos
1e9dc86b19
Fix gcc warnings.
...
Fix RCSID's
1997-07-13 18:57:26 +00:00
christos
b8e9ff89a3
Fix RCSID's
...
Initialize `path' in case of error.
Fix gcc warnings.
1997-07-13 18:57:04 +00:00
christos
d1af1220a3
Use "namespace.h"
...
Fix RCSID's
1997-07-13 18:55:50 +00:00
christos
ae5f0ca647
Fix RCSID's
...
Use namespace.h
1997-07-13 18:55:18 +00:00
christos
eccdadf1e1
Fix RCSID's
...
#if 0 a local unused error function
1997-07-13 18:54:50 +00:00
christos
bbe90d58a6
Use "namespace.h"
...
Add missing stdlib.h
1997-07-13 18:54:19 +00:00
christos
29189e2b8a
Add missing stdlib.h include
...
Fix RCSID's
1997-07-13 18:53:49 +00:00
christos
19228f8132
Move the #undef errno where it is actually needed.
1997-07-13 18:53:13 +00:00
phil
e9044db523
Fix it so fts_* never adds a / to a path name when there is
...
already a trailing /. Fixes PR 1495.
1997-07-10 22:12:08 +00:00
kleink
8470989b67
Common sense dictates that the `basegid' paramater of initgroups(3) should
...
be of type gid_t, and not int.
1997-07-04 09:14:52 +00:00
veego
f766c4fe95
Update the manpage for HW_MACHINE_ARCH.
1997-06-06 23:24:00 +00:00
kleink
dbda158f1f
Add support for localized character sets (a.k.a. LC_CTYPE).
...
Thanks go to Matthias Scheler <tron@lyssa.owl.de> for contributing his initial
work in PR/3592, and to Christos Zoulas for refining it!
1997-06-02 09:52:36 +00:00
kleink
f37e2cc7d5
Add a missing comma.
1997-05-31 21:34:25 +00:00
cgd
c917dfb5b2
Fix broken uses of Dd. Both the mdoc and mdoc.samples pages agree:
...
.Dd is supposed to be invoked like:
.Dd month day, year
e.g. ".Dd January 25, 1989", rather than:
.Dd "month day, year"
which is what these pages did.
1997-05-29 01:48:05 +00:00
lukem
f10a006346
cleanup some problems with the use of mandoc macros
1997-05-26 14:02:53 +00:00
lukem
76c3314d9b
a valid uid/gid *ends* in \0 (i.e, barf if (*ep != '\0'), not if (*ep == '\0'))
1997-05-22 10:38:07 +00:00
lukem
50820e9b86
* parse gid with strtoul() instead of atoi(), and sanity check a) the parsed
...
value was just a number, b) it doesn't exceed GID_MAX
* convert gid to a string with %u not %d
* use [gu]id_t instead of int
1997-05-22 03:24:37 +00:00
lukem
f442f20a30
* parse uid with strtoul() instead of atoi(), and sanity check a) the parsed
...
value was just a number, b) it doesn't exceed UID_MAX
* convert uid to a string with %u not %d
1997-05-22 03:14:42 +00:00
lukem
8041f4f4ab
fix potential memory leaks: before calling yp_next(), reset key to NULL. if
...
an error occurred, and key != NULL, free(key).
1997-05-21 01:51:39 +00:00
lukem
1e601ecc2b
* fix [lib/3580], by ensuring that the outdata arg to the yp_xxx()
...
calls is initialised to the null pointer so that the error condition
doesn't fail by trying to free() memory that wasn't malloc()ed
* cleanup a bit; remove use of register, KNFify
1997-05-20 15:59:59 +00:00
lukem
27d1a6365b
* ensure that "outdata" values to various yp_xxx() functions are set
...
to the null pointer before invocation, so that the test in the
error case of "if (outdata != NULL) free(outdata)" won't potentially
try and free memory that wasn't malloc()ed.
* factor some duplicated code out of both parts of an "if {} else {}"
construct.
* remove use of `register' & KNFify.
1997-05-20 15:46:03 +00:00
pk
58efb9d20c
NULL => 0 (Arne Juul; PR#3629)
1997-05-17 19:24:44 +00:00
mycroft
440af0196f
Do the previous change is a much less klugy fashion.
1997-05-17 16:14:22 +00:00
kleink
f41ec7b2ac
Add/update 1003.1 conformance notice.
1997-05-16 16:03:53 +00:00
gwr
d09e80b05d
Add a default definition of __ps_strings as suggested by PK.
...
(With lots of XXX marks advising its eventual removal! 8^)
1997-05-13 21:34:26 +00:00
mikel
658cbd165a
xref sigsuspend(2), not obsolete sigpause(2).
1997-05-12 07:12:00 +00:00
kleink
44864185e6
POSIX.1/stopgap measure: if "" is to be executed, fail with ENOENT
...
immediately as there is no way for namei() to deal with this when
traversing $PATH.
1997-04-24 18:55:51 +00:00
cjs
15c91fd024
Add `glob' to the brief description to make this easier to find when
...
searching the permuted index.
1997-04-23 07:14:51 +00:00
kleink
af8354a02d
Fixed a typo and a .Os mistake.
1997-04-09 08:59:25 +00:00
thorpej
1db298180b
MIPS: a.out, ecoff, and elf nlist support
...
PowerPC: a.out and elf nlist support
1997-03-29 21:02:47 +00:00
mikel
51ec208436
fix type of fts_open() argument; from Enami Tsugutomo in PR lib/3368.
1997-03-21 05:31:21 +00:00
perry
23d6697446
fix 3364 from enami tsugutomo -- FTS ftsp -> FTS *ftsp
1997-03-20 05:39:55 +00:00
mouse
ff44468136
alternate -> alternative, per PR 2643
1997-03-08 13:36:38 +00:00
cjs
93eb52853b
PR 3279, from <david@mono.org>.
...
Bugs section changed to clarify that static passwd structure
used for return value is shared among all functions.
1997-03-03 19:43:45 +00:00
fvdl
1ed7a0186a
Check for both the filesystem name and the filesystem flags to determine
...
whether a directory is a union mount, and thus needs to have double
entries filtered out.
1997-02-25 13:16:39 +00:00
lukem
a3fc812065
man page for stringlist functions
1997-02-24 11:47:10 +00:00
mikel
28acf64f40
clarify what is printed; from Arne Henrik Juul in PR 3242, with some
...
minor editing by myself.
1997-02-21 07:44:50 +00:00
scottr
48b6b629bf
getdiskbyname() was broken by previous change, adversely affecting
...
newfs(8) and disklabel(8). Back this out, and note instead that all
instances of strcpy() here are safe.
1997-02-14 08:30:32 +00:00
christos
50c92675a9
I ``who'' was not specified, set the appropriate bits as the manual page
...
states. chmod +s foo and chmod +t . now work.
1997-02-07 22:21:06 +00:00
mrg
9cd5492c02
- convert unsafe strcpy(), strcat() and sprintf() to the `n' versions.
...
- some KNF.
1997-01-23 14:01:45 +00:00
thorpej
30ec3e8a63
Don't transfer the entire YP database using yp_{first,next}(); instead
...
use yp_match(), which is much more efficient.
From Michael.Eriksson@era-t.ericsson.se , PR #3114 .
1997-01-22 01:21:06 +00:00
lukem
f694f3b120
Add stringlist implementation
...
Convert getnetgrent from private stringlist to public version
1997-01-17 07:26:18 +00:00
perry
44f0373a13
change sigpause(2) to sigsuspend(2) or sigpause(3), depending
...
Also try to fix other bad references to sig* man pages.
Fixes pr-2885 from Jonathan Stone
These SEE ALSO sections are still bloody messes (sigh)
1997-01-17 03:44:59 +00:00
perry
0ec29f87c1
add setitimer (mentioned in text) to SEE ALSO
1997-01-17 03:14:02 +00:00
perry
4023eb8dfd
close 2885 -- sigpause->sigsuspend
1997-01-17 03:12:24 +00:00
thorpej
2e0f6cf5bb
Document CTL_DDB MIB nodes.
1997-01-09 05:39:26 +00:00
mikel
d40586fc26
there is no sysctl(2); reference sysctl(3) instead.
1997-01-03 06:43:56 +00:00
cgd
22eee680d6
ifdef YP, needs rpcsvc/ypclnt.h for protos
1996-12-20 20:46:19 +00:00
cgd
c97004a9b9
string.h for prototypes
1996-12-20 20:44:55 +00:00
sommerfe
f218af3428
Longer login name support: use MAXLOGNAME, not UT_NAMESIZE
1996-12-20 20:16:05 +00:00
cgd
a1971a18d9
pull in unistd.h, const poisoning
1996-12-20 19:38:57 +00:00
cgd
7edc9015ae
grscan()'s last arg has to be a const char *, not just a char *
1996-12-20 19:38:16 +00:00
lukem
64af799db3
fix example, from bgrayson@ece.utexas.edu (Brian C. Grayson) in [misc/2735]
1996-11-09 08:41:46 +00:00
jtc
a13179edf1
Declare global errno
1996-11-08 00:27:35 +00:00
jtc
8610f496a7
New __errno() function, returns the address of the errno variable.
1996-11-07 05:37:34 +00:00
lukem
d7578a89cf
man page is "toupper" not "tolower". from msaitoh@spa.is.uec.ac.jp [misc/2902]
1996-10-29 05:49:04 +00:00
perry
90dac65cbf
Nuked tahoe machine specific conditionals.
1996-10-16 17:53:44 +00:00
cgd
61dc0e200c
fix pasto: Elf_{Off,Word} rather than Elf32_{Off,Word}
1996-10-03 04:55:31 +00:00
cgd
e5629b37cc
clone from nlist_elf32.c (with ECOFF mods). Adds comments,
...
optimization, cleanup.
1996-10-01 13:37:05 +00:00
cgd
802cbd1ba7
clean up comments a bit.
1996-10-01 13:35:34 +00:00
cgd
561e189aaa
"do over." Rewrite from scratch, or, more precisely, based on a high-speed
...
merge of libc's ECOFF nlist support (written by me, a while ago), and the
(relatively new, but again written by me) kvm_mkdb ELF support.
1996-10-01 00:32:52 +00:00
cgd
571692b849
fix a thinko in the check-removal changes
1996-10-01 00:27:38 +00:00
cgd
e5699c2fe3
kill recently added 'check' functions, since they only add code to be more
...
expensive, i.e. they save nothing and add code. also, beat it with the
style stick.
1996-09-30 23:51:05 +00:00
cgd
80fde3aab4
kill recently added 'check' functions, since they only add code to be more
...
expensive, i.e. they save nothing and add code.
1996-09-30 23:49:27 +00:00
cgd
9a5eb71903
slightly tune what gets compiled in: On the Alpha, we need ECOFF and
...
ELF64. On other architectures only include a.out support, since we don't
know whether or not they'll have the headers necessary for ECOFF and/or
ELF, and since they only want a.out for now (execpt the mips archs, but
they do Special things). There should be a better way to select which
bits of nlist code get compiled in, but currently there is not.
1996-09-27 22:41:59 +00:00
cgd
d1bae5c5d5
rename rcsid to e64rcsid, so it doesn't conflict with the one in nlist_elf32.c
1996-09-27 22:38:06 +00:00
cgd
c8365a76b4
Seriously revamp libc's nlist()/__fdnlist() support:
...
(1) split nlist() into multiple files, for clarity and to make
ELF 32/64 support easier,
(2) support multiple executable types at the same time, and
(3) add support for 32- and 64-bit ELF (32-bit ELF support
originally from OpenBSD, but with several bug fixes so
that it actually handles symbols types more correctly
(and therefore _works_ for some of the more tricky uses
of the nlist routines) and changes for 64-bit ELF support).
1996-09-27 22:23:03 +00:00
thorpej
95c870f69b
Update for the new internal name for __getlogin().
1996-09-23 02:43:11 +00:00
phil
8bcbf9b3bb
Make it correctly return unslept seconds if interrupted for any other
...
reason than SIGALRM. (Was ALWAYS returning 0.)
1996-08-02 17:52:50 +00:00
explorer
24ff249a08
document AUTONICETIME and AUTONICEVAL sysctls
1996-07-17 18:06:36 +00:00
jtc
a0d2fe2548
Thanks to the calling conventions used by some cpus, the argument lists
...
passed to the execl(), execle(), and execlp() functions are in the form
of the argument vector to be passed to execve(). On these architectures,
it is unnecessary to count the number of arguments, allocate space on
the stack, copy the arguments, etc. The vector already on the stack
can be used instead.
When some arguments are passed in registers (like most RISC CPU's), it
should be possible to allocate stack space adjacent such that the
registers can be copied to that memory. After that, the same
approach described above can be used.
This change takes advantage of this on the i386, m68k, and ns32k. It
is probably true on the vax, but I am unable to check. RISC CPU's
probably need assembly language implementations to ensure everything
is placed exactly as needed when registers are copied to the stack...
1996-07-04 07:18:56 +00:00
jtc
614420255a
Split all exec*() functions out of exec.c into their own files.
1996-07-03 21:41:46 +00:00
jtc
a174b58e2c
Added a new VA_START macro to hide the differences between varargs.h
...
and stdargs.h. This cleans up a lot of conditionals throughout this
file.
1996-07-03 19:53:46 +00:00
jtc
b021f209c3
Changed to conform to POSIX.2 B.3.2.2 "popen() shall ensure that any streams
...
from previous popen() calls that remain open in the parent process are closed
in the new child process." Fixes PR #2575 .
1996-06-29 00:51:49 +00:00
jtc
9647f42d70
Signal mask was not restored correctly.
...
Fix from James Chacon <jmc@pobox.com> in PR #2442 .
1996-05-20 06:13:07 +00:00
cgd
85b3fc5c34
update for ecoff header changes. Most changes taken from PR 2413,
...
submitted by Jason Thorpe.
1996-05-16 20:49:20 +00:00
christos
b2459dacce
Use the POSIX signal mask interface
1996-05-16 19:39:13 +00:00
mycroft
c2102b50ad
Slight simplification.
1996-05-11 11:04:51 +00:00
christos
e904bb0ffc
Close PR 2376
1996-05-06 13:45:44 +00:00
christos
b078384e49
- grab prototypes from netgroup.h
...
- added _ng_print, netgroup pretty printing function
1996-04-27 18:59:05 +00:00
scottr
7fde8d9997
comprised -> composed. Closes PR 2345.
1996-04-23 05:18:06 +00:00
cgd
4e82cb0a0a
fix a couple of typesetting and grammatical errors in GLOB_BRACE's description
1996-04-19 00:12:16 +00:00
cgd
67d51cc7b5
#define _verr* to verr*, to make these use prototypes correctly
...
and compile in the "no indr_references" case.
1996-04-17 23:05:44 +00:00
jtc
ec081115f9
Split each function in err.c out into its own file. This is needed
...
for systems without weak or indirect references.
1996-04-15 23:44:53 +00:00
thorpej
6779689463
Document that "<sys/sysctl.h>" isn't enough ... suggest including
...
<sys/param.h>, too. Suggested my Kevin M. Lahey <kml@nas.nasa.gov>
in PR #1999 .
1996-04-13 02:07:15 +00:00
jtc
20779dadd6
Add proper punctuation; Reported by Mike Long <mike.long@analog.com> in PR #2302 .
1996-04-08 20:56:38 +00:00
jtc
af07dd15d4
Add explict function return types
1996-04-03 19:48:56 +00:00
jtc
45da58c78f
Changed signal prototype to be more like ANSI C
1996-03-26 02:05:55 +00:00
christos
0ded611f77
Add missing documentation for TTY_MDMBUF.
1996-03-17 19:36:53 +00:00
neil
c276195bf7
Fixed SEE ALSO section. Closes PR # 2049
1996-02-11 16:15:40 +00:00
phil
7b194ded98
Rewrite the description of alarm(3) to match reality.
1996-02-01 20:11:48 +00:00
mycroft
99374f84f7
Add missing argument to warnx().
1996-01-22 16:34:08 +00:00
thorpej
535abd80a2
Add a net.inet.ip.directed-broadcast sysctl as suggested by
...
Darren Reed <darrenr@vitruvius.arbld.unimelb.edu.au> in PR #1227 .
This change is slightly different than the one submitted by Darren in
that the DIRECTED_BROADCAST compile-time option will behave like it used
to so that existing configurations utilizing it won't have to change.
1996-01-16 04:17:30 +00:00
thorpej
4b359df8c4
Add net.inet.ip.forwsrcrt: if zero, the system will not forward
...
source-routed packets. Note this value is protected by kernel security
level; it can only be changed if securelevel < 1.
1996-01-15 21:11:46 +00:00
thorpej
6dda330ef6
New-style RCS ids.
1995-12-28 08:51:55 +00:00
jtc
bdb00bc144
Changed to use alloca() instead of malloc() to allocate argument vectors.
...
Programs that don't use malloc()/free() (ie. provide their own allocation
scheme atop sbrk()) should still be able to use exec*.
1995-12-14 16:51:27 +00:00
pk
5e25a3816d
Eliminate race by stopping timer before restarting it with remaining time
...
(one more system call).
1995-10-26 22:07:00 +00:00
pk
0a3f02bda0
Eliminate race in the "normal" case of not being interrupted by another signal.
1995-10-20 17:32:06 +00:00
pk
d2c2babb9f
1) Turn off timer before resetting signal disposition.
...
2) Set signal mask before signal action, to avoid held SIGALRMs
bursting in after unsetting the handler.
1995-10-16 18:58:47 +00:00
jtc
0e3da40dbe
Manpage fixes from Jochen Pohl. Aligns the prototypes in the SYNOPSIS
...
section with the actual function declarations. Also fixes decription
of _SC_CLK_TCK in sysconf(3). See PR #1587 and PR #1589 for details.
1995-10-12 15:39:23 +00:00
thorpej
07db43dc14
Document new RFC1323 sysctl variable.
1995-09-30 07:03:54 +00:00
cgd
c178576bae
add hack-ish support for ecoff nlists (used only on the Alpha).
...
It's hack-ish, but it appears to work well enough for all/most
programs that use libkvm, e.g. ps, w, netstat, dmesg, etc.
1995-09-29 04:19:59 +00:00
mycroft
23de03812d
Clean up a little, and fix a fencepost error.
1995-08-31 16:28:01 +00:00
jtc
aa8fc243af
Don't overflow fixed sized buffers. Parts of this patch come from
...
Perry Metzger, Charles Hannum and Paul Kranenburg.
1995-08-30 21:20:36 +00:00
mycroft
ce6374e6be
Do not terminate the search on errors other than ENOENT.
1995-08-24 05:26:35 +00:00
jtc
cb188d3b35
fix typo
1995-08-12 05:02:46 +00:00
jtc
a6751cc939
Updated for LOG_FTP (PR #1312 ).
...
Edited the examples section so that they are all separated by a single
blank line, since they're unrelated. SunOS' syslog(3) has a sentance
or two describing each line. We'll either have to come up with our
own text or ignore it. I'm ignoring it for now.
1995-08-11 00:34:34 +00:00
thorpej
0f77910137
Add and document a `kern.rawpartition' sysctl.
1995-08-04 18:36:08 +00:00
jtc
29308d7d0d
stdio.h -> unistd.h
1995-07-30 06:05:35 +00:00
phil
e69d413643
Improvements to YP support from Jason Downs.
1995-07-28 05:43:01 +00:00
jtc
3b6cda53f9
add setlocale(3) and strsignal(3) cross references
1995-07-03 22:48:08 +00:00
cgd
3d113b326b
don't assume f_fstypename is larger than MFSNAMELEN or is nul-terminated
1995-06-18 10:58:06 +00:00
jtc
9c87841ac4
Change return type of {get,set}{domain,host}name() from long to int.
1995-06-16 07:36:03 +00:00
jtc
edbbf562ba
<sys/termios.h> -> <termios.h>
1995-06-16 07:20:35 +00:00
jtc
bd3ac90048
getsubopt() uses strcmp(), so include <string.h>
1995-06-16 07:15:18 +00:00
jtc
ed7060c4a6
Use standard conditional for rcsid definition.
1995-06-16 07:12:41 +00:00
jtc
915b76dd9f
Don't cast void functions to void.
1995-06-16 07:05:27 +00:00
jtc
a646349d2b
Open with O_NONBLOCK, in case someone tries to open a blocking device
...
or a non-open fifo instead of a directory.
1995-06-12 19:38:02 +00:00
cgd
85ab28f7aa
eliminate the need for some (fatal) casts.
1995-06-07 13:14:09 +00:00
mycroft
ac1e0f5127
Don't set the rgid or egid. Document this behavior. This is compatible with
...
SunOS and SysV.
1995-06-03 02:27:17 +00:00
mycroft
19755ba159
We must do setgid() explicitly now.
1995-06-02 21:25:09 +00:00
jtc
4cb508307a
Don't duplicate the primary group. The first member of the groups list
...
no longer serves as effective group id.
1995-06-01 22:51:17 +00:00
mycroft
be21323869
Modify getpwent() to use __ypparse().
1995-05-17 17:36:43 +00:00
mycroft
5eb65c6b09
Use the new ps_strings format.
1995-05-16 14:23:06 +00:00
jtc
3ba2c075cf
#include appropriate header files to bring prototypes into scope
1995-05-13 06:58:18 +00:00
jtc
9ae90685f2
Winning Strategies has placed this code in the public domain.
1995-05-11 23:03:44 +00:00
mycroft
aff3578b36
Explicitly unblock SIGALRM while waiting.
1995-05-03 12:52:43 +00:00
mycroft
66f0c16f14
Use POSIX tty semantics.
1995-05-02 01:40:14 +00:00
jtc
02788519a9
termios code has been moved to new libc/termios directory.
1995-04-25 00:06:17 +00:00
ragge
db0c9cd300
Removed VAX specific definitions.
1995-04-17 12:28:29 +00:00
cgd
76a6b7c3b3
fix operator precedence error (pr 951 from Ted Lemon)
1995-04-11 02:57:52 +00:00
jtc
f86410093b
Changed name of __weak_reference() to __indr_reference(). They really
...
are indirect references, and I want to add a real __weak_reference()
macro to <machine/cdefs.h> soon.
1995-03-23 19:58:48 +00:00
jtc
7870f9f542
removed unnecessary #include <stddef.h>
1995-03-23 19:51:13 +00:00
mycroft
62648a14f0
Clone from sleep(), with the logic for returning a value removed.
1995-03-21 13:50:32 +00:00
mycroft
d53dfd3d3c
Minor changes.
1995-03-21 13:44:40 +00:00
mycroft
f75ba16b09
Update to use timer{add,sub}().
1995-03-21 13:33:34 +00:00
pk
a63744d63c
Speed up getgrnam() and getgrpid() by using yp_match().
1995-03-16 11:48:01 +00:00
jtc
016bb710d9
ctime.3 and tzset.3 manpages have been moved to libc/time.
1995-03-10 06:29:15 +00:00
jtc
20d50456cc
Removed references to ctime.3 and tzset.3 manpages and associated manpage
...
links (they have been moved to libc/time).
1995-03-10 06:15:10 +00:00
jtc
57274dc48e
date and time functions have been moved
1995-03-09 23:31:07 +00:00
cgd
ee38224d2e
fix up some RCS Id's i botched.
1995-03-04 01:55:49 +00:00
mycroft
4c34be6b52
Clean up deleted files.
1995-03-01 00:00:00 +00:00
jtc
88ba3f858c
Changed <sys/signal.h> to <signal.h>
1995-02-28 01:13:50 +00:00
cgd
1e1bba23c7
make lint/SCCS Id if more standard.
1995-02-27 15:47:03 +00:00
cgd
c18290a117
delete wordexp reference
1995-02-27 06:25:38 +00:00
cgd
fecf194677
oops; we do need errno.h
1995-02-27 06:21:23 +00:00
cgd
9060ff0dc7
merge with 4.4-Lite, keeping local changes. clean up Ids
1995-02-27 05:50:11 +00:00
cgd
f9f97c4fab
merge with Lite, keeping local changes. Fix up Id format, etc.
1995-02-27 04:34:47 +00:00
cgd
5a21812615
oops; since i kept the writev() trick, still need uio.h
1995-02-27 04:34:44 +00:00
cgd
d7ab506f38
merge with Lite, keeping local changes. Fix up Id format, etc.
1995-02-27 04:34:25 +00:00
cgd
b585e843ca
update from Lite, with local changes. fix Ids, etc.
1995-02-27 04:12:15 +00:00
cgd
72c46b1cdc
merge with Lite, keeping local changes. Also use new Id format.
1995-02-27 03:42:42 +00:00
cgd
516f67f7c9
re-order things the way they'd like to be ordered
1995-02-25 17:19:26 +00:00
cgd
714c54bd02
fix prototype that i botched.
1995-02-25 17:18:31 +00:00
cgd
db638fe19d
typo
1995-02-25 17:17:33 +00:00
cgd
4145a97c7f
oops; biffed path
1995-02-25 17:08:29 +00:00
cgd
a87693f257
update from Lite, clean up a bit, seperate arch-specific file list.
1995-02-25 17:05:19 +00:00
cgd
63de9506bf
merge with Lite, keep local changes. clean up id usage
1995-02-25 15:39:01 +00:00
cgd
5d6d569765
update to 4.4-Lite and/or clean up Id
1995-02-25 14:09:35 +00:00
cgd
6e6a4e85b0
update to 4.4-Lite where appropriate, clean up Id format, etc.
1995-02-25 13:40:51 +00:00
cgd
97d9d67a27
from lite, with minor name rearrangement to fit.
1995-02-25 09:11:37 +00:00
cgd
2c4d3c4c4a
clean up Id's on files previously imported...
1995-02-25 08:50:56 +00:00
cgd
b380b015d1
make this 64-bit-safe.
1995-02-10 18:15:05 +00:00
cgd
b42e80ba75
list the files needed on the alpha.
1995-02-10 17:46:48 +00:00
mycroft
44525cd591
Clean up deleted files.
1995-02-05 06:09:30 +00:00
jtc
94da0b5da5
Merged with 4.4lite, with hopes that it would fix the bug where mktime()
...
would spin in an infinate loop when passed a tm struct with all fields
set to INT_MIN. It isn't a complete fix, the loop now terminates but
mktime() does not return (time_t) -1.
I sent mail to bostic about this, who replied that the changes in 4.4BSD
were to fix this exact problem. My next step is to send mail to Arthur
David Olson, the original author and maintainer of this code.
1995-02-01 18:09:39 +00:00
cgd
dc70e3ae1b
document sysctl variable kern.maxpartitions
1995-01-25 06:09:12 +00:00
cgd
26099b453e
note KERN_DOMAINNAME, the addition of tickadj to KERN_CLOCKINFO.
1995-01-24 23:55:48 +00:00
pk
a64c43edd8
Add sigsetjmp() for sparc.
1995-01-11 20:23:59 +00:00
jtc
f34d1ed7d1
Password databases live in /etc, not /var/db. (PR #685 )
1995-01-03 15:57:32 +00:00
mycroft
31146ca7e8
Format police, and a small patch for 64-bitness.
1994-12-28 03:34:37 +00:00
mycroft
0121eacdc1
Repair a couple of things.
1994-12-28 03:22:37 +00:00
mycroft
05fe3ff1f7
Mostly sync with CSRG.
1994-12-28 03:06:05 +00:00
jtc
7141eb20ba
4.4lite's C language sigsetjmp() implementation is bogus, restore
...
machine dependant versions.
1994-12-23 22:25:48 +00:00
cgd
ae9172d6cd
specify man pages the new way.
1994-12-22 09:57:51 +00:00
cgd
2eed827e82
make libc work again, on systems that don't support __warn_reference
1994-12-18 11:32:37 +00:00
cgd
b70de87ec8
make type-size safe.
1994-12-18 09:09:48 +00:00
cgd
02ae34d854
add #include description, from Jim Jegers
1994-12-18 04:26:06 +00:00
pk
26a352d1dd
Provide backwards compatibility with previous "doubly-underscored"
...
symbols. Avoids updating libc's major version number for this internal change.
1994-12-17 16:27:03 +00:00
pk
7c93bbccb8
Refer to _sys_siglist with just one underscore.
1994-12-17 16:18:10 +00:00
pk
c0aee44a2f
Correct number of underscores on internal function calls.
1994-12-17 16:16:00 +00:00
jtc
37d79a5d9d
Fixed cross reference: sysctl(1) -> sysctl(8).
1994-12-15 08:44:35 +00:00