summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Fix a few nits in quoted code fragments and elsewhere.rnordier1998-05-041-5/+4
|
* Typo fix.jraynard1998-05-031-2/+2
|
* Pedantry (NULL -> NUL).jraynard1998-05-031-1/+1
|
* Don't imply sigset_t == int.jraynard1998-05-031-1/+1
|
* Resolve some unexpected differences when comparing with the 2.2 version.peter1998-05-021-2/+10
| | | | | | One bug was relatively harmless (select's timeout had an uninitialized tv_usec), the other I'm not so sure.. (neglected to catch select returns less than zero). Both of these were irrelevant on kernels with poll().
* Update libc dns code to 4.9.7-T1B level. This involved chopping out largepeter1998-05-023-249/+753
| | | | | | chunks of res_comp.c and replacing it with chunks of bind-8.1.1's resolver code. (There are no interface changes though) The other parts are better bounds checking related.
* Go back to version 1.16 - it was correct the way it was.brian1998-05-011-6/+6
| | | | Pointed out by: bde
* Fixed disordering and other style bugs in rev.1.50.bde1998-05-011-6/+4
|
* connect() returns -1 on error - not 0.brian1998-05-011-7/+7
|
* Add reference to setlocale(3)ache1998-04-301-2/+3
|
* Add reference to catopen(3)ache1998-04-301-1/+4
|
* Return -1 for invalid descriptor in catcloseache1998-04-301-2/+2
|
* If passed catgets descriptor is NULL or -1, return default string immediatelyache1998-04-301-1/+3
|
* Force loadType to 0ache1998-04-301-5/+4
|
* Implement NL_CAT_LOCALEache1998-04-304-12/+33
| | | | Manpages cleanup
* Prototypes/typedefs cleanupache1998-04-302-21/+22
| | | | Fix error return codes
* Oops, backout the previous change having confused my underscores.jb1998-04-302-6/+4
| | | | | | __thread_create is a syscall that uses the default asm. It is _thread_create that contains specific asm code, but that lives in libpthread.
* Change the description of errno to match the thread-aware implementationjb1998-04-301-32/+6
| | | | | from 3.0 on. With 3.0 being a major release, now is a good time to do this.
* Make cerror thread aware by calling __error() to get a pointer to thejb1998-04-302-44/+10
| | | | | thread-specific error variable. This change make libc use the same cerror code that libc_r has been using.
* The syscall that creates a kernel thread is coming, but it doesn't use thejb1998-04-302-8/+6
| | | | | | default syscall asm, so add it to NOASM. The other syscalls that manipulate kernel threads use the default asm code, so they just get built automatically.
* Build __error.c into libc, but not libc_r. The weak symbol in thejb1998-04-301-2/+7
| | | | | | | | | | file works with libpthread, but when built into libc_r which has a non-weak symbol of the same name, the linker behaves unpredicatably and sometimes links the wrong symbol. The linker behaviour is a byproduct of what the program calls from object to object so it is like winning a lottery if the program actually works. The odds are quite good - 95:1, I think. We need a sure thing, though, so weak symbols can't be used instead of renaming things.
* Basic support for LC_MESSAGESache1998-04-292-12/+13
|
* Stop renaming these in libc_r because wrappered versions don't make sense.jb1998-04-296-60/+12
| | | | PR: i386/4826, bin/5953
* Replace the threaded locking with spinlock calls for both threadedjb1998-04-291-18/+10
| | | | | | | and non-threaded programs. This makes malloc thread safe for linking with libpthread and kernel threads. Reviewed by: phk
* Reference an external variable in threaded programs so that thejb1998-04-291-0/+6
| | | | autoinitialiser gets linked in and therefore called before main().
* Use signal() in both the threaded and non-threaded cases.jb1998-04-291-2/+1
|
* Stubs are required in libc so that it can be used with libpthreadjb1998-04-291-1/+5
| | | | | (and kernel threads), but weak symbols and non-weak symbols of the same name built into libc_r result in unpredictable linking.
* Oops, revert part of a diff that wasn't supposed to have been committed.dg1998-04-281-2/+2
|
* Cache the results of the ps_strings sysctl so that it doesn't have to bedg1998-04-281-10/+12
| | | | redone for every call of setproctitle().
* `sigprocmask()' man page references `sigmask()' in synopsis.phk1998-04-261-1/+0
| | | | | | | | | Note odd `sigmask()' line in synopsis. `sigsetops(3)' is better suited for `sigprocmask' and is already referenced from the manual page. (`sigmask()' is useful for the older (& deprecated) `sigsetmask()' API). PR: 6395 Reviewed by: phk Submitted by: Joseph Koshy <koshy@india.hp.com>
* Make asctime_r static if !_THREAD_SAFE to prevent namespace pollution andache1998-04-251-0/+7
| | | | prototype mismatch
* Improve description.rnordier1998-04-221-5/+6
| | | | Submitted by: Arne Henrik Juul <arnej@imf.unit.no>
* indentdima1998-04-201-1/+1
|
* 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
|
* 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
* Typo policebrian1998-04-171-1/+1
|
* 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.
* 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
* 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.
* Change in name of the static initializer define.jb1998-04-043-7/+7
|
* Finish _POSIX_PRIORITY_SCHEDULING. Needs P1003_1B anddufault1998-03-286-54/+586
| | | | | | | | | | | | | | | | _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.
* 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.
* (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
|
* 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.
OpenPOWER on IntegriCloud