Commit Graph

1144 Commits

Author SHA1 Message Date
christos f084e3ca9b make this behave like utmp, ie. return all entries and setutent() rewinds. 2002-07-28 20:46:43 +00:00
christos a2e4cf52ec use the fname we passed in. 2002-07-28 00:45:11 +00:00
christos 7908c76c97 Add utmp processing functions 2002-07-27 23:57:39 +00:00
christos fef92308ac add lastlogx implementation. 2002-07-27 19:38:29 +00:00
christos d1ccf94413 reset fp when we are done with it. 2002-07-27 15:44:45 +00:00
simonb e438da348e Sprinkle some KNF. 2002-07-23 00:03:36 +00:00
scw 4c8e482124 Add SH5 support. (Missed these during the last sweep of my local tree) 2002-07-11 21:46:21 +00:00
wiz 1d92e86fd4 Remove Xrefs to ourselves in SEE ALSO. 2002-07-10 23:31:32 +00:00
wiz d3bfd7c06d Drop trailing space. 2002-07-10 23:31:07 +00:00
wiz 95238a678f Sort SEE ALSO. 2002-07-10 23:30:48 +00:00
yamt 673cbedc13 import CAVEATS sections from OpenBSD.
with little tweak by me.
2002-07-10 14:37:12 +00:00
yamt cd7f302646 s/resolved_name/resolvedname/g
s/resolved_path/resolvedname/g
2002-07-06 02:46:41 +00:00
pooka ff89c16683 adapt for vis()/svis() check separation 2002-07-03 17:18:09 +00:00
pooka 2fcb6fa0a5 add check for HAVE_USER_FROM_UID 2002-07-03 17:17:35 +00:00
itojun 024d45a179 use sysctl(kern.urandom) if /dev/urandom is not present (like chroot jail) 2002-07-02 17:10:19 +00:00
bjh21 c1ba727b47 Version times() so that programs compiled before the recent change to make
sysconf(_SC_CLK_TCK) return hz will work.

In detail:
__times13() returns values scaled by hz.
times() returns values scaled by 100.
<sys/times.h> renames times() to __times13().

_SC_CLK_TCK has changed from 3 to 39.
sysconf(3) returns 100.
sysconf(39) returns hz.
CLK_TCK is defined as sysconf(39).
2002-06-30 09:45:39 +00:00
jdolecek 958680bc70 Deal with .Fn macro problem with function returning pointer to function;
sidestep it using troff macro trick from FreeBSD version of this manpage.
xref psignal(3) and strsignal(3)

This fixes lib/12260 by Ada Lim and lib/17406 by Greg A. Woods.
2002-06-28 21:55:08 +00:00
perry 307f36e80c Note that times now uses sysconf(_SC_CLK_TCK) ticks, not CLK_TCK
ticks. Although the two are the same, SuS now says you use the former,
not the latter, to get the information. Also, fill in a little
information on just how awful this crusty wreck is.
2002-06-23 21:32:01 +00:00
perry 25992495dc Since CLK_TCK is now a macro expanding into a function call, cache its
output instead of using it willy nilly.
2002-06-23 20:21:08 +00:00
perry ea360bda1a make sysconf(_SC_CLK_TCK) return the kernel hz value, instead of a
fixed constant, as is done on Solaris, Linux, etc.

Technically, standards don't *require* this, but having it return a
constant is a violation of the spirit, and screws up programs that
(perhaps improperly) assume that it will return kernel hz.
2002-06-23 19:19:01 +00:00
itojun 2153f7059e discard first 256 words when we stir. 2002-06-14 03:11:24 +00:00
itojun 130b111dfb net.inet.ip.redirtimeout default value changed 2002-06-13 16:33:26 +00:00
kleink da5a8ed73c Take into consideration that setpriority() silently fits the given
priority into its interval, so we really need to use getpriority() to
retrieve the correct return value; noted by Matthias Drochner.
2002-06-10 18:32:01 +00:00
fredette 02ac1ae2f0 Added hppa support (some of it incomplete) to lib/csu, lib/libc,
and lib/libkvm.
2002-06-06 20:31:19 +00:00
fvdl f634f37b8d Use NLIST_ELF64 for x86_64. 2002-06-05 20:04:22 +00:00
kleink 7965e254cb As documented, return the new priority if successful; from Matthias
Drochner in PR lib/17156.
2002-06-04 10:58:12 +00:00
itojun 76ed88e323 add LIBRARY section 2002-05-28 11:38:29 +00:00
itojun 256a128339 document net.inet6.ip6.maxfrags 2002-05-28 03:17:26 +00:00
wiz 077b67effa __STDC__ is always defined on NetBSD. 2002-05-26 14:03:19 +00:00
itojun a7ceb02faf refer rnd(4), not random(4). 2002-05-24 14:37:19 +00:00
wiz 8b7401f11e Quote <> for HTML output. 2002-05-24 09:45:00 +00:00
itojun 19414d4312 use /dev/urandom, not /dev/arandom 2002-05-24 04:54:14 +00:00
itojun 418cd7b465 /dev/arandom does not exist in netbsd. use /dev/urandom. 2002-05-24 04:53:07 +00:00
itojun e68f73c3fe add arc4random(3). from openbsd 2002-05-24 04:01:43 +00:00
itojun 9244bd8154 document net.key.* sysctl. provide sysctl MIB for controlling
proposal payload on ACQUIRE message.  sync w/kame
2002-05-19 08:12:55 +00:00
itojun b5f1426ee0 rename: net.inet6.ip6.bindv6only -> net.inet6.ip6.v6only
sync w/kame.
2002-05-14 10:27:28 +00:00
itojun 92783e8fb8 s/IPV6_BINDV6ONLY/IPV6_V6ONLY/ 2002-05-14 10:25:34 +00:00
wiz 05ffd2143d Add return type. From KAWAKUBO Hiroshi in lib/16776. 2002-05-12 15:51:29 +00:00
simonb eb0846961e Remove <sys/types.h> from synopsis, as per latest SUS/Posix specs. 2002-04-29 01:41:43 +00:00
bjh21 43102f34cc When testing __STDC__, consistently use #ifdef rather than #if. The Sun
Workshop 5.0 C compiler defines __STDC__ to 0 unless it's in full-ANSI mode,
and in full ANSI mode it won't give us 64-bit integers (at least on a 32-bit
CPU).
2002-04-22 23:31:44 +00:00
groo 50d2b6a96f botched strncpy -> strlcpy
from xs@kittenz.org
2002-04-16 19:08:43 +00:00
groo f74c26e49b Detect if line length exceeds buffer capacities.
from xs@kittenz.org
2002-04-16 19:07:57 +00:00
groo 735ccc3fc2 botched strncpy -> strlcpy
from xs@kittenz.org
2002-04-16 19:07:00 +00:00
christos 6d2cc5b8e6 - open for r+, then w+, then r.
- fix fread and fwrite error checking.
2002-04-15 16:47:03 +00:00
christos 6fa9e9789f add two more gnu-like functions. 2002-04-04 19:42:14 +00:00
christos e20c30d794 - Add VIS_HTTPSTYLE from FreeBSD.
- svis, strsvis, strsvisx were not reversible, because they did not encode
  \\ unless it was passed in the extras array.
- Fix documentation to match the proper signature of the functions.
2002-03-23 17:38:27 +00:00
christos 761aafb737 add signals 33-63, so that stupid loserland programs that access the array
directly don't lose!
2002-03-20 14:28:25 +00:00
christos 9948eb0ac4 add the rt signals so we don't core-dump. 2002-03-20 01:42:03 +00:00
simonb 2ebbd79a63 Include <stdlib.h> for exit() prototype. 2002-03-11 03:29:49 +00:00
christos 3e7f0b7101 add updwtmpx(); requested by tron. 2002-03-05 16:16:02 +00:00
wiz 10d6eb080d Drop duplicate .Pp. 2002-03-05 15:09:26 +00:00
tv 259a2ab95f Add some more bits of host compatibility. 2002-02-26 22:29:38 +00:00
martin 3cb5f61784 Note ip.grettl 2002-02-26 16:07:23 +00:00
christos 002dc4be11 catch up with ut_name->ut_user change 2002-02-25 20:19:26 +00:00
christos 510f6a45d4 A simple utmpx implementation. Nothing uses it yet.
TODO: write the lastlog*() stuff.
2002-02-22 20:11:44 +00:00
wiz 68fdc1adcc Improve RETURN VALUES section by mentioning SIG_ERR, per lib/15686, and fix
some spacing.
2002-02-21 11:09:07 +00:00
wiz 2e104b6b46 Whitespace nit. 2002-02-20 11:57:10 +00:00
enami bc005ce984 Use tab to indent instead of spaces. 2002-02-19 13:42:04 +00:00
simonb 2d8577fb83 Clean up some rampant code duplication wrt ieee number handling:
- Add alignment-safe double and float unions.
 - Use the above for the __infinity and __nan constants on all
   architectures that use the standard ieee754 representation of
   those constants.
 - Add a single copy of various ieee754 math functions (frexp, isinf,
   isnan, ldexp and modf) that had numerous duplicates among the
   arch-specific directories.
 - Use the above functions on all architectures where the generic C
   versions where used.  Architectures that had local assembly
   routines are untouched (for those functions only).
2002-02-19 13:08:12 +00:00
mycroft 83f70e9b51 Just return an error if we try to look up a user name that's too long, rather
than trying to truncate.  The previous truncation code actually set key.size
too large and caused a (non-exploitable) core dump inside DB.
2002-02-12 18:58:04 +00:00
ross 930fd2d1bf fix <> string names 2002-02-10 01:21:38 +00:00
kleink d248468105 Untangle the description of {MONOTONIC_CLOCK} somewhat. 2002-02-08 12:12:55 +00:00
ross 9856438e91 generate & symbolically 2002-02-07 09:24:04 +00:00
ross 814f296b77 Generate <>& symbolically. 2002-02-07 07:00:09 +00:00
ross 8bd7cb6a69 Edit -mdoc usage.
* There is no -indent option to .Bd or .Bl, although you would
  never know that from its frequent use in this tree. There is a
  "-offset indent" combination that makes sense, and you can certainly
  say "-width indent".

* Also, you can't markup the -width option argument, tho you CAN
  use a callable macro. So "-width Ar filename" doesn't make sense,
  but either "-width Ar" or "-width filename" does, as might something
  like "-width xxfilename" for a little extra space.

* There are a lot of needlessly complex hanging tag macros in man4 used
  to create simple item lists. Those should be simplified one of these
  days before someone copies and edits yet another man4 page.
2002-02-07 03:15:06 +00:00
lukem 4ddb8bc644 be consistent with internal names: s/start_gr/grstart/ ; s/matchline/gr&/ 2002-02-02 15:21:29 +00:00
tv 9fbd88883c Roll in fixes to permit cross-compiling from non-NetBSD hosts. This
round has been tested on Solaris/x86 and Linux hosts.

* Add host tools cap_mkdb, ctags, m4, uudecode.
* Protect __RCSID() and __COPYRIGHT() better.
* Reduce the number of places that need to include "config.h", to keep
  sources closer to their "vanilla" versions.
* Add more compat #defines and autoconf-checked functions.
2002-01-31 22:43:33 +00:00
kleink 935d56d508 Add {POSIX_MONOTONIC_CLOCK} variables. 2002-01-31 00:32:47 +00:00
tv a328e34106 Make almost all tools compile and run properly on non-NetBSD hosts. (In
particular, most tools now run correctly on Solaris 7.)
2002-01-29 10:20:28 +00:00
tv 93d5f4c5b6 Add hooks to allow compiling for non-NetBSD hosts. 2002-01-29 02:04:30 +00:00
tv 7f8540d87f Add hooks to make this compilable from src/tools/compat. 2002-01-28 23:50:09 +00:00
tv a6d1338ee0 Fix previous to actually include config.h. 2002-01-28 23:01:43 +00:00
tv 12b9020c07 Make compilable from src/tools/compat. 2002-01-28 22:39:07 +00:00
simonb adce1e7c12 Document the new kern.tkstat.* sysctls. 2002-01-28 02:07:01 +00:00
simonb ed6b438e40 Implement the hw.disknames and hw.diskstats sysctl's that have been listed
in <sys/sysctl.h> since day one but never implemented.
2002-01-27 12:41:07 +00:00
lukem 08aaa6443d reorder the weak_alias stuff into the !HAVE_CONFIG_H section 2002-01-24 06:31:38 +00:00
lukem 6542230523 support reachover compile from tools/compat 2002-01-24 04:07:13 +00:00
lukem 463cd54319 - Implement pwcache_userdb(3), which changes the routines that
user_from_uid(3) and uid_from_user(3) use to lookup user information.
- Implement pwcache_groupdb(3), which changes the routines that
  group_from_gid(3) and gid_from_group(3) use to lookup group information.
- Ensure that private functions in pwcache.c are declared static
- Use strlcpy(3) instead of strncpy(3)
2002-01-24 02:46:32 +00:00
tv c08a2cb7c2 Add hooks for reachover builds from src/tools/compat. 2002-01-21 21:33:42 +00:00
wiz 9640974a4a Whitespace nit. 2002-01-15 02:36:40 +00:00
wiz ebec85d8e2 Formatting improvements. 2002-01-15 02:35:58 +00:00
lukem 3792c58680 ansi knf 2002-01-12 23:51:30 +00:00
lukem 86301f004f ANSI KNF. remove NET2_STAT cruft 2002-01-04 14:50:29 +00:00
thorpej e23f3d9104 Fix -Wshadow warnings (gcc 3.1). 2001-12-30 19:26:28 +00:00
chs 529421342a update vm entries. 2001-12-24 01:07:06 +00:00
enami 689d72c0ba Use memcpy instead of memmove since no overlaps here (copy from somewhere
outside of the funciton to our stack).
2001-12-08 00:30:59 +00:00
christos 78cf9b7cc7 using -Wcast-qual and -Wwrite-strings reveals that we need to use const
char * when we pass "" as an argument to a function. Too bad that they
produce too many other spurious warnings too.
2001-11-28 22:31:39 +00:00
jdolecek 43d484c439 it's sufficient to say _once_ that the functions are macros; keep
the one which states sigemptyset() and sigfillset() are macros
Xref signal(7)
2001-11-23 18:30:11 +00:00
jdolecek 4a354050fc s/Sig/Specified sig/ in ERRORS 2001-11-23 18:24:30 +00:00
tron 3428499c33 Use ANSI signature for signal handler function. 2001-11-22 12:04:41 +00:00
enami bc2805c808 Cosmetic changse. 2001-11-21 00:48:28 +00:00
enami 1ffafc030e Extend an array before allocating an element. This makes cleanup code a bit
simpler since we no longer need to worry about an element not in an array yet.
2001-11-21 00:47:56 +00:00
kml 1d2a82ea66 Added descriptions of the new sysctls for controlling the disposition
of IPv4 routes added via redirects, rediraccept and redirtimeout.
2001-10-30 06:43:21 +00:00
kleink 98a839573a Partially back out previous: don't apply restrict qualifier to pointer
to function.
2001-10-28 05:12:31 +00:00
kleink e281efeeaa Sprinkle some __restrict into <glob.h>. 2001-10-27 15:35:19 +00:00
yamt 1d81d04484 avoid leaks in the case of error. 2001-10-25 02:02:02 +00:00
itojun 28ba4f6ef7 bring in new net.inet6.icmp6.nodeinfo description. 2001-10-18 09:14:29 +00:00
lukem 073a7a6ef5 don't bother checking _DIAGASSERT(fd != -1), since the underlying
ioctl(2) will check it and return EBADF, and i got sick of the warnings
from programs like sshd which occassionally call isatty() with bad fds.
2001-09-30 23:25:38 +00:00
enami 9e0ad09c03 Cosmetic changes (including ANSI'fy). 2001-09-19 01:14:51 +00:00
enami b2e798fd44 Remove unnecessary alloca, strcpy and strlen call. 2001-09-19 01:07:19 +00:00