summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2006-01-13Add lldiv(), imaxabs(), imaxdiv(), strtoimax() and strtoumax()Todd C. Miller
2006-01-13Use long long and intmax_t instead of quad_t throughout. Adapted inTodd C. Miller
part from FreeBSD.
2006-01-11- check for malloc failureJared Yanovich
- plug some memleaks - avoid close(-1) when open() fails in pcap_open_live() sent upstream where applicable ok djm moritz
2006-01-10Return inf or nan as per printf() not Inf, Infinity or Nan (from dtoa)Todd C. Miller
Remove an extraneous check for dtoa returning Inf/Nan
2006-01-10Use localeconv() to get the locale-specific radix char like printf does.Todd C. Miller
2006-01-10Nan and Infinity can be negativeTodd C. Miller
Decimal point was missing for some exponential output Only divide sign by 10 once per loop Add a missing NUL terminator for one case If there is no whole number portion, print a leading zero (e.g. 0.1 not .1)
2006-01-08Fix the handling of negative hexadecimal numbers in integer formats.Todd C. Miller
From NetBSD.
2006-01-07improve the RETURN VALUES section;Jason McIntyre
for such a small diff, this one was hard work... based on a diff from ray lai; blood, sweat, and tears (and ok) kettenis
2006-01-06Adapt things to use __type_t instead of _BSD_TYPE_T_Todd C. Miller
Add new sys/_types.h header Include machine/_types.h or sys/_types.h where applicable
2006-01-06fix the mkstemps .Fn;Jason McIntyre
2006-01-06in code fragment:Jason McIntyre
- allocate enough space for sfn. - remove variable initializations that get overwritten anyway. - change spaces to tabs. - change "sizeof sfn" to "sizeof(sfn)". - change fprintf(stderr) to warn(). from ray lai; ok millert
2006-01-06When suspending, check the tid of the arg, not of ourselves, dohOtto Moerbeek
2006-01-06Initialize thread debug in _rthread_init. The debug verbosityMarco S Hyman
can be set in the environment using RTHREAD_DEBUG. ok, tedu@
2006-01-06guess it's time to remove the init printf; sturm found a port thatTed Unangst
didn't like it.
2006-01-05Use the system include <spinlock.h> to get the proper functionMarco S Hyman
prototype for _atomic_lock
2006-01-05System call stubs don't have a frame of their own, so use EMTRY_LEAF insteadMark Kettenis
of ENTRY. This avoids emitting bogus unwind entries, which makes gdb a lot happier. ok mickey@
2006-01-05In pthread_join(), check if we create a deadlock trying to joinOtto Moerbeek
with ourself and only free thread after a succesful join. ok marc@
2006-01-05System call stubs don't have a frame of their own, so use EMTRY_LEAF insteadMark Kettenis
of ENTRY. This avoids emitting bogus unwind entries, which makes gdb a lot happier. ok mickey@
2006-01-05Fixup stack, it needs 16 bytes headroom. Help from miod@ and drahn.Otto Moerbeek
ok drahn@
2006-01-05Remove redundant mprotect() calls (we're unmapping the region anyway)Otto Moerbeek
and check user stack for proper alignment. ok tedu@ marc@
2006-01-05move malloc lock to libc interface fileTed Unangst
2006-01-05add -Wstrict-prototypes -Wmissing-prototypes -Wsign-compareMarco S Hyman
Minor tweaks to compile with the above, primarily in fixing the conflicts between semaphore.h and rthread.h "i like the additional warnings" tedu@
2006-01-04Cleanup struct pthread and stack after thread exits. This version doesOtto Moerbeek
not use a separate reaper thread. ok tedu@ marc@
2006-01-04allow threads to be created in a detached stateMarco S Hyman
do not allow a join to a detached thread "it looks good" otto@
2006-01-03Do not overlap flags; problem introduced when new escapes were added.Todd C. Miller
2006-01-02Don't call pthread_self()->tid when getthrid() will do fine.Otto Moerbeek
2006-01-01fix desc of struct kevent, OK millert@Marco S Hyman
2006-01-01thread stack handling changes. Add guard zones and allow stackMarco S Hyman
size (and guard zone size) to be set using pthread_attr. Guard zones are specified in bytes, but implemented in terms of a page size. OK Otto@
2006-01-01Nicer implementation of pthread_main_np(), which avoids the spinlock.Otto Moerbeek
ok tedu@ marc@
2005-12-31Add "print debug foo" function safe to use in signal handlers, example:Marco S Hyman
_rthread_debug(3, "foo = %s", foo); where output is to stderr and will only be printed if the current debug level is >= 3. Messages with a debug level of 0 are always printed. The level can be set from the environment (not enabled yet) or with gdb by modifying variable _rthread_debug_level. "Fine with me" -Otto
2005-12-31No point in saving a bunch of extra registers, and the child's state mustDale Rahn
be fully saved in resisters, if left on the parents stack, it could be overwritten before the child runs. pointed out by miod.
2005-12-31add pthread_mutexattr_gettype.Brad Smith
ok otto@
2005-12-31Implement suspend/resume and creation of initially suspended threads.Otto Moerbeek
With this, java seems to be operational. Also make threads_ready non-static, which is needed for an upcoming diff. ok tedu@
2005-12-30Remove exitinng thread from the list of threads. ok tedu@Otto Moerbeek
2005-12-30Currently sys/socket.h needs sys/types.h so add #include <sys/types.h> toClaudio Jeker
the list of necessary includes. Now the manpages match reality. OK mpf@ millert@
2005-12-30use queue.h macros for thread house keeping; make some vars non-staticOtto Moerbeek
and fix a bug in thread creation error path. ok tedu@
2005-12-30__aligned__ isn't really necessary on the struct, an aligned memberTed Unangst
will make the right thing happen. verified by kettenis and drahn
2005-12-30prototype all the thread syscalls in rthread.h for now.Ted Unangst
update for new thrwakeup that takes a count argument
2005-12-29Put the existing _np functions into separate file; introduceOtto Moerbeek
pthread_stackseg_np(), from existing pthread lib. discussed with tedu@ ok marc@
2005-12-29implement pthread_main_np(); ok tedu@Otto Moerbeek
2005-12-29the story in pthread_rwlockattr_destory() shoudl be destroyedOtto Moerbeek
2005-12-28remainder of the hppa support code for librthread. ok&help kettenis@ mickey@Miod Vallat
2005-12-28Remove useless if() introduced by accident in rev 1.3. Checking theTodd C. Miller
flag for sprintf-ness is not useful in a code path that is not called for sprintf and friends.
2005-12-27Remove unused include, ok miod@Dale Rahn
2005-12-25sparc64 support code for librthread (_atomic_lock yanked from existingMiod Vallat
libpthread code).
2005-12-25sparc support code for librthread (_atomic_lock yanked from existingMiod Vallat
libpthread code).
2005-12-25remove silly alpha commentTed Unangst
2005-12-25child calls threxit after thread returnTed Unangst
2005-12-25put the error handling jump code back in from brad/marcoTed Unangst
call right sycall after threadfn return
2005-12-25if the start routine returns (never happens), call the right threxit syscallTed Unangst