summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Fixed disordering and inconsistent style in previous commit.bde1998-03-121-3/+2
|
* Separated header creation from header installation in libss. Createbde1998-03-121-6/+4
| | | | the libss headers before installing them in `make world'.
* Bring these back from the dead.jb1998-03-112-0/+99
|
* Don't share sources with i386-elf. That was too difficult. 8-(jb1998-03-111-4/+7
| | | | | | | | Add a bootstrap mode so that non-rtld versions of these objects can be built when bootstrapping the system with NetBSD tools, headers and libraries. Once the FreeBSD tools are built, the FreeBSD headers are installed and *then* these objects can be recompiled with the rtld references. Phew.
* This commit was generated by cvs2svn to compensate for changes in r34484,jb1998-03-111-20/+68
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Sharing the crt sources with i386-elf wasn't too successful. The crtijb1998-03-113-108/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | asm code didn't link the way it was supposed to and the calling convention for the entry "function" turned out to be very different. On alpha it's a true function, but on i386 it's a fudge. Blech. So jdp suggested keeping separate sets of source and avoiding lots of #ifdefs. These files are based on his i386-elf code, with crt1.c borrowing code from NetBSD's crt0. The copyright reflects that. Complicating matters, the code turned out to be difficult to bootstrap build using NetBSD tools. To compile against the FreeBSD rtld header requires FreeBSD specific headers, but these can't be installed until the tools are built, and they can't be built without the FreeBSD crt objects. Anal retentive. So I introduced a HAVE_RTLD #define that isn't set during the build process until all the tools are built and the headers installed.
* | Trash startup sources from NetBSD in favour of jdp's FreeBSD sourcejb1998-03-104-419/+23
| | | | | | | | | | | | | | | | | | now that has been committed. The makefile is derived from the i386-elf version, modified to pick up most of the source (except crt1.c) from i386-elf. With minor changes to i386-elf/crt1.c, this directory can be combined with i386-elf to be a single csu/elf directory for all seasons.
* | This commit was generated by cvs2svn to compensate for changes in r34452,jb1998-03-101-0/+63
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Import a sanitized version of jdp's crt1.c from i386-elf. I have removedjb1998-03-101-0/+63
| | | | | | | | | | | | | | the rtld code pending implementation on the alpha. The csu/i386-elf should be renamed as csu/elf and this directory trashed. Consider this a temporary implementation.
| * This commit was manufactured by cvs2svn to create branch 'jb'.cvs2svn1998-01-112269-385287/+0
| |
* | Nearly missed this one.jb1998-03-092-2/+40
| | | | | | | | | | | | | | List non-default asm sources in MDASM so that they replace the defaults. For funny or incomplete syscalls, list them in NOASM to stop them from getting built as defaults.
* | Add #include <unistd.h> to get the prototype for __syscall().jb1998-03-091-1/+2
| | | | | | | | Cast to long before casting to a void ptr to shut up gcc.
* | Yikes, this is the worst of the lot. Bruce suggested doing this (!).jb1998-03-091-58/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Include the architecture specific sys makefile like previously, but what this contains differs. It defines MDASM which list architecture specific asm code that *replaces* syscalls of the same name defined in MIASM (which gets defined by the syscall.mk or netbsd_syscall.mk dependent of NETBSD_SYSCALLS being defined). If a syscall has a C source implementation or something funny done to it, or just doesn't need default asm source generated for it, then it is listed in NOASM. syscall.mk is generated by makesyscalls.sh with other syscall files. netbsd_syscall.mk is a hand-generated equivalent. So if a new syscall is added and no other makefiles are edited, it will automatically have the default asm source generated for it (whether you want it or not). Anything listed in MDASM gets added to SRCS and gets built. For each syscall name in MIASM, if it doesn't exist in MDASM or NOASM, it gets added to the ASM or ASMR lists to have code generated for it. If the syscall name was listed in HIDDEN_SYSCALLS (intended for use by libc_r, not libc which has it defined, but empty), then the name is added to the ASMR list and gets renamed before being built; otherwise it is added to the ASM list and gets built with the same name. I wonder if this is too complicated. But it works on both i386 and alpha.
OpenPOWER on IntegriCloud