christos
5dc359e2dd
Prepare for strnvis functionality by providing a length to the encoding
...
functions.
2011-03-12 03:24:08 +00:00
christos
ebc56329ec
Add <stdint.h> for uint8_t from Jess Thrysoee
2011-02-27 01:53:22 +00:00
joerg
4bf46019d9
Redo the SSP wrappers to be transparent on the resulting object files.
...
This works by having the inline wrapper calling a second function which
uses renaming to output the correct function name.
2011-02-21 00:40:07 +00:00
tron
f1f20d6adf
Fix build with SSP enabled.
2011-02-16 20:20:25 +00:00
christos
c464e0ebc5
Fix non-fortify build.
2011-02-15 16:29:09 +00:00
joerg
2c39cf5f91
Don't define weak aliases in the SMALL case. They conflict with the real
...
function name since SMALL doesn't use the normal rename logic.
2011-02-07 21:39:47 +00:00
wiz
6ef76bc469
Remove trailing whitespace.
2011-02-05 00:24:08 +00:00
christos
a52c04784a
add arc4random_{buf,uniform}, from OpenBSD.
2011-02-04 22:07:07 +00:00
christos
2d5180b4b9
add braces, per joerg.
2011-01-31 19:10:18 +00:00
christos
984dfe5f9f
bump down the recursion limit to 64.
2011-01-31 15:07:29 +00:00
christos
0f6e9a96aa
Limit recursions to avoid DoS attacks from Maksymilian Arciemowicz
2011-01-31 04:20:50 +00:00
christos
5b63bdc2ba
remove stray printf.
2011-01-22 16:24:44 +00:00
christos
e6d36a6ae6
prevent resource DoS from brace expansion (from Maksymilian Arciemowicz)
2011-01-21 23:30:31 +00:00
christos
b493b4d721
provide a _sys_getcwd() entry like all the rest of the system calls to be
...
used by SSP.
2011-01-20 02:57:00 +00:00
matt
bd081d44b9
Make the MIPS N32/N64 ABIs properly support 128-bit long doubles. With this
...
change, we should be fully conformant with the N32 and N64 ABIs.
Add {fpclassify,infinity,isnan,ininf,signbit}l_ieee754.c back to lib/libc/gen.
Note that infinityl_ieee754.c will work with either 64-bit, 80-bit, or
128-bit long doubles.
2011-01-17 23:53:03 +00:00
matt
e4100763e4
cleanup format of #ifdef
2011-01-17 23:32:31 +00:00
jruoho
b19fbfbfda
Xref strsuftoll(3) and orders(7).
2011-01-14 10:08:57 +00:00
njoly
9f266c104e
Fix cross-reference, dir(5) -> dirent(3).
2010-12-17 19:20:42 +00:00
joerg
c4120e324e
Replace use of errlist with a single concatenated version and an offset
...
array. This requires less storage and avoids one runtime relocation per
errno value.
2010-12-16 22:52:32 +00:00
joerg
674a655551
Prefix ctype bitmask macros with _CTYPE
2010-12-14 02:28:57 +00:00
pooka
0c0346ae48
Don't __weak_alias non-existent symbols. Apparently the alpha
...
compiler doesn't like it.
2010-12-13 23:10:12 +00:00
pooka
5f35396ed8
last of the RUMP_ACTION syscall swappers
2010-12-13 21:07:54 +00:00
pooka
2f36209c20
Mirror sysctlgetmibinfo RUMP_ACTION change.
2010-12-13 14:17:11 +00:00
joerg
230ccda64c
Don't bother with SCCS or the other RCSID conditionals.
2010-12-12 22:34:44 +00:00
christos
b3ddcb3ea2
errlist.c is automatically generated now.
2010-12-12 20:22:48 +00:00
christos
5eeef29dbe
remove comment
2010-12-12 20:16:09 +00:00
christos
91083d6e86
Automatically generate the error list.
2010-12-12 20:08:27 +00:00
joerg
cb6cc2679c
Wrap sys_errlist constants in a macro to make it easier to extract
...
the strings reliably with sed/awk.
2010-12-09 21:27:31 +00:00
jruoho
b4ba5c1508
Xref glob(7).
2010-11-30 21:03:07 +00:00
wiz
cb676ec98b
Remove superfluous comma.
2010-11-28 01:28:21 +00:00
christos
5fe11453fa
fix lint warning.
2010-11-27 21:22:11 +00:00
christos
d5ea004dc7
Implement VIS_NOESCAPE and VIS_HTTP1866.
2010-11-27 19:44:21 +00:00
tron
fbf4aa1699
Improve and simplify implementation of *env(3) functions:
...
- Use RB tree to keep track of memory allocated via setenv(3) as
suggested by Enami Tsugutomo in private e-mail.
This simplifies the code a lot as we no longer need to keep the size
of "environ" in sync with an array of allocated environment variables.
It also makes it possible to free environment variables in unsetenv(3)
if something has changed the order of the "environ" array.
- Fix a bug in getenv(3) and getenv_r(3) which would return bogus
results e.g. for " getenv("A=B") " if an environment variable "A"
with value "B=C" exists.
- Clean up the internal functions:
- Don't expose the read/write lock for the environment to other parts
of "libc". Provide locking functions instead.
- Use "bool" to report success or failure.
- Use "ssize_t" or "size_t" instead of "int" for indexes.
- Provide internal functions with simpler interfaces e.g. don't
combine return values and reference arguments.
- Don't copy "environ" into an allocated block unless we really need
to grow it.
Code reviewed by Joerg Sonnenberger and Christos Zoulas, tested by
Joerg Sonnenberger and me. These changes also fix problems in
zsh 4.3.* and pam_ssh according to Joerg.
2010-11-14 18:11:42 +00:00
pooka
08fc937c06
make sysctl(8) work as a rump client
2010-11-05 15:55:23 +00:00
yamt
ab5972b02c
fix rewinddir on nfs. fix PR/42879 (and probably PR/40229.)
2010-09-26 02:26:59 +00:00
matt
3edad85883
If not using O32 on mips, we need to read ELF64 symbols too.
2010-09-24 15:57:15 +00:00
yamt
53cf9ce3be
- remove a wrong _DIAGASSERT
...
- update comments
- whitespace
2010-09-16 02:38:50 +00:00
matt
8e09c95f97
Resurrect this for MIPS softfloat.
2010-09-10 16:32:35 +00:00
christos
7d79ab9567
Add GLOB_STAR support from Greg Dionne.
2010-09-06 14:40:24 +00:00
joerg
c1e0a5bd50
Replace the current usage of Elf64_Half with Elf64_Word and rename
...
NetBSD specific Elf64_Quarter to Elf64_Half. This restores compatibility
with the common ELF specifications.
2010-08-28 21:30:02 +00:00
christos
3991ffd1e1
add psiginfo.
2010-08-27 08:38:41 +00:00
joerg
44b309378f
Define a new __c99inline macro for compilers known to implement the C99
...
behavior. This unbreaks GCC 4.4's libgfortran build with the old
signal.h logic, because GCC decided to put the body for the sigsetop
functions in multiple objects.
2010-07-31 00:04:42 +00:00
christos
2c086933d8
Apply more limits to GLOB_LIMIT, number of stat(2) calls from me and number
...
of readdir(3) calls from Maksymilian Arciemowicz. Also reduce the memory
used by matches strings from Maksymilian Arciemowicz.
2010-07-06 14:59:22 +00:00
christos
9b94acc7a6
Avoid DoS attacks for patterns that have braces. Noted by Maksymilian
...
Arciemowicz.
XXX: Pullup to 5.x
2010-07-02 21:13:10 +00:00
jruoho
bb1d0e97b1
Fix .Xr; dirent(5) -> dirent(3).
2010-06-04 05:42:24 +00:00
tnozaki
9a35d7972b
more split ctype.h -> sys/ctype_inline.h, sys/ctype_bits.h
2010-06-01 13:52:07 +00:00
tnozaki
bbed57c2e0
make _locale_impl_t.cache as pointer to maintain easily binary compatibility in future.
...
no ABI change was made.
2010-05-22 13:15:59 +00:00
tnozaki
64a7d4fa9a
1. hide _CTYPE_PRIVATE section in ctype.h, move them to private header ctype_local.h.
...
2. do not use _CTYPE_NUM_CHARS macro to read data from LC_CTYPE(old BSDCTYPE style) database.
because 1<<CHAR_BIT is MD, so i added MI macro _CTYPE_CACHE_SIZE(1<<8).
3. remove _NB_CACHED_RUNE macro, use _CTYPE_CACHE_SIZE instead.
2010-05-22 06:38:15 +00:00
jruoho
cbe8ce8cad
Actually the previous is wrong; all of these can set the errno either via
...
each other or via something like malloc(3) or lseek(2).
2010-05-17 03:09:06 +00:00
jruoho
132817e96e
Fix the note about errno in ERRORS; telldir(3), seekdir(3), and rewinddir(3)
...
do not set the errno.
2010-05-17 03:04:09 +00:00