summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Add a #ifdef _THREAD_SAFE around ctime_rphk1998-04-201-0/+2
|
* Describe timegm()ache1998-04-202-5/+16
|
* Backed out lseek changes.des1998-04-191-1/+1
|
* o Support a compile-time -DNO_FW_PUNCH for portabilitybrian1998-04-194-4/+23
| | | | | | (and those of us that don't want the functionality). o Don't assume sizeof(long) == 4. Ok'd by: Charles Mott <cmott@srv.net>
* ctime_r and asctime_r are not implemented.phk1998-04-192-3/+21
| | | | | | | | prototypes in time.h do not match POSIX. PR: 6345 Reviewed by: phk Submitted by: Dmitry Khrustalev <dima@xyzzy.machaon.ru>
* Return EINVAL and do not changefile pointer if resulting offset is negative.des1998-04-181-2/+2
| | | | PR: kern/6184
* Allow a thread dump to report the thread's sigmask when in thejb1998-04-173-0/+12
| | | | PS_SIGWAIT state.
* When in PS_SIGWAIT state, still call signal handlers and set errnojb1998-04-173-39/+6
| | | | to EINTR.
* Backup out the last commit, it was already there.phk1998-04-171-3/+1
| | | | Noticed by: bde
* Manpages not installedphk1998-04-171-1/+3
| | | | | | PR: 6327 Reviewed by: phk Submitted by: Chia-liang Kao <clkao@cirx.org>
* Typo policebrian1998-04-171-1/+1
|
* Add some easy to implement XSI macros including attr_getache1998-04-151-1/+10
|
* Fix a nasty flaw as a result of using the arc4random() pre-seeding ofpeter1998-04-141-2/+4
| | | | | | | | leading XXX's. It could wrap an uppercase character through chars like: [ \ ] ^ _ ` in between Z and a. The backslash and back tick might be particularly nasty in a shell script context. Also, since we've been using upper-case generated values for a while now, go with the flow and use them in the pathname search rotation.
* Change the FILE locking to be by FILE, not by the underlying fd asjb1998-04-1113-81/+399
| | | | | | | | | | | | | it was. Add a FILE_WAIT state and queue threads waiting for a FILE lock. Start using the sys/queue.h macros instead of the way that MIT pthreads did it. Add a thread name to the private thread structure and a non-POSIX function to set this. This helps (me at least) when sending a SIGINFO to a threaded process to get a /tmp/uthread.dump to see what the <expletive deleted> threads are doing this time. It is nice to be able to recognise (yes, I spell that with an 's' too) which threads are which.
* Add FILE locking stubs for libc.jb1998-04-1128-337/+211
| | | | | | | | Change the FILE locking to support kernel threads when linked with libpthread (which you haven't see yet). This requires that libc become thread-safe and thread-aware, testing __isthreaded before attempting to do lock/unlock calls. The impact on non-threaded programs is minor. This change works with libc_r, so it's the best compromise.
* Remove a nolonger implented "BUGS" description.phk1998-04-111-14/+0
| | | | | | PR: 6240 Reviewed by: phk Submitted by: Niall Smart rotel@indigo.ie
* Correctly figure out that the remove cannot do passive mode.phk1998-04-111-1/+3
| | | | | | PR: 6259 Reviewed & slightly modified by: phk Submitted by: Archie Cobbs <archie@whistle.com>
* Add a global variable called __isthreaded that can be tested throughoutjb1998-04-111-0/+9
| | | | | | | | libc to determine if locking is required. This is needed in libc for use with kernel threads, but until a thread is created, we don't really want to bother locking things. The variable was added here because the crt code calls exit(main()) so all programs will get the variable.
* Add a private header file for libc/libc_r/libpthread to containjb1998-04-111-0/+66
| | | | definitions for things like locking etc.
* Enable static initialisation of mutexes and condition variables.jb1998-04-046-24/+96
|
* Change in name of the static initializer define.jb1998-04-043-7/+7
|
* Rename static initializer defines for opaque structures so that thejb1998-04-043-6/+6
| | | | POSIX specified names can be declared in pthread.h.
* Move the magic field initialisation to a place when it is more magic.jb1998-04-043-18/+21
|
* Add a magic field to the pthread structure to help recognize validjb1998-04-0312-6/+75
| | | | | | | | | | | | | | threads from invalid ones. The pthread structure is opaque to the user so this change does not cause any incompatibilities. Hopefully this change will help code that was written for draft 4 fail gracefully if the programmer ignores the compiler warning about the change in the level of indirection for the argument passed to pthread_detach(). I got burnt, so I fixed then (expletive deleted) thing. These functions comply with the revised standard. That should shut Terry up!
* This function compiles with the standard, so say so.jb1998-04-032-6/+6
|
* This function compiles with the standard, so say so.jb1998-04-032-8/+12
| | | | | | | | Add a note about not touching errno and warn about previous drafts of the standard which changed the level of indirection to the thread argument. POSIX had a bit of trouble deciding what to do. So anyone coding to both draft 4 and draft 10 (the final draft) will get burnt by this function. I did. Grrr.
* Temporary fix for problems that occur if CFLAGS=-g is added tojb1998-04-011-1/+2
| | | | | /etc/make.conf. The tools can't handle generating debug code where we fiddle with the ELF segments.
* Finish _POSIX_PRIORITY_SCHEDULING. Needs P1003_1B anddufault1998-03-289-66/+598
| | | | | | | | | | | | | | | | _KPOSIX_PRIORITY_SCHEDULING options to work. Changes: Change all "posix4" to "p1003_1b". Misnamed files are left as "posix4" until I'm told if I can simply delete them and add new ones; Add _POSIX_PRIORITY_SCHEDULING system calls for FreeBSD and Linux; Add man pages for _POSIX_PRIORITY_SCHEDULING system calls; Add options to LINT; Minor fixes to P1003_1B code during testing.
* Split the padding out into a separate function.phk1998-03-276-22/+62
| | | | | | | | Synchronize the kernel and libmd versions of md5c.c PR: misc/6127 Reviewed by: phk Submitted by: Ari Suutari <ari@suutari.iki.fi>
* For 1.3, NetBSD replaced the swapon() syscall with swapctl() and movedjb1998-03-232-2/+46
| | | | | the only call to compat_12 which isn't there by default. Provide a wrapper.
* Fixed function types in synopsis.bde1998-03-231-10/+10
| | | | | | Commented out docmentation of nonexistent authenticate() and auth_timesok(). authenticate() seems to be obsolete and auth_timesok() never existed in FreeBSD.
* Fixed bitrot in synopsis.bde1998-03-231-1/+1
|
* Regenerate (install tclAppInit.c in the installhdrs step).bde1998-03-231-4/+4
|
* Fixed a function arg type in the synopsis.bde1998-03-232-2/+2
|
* (Ab)use .Vt instead of .Fd for a variable declaration.bde1998-03-231-2/+2
|
* Fixed bitrot in synopsis. Didn't fix bitrot elsewhere.bde1998-03-231-6/+7
|
* FixedSpellingErrorInAFunctionname.bde1998-03-231-2/+2
|
* .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.charnier1998-03-231-2/+2
|
* For 1.3, NetBSD walloped the msync syscall and replaced it withjb1998-03-232-2/+59
| | | | | | __msync13. The old one got moved to compat_12. Wrap __msync13 up to look like FreeBSD's msync and be careful to respect the fact that MS_SYNC is 0x0000 on FreeBSD, but 0x0004 on NetBSD.
* Add Compaq & SCO partition types.jkh1998-03-221-1/+3
| | | | | PR: 6092 Submitted by: Drew Derbyshire <ahd@kew.com>
* Fix a problem of indirection unblocking signals that would have causedjb1998-03-223-3/+3
| | | | | | | signals to be unblocked even if they were already blocked when entering the function. Pointed out by: bde
* Build both libscrypt and libdescrypt. There is no point in lettingmarkm1998-03-211-7/+4
| | | | | libscrypt stagnate, even if it is superceded by libdescrypt. It is a tiny library anyway, and building it is inexpensive.
* MF22: teach about LS-120 devices.jkh1998-03-202-3/+5
|
* Renamed the generated include file keys.tries to keys.tries.h sobde1998-03-203-22/+14
| | | | | that it can be put in SRCS for dependency generation to work properly. Don't use beforedepend, as usual.
* Build the libraries in a correct order. Reorganized the ifdefs sobde1998-03-191-29/+42
| | | | that the order is easy to see.
* Don't use the beforedepend target. It was a no-op here except forbde1998-03-191-3/+1
| | | | helping bsd.dep.mk break `make -jN depend'.
* .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aqcharnier1998-03-1919-60/+72
|
* <sys/errno.h> -> <errno.h>eivind1998-03-161-1/+1
|
* Add more AIX/DOS/Win95 partition typesache1998-03-141-4/+12
|
* Changed speed_t from long to unsigned long. POSIX.1 requires anbde1998-03-121-2/+2
| | | | | | | | | unsigned integral type. Changing it doesn't seem to cause any sign extension bugs in /usr/src. In the kernel, this is partly because `struct speedtab' and its lookup function are too bogus to use speed_t's for speeds - they use ints. Reminded by: PR 5786
OpenPOWER on IntegriCloud