pooka
5f6578a865
tyop de fix
2009-12-02 12:50:27 +00:00
pooka
304d27696e
Document that strtouq can return UQUAD_MAX.
2009-12-02 12:45:35 +00:00
enami
8f4cd2bee8
Retain old variables when failed to allocate memory.
2009-12-02 09:34:51 +00:00
wiz
567e675c3f
Mention that it is included in IEEE Std 1003.1-2008.
2009-11-17 15:02:08 +00:00
wiz
2e7202c574
Mention that getsubopt is an XSI extension for IEEE Std 1003.1, 2004 Edition. Bump date.
2009-11-17 14:52:21 +00:00
snj
550147bd6a
Remove 3rd and 4th clauses in christos' license. OK christos.
2009-10-21 01:07:44 +00:00
joerg
be403b3398
Fix header to include. From Kristaps Dzonsons.
2009-10-19 22:38:56 +00:00
pooka
50efcfca57
When converting the locking path of mutex+counter to a real recursive
...
mutex, it's a good idea to convert the unlock path too so that the
recursive mutex gets released as many times as it was locked.
Fixes pthread + cxa deadlock.
2009-10-08 16:33:45 +00:00
dsl
602976fff6
Ansify functions and remove __P/
2009-09-05 08:53:06 +00:00
dsl
11bcd8ad6a
The 'table' of character weights is allowed to be NULL.
...
The SETUP define sorts it out (in the slowest and nastiest possible way!)
Broken by rev 1.12 almost 10 years ago!
2009-08-21 20:49:50 +00:00
dsl
10ad5ffa71
Add the 'abs', 'div' and 'erand48' sources to stdlib/Makefile.inc.
...
Change the arch files only include the .S files.
This adds imaxdiv() to some archs where it was missing.
2009-07-31 20:39:59 +00:00
wiz
fa52b0ad23
Bump date for previous.
2009-07-23 13:37:34 +00:00
dholland
3cfdfcef43
Clarify the description of the errno behavior, based on the recent
...
thread in tech-userlevel.
2009-07-23 02:54:27 +00:00
joerg
ed9dacacc0
Add HISTORY.
2009-07-21 12:40:52 +00:00
joerg
d6e219476b
Add a fast, platform independent hash function to libc.
...
The algorithm used is the Jenkins hash. The name (mi_vector_hash)
reflects the nature of the hash function.
Add glue for libc ATF tests and include a test case to make sure that
(mis)alignment and endianess are handled correctly.
Bump libc minor to 169.
2009-07-20 17:03:36 +00:00
pooka
c6181c7b2f
Re-add explanation of how to correctly use realloc.
2009-07-20 12:10:03 +00:00
yamt
99122f39e6
qsort: remove the "switch to insertion sort" optimization because it
...
causes catastrophic performance for certain inputs.
2009-06-01 06:37:40 +00:00
wiz
f6b43a0c43
Markup improvements. No need to mark up numbers as defined values, math
...
did the definition for us ages ago. Make HTML-ready.
2009-05-21 09:13:35 +00:00
christos
fd67370208
mention that these functions return 0 and set errno to ERANGE on invalid base.
2009-05-20 22:01:34 +00:00
wiz
5dd21e58d5
Grammar fix.
2009-05-18 09:00:02 +00:00
wiz
7d88f2f54f
Revert parts of v1.25 (jemalloc):
...
Re-add RCS Id, remove superfluous .Pp, join line, comment out limits(1) xref.
2009-05-13 23:02:11 +00:00
joerg
71c479831e
Fix markup.
2009-04-11 16:13:49 +00:00
joerg
cc420b6c04
ANSIfy. Remove conditionals around __RCSID.
2009-03-20 14:05:54 +00:00
joerg
cc5989d71d
ANSIfy. Remove conditional macros around __RCSID.
2009-03-20 13:56:57 +00:00
joerg
9df66b68e0
Explicitly mark : as literal, use Pq.
2009-03-12 12:51:29 +00:00
joerg
edc0d6c151
Fix prologue.
2009-03-10 23:37:01 +00:00
lukem
9d1671f467
Fix sign-compare issues
2009-02-12 03:34:33 +00:00
lukem
19b046886f
fix sign-compare issue
2009-02-12 03:12:36 +00:00
lukem
2360d0845a
Apply some of FreeBSD libc/stdlib/malloc.c rev 1.162
...
to fix sign-compare issues.
2009-02-12 03:11:01 +00:00
lukem
957ba389e8
sign-compare fix
2009-01-30 23:46:03 +00:00
lukem
8a09e86085
sign-compare fix
2009-01-30 23:35:35 +00:00
ad
c984f259af
Make threaded programs die correctly:
...
kill(getpid(), SIGFOO) -> raise(SIGFOO)
2009-01-30 23:21:02 +00:00
christos
461a86f9bd
merge christos-time_t
2009-01-11 02:45:45 +00:00
ad
c6555ead19
Our qsort() is inappropriate for kernel use because it makes recursive
...
calls. Replace it with a kheapsort() function in kernel. Pointed out
by tron@.
2008-11-16 16:15:58 +00:00
ad
e5c4df967a
Make qsort() available in libkern.
2008-11-16 15:01:26 +00:00
christos
035a506da3
use the right variable in memcpy.
2008-11-01 00:54:47 +00:00
christos
e34e014482
make __findenv return the offset for the new entry to be inserted when
...
the string is not found, to avoid an additional scan of the environ array
in setenv.
2008-10-31 17:46:04 +00:00
mrg
2f0d0e12bf
define and use LIBCDIR in terms of .CURDIR. fixes compat/lib/libc build.
2008-10-26 07:43:07 +00:00
joerg
3ae583451f
Prepare use of strtoull, strtoumax and strtoimax in tools/compat by
...
including nbtool_config.h.
2008-09-10 18:08:58 +00:00
christos
40d6ddde20
system(NULL) should return if the command interpreter is there or not.
...
Andy Shevchenko
2008-08-27 06:45:02 +00:00
drochner
14744ddade
fix range of strtouq(), from Henning Petersen per PR lib/39399
2008-08-26 12:21:24 +00:00
joerg
245e086321
Unify the implementation of strto{l,ul,ll,ull,imax,umax,q,uq} into one
...
version for signed and one version for unsigned data types.
Add a check for supported bases and set errno (userland) or panic
(kernel, libsa) otherwise.
Make strto{ll,ull,imax,umax} normal symbols and just keep the underscore
versions as strong alias.
Obtained from DragonFly, based on the wide char version from Citrus.
Reviewed by christos@
2008-08-20 12:42:26 +00:00
matt
cac8e44915
Add C99 functions imaxabs and imaxdiv.
2008-08-04 21:29:27 +00:00
lukem
8897ce05a0
Remove the \n and tabs from the __COPYRIGHT() strings.
...
Tweak to use a consistent format.
2008-07-21 12:05:43 +00:00
ad
380c3da007
Split choose_arena() back out into inline and non-inline portions.
2008-06-23 10:46:25 +00:00
ad
88261d4ead
Check to see if MALLOC_OPTIONS is actually set in the environment before
...
doing issetugid().
2008-06-05 00:16:34 +00:00
martin
11a6dbe728
Convert TNF licenses to new 2 clause variant
2008-04-30 13:10:46 +00:00
martin
ce099b4099
Remove clause 3 and 4 from TNF licenses
2008-04-28 20:22:51 +00:00
christos
23b2e3cd80
Fix another integer overflow issue discovered by Maksymilian Arciemowicz.
...
On top of this, limit the range of getnumber to 0x00ffffff to make sure
that adding two of them does not cause an integer overflow.
2008-03-27 21:50:30 +00:00
christos
00f5c7fe8d
Avoid integer overflow; reported by Maksymilian Arciemowicz.
2008-03-18 18:16:08 +00:00