Commit Graph

1066 Commits

Author SHA1 Message Date
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