summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Remove reference to signanosleepAndrey A. Chernov1998-05-141-1/+0
| | | | Notes: svn path=/head/; revision=36039
* Nuke signanosleep()Peter Wemm1998-05-142-21/+3
| | | | Notes: svn path=/head/; revision=36037
* Cast a pointer to a long, not an int and make the arg passed to the functionJohn Birrell1998-05-111-2/+2
| | | | | | | a long too (it does have a proper prototype). Notes: svn path=/head/; revision=35941
* Cast a pointer to a long, not an int before masking it.John Birrell1998-05-101-1/+1
| | | | Notes: svn path=/head/; revision=35923
* Remove 'of type long' from a sentence talking about four 4-byte valuesJohn Birrell1998-05-101-2/+1
| | | | | | | because that is wrong on alpha. Notes: svn path=/head/; revision=35922
* Fixed the usual missing dependencies on headers generated by rpcgen.Bruce Evans1998-05-101-2/+2
| | | | Notes: svn path=/head/; revision=35908
* Fixed the usual missing dependencies on headers generated by rpcgen.Bruce Evans1998-05-091-6/+6
| | | | | | | | | | | | Use rpcgen's -C option, although using it for non-headers breaks K&R support. A local copy of yp.h is built to avoid adding -I/usr/include/rpcsvc to CFLAGS. This version of yp.h differed from <rpcsvc/yp.h> only in not declaring prototypes. Fixed style bugs. Notes: svn path=/head/; revision=35898
* Add a BUGS section and describe a problem I've been having forBrian Somers1998-05-091-1/+14
| | | | | | | a few weeks now. Notes: svn path=/head/; revision=35897
* This is a hack to workaround source that is coded to use long variablesJohn Birrell1998-05-082-2/+2528
| | | | | | | | | | | | | but also assumes that they are 32-bits. This is one place where I don't think it is appropriate to change 'long' to 'int'. I don't see why the code couldn't be fixed so that using natural long variables does the right thing. It's spaggetti code so it'll take some effort. Obviously NetBSD thought so too because they change 'long' to 'int32_t' etc and left it at that. As a temporary measure FreeBSD/Alpha can use the NetBSD code and put this on the list of things to fix. Notes: svn path=/head/; revision=35837
* Remote the NetBSD kludge for vfprintf.cJohn Birrell1998-05-081-9/+2
| | | | Notes: svn path=/head/; revision=35836
* Don't assign the va_list variable 'ap' directly to the argtable becauseJohn Birrell1998-05-081-19/+18
| | | | | | | | va_list is not a pointer on alpha. Instead, use the va_arg() macro to return the address that is stored in the argtable. Notes: svn path=/head/; revision=35835
* Use the thread-aware errno definition all the time.John Birrell1998-05-052-44/+6
| | | | Notes: svn path=/head/; revision=35762
* Build the syscalls (in libc, not libc_r) with weak symbols so thatJohn Birrell1998-05-052-6/+18
| | | | | | | libpthread can override them as required. Notes: svn path=/head/; revision=35761
* Remove extern int errno and #include <errno.h> to get the proper definition.John Birrell1998-05-051-1/+1
| | | | Notes: svn path=/head/; revision=35760
* Remove leading underscores from the FILE lock functions that POSIXJohn Birrell1998-05-051-3/+3
| | | | | | | specifies. Notes: svn path=/head/; revision=35759
* Remove leading underscores for the functions (weak symbols here) thatJohn Birrell1998-05-051-4/+7
| | | | | | | POSIX defines. Notes: svn path=/head/; revision=35757
* In a threaded library, expect the lock field to be declared volatile,John Birrell1998-05-051-5/+5
| | | | | | | | so provide function prototypes that respect that, avoiding a gcc warning that `volatile' is being thrown away. Notes: svn path=/head/; revision=35753
* Fix a few nits in quoted code fragments and elsewhere.Robert Nordier1998-05-041-5/+4
| | | | Notes: svn path=/head/; revision=35726
* Typo fix.James Raynard1998-05-031-2/+2
| | | | Notes: svn path=/head/; revision=35656
* Pedantry (NULL -> NUL).James Raynard1998-05-031-1/+1
| | | | Notes: svn path=/head/; revision=35655
* Don't imply sigset_t == int.James Raynard1998-05-031-1/+1
| | | | Notes: svn path=/head/; revision=35654
* Resolve some unexpected differences when comparing with the 2.2 version.Peter Wemm1998-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(). Notes: svn path=/head/; revision=35624
* Update libc dns code to 4.9.7-T1B level. This involved chopping out largePeter Wemm1998-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. Notes: svn path=/head/; revision=35623
* Go back to version 1.16 - it was correct the way it was.Brian Somers1998-05-011-6/+6
| | | | | | | Pointed out by: bde Notes: svn path=/head/; revision=35607
* Fixed disordering and other style bugs in rev.1.50.Bruce Evans1998-05-011-6/+4
| | | | Notes: svn path=/head/; revision=35592
* connect() returns -1 on error - not 0.Brian Somers1998-05-011-7/+7
| | | | Notes: svn path=/head/; revision=35570
* Add reference to setlocale(3)Andrey A. Chernov1998-04-301-2/+3
| | | | Notes: svn path=/head/; revision=35556
* Add reference to catopen(3)Andrey A. Chernov1998-04-301-1/+4
| | | | Notes: svn path=/head/; revision=35555
* Return -1 for invalid descriptor in catcloseAndrey A. Chernov1998-04-301-2/+2
| | | | Notes: svn path=/head/; revision=35552
* If passed catgets descriptor is NULL or -1, return default string immediatelyAndrey A. Chernov1998-04-301-1/+3
| | | | Notes: svn path=/head/; revision=35550
* Force loadType to 0Andrey A. Chernov1998-04-301-5/+4
| | | | Notes: svn path=/head/; revision=35549
* Implement NL_CAT_LOCALEAndrey A. Chernov1998-04-304-12/+33
| | | | | | | Manpages cleanup Notes: svn path=/head/; revision=35548
* Prototypes/typedefs cleanupAndrey A. Chernov1998-04-302-21/+22
| | | | | | | Fix error return codes Notes: svn path=/head/; revision=35546
* Oops, backout the previous change having confused my underscores.John Birrell1998-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. Notes: svn path=/head/; revision=35544
* Change the description of errno to match the thread-aware implementationJohn Birrell1998-04-301-32/+6
| | | | | | | | from 3.0 on. With 3.0 being a major release, now is a good time to do this. Notes: svn path=/head/; revision=35543
* Make cerror thread aware by calling __error() to get a pointer to theJohn Birrell1998-04-302-44/+10
| | | | | | | | thread-specific error variable. This change make libc use the same cerror code that libc_r has been using. Notes: svn path=/head/; revision=35541
* The syscall that creates a kernel thread is coming, but it doesn't use theJohn Birrell1998-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. Notes: svn path=/head/; revision=35540
* Build __error.c into libc, but not libc_r. The weak symbol in theJohn Birrell1998-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. Notes: svn path=/head/; revision=35539
* Basic support for LC_MESSAGESAndrey A. Chernov1998-04-292-12/+13
| | | | Notes: svn path=/head/; revision=35523
* Stop renaming these in libc_r because wrappered versions don't make sense.John Birrell1998-04-296-60/+12
| | | | | | | PR: i386/4826, bin/5953 Notes: svn path=/head/; revision=35504
* Replace the threaded locking with spinlock calls for both threadedJohn Birrell1998-04-291-18/+10
| | | | | | | | | | and non-threaded programs. This makes malloc thread safe for linking with libpthread and kernel threads. Reviewed by: phk Notes: svn path=/head/; revision=35503
* Reference an external variable in threaded programs so that theJohn Birrell1998-04-291-0/+6
| | | | | | | autoinitialiser gets linked in and therefore called before main(). Notes: svn path=/head/; revision=35502
* Use signal() in both the threaded and non-threaded cases.John Birrell1998-04-291-2/+1
| | | | Notes: svn path=/head/; revision=35501
* Stubs are required in libc so that it can be used with libpthreadJohn Birrell1998-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. Notes: svn path=/head/; revision=35500
* Oops, revert part of a diff that wasn't supposed to have been committed.David Greenman1998-04-281-2/+2
| | | | Notes: svn path=/head/; revision=35491
* Cache the results of the ps_strings sysctl so that it doesn't have to beDavid Greenman1998-04-281-10/+12
| | | | | | | redone for every call of setproctitle(). Notes: svn path=/head/; revision=35490
* `sigprocmask()' man page references `sigmask()' in synopsis.Poul-Henning Kamp1998-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> Notes: svn path=/head/; revision=35457
* Make asctime_r static if !_THREAD_SAFE to prevent namespace pollution andAndrey A. Chernov1998-04-251-0/+7
| | | | | | | prototype mismatch Notes: svn path=/head/; revision=35436
* Improve description.Robert Nordier1998-04-221-5/+6
| | | | | | | Submitted by: Arne Henrik Juul <arnej@imf.unit.no> Notes: svn path=/head/; revision=35392
* indentDima Ruban1998-04-201-1/+1
| | | | Notes: svn path=/head/; revision=35358