ViewVC Help
View Directory | Revision Log | View Changeset | Root Listing
root/src/trunk/lib
Revision 1297 - Directory Listing - [select for diffs]
Modified Tue Oct 23 14:46:25 2007 UTC (16 years, 6 months ago) by laffer1
Diff to previous 1296
Remove libio as that was only for the alpha.  I don't know why I added it in the previous revision.  Also remove the files.

$MidnightBSD$ libbz2

work around libarchive so the system compiles.

Revision 1296 - Directory Listing - [select for diffs]
Modified Tue Oct 23 03:31:37 2007 UTC (16 years, 6 months ago) by laffer1
Diff to previous 1295
remove alpha bits

Revision 1295 - Directory Listing - [select for diffs]
Modified Tue Oct 23 03:30:28 2007 UTC (16 years, 6 months ago) by laffer1
Diff to previous 1294
Enable libio, libdisk and libthread_db.

Revision 1294 - Directory Listing - [select for diffs]
Modified Mon Oct 22 04:12:39 2007 UTC (16 years, 6 months ago) by laffer1
Diff to previous 1290
Re-order library building to attempt a fix with libarchive.  Move libc to the beginning as we may need the symbols available.  (unrelated)

Revision 1290 - Directory Listing - [select for diffs]
Modified Mon Oct 22 00:55:07 2007 UTC (16 years, 6 months ago) by laffer1
Diff to previous 1272
$MidnightBSD$

Revision 1272 - Directory Listing - [select for diffs]
Modified Sun Oct 7 16:29:17 2007 UTC (16 years, 7 months ago) by laffer1
Diff to previous 1263
Fix a null pointer dereference in the POSIX priority classes.

Revision 1263 - Directory Listing - [select for diffs]
Modified Sat Sep 29 22:13:40 2007 UTC (16 years, 7 months ago) by ctriv
Diff to previous 1260
Upgrade to libarchive 2.2.4.

Revision 1260 - Directory Listing - [select for diffs]
Modified Fri Sep 28 03:01:31 2007 UTC (16 years, 7 months ago) by ctriv
Diff to previous 1258
Improvements to the sub.package schema.
Cleanup now always runs.
Fixed error handing in db_create.c

Revision 1258 - Directory Listing - [select for diffs]
Modified Thu Sep 27 03:27:18 2007 UTC (16 years, 7 months ago) by ctriv
Diff to previous 1257
We now break up the conflict and depend inputs when they are inserted into
the stub db.

Revision 1257 - Directory Listing - [select for diffs]
Modified Thu Sep 27 03:26:38 2007 UTC (16 years, 7 months ago) by ctriv
Diff to previous 1256
Updated the error handling in mport_parse_plist_file().

Revision 1256 - Directory Listing - [select for diffs]
Modified Thu Sep 27 03:25:16 2007 UTC (16 years, 7 months ago) by ctriv
Diff to previous 1255
Updated the schema to make the conflicts and the depends a bit more
normalized.

Revision 1255 - Directory Listing - [select for diffs]
Modified Thu Sep 27 03:24:38 2007 UTC (16 years, 7 months ago) by ctriv
Diff to previous 1253
Fix an off by one error in the list parsing.

Revision 1253 - Directory Listing - [select for diffs]
Modified Tue Sep 25 15:38:13 2007 UTC (16 years, 7 months ago) by laffer1
Diff to previous 1252
$MidnightBSD$

Revision 1252 - Directory Listing - [select for diffs]
Modified Tue Sep 25 15:26:50 2007 UTC (16 years, 7 months ago) by laffer1
Diff to previous 1251
Forced commit to note the patch originated from Ed Maste.

http://www.freebsd.org/cgi/query-pr.cgi?pr=81534

Revision 1251 - Directory Listing - [select for diffs]
Modified Tue Sep 25 15:25:42 2007 UTC (16 years, 7 months ago) by laffer1
Diff to previous 1247
libc_r close() fails if fstat() returns an error.  This causes problems with FreeBSD 4.x applications.

Since we don't control compat4x, this will never be fully resolved, but we can certainly fix our part.

Revision 1247 - Directory Listing - [select for diffs]
Modified Mon Sep 24 20:58:00 2007 UTC (16 years, 7 months ago) by ctriv
Diff to previous 1246
Add the cleanup code to create. Various bug fixes.

Revision 1246 - Directory Listing - [select for diffs]
Modified Mon Sep 24 20:54:15 2007 UTC (16 years, 7 months ago) by ctriv
Diff to previous 1245
we don't want or need a threadsafe sqlite.  If users need it, they can build
it from ports.

Revision 1245 - Directory Listing - [select for diffs]
Modified Mon Sep 24 16:49:59 2007 UTC (16 years, 7 months ago) by ctriv
Diff to previous 1243
Added mport_parselist().
Conflicts and depends are now inserted into the package file db.  The schema
of this will probably change once the install end is written and we know
what we need.

Revision 1243 - Directory Listing - [select for diffs]
Modified Mon Sep 24 06:01:46 2007 UTC (16 years, 7 months ago) by ctriv
Diff to previous 1241
First working code for archive creation.  Many features still missing, but
it kinda works :).

Revision 1241 - Directory Listing - [select for diffs]
Modified Sun Sep 23 22:30:52 2007 UTC (16 years, 7 months ago) by ctriv
Diff to previous 1240
Start of libmport.  At the moment all it can do is a make a tmpdir with the
package-meta database.  Soon we'll pull in libarchive and start to make some
packages.

Revision 1240 - Directory Listing - [select for diffs]
Modified Sun Sep 23 22:29:21 2007 UTC (16 years, 7 months ago) by ctriv
Diff to previous 1237
remove some things that where for platforms we don't support.
add libsqlite3.

Revision 1237 - Directory Listing - [select for diffs]
Modified Fri Sep 21 19:23:48 2007 UTC (16 years, 7 months ago) by ctriv
Diff to previous 1221
libsqlite3 depends on pthread.

Revision 1221 - Directory Listing - [select for diffs]
Modified Tue Sep 11 16:39:00 2007 UTC (16 years, 8 months ago) by laffer1
Diff to previous 1204
threads should write to stderr when they have error messages.

Revision 1204 - Directory Listing - [select for diffs]
Modified Sat Aug 18 07:58:02 2007 UTC (16 years, 8 months ago) by laffer1
Diff to previous 1019
Obtained from FreeBSD:

pam_nologin(8) starts to provide an account management function in
addition to the existing authentication function so that sshd(8) can
respect nologin(5) while the rest of PAM consumers work as earlier.
In turn, sshd(8) starts to use the new account management function
in pam_nologin(8) and thus respect nologin(5) even when doing public
key authentication with sshd's internal routines (PAM authentication
isn't called at all in that case).

Revision 1019 - Directory Listing - [select for diffs]
Modified Thu Jul 12 21:59:15 2007 UTC (16 years, 10 months ago) by laffer1
Diff to previous 1005
Preliminary libarchive security patch.  This is equivalent to FreeBSD-SA-07:05.libarchive

Revision 1005 - Directory Listing - [select for diffs]
Modified Mon May 14 06:12:57 2007 UTC (16 years, 11 months ago) by laffer1
Diff to previous 1002
$MidnightBSD$

Use unsigned comparisons.  This fixes some bugs in the following case:

1. i386
2. program calling update is statically linked to libmd
3. buffer provided is aligned modulo 4 bytes
4. the buffer extends beyond 2 GB.

Bugs 1-3 still cause problems beyond 4GB.

Revision 1002 - Directory Listing - [select for diffs]
Modified Fri May 11 06:31:15 2007 UTC (17 years ago) by ctriv
Diff to previous 906
Added libsqlite3.

Revision 906 - Directory Listing - [select for diffs]
Modified Fri Apr 6 20:37:50 2007 UTC (17 years, 1 month ago) by laffer1
Diff to previous 905
Back out propolice.  More information in UPDATING.

In short, propolice broke libpthread and libthr.

Revision 905 - Directory Listing - [select for diffs]
Modified Fri Apr 6 20:12:31 2007 UTC (17 years, 1 month ago) by laffer1
Diff to previous 904
$MidnightBSD$ and whitespace

Revision 904 - Directory Listing - [select for diffs]
Modified Fri Apr 6 20:03:33 2007 UTC (17 years, 1 month ago) by laffer1
Diff to previous 903
Disable -g flag

Revision 903 - Directory Listing - [select for diffs]
Modified Fri Apr 6 19:58:03 2007 UTC (17 years, 1 month ago) by laffer1
Diff to previous 902
$MidightBSD$

Backout recent changes so that we can detect problems easily.  curthread == NULL with the propolice patch in several cases.

Revision 902 - Directory Listing - [select for diffs]
Modified Fri Apr 6 19:49:14 2007 UTC (17 years, 1 month ago) by laffer1
Diff to previous 900
$MidnightBSD$

Revision 900 - Directory Listing - [select for diffs]
Modified Thu Apr 5 04:17:02 2007 UTC (17 years, 1 month ago) by laffer1
Diff to previous 899
!= :)

Revision 899 - Directory Listing - [select for diffs]
Modified Thu Apr 5 04:09:05 2007 UTC (17 years, 1 month ago) by laffer1
Diff to previous 898
Remove ProPolice portion.  Its un-needed.

Revision 898 - Directory Listing - [select for diffs]
Modified Thu Apr 5 03:52:16 2007 UTC (17 years, 1 month ago) by laffer1
Diff to previous 897
After adding pro police, we started failing one of the regression tests that we used to pass (mutex_d).

curthread can be NULL in some cases.  This was causing the test app to crash.

Revision 897 - Directory Listing - [select for diffs]
Modified Thu Apr 5 02:45:54 2007 UTC (17 years, 1 month ago) by laffer1
Diff to previous 896
Some /sbin utilities require this.

Revision 896 - Directory Listing - [select for diffs]
Modified Thu Apr 5 02:45:23 2007 UTC (17 years, 1 month ago) by laffer1
Diff to previous 895
$MidnightBSD$

Revision 895 - Directory Listing - [select for diffs]
Modified Tue Apr 3 18:03:04 2007 UTC (17 years, 1 month ago) by laffer1
Diff to previous 894
Missed one...

Revision 894 - Directory Listing - [select for diffs]
Modified Tue Apr 3 18:01:25 2007 UTC (17 years, 1 month ago) by laffer1
Diff to previous 886
Add missing prototypes through header includes.

Revision 886 - Directory Listing - [select for diffs]
Modified Mon Apr 2 00:48:03 2007 UTC (17 years, 1 month ago) by archite
Diff to previous 876
Importing propolice into MidnightBSD. Propolice is going to
provide us with much greater security and stability in the
long run. If upgrading from a pre-propolice system, please
follow the these instructions:

cd /usr/src/lib/libc && make obj && make && make install
cd /usr/src/gnu/usr.bin/cc && make obj && make && make install
buildworld and kernel

It is adviced that any mports which were installed and/or built
prior to the propolice update also be updated. If any errors
or issue are encounted, please contact security@midnightbsd.org
and we will be sure to investigate and come up with an expeditious
fix.

Revision 876 - Directory Listing - [select for diffs]
Modified Sat Mar 24 07:53:53 2007 UTC (17 years, 1 month ago) by archite
Diff to previous 870
Importing ohash functions into libc from OpenBSD 4.0 code.

Revision 870 - Directory Listing - [select for diffs]
Modified Tue Mar 20 17:32:17 2007 UTC (17 years, 1 month ago) by laffer1
Diff to previous 869
Fix the MBSDID crap

Revision 869 - Directory Listing - [select for diffs]
Modified Tue Mar 20 17:02:55 2007 UTC (17 years, 1 month ago) by laffer1
Diff to previous 833
$MidnightBSD$

The __MBSDID macro is not working as it should be with the assembler. There must be a behavior difference between FBSDID and MBSDID somewhere.

Revision 833 - Directory Listing - [select for diffs]
Modified Wed Mar 14 12:10:24 2007 UTC (17 years, 1 month ago) by laffer1
Diff to previous 829
unbreak the build for nowunbreak the build for now.

Revision 829 - Directory Listing - [select for diffs]
Modified Wed Mar 14 02:24:10 2007 UTC (17 years, 1 month ago) by laffer1
Diff to previous 733
This commit was generated by cvs2svn to compensate for changes in r828,
which included commits to RCS files with non-trunk default branches.
Revision 733 - Directory Listing - [select for diffs]
Modified Fri Feb 9 17:18:53 2007 UTC (17 years, 3 months ago) by laffer1
Diff to previous 720
$MidnightBSD$

Remove alpha bits

Revision 720 - Directory Listing - [select for diffs]
Modified Fri Feb 2 01:03:18 2007 UTC (17 years, 3 months ago) by laffer1
Diff to previous 718
Fixed generated files as I forgot to remove a file. (skipped 9.3.3 release..)

Revision 718 - Directory Listing - [select for diffs]
Modified Fri Feb 2 00:23:38 2007 UTC (17 years, 3 months ago) by laffer1
Diff to previous 717
Generated files using step 9  make -DMAINTAINER_MODE generate...

Revision 717 - Directory Listing - [select for diffs]
Modified Fri Feb 2 00:21:12 2007 UTC (17 years, 3 months ago) by laffer1
Diff to previous 695
Generated files for Bind 9.3.4 per FreeBSD-upgrade directions step 7 and 8

Revision 695 - Directory Listing - [select for diffs]
Modified Fri Jan 19 03:20:15 2007 UTC (17 years, 3 months ago) by laffer1
Diff to previous 656
Add new libsm file from sendmail 8.13.6+

Revision 656 - Directory Listing - [select for diffs]
Modified Sat Jan 13 18:51:05 2007 UTC (17 years, 3 months ago) by laffer1
Diff to previous 603
Add an alias 'unhalted-cycles' denoting cyles where the CPU is not in halt or sleep state.

Revision 603 - Directory Listing - [select for diffs]
Modified Sat Jan 13 13:51:19 2007 UTC (17 years, 3 months ago) by laffer1
Diff to previous 596
Handling of login.access(5) was moved from login(1) to pam_login_access(8) years ago.  This will remove dead code, clean up manpages and install login.access.5 from the pam_login_access src dir.

Revision 596 - Directory Listing - [select for diffs]
Modified Sat Jan 13 00:16:27 2007 UTC (17 years, 3 months ago) by laffer1
Diff to previous 594
Clean up some descriptions.

Revision 594 - Directory Listing - [select for diffs]
Modified Sat Jan 13 00:13:39 2007 UTC (17 years, 3 months ago) by laffer1
Diff to previous 569
Remove a useless word.

Revision 569 - Directory Listing - [select for diffs]
Modified Sun Jan 7 23:59:31 2007 UTC (17 years, 4 months ago) by laffer1
Diff to previous 562
Sync inet_net_pton() and inet_net_ntop() with latest BIND9's includes an IPv6 support version.

Revision 562 - Directory Listing - [select for diffs]
Modified Sun Jan 7 23:37:16 2007 UTC (17 years, 4 months ago) by laffer1
Diff to previous 513
Just query as is if there is a trailing dot in the name.

Don't query as is twice.

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