joerg
aceb213538
Allow kernel code to access constant databases by moving cdbr(3) and the
...
required mi_vector_hash(3) into src/common.
2013-12-11 01:24:08 +00:00
lneto
c4a02e0a12
changed lua_Number to int64_t
2013-12-02 04:39:10 +00:00
matt
9818090a90
Reduce amount of casts and make LP64 safe.
2013-10-22 08:08:51 +00:00
joerg
1bf0d67629
NetBSD certainly supports TLS in static applications if it supports TLS
...
on the platform at all.
2013-09-12 15:35:15 +00:00
tron
1ad2891b6d
Don't scrub the environment unless we are going to change it. This should
...
prevent crashes in applications which carefully and manually construct
a temporary environment and later restore the original environment
like Emacs 24.
Problem reported by Thomas Klausner on "pkgsrc-users" mailing list.
2013-09-09 10:21:28 +00:00
matt
8caf10303e
Put the startup code in .text.startup
2013-08-19 22:14:37 +00:00
wiz
a5684d07dd
Use Mt for email addresses.
2013-07-20 21:39:55 +00:00
wiz
55d364d35e
Bump date for adding the function to NetBSD. Fix xref.
2013-04-26 19:37:18 +00:00
wiz
afd815359c
Add commas in list.
2013-04-26 19:37:04 +00:00
wiz
0ccc09335e
Bump date after adding function to NetBSD.
2013-04-26 19:36:47 +00:00
christos
f5c1f2146c
add {at_,}quick_exit(3) from FreeBSD
2013-04-26 18:29:55 +00:00
matt
ecaf413acf
Remove weak_alias since that's now in the compat_putenv.c
2013-04-25 07:08:56 +00:00
joerg
a67fde0356
Add strtol_l and friends. Switch _citrus_bcs_strtol to use plain
...
strtol_l unless in tools mode. Add note to retire the BCS code on the
next libc major bump.
2013-04-16 21:44:06 +00:00
dholland
2d1469952b
typo in comment, from Abhinav Upadhyay in PR 47385
2012-12-30 21:23:20 +00:00
wiz
76b8df0e8c
Whitespace improvements.
2012-10-24 22:56:27 +00:00
christos
429bc5b7d7
explain a bit more what's wrong with alloca(3)
2012-10-24 22:25:49 +00:00
apb
977d0ed33c
Use the correct field name when describing the equivalence between
...
ptsname(3) and ioctl TIOCPTSNAME. It should be pm.sn, not pm.ps.
2012-10-19 10:44:34 +00:00
abs
9e66e6d75e
Update old-style definitions to ANSI, remove a couple of register
...
definitions along the way. Fixed gcc 4.1 build (thank you vax)
2012-06-25 22:32:43 +00:00
christos
3d365e7447
fix old style definitions; XXX: gcc should have picked them up but it did not.
2012-06-24 15:26:02 +00:00
jdf
3a6070abd3
Use correct macro (.Nm is only used within the NAME section, for section 3
...
manpages).
Patch provided by Bug Hunting.
2012-06-12 21:16:17 +00:00
abs
7d974f9a82
ANSI prototypes
2012-06-08 11:13:33 +00:00
christos
d9a1056489
don't trigger diagassert for a null array with 0 elements or 0 elementsize.
2012-05-26 21:47:05 +00:00
christos
d703a14882
rename umax2s->size_t2s function per apb's request.
2012-03-21 14:32:22 +00:00
christos
d9285aa434
unsigned char portability casts
2012-03-21 14:19:15 +00:00
matt
e1a2f47f12
Use C89 function definition
2012-03-21 10:10:36 +00:00
he
912d4f1845
Cast an int argument to umax2s() to size_t.
2012-03-21 09:49:02 +00:00
christos
c59812a81a
uintmax_t -> size_t (never called with larger than size_t)
2012-03-21 00:38:06 +00:00
matt
44551472c9
Remove use of __P
...
Switch to using C89 definitions.
2012-03-20 16:38:44 +00:00
christos
c5e820cae4
PR/45989: Martin Husemann: lint invocation does include -w only on i386
...
- turn lint -w for all the platforms after fixing the lint warnings.
- add _DIAGASSERTS() for casts that would assign values to types that
would not fit.
- change types, add casts
- change into ansii prototypes
- turn on _DIAGNOSTIC for libc (during current, to be eliminated for release
builds)
approved by core@
2012-03-13 21:13:30 +00:00
christos
abe98abf0f
base0 == NULL is allowed when nmemb == 0, in fact the nsdispatch code calls
...
bsearch this way.
2012-03-04 20:01:45 +00:00
dholland
27eed90c42
Clarify the behavior of exit(x) for out-of-range x. PR 45769
2012-01-02 15:55:29 +00:00
christos
66744c9484
Put a recursion limit to avoid DoS attacks (Maksymilian Arciemowicz)
...
While there do minor KNF, and do as the manual says: exit with EXIT_FAILURE
2011-10-22 22:08:47 +00:00
joerg
1669bc8401
sys/endian.h might not exist in the src/tools case
2011-10-21 23:45:56 +00:00
rmind
50902a3b80
Mention POSIX conformance of some functions, when they appeared, sprinkle .Xr.
2011-10-15 21:35:49 +00:00
christos
adc9c9a3d6
Provide symbol definitions for environ and __progname. These are duplicate
...
definitions to the ones provided by csu, but harmless since the linker resolves
them. There are 3 non weak data symbols provided in crt0.o:
D __progname [initialized data, assigned to ""]
B __ps_strings [BSS since assigned to 0]
C environ [common, uninitialized]
__ps_strings had already a second definition in libc (in BSS), now we added
__progname and __ps_strings (in BSS).
To get rid of the duplicate definition, we can remove them from csu, and
move the assignments to libc.
This is done so that libc has no undefined symbols so that linker maps
that want to do:
...
local:
*;
...
don't end up producing link failures for libc.
2011-10-06 20:31:41 +00:00
christos
fb9e5ffdea
remove the advertising clause so it can be used by the OpenJDK.
2011-09-17 16:54:39 +00:00
wiz
19ea2ccd09
Various fixes, mostly missing words or letters.
2011-09-15 09:14:54 +00:00
christos
05845f985a
add re-entrant versions of the hash functions based on the GNU api.
2011-09-14 23:33:51 +00:00
jruoho
b43f95128d
Note memoryallocators(9) in this perhaps too generally named page.
2011-09-11 10:05:23 +00:00
christos
0461c07844
no need for the snprintf/asprintf dance; use fixed width formats.
2011-08-14 09:07:15 +00:00
wiz
ae6b6d0795
Sort sections.
2011-06-21 09:36:43 +00:00
jruoho
706138d7ee
Note the potential danger in the options. Fixes PR lib/31112.
2011-06-21 03:02:57 +00:00
njoly
463c1a0c0f
Fix prologue macros order.
2011-06-08 18:09:57 +00:00
dsl
67d513dd66
Remove __P()
2011-05-18 19:36:36 +00:00
christos
713ea1897d
cleanup saving and restoring errno, and make it similar.
2011-05-18 01:59:39 +00:00
christos
1ff5a5dfd6
don't let readlink trash errno.;
2011-05-13 23:11:00 +00:00
wiz
93cfe89ec0
Add missing preposition.
2011-05-05 07:36:44 +00:00
jruoho
19742b4964
Fix lead paragraph.
2011-05-05 05:58:14 +00:00
wiz
daf04c06a3
Remove \*[q] -- not necessary, just use plain double quotes instead.
2011-05-03 09:36:24 +00:00
jruoho
b29fd93227
Collect also the division functions to single place, div(3).
2011-04-13 07:12:52 +00:00