Commit Graph

1055 Commits

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