Commit Graph

1266 Commits

Author SHA1 Message Date
lukem
477697b1f2 Overhaul how `build.sh tools' are used:
*	Rename "config.h" to "nbtool_config.h" and
	HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
	This makes in more obvious in the source when we're using
	tools/compat/config.h versus "standard autoconf" config.h

    *	Consistently move the inclusion of nbtool_config.h to before
    	<sys/cdefs.h> so that the former can provide __RCSID() (et al),
    	and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
	#if HAVE_NBTOOL_CONFIG_H
	#include "nbtool_config.h"
	#endif
to the top of the source files (for the general case).
2003-10-27 02:17:18 +00:00
lukem
171d653219 Overhaul how `build.sh tools' are used:
*	Rename "config.h" to "nbtool_config.h" and
	HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
	This makes in more obvious in the source when we're using
	tools/compat/config.h versus "standard autoconf" config.h

    *	Consistently move the inclusion of nbtool_config.h to before
    	<sys/cdefs.h> so that the former can provide __RCSID() (et al),
    	and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
	#if HAVE_NBTOOL_CONFIG_H
	#include "nbtool_config.h"
	#endif
to the top of the source files (for the general case).
2003-10-27 00:12:41 +00:00
kleink
5976f8aa56 Retire local union { floating-type; struct ieee_prec; } in favor of those
available from <machine/ieee.h>
2003-10-27 00:05:46 +00:00
kleink
e9788d63be Whitespace cosmetics. 2003-10-25 22:43:26 +00:00
kleink
9f3dbee22c Add __infinityf and __infinityl, float respectively long double analogs
of __infinity.
2003-10-25 22:31:20 +00:00
kleink
4ca4f9f41a Add an error check to ensure these are used on platforms without a
distinct long doble type only.
2003-10-24 10:30:36 +00:00
kleink
712c8de209 * Since there is no single portable IEEE 754 format for a long double,
keep a common implementation of isinfl() and isnanl() to be used by
  platforms where `long double' == `double'; move others into
  machine-dependent code.
* In due course, consider __VFP_FP__ on arm.
2003-10-24 00:58:01 +00:00
kleink
6cded84c4b Fix an RCS Id botch that occured when renaming. 2003-10-23 00:04:57 +00:00
kleink
22396ac6f7 G/c __nanf2, which is neither being used nor the representation of a NaN. 2003-10-22 23:50:47 +00:00
kleink
77e57be326 For a double-extended NaN, the exponent must be EXT_EXP_INFNAN, not
DBL_EXP_INFNAN.
2003-10-22 21:37:34 +00:00
wiz
58cc8234ca Slight improvements. 2003-10-15 20:04:48 +00:00
wiz
538e6e3e1e Move siginfo(5) and ucontext(5) to siginfo(2) and ucontext(2) resp.,
and fix references.
Per a discussion on source-changes around Sep 14 2003.
2003-10-14 14:59:03 +00:00
agc
9f1aac5bb3 Move Jason Downs's code from a 4-clause to a 3-clause licence by
removing the advertising clause.  Diffs provided in PR 22410 by Joel
Baker, confirmed to the board by Jason Downs.

With additional thanks to Jason Thorpe.
2003-10-13 15:36:33 +00:00
agc
ed6ed8e698 Move Keith Muller's code from a 4-clause to a 3-clause licence by removing
the advertising clause. Diffs provided in PR 22397 by Joel Baker, confirmed
to the board by Keith Muller.
2003-10-13 07:41:22 +00:00
bouyer
7b066791c8 Remove references to University of California from my copyright notices. 2003-10-05 17:48:49 +00:00
dsl
2f28cd113e Simon has persuaded me to remove the 'sizeof (struct kinfo_drivers)' field. 2003-09-28 13:18:41 +00:00
dsl
fde7103b90 Add KERN_ROOT_PARTITION and KERN_DRIVERS 2003-09-27 19:09:10 +00:00
jdolecek
430f0af1db remove pw_dup(3), for now at least
follows discussion on mailing lists, discussed in private e-mail with Itojun
2003-09-18 09:13:14 +00:00
simonb
49b0281b33 Shut lint up. 2003-09-16 07:56:51 +00:00
itojun
94da0d16ac avoid overflow during multiply. David Laight 2003-09-15 23:38:20 +00:00
cl
64408794ea make popen/pclose thread safe 2003-09-15 22:30:38 +00:00
itojun
f6da4d89f2 weak alias for pw_dup 2003-09-13 22:28:12 +00:00
itojun
220a141637 correct setup of ru_b/a for 16/20 bit case 2003-09-13 21:29:57 +00:00
itojun
1ecc9b581c use internal names for randomid() 2003-09-13 21:27:43 +00:00
itojun
07f2a2a309 check malloc failure. yamt 2003-09-11 11:24:33 +00:00
wiz
0e9a92473d Fix Nd; use In instead of Fd; grammar fixes. 2003-09-10 09:16:45 +00:00
tls
ef0a2c06dc Another gcc3 problem: "exp" shadows a builtin. Rename it to "expo". 2003-09-10 07:20:13 +00:00
tls
732fa344d5 This didn't build with gcc3 because it was missing <string.h> for memset. 2003-09-10 07:12:33 +00:00
wiz
89d02ff30e Use In instead of Fd for header files. 2003-09-10 05:51:06 +00:00
itojun
00552ebbd7 add randomid(3). 2003-09-09 22:10:33 +00:00
itojun
24a3a1d964 have pw_dup(3). from openbsd 2003-09-09 22:01:56 +00:00
wiz
47190e80b8 Consistently use 'RFC 1234' instead of 'RFC1234' or 'RFC-1234'.
From jmc@openbsd.
2003-09-07 16:22:20 +00:00
kleink
9f18c21c61 Add Xref to dirname(1). 2003-09-06 20:58:39 +00:00
kleink
d27a834c8e Add Xref to basename(1). 2003-09-06 20:58:11 +00:00
wiz
4bfb9a4429 Add __warn_references for deprecated lastlogxname. Okayed by christos. 2003-09-06 16:42:10 +00:00
wiz
7666801285 Add man page for getlastlogx and friends. 2003-08-26 17:37:48 +00:00
wiz
31fd31ccf7 Make getlastlogx have the pathname to the lastlogx database as first
argument, to be consistent with updlastlogx.

Approved by christos, reviewed by kleink.

[The lastlogxname function should not be used any longer.]
2003-08-26 16:48:32 +00:00
matt
f847c1a7f3 When updating wtmpx, if the write fails make sure to close the file (to
release the lock held on it).  Use O_SHLOCK when adding just one record
since O_APPEND will enforce the atomicity that is required.
2003-08-25 23:09:37 +00:00
kleink
45cc3e349e Need namespace.h to generate references to internal names. 2003-08-24 15:14:18 +00:00
dsl
79b2073eea Significantly reduce the non-monotonicity of this function.
The way time is apportioned to interrupt/system/user makes it impossible
to guarantee monotonicity except by saving the previous value!
2003-08-19 08:31:18 +00:00
wiz
51471a0f3b Be more explicit about the difference between the err and errx (and
similar) functions. Based on wording from Jeremy C. Reed.
Closes PR 22424.
2003-08-10 10:45:33 +00:00
mrg
151375e124 avoid some lint errors in the previous 2003-08-10 08:24:52 +00:00
martin
eaa9779f55 Split into a 64 bit version (straight forward shifting and masking) and
a 32 bit one with two 32 bit operations with two temporaries later
combined.

This avoids the strict alias violating magic used before, thereby
probably fixing PR bin/22313.
2003-08-09 22:37:49 +00:00
agc
eb7c1594f1 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22280, verified by myself.
2003-08-07 16:42:00 +00:00
itojun
2e48312004 be more pedantic to strlcpy/strcat errors 2003-08-03 04:35:50 +00:00
itojun
785d6ef678 use strlcat for safety 2003-08-03 04:14:00 +00:00
itojun
d6220d9ca5 fix off-by-one error in realpath() 2003-08-03 04:12:01 +00:00
salo
99410184e7 netbsd.org->NetBSD.org 2003-07-26 19:24:24 +00:00
dsl
5dbcc1e019 If VIS_CSTYLE is specified, use \ to escape any printable characters
(especially \ itself, and anything else in 'extra').
Fix strvis() and strvisx() to pass 0..255 to isgraph() etc.
2003-07-16 22:34:34 +00:00
kleink
4e043afc74 Fix pasto in 1.26; spotted by Thomas Klausner. 2003-07-09 15:38:20 +00:00