Commit Graph

1123 Commits

Author SHA1 Message Date
kleink
ecaa1449b5 Move the function implementations of (the non-ANSI) isascii() and toascii()
into separate modules to avoid namespace clashes.
1999-09-12 18:54:34 +00:00
kleink
03126e1c99 Use full month names with .Dd, as per mdoc.samples(7). 1999-09-12 18:47:10 +00:00
proff
fb95c8ad2b Document return values and bugs 1999-09-03 13:12:44 +00:00
mycroft
07ccaa3409 HUGE_VAL -> infinity 1999-08-29 18:55:29 +00:00
mycroft
3b800f4a61 Mention more of the special cases. 1999-08-29 18:52:18 +00:00
mycroft
9a255f2ff2 Readd my change from fts.c rev 1.10, which was incorrectly removed in rev 1.19
(HI CHRISTOS!):
Avoid extra stat()s if a link count of 1 is returned for directories but the
d_type field is filled in.
1999-08-27 21:10:46 +00:00
mycroft
4c9100d48f Adjust fts_pow2() for LP64 before Ross bricks me. 1999-08-27 20:02:14 +00:00
mycroft
ea03e67f3c GC one line of unneeded code. 1999-08-27 18:33:29 +00:00
mycroft
6b91e1fa70 Fix the comment above fts_palloc().
Also, fail with ENOMEM if fts_pathlen would overflow, rather than silently truncating the
path.
1999-08-27 18:29:08 +00:00
mycroft
8db2a166f9 Avoid memory leaks when realloc() fails (by storing the return value in a temporary, and
testing it before assigning it; fts_close(3) will deallocate the old memory).
1999-08-27 18:26:34 +00:00
mycroft
b09ec9deb8 Fix multiple problems in the FTS_NOCHDIR case:
* There was an off-by-one error that caused the addition of a NUL or slash in fts_build() to
  overwrite other memory.
* After fts_palloc(), we need to reset `cp' so that it points to the new path name buffer;
  otherwise the addition of the file name before calling fts_stat() could lose.
Also, fix stupidity in the fts_palloc() interface.  We don't want N bytes more than the
current buffer size; we want N bytes more than the current length.  Just pass in the new
size, since we can't figure it out easily here.
1999-08-27 18:01:35 +00:00
mycroft
ba3f600103 Allocate the path name buffer by powers of 2. 1999-08-27 06:17:33 +00:00
mycroft
8f599f97a7 Minor change to previous. 1999-08-26 20:28:53 +00:00
mycroft
8873459bcb Fix 3 bugs:
* When not using FTS_NOCHDIR, fts_accpath == fts_name.  fts_padjust should not
  try to move fts_accpath in this case.
* Previous entries at the same level also need to be adjusted.
* A bug was introduced in rev 1.8 (HI CHRISTOS!!) that caused the maxlen
  comparison to always fail (due to type promotions) when sp->fts_pathlen ==
  cur->fts_pathlen -- thus causing memory stompage.
1999-08-26 20:24:59 +00:00
mycroft
af3e075076 Make some needed weak aliases. 1999-08-17 03:43:59 +00:00
kleink
9208fe856f Add header file inclusion, and Xref single-precision versions. 1999-08-16 23:12:19 +00:00
fvdl
0536609b97 Keep track of the number of encountered symlinks and fail with ELOOP
if they exceed MAXSYMLINKS.
1999-08-10 13:03:11 +00:00
sommerfeld
508d2d0e9e Avoid infinite loop if pathname is longer than the maximum the kernel
is willing to return from getcwd().
(this can only happen in -current).
1999-07-11 18:01:46 +00:00
kleink
7b67bca335 Add compile-time and run-time feature test knobs for the 1003.1 Mapped Files,
Process Memory Locking, Range Memory Locking and Memory Protection options.
1999-06-24 14:18:10 +00:00
thorpej
3787c5c3d8 MAP_COPY -> MAP_PRIVATE 1999-06-17 21:09:47 +00:00
simonb
5bef8a3c65 The prototype for this is in <stdlib.h>... 1999-06-15 12:14:08 +00:00
christos
d3afd1cc44 make this compile under linux 1999-06-11 15:38:40 +00:00
christos
033ffd1215 make this compile under linux too. 1999-06-10 23:40:53 +00:00
kleink
9fa49f9cd5 Need <unistd.h> for declarations. 1999-05-26 15:39:36 +00:00
ad
ccc7e59e1f Add new sysctl (net.inet.tcp.log_refused) that when set, causes refused TCP
connections to be logged.
1999-05-23 20:33:50 +00:00
christos
11f565478e Fix unaligned access lint warning. 1999-05-03 14:35:46 +00:00
christos
c52c8cc0b1 int -> size_t problems, change do { } while (0) to for (;;) 1999-05-03 14:33:50 +00:00
ross
415d4c2f07 Fix fpgetmask.3 MLINKS braino. 1999-05-01 22:45:57 +00:00
ross
c5a82dd848 * New MI man page for fp{set,get}{round,sticky,mask}(3).
* Implement fpgetsticky() for alpha.
* Direct fpsetsticky() and fp{get,set}mask() into alpha kernel via sysarch(2).
* Define new sysarch(2) stub for above and install and distribute sysarch.h
for alpha.  (The fpcr IS user mode r/w, but for reasons beyond the scope
of a commit message kernel calls are needed.) And much kernel Magick is
required before these do anything, but this way programs compiled under
1.4 will DTRT on future snapshots and releases.
1999-04-30 00:58:30 +00:00
ross
c36a5f5190 Unconditionalize `rval' declaration referenced in usr.bin/chpass/ via .PATH 1999-04-27 06:08:58 +00:00
lukem
df8debb219 change dns_getpw() to skip dodgy entries when doing getpwent(), rather
than returning NS_UNAVAIL. this means that a -ve uid entry in hesiod
doesn't stop getpwent() in its tracks. it also brings it in line with
how nis_getpw() works as well in this situation.
problem tracked down (with much pain & suffereing) by simonb.

XXX: we currently have no support for -ve uids, and this is painful in
XXX: hetrogenous environment... (this -ve check is enforced in __pwscan())
1999-04-26 04:01:32 +00:00
lukem
61ae8b4739 document duplicate suppression 1999-04-25 14:56:10 +00:00
lukem
253fa5cc72 suppress duplicate gids (e.g, when multiple sources are given in
nsswitch.conf and they contain similar information).

XXX: in the case where the given array is too small and -1 is returned,
the returned ngroups will be too large by a factor of the difference
between the given size and the number of matches. this is not considered
to be a major problem, since it's still going to be a smaller figure than
what the previous (non suppressive) behaviour returned.
1999-04-25 14:47:46 +00:00
lukem
d438433458 * highlight that getgrent() doesn't suppress duplicate info from multiple
nsswitch.conf sources
* consistently refer to `functions', rather than occasionally referring
  to them as `routines'.
1999-04-25 13:47:37 +00:00
lukem
83e7ae6c5d * highlight that getpwent() doesn't suppress duplicate info from multiple
nsswitch.conf sources
* consistently refer to `functions', rather than occasionally referring
  to them as `routines'.
1999-04-25 13:45:02 +00:00
lukem
326483c4de change getgrent() backends so that a flag (per source) is set once the
source has been exhausted. this allows getgrent() across multiple
sources (e.g, ``group: files nis'') to work correctly. the flags are
reset in setgrent()/endgrent().

(as per similar change in getpwent.c rev 1.42)

XXX: this change means that code that uses getgrent() to obtain a list
of groups will have to do duplicate suppression... getgrouplist()
springs to mind; i'm about to modify that
1999-04-25 13:39:41 +00:00
lukem
a8743ef778 change getpwent() backends so that a flag (per source) is set once the
source has been exhausted. this allows getpwent() across multiple
sources (e.g, ``passwd: files nis'') to work correctly. the flags are
reset in setpassent()/endpwent().

this fixes a bug noted in [lib/7449] by thorpej, and tracked down to
getpwent() as being the culprit by simonb.
1999-04-25 07:54:01 +00:00
lukem
73e9ef01be specifically include stdarg/varargs.h 1999-04-18 02:04:04 +00:00
drochner
2c6db68a95 remove unused label 1999-04-08 17:07:02 +00:00
pk
1cd395375d 1, 2, 3 and.. 4! 1999-04-06 20:24:37 +00:00
cgd
b22750720f change:
.Sh "SEE ALSO"
to:
	.Sh SEE ALSO
The doc macros check for the latter (actually just for 'SEE' as the first
argument to .Sh) to set the section header SEE ALSO flag, which modifies
some behaviour (e.g. references done with .Rs/.Re).
1999-04-06 04:54:19 +00:00
mycroft
71ebbb8000 Return the full group count when it exceeds the maximum. Also DTRT if the
maximum is 0 (possibly used to size the list for memory allocation, rather
than core dumping).
1999-04-05 18:52:28 +00:00
lukem
3ebdcecd65 don't use warn() in initgroups(); it's not documented to do that, and
if stderr isn't valid the caller may dump core.
from Giles Lean <giles@nemeton.com.au> in [lib/7273]
1999-03-31 12:19:32 +00:00
abs
ac83f64eca Cast argument to isspace to (unsigned char) to pass zoularis. 1999-03-29 09:27:29 +00:00
sommerfe
bb8c6c869a move __getcwd prototypes to libc-private header file.
XXX duplicate the prototype in getcwd regression test (which needs to
call the syscall directly for reasonably complete testing).
1999-03-26 22:23:57 +00:00
sommerfe
27a01cc18e Use __getcwd() system call in getcwd() unless OLD_GETCWD is defined 1999-03-26 04:04:13 +00:00
mycroft
66902a3cfd Remove blank lines. 1999-03-24 06:14:18 +00:00
abs
5e69f8317f Fix 'suggest parentheses' warning noted by Erik E. Fair <fair@clock.org> 1999-03-23 02:58:50 +00:00
garbled
38c96853cf Last of the .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Wheee!
1999-03-22 19:44:33 +00:00
kleink
4d282292e2 Introduce EOVERFLOW. 1999-03-22 19:03:38 +00:00
abs
6c70403fe8 If we push a cap entry (usually from the environment), strip : deliminated
entries that only contain whitespace, in a similar fashion to reading from
a file.
1999-03-22 03:28:09 +00:00
christos
3eeda4afc6 Fix gcc-2.8.1 warnings. 1999-03-16 18:13:44 +00:00
is
592e2783ea Use SUN_LEN, not sizeof. 1999-03-16 14:00:58 +00:00
is
9f6e89f0d8 Use a struct sockaddr_un, so that the new _PATH_LOG actually fits into it. 1999-03-16 13:48:00 +00:00
kristerw
a37972b8d8 daemon returns int. From OpenBSD. 1999-03-14 18:10:02 +00:00
erh
bdfd2b2770 Add missing .El lines. 1999-03-09 19:45:09 +00:00
kleink
be94d3fe24 Const poisoning, integer argument promotion. 1999-03-08 10:35:43 +00:00
christos
6ddc400a5b const poisoning. 1999-03-02 14:02:02 +00:00
drochner
a34eb7c1b7 use ${ARCHDIR} instead of ${.CURDIR}/arch/${MACHINE_ARCH} where appropriate
libc builds on pmax again
1999-02-24 15:05:20 +00:00
mrg
bdadd56346 add a new fstab type "dp" for the user-specified dump device.
change swapctl -A to see this and add it via swapctl(2).  also
add a new swapctl -D <device> to change the dump device on the
fly.
1999-02-23 17:00:53 +00:00
kleink
df15a294f2 Dv vs. Va police. 1999-02-16 19:36:52 +00:00
lukem
f177c46ba0 fix bug introduced in rev 1.8 during delint(1)ing which broke globbing ~/
(hi christos! ;)
1999-02-07 12:19:37 +00:00
kleink
0d5bfdd00f Make argv construction code reentrant. 1999-02-04 18:17:16 +00:00
kleink
4c1375bee7 Protect syslog descriptor state with a mutex. TODO: cleanup handling for
cancellation points.
1999-02-04 16:23:17 +00:00
thorpej
4fe22aef7f Sync w/ kvm_mkdb. 1999-01-29 22:23:54 +00:00
thorpej
7c2e6d4c42 Fix printf format errors. 1999-01-26 02:23:34 +00:00
lukem
7f1c203c11 always compile in support for `compat' backends (even if !YP & !HESIOD),
and make it the responsibility of the backends to fallback to `files'
if !YP & !HESIOD. fixes chsh problem noted by billc@netbsd.org.
1999-01-26 01:08:06 +00:00
lukem
147dea105a convert from hes_*() -> hesiod_*() 1999-01-25 01:09:34 +00:00
christos
6856868d29 - Use strsep() instead of strtok_r()
- Use warn{x,}() instead of home brewed error()
- Simplify some code.
1999-01-24 19:51:16 +00:00
lukem
a17402b37c pre nsswitch default was more like "files [notfound=return] nis" 1999-01-22 03:25:31 +00:00
thorpej
45863a505b Fix two problems with the recent nsswitch changes to netgroups:
- The historic mode for netgroups was "files nis".  Change the default to
  this for when /etc/nsswitch.conf does not exist.
- The nis lookup dispatch was mistakenly conditional on -DHESIOD, not -DYP.
1999-01-21 22:21:13 +00:00
mycroft
4171e335d6 Use the right map for Hesiod lookups by uid. 1999-01-21 12:42:06 +00:00
christos
23ab75d421 - remove unneeded casts
- remove unreachable code
- delint
1999-01-20 13:12:07 +00:00
christos
78427083c5 - avoid unitialized warning.
- remove unreachable code.
- add ARGSUSED
- linted for const castaway.
1999-01-20 13:11:18 +00:00
lukem
40901ecd3c nsdispatch defaults now: "group: compat", "group_compat: nis" 1999-01-20 02:59:37 +00:00
mycroft
3d9372fc29 Simplify this code slightly. 1999-01-19 08:32:34 +00:00
lukem
b247a8eceb * passwd' defaults to compat', and passwd_compat' defaults to nis'
* constify ns_dtab defs
1999-01-19 08:30:46 +00:00
lukem
6a471ed8f9 convert to new nsdispatch(3) 1999-01-19 08:07:58 +00:00
lukem
27323a9339 * maximum limit of names is MAXLOGNAME not UT_NAMESIZE. fixes [bin/6847] from
scott ellis.
* convert to new nsdispatch(3)
1999-01-19 08:04:27 +00:00
abs
593d6c65b9 Add '-f disktab' option to disklabel, via lib/6623 from
Greg A. Woods <woods@most.weird.com>. (Very) slightly tweaked disklabel.8
1999-01-19 06:24:08 +00:00
christos
6304dadc4d delint 1999-01-18 20:36:32 +00:00
lukem
a360857d48 * fix _compat_getpw so that it returns _local_getpw(...) if there
isn't a `+' token in the files database.
  (this bug probably crept in when a merge to current occurred)
* ensure that the _bad_getpw callbacks in __getpwcompat have an
  argument for error reporting.
1999-01-18 00:59:10 +00:00
lukem
e50f4e6efc fix some gid casts 1999-01-16 14:44:33 +00:00
lukem
f016dbdf41 fix some uid casts 1999-01-16 14:42:54 +00:00
lukem
d3f8abaacb reference nsswitch.conf(5) 1999-01-16 07:59:39 +00:00
lukem
0eb8645e3a pull nsswitch up to main branch 1999-01-16 07:47:18 +00:00
tsarna
531aeb7c25 Add a "class" entry to ttyent. Closes PR#4638. 1999-01-15 18:47:48 +00:00
bouyer
dc306354b0 Move the bswap functions from libutil to libc (this bups the
minor of libc and the major of libutil). For little-endian architectures
merge the bnswap() assembly versions with nto* and hton* using symbols
aliasing. Use symbol renaming for the bswap function in this case to avoid
namespace pollution.
Declare bswap* in machine/bswap.h, not machine/endian.h. For little-endian
machines, common code for inline macros go in machine/byte_swap.h
Sync libkern with libc.
Adjust #include in kernel sources for machine/bswap.h.
1999-01-15 13:31:15 +00:00
is
1ab8cc2ed4 mention poll(2). 1998-12-11 22:38:44 +00:00
jonathan
bf3db28f12 Move warnings about sys_errlist[], sys_nerr, __sys_errlist, _sys_nerr
to _sys_siglist.c, so the warning is shown once at link time, not three times
(once for errlist.c itself,  once each for the two includes in _sys_siglist.c).
1998-12-06 07:12:18 +00:00
jonathan
56f21e4806 Move warnings about sys_siglist[] and __sys_siglist to _sys_siglist.c,
so that the warning is shown once at link time, not three times.
1998-12-06 07:05:48 +00:00
thorpej
0c5cf7b38a Warn about references to the compatibility unvis(), and direct the user to
include <vis.h> to generate the correct reference.
1998-12-02 19:33:28 +00:00
christos
d72de1a548 PR/6251: ``TheMan'': Delint. 1998-12-02 09:47:20 +00:00
thorpej
6dc438b3ac Warn about references to the compatibility sigaddset(), sigdelset(),
sigemptyset(), sigfillset(), and sigismember(), and direct the user
to include <signal.h> to generate the correct references.
1998-12-01 22:05:21 +00:00
thorpej
126eb1160e Warn about references to the compatibility sys_errlist[] or sys_nerr, and
direct the user to include <errno.h> to generate the correct reference.

Warn about references to the deprecated __sys_signame[] or __sys_nerr, and
direct the user to include <errno.h> and use sys_errlist or sys_nerr instead.
1998-12-01 20:38:02 +00:00
thorpej
7c8e3ebefb Warn about references to the compatibility sys_signame[], and direct
the user to include <signal.h> to generate the correct reference.

Suggestion from Christoph Badura.
1998-12-01 20:31:41 +00:00
thorpej
6d0722603d Warn about references to the compatibility sys_siglist[], and direct the
user to include <signal.h> or <unistd.h> to generate the correct reference.

Warn about references to the deprecated __sys_siglist[], and direct the
user to include <signal.h> or <unistd.h> and use sys_siglist instead.
1998-12-01 20:31:00 +00:00
thorpej
67388db284 Warn about references to the old glob functions, and direct the user to
include <glob.h> to generate the correct references.

Suggestion from Christoph Badura.
1998-12-01 20:14:04 +00:00
thorpej
cde86f7e7e Warn about references to the old fts functions, and direct the user to
include <fts.h> to generate the correct references.

Suggestion from Christoph Badura.
1998-12-01 20:13:47 +00:00
thorpej
e0248b4e24 Renamed sys_errlist, exported as a pointer, not an array, so that as new
errors are added, the exported symbol size does not change.  Update to
include new errors.
1998-11-30 20:46:09 +00:00
thorpej
ad653e250e Renamed sys_siglist and sys_signame, exported as a pointer, not an array,
so that as new signals are added, the exported symbol size does not change.
Update to include new signals.
1998-11-30 20:45:40 +00:00
thorpej
2d77af5ffd Don't include <sys/cdefs.h> twice. Also, don't include <signal.h> or
<unistd.h>.  These headers are not needed, and if included now, cause
a compile error since the exported and renamed type is different.
1998-11-30 20:42:44 +00:00
thorpej
e1f67632f8 Build __errlist14.c, __siglist14.c, and __signame14.c 1998-11-30 20:41:21 +00:00
kleink
72db869909 Now that it's delinted, make it compile on LP64 platforms again. (Using a
size_t for namelen isn't strictly appropriate/necessary anyhow.)
1998-11-18 20:51:51 +00:00
christos
c81a5c7244 revert previous change; same problem with perror(). 1998-11-17 16:15:45 +00:00
christos
38676913cd delint 1998-11-15 17:39:20 +00:00
christos
2c89343c25 delint 1998-11-13 15:46:52 +00:00
christos
d6f530541f delint 1998-11-13 12:31:50 +00:00
christos
f83d49b87d document the return value of ualarm when setitimer fails to (useconds_t)-1,
also cast the return value in the source to the same to shut up lint.
1998-11-13 11:57:15 +00:00
christos
40941d96ac delint 1998-11-13 10:26:19 +00:00
christos
f1e43a8104 delint! -- actually fix a bug lint found, globtilde could never have worked... 1998-11-13 10:25:42 +00:00
christos
920a51d98f avoid assignment of a read only location that lint does not pick, but gcc does. 1998-11-13 08:25:17 +00:00
christos
4310f9e0be delint 1998-11-12 16:38:49 +00:00
christos
ce52ab49cb delint 1998-11-12 16:25:21 +00:00
christos
a5a8f8a117 delint 1998-11-12 16:19:42 +00:00
christos
7ffe927935 Change the signature of ftok from (const char *, char) to (const char *, int)
Document that only the 8 least significant bits are used in the key generation
and that the return value is (key_t)-1
[this is to fix K&R vs. ansi compilation and lint warnings]
1998-11-12 16:15:17 +00:00
christos
b4d3f6c477 fix lint const lossage. 1998-11-12 16:09:46 +00:00
christos
29260d719d delint 1998-11-12 15:51:44 +00:00
christos
8d689949d4 document the return value as (size_t)-1 instead of -1, and do the same in
the source to avoid lint warnings.
1998-11-12 15:38:44 +00:00
christos
094140bcf0 delint 1998-11-12 15:36:16 +00:00
christos
24e45d4bc3 Document error return. 1998-11-12 15:36:05 +00:00
christos
5ba0b28730 qsort cast. 1998-11-06 19:44:03 +00:00
christos
ccbb2cb989 port to svr4. 1998-11-06 19:43:23 +00:00
christos
b34c5dd583 minor performance improvement. 1998-11-05 21:26:03 +00:00
christos
c74a8268c0 rename len to dlen... 1998-11-05 13:57:22 +00:00
frueauf
ac27d3aa85 Make this compile again: dp->dp_namlen -> dp->d_namlen. 1998-11-05 12:52:56 +00:00
christos
f9c1a2b905 compile under svr4; no dp->d_namlen, and no whiteouts. 1998-11-03 14:47:03 +00:00
itohy
7b5b0b24ce Fix fts_close() not to (implicitly) read free()'ed memory.
This fix closes PR #6181.
1998-10-17 17:40:44 +00:00
kleink
796b7ae4bf Need an internal name for signal(). 1998-10-16 12:47:45 +00:00
kleink
ae6ea9e14d Use strtok_r() instead of strtok(), lest the application be surprised by
strtok()'s internal marker having changed.
1998-10-16 11:24:30 +00:00
kleink
0453a51caa Kill __LIBUTIL_BUILD in favor of the newly added _LIBC indicator completely;
suggested by Jason Thorpe.
1998-10-14 21:13:04 +00:00
kleink
f0d001c2d1 Do the internal symbol renaming dance only if inside the libc build environment
so libutil won't be affected; noticed by Alistair Crooks and Allen Briggs.
1998-10-14 20:08:12 +00:00
kleink
abc6d45e5c Need "namespace.h". 1998-10-14 11:56:28 +00:00
kleink
a01bbaa113 Need an internal name for getdomainname(). 1998-10-13 20:40:29 +00:00
kleink
24a514c54c Need an internal name for strsep(). 1998-10-13 20:32:09 +00:00
kleink
f5092a6c94 Need an internal name for isatty(). 1998-10-13 15:05:02 +00:00
kleink
550424b218 Need "namespace.h". 1998-10-11 19:42:29 +00:00
hwr
5031e2f10a Fixes lib/6252 by Greg A. Woods 1998-10-06 06:31:41 +00:00
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