ViewVC Help
View Directory | Revision Log | View Changeset | Root Listing
root/src/trunk/lib
Revision 513 - Directory Listing - [select for diffs]
Modified Thu Jan 4 06:44:59 2007 UTC (17 years, 4 months ago) by laffer1
Diff to previous 512
__restrict

Revision 512 - Directory Listing - [select for diffs]
Modified Thu Jan 4 06:27:28 2007 UTC (17 years, 4 months ago) by laffer1
Diff to previous 511
Fix formatting.

Revision 511 - Directory Listing - [select for diffs]
Modified Thu Jan 4 06:26:08 2007 UTC (17 years, 4 months ago) by laffer1
Diff to previous 509
Add the source of strndup(3).

Revision 509 - Directory Listing - [select for diffs]
Modified Thu Jan 4 06:22:05 2007 UTC (17 years, 4 months ago) by laffer1
Diff to previous 475
Add strndup(3) to libc.

$MidnightBSD$

Revision 475 - Directory Listing - [select for diffs]
Modified Sun Dec 31 23:54:46 2006 UTC (17 years, 4 months ago) by laffer1
Diff to previous 472
Fix error in reference.

Revision 472 - Directory Listing - [select for diffs]
Modified Sun Dec 31 23:46:15 2006 UTC (17 years, 4 months ago) by laffer1
Diff to previous 461
Correct misleading documentation.

Revision 461 - Directory Listing - [select for diffs]
Modified Sun Dec 31 22:36:16 2006 UTC (17 years, 4 months ago) by laffer1
Diff to previous 440
Add efun(3) functions from NetBSD.

Revision 440 - Directory Listing - [select for diffs]
Modified Sun Dec 31 09:59:48 2006 UTC (17 years, 4 months ago) by laffer1
Diff to previous 349
Add NetBSD efun(3) functions...

esetfunc, easprintf, efopen, ecalloc, emalloc, erealloc, estrdup, estrlcat, estrlcpy, evasprintf

Some code in the tree already includes this such as fsck and rcorder. This will make NetBSD code porting easier.  Note our libutil uses libutil.h instead of util.h.

Revision 349 - Directory Listing - [select for diffs]
Modified Tue Dec 26 01:20:32 2006 UTC (17 years, 4 months ago) by laffer1
Diff to previous 338
   Fix a typo in __fpu_ftox() that caused long double to long (and long long)
   conversion of negative numbers to always result in -1.

Revision 338 - Directory Listing - [select for diffs]
Modified Mon Dec 18 23:50:50 2006 UTC (17 years, 4 months ago) by laffer1
Diff to previous 326
As discussed on freebsd-threads@freebsd.org, a libpthread bug exists that this patch by Peter Edwards Corrects.

Here is a summary:

I've a problem when a process uses:
       libpthread
       detached threads
       mixed bound/unbound threads
       suspended threads  (a la pthread_resume_np())

whereby some newly created suspended threads don't get scheduled.
I think I've tracked it down, so if someone could review the
reasoning, I'd be grateful.

Newly launched threads have a "struct pthread" that may be allocated
from a freelist of GCed threads. Apparently, when detached threads
enter the GCed list, they can still have the "active" flag set on
them. Later, this causes problems when this thread is recycled and
resumed, because _thr_setrunnable_unlocked() doesn't add it to a
run queue.

thr_cleanup can be called either from the bound-threads scheduler,
or the unbound scheduler. One callsite clears "active", "needswitchout",
and "lock_switch" to zero before the call. The other callsite just
clears "check_pending". I think these flags are all either bound-thread
or unbound-thread specific, and that there was an unintended
assumption that the thread would remain with the same "boundedness"
after being recycled, which isn't neccessarily the case. (Or another
way - the idea was that there was no need to clear the "active"
flag on a bound thread, as its only used for unbound threads, but
a GCed bound thread might be recycled into an unbound thread)

Given that, it seems correct to clean up the thread the same way
for both cases, and just move that code into thr_cleanup.

Revision 326 - Directory Listing - [select for diffs]
Modified Tue Oct 31 19:22:30 2006 UTC (17 years, 6 months ago) by laffer1
Diff to previous 314
Cleanup

Revision 314 - Directory Listing - [select for diffs]
Modified Mon Oct 30 14:50:16 2006 UTC (17 years, 6 months ago) by laffer1
Diff to previous 313
Only catch SIGINFO when LIBPTHREAD_DEBUG is defined in the environment.

Eliminate a race condition in timed waist (cv, mutex, sleeps).

Don't forget to init a TAILQ before using it.

Allocate a thread's tcb last so it is easier to handle failures to malloc() siginfo.

Include needed headers obtained through pthread.h

Obtained from FreeBSD (March 2006 MFC)

Revision 313 - Directory Listing - [select for diffs]
Modified Mon Oct 30 13:55:39 2006 UTC (17 years, 6 months ago) by laffer1
Diff to previous 311
Remove alpha references, install shared libc_r into /lib because its aliased by libpthread and some /sbin tools.

Revision 311 - Directory Listing - [select for diffs]
Modified Mon Oct 30 07:43:26 2006 UTC (17 years, 6 months ago) by laffer1
Diff to previous 310
Correct decoding a string containing '/'

Revision 310 - Directory Listing - [select for diffs]
Modified Mon Oct 30 07:34:44 2006 UTC (17 years, 6 months ago) by laffer1
Diff to previous 309
Added strtonum

Revision 309 - Directory Listing - [select for diffs]
Modified Mon Oct 30 07:30:16 2006 UTC (17 years, 6 months ago) by laffer1
Diff to previous 308
More cleanup

Revision 308 - Directory Listing - [select for diffs]
Modified Mon Oct 30 07:28:15 2006 UTC (17 years, 6 months ago) by laffer1
Diff to previous 245
Posixize function strtonum, clean up manpage.

Revision 245 - Directory Listing - [select for diffs]
Modified Tue Oct 10 15:36:54 2006 UTC (17 years, 7 months ago) by laffer1
Diff to previous 206
fix build of openssh.

Revision 206 - Directory Listing - [select for diffs]
Modified Mon Oct 2 00:39:35 2006 UTC (17 years, 7 months ago) by laffer1
Diff to previous 205
forgot to add int copyout :)

Revision 205 - Directory Listing - [select for diffs]
Modified Mon Oct 2 00:24:29 2006 UTC (17 years, 7 months ago) by laffer1
Diff to previous 204
Adjusted directions

Revision 204 - Directory Listing - [select for diffs]
Modified Mon Oct 2 00:16:53 2006 UTC (17 years, 7 months ago) by laffer1
Diff to previous 202
gzio.c minigzip.c and zconf.h have changes that must be maintained during each upgrade from the vendor branch.

Revision 202 - Directory Listing - [select for diffs]
Modified Sun Oct 1 23:49:06 2006 UTC (17 years, 7 months ago) by laffer1
Diff to previous 115
This commit was generated by cvs2svn to compensate for changes in r201,
which included commits to RCS files with non-trunk default branches.
Revision 115 - Directory Listing - [select for diffs]
Modified Wed Aug 23 15:36:08 2006 UTC (17 years, 8 months ago) by laffer1
Diff to previous 95
Go back to PHK malloc.  Development version accidently commited.

Revision 95 - Directory Listing - [select for diffs]
Modified Mon Aug 21 03:34:42 2006 UTC (17 years, 8 months ago) by adam
Diff to previous 6
Imported strtonum() from OpenBSD

Revision 6 - Directory Listing - [select for diffs]
Modified Sat Feb 25 02:38:42 2006 UTC (18 years, 2 months ago) by laffer1
Diff to previous 3
This commit was generated by cvs2svn to compensate for changes in r5, which
included commits to RCS files with non-trunk default branches.
Revision 3 - Directory Listing - [select for diffs]
Added Sat Feb 25 02:29:52 2006 UTC (18 years, 2 months ago) by laffer1
This commit was generated by cvs2svn to compensate for changes in r2, which
included commits to RCS files with non-trunk default branches.

Convenience Links