summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Fix documentation of clnt_control()'s CL{GET|SET}_{VERS|XID} tofenner2002-09-161-4/+4
| | | | | reflect that they actually require a u_int32_t *, which is not necessarily the same as an unsigned long *.
* Make libpthread KSE aware.mini2002-09-1652-4790/+270
| | | | | Reviewed by: deischen, julian Approved by: -arch
* Mechanically change all libc_r references to libpthread.mini2002-09-1656-62/+62
|
* Save and restore FPU state properly in ucontext_t's.mini2002-09-164-36/+29
| | | | | Reviewed by: deischen, julian Approved by: -arch
* Add signalcontext(), which lays down a signal frame onto a ucontext_t.mini2002-09-161-12/+15
| | | | | Reviewed by: deischen, julian Approved by: -arch
* Allocate 64K recieve buffer for DNS responses.ume2002-09-161-27/+48
|
* Convert eight space indents to tabs in the "*" format handling code.tjr2002-09-161-43/+43
|
* Make the changes needed for libpthread to compile in its new home.mini2002-09-16190-466/+384
| | | | | | | | The new libpthread will provide POSIX threading support using KSE. These files were previously repo-copied from src/lib/libc_r. Reviewed by: deischen Approved by: -arch
* Fixed messes involving $FreeBSD$ starting with one left in the copyrightbde2002-09-161-21/+5
| | | | | | | | after adding __FBSDID(). Garbage-collected kvm_readswap(). This was once used by kvm_uread(), but kvm_uread() now just reads /proc/<pid>/mem and procfs hopefully handles swapped out pages.
* Don't depend on <sys/types.h> pollution in <fcntl.h>.mike2002-09-161-0/+2
|
* Allocate KSEs and KSEGRPs separatly and remove them from the proc structure.julian2002-09-151-12/+45
| | | | | | | | | next step is to allow > 1 to be allocated per process. This would give multi-processor threads. (when the rest of the infrastructure is in place) While doing this I noticed libkvm and sys/kern/kern_proc.c:fill_kinfo_proc are diverging more than they should.. corrective action needed soon.
* Allocate 64K recieve buffer for DNS responses.ume2002-09-151-20/+45
| | | | | | | | KAME did the modification only to _dns_getaddrinfo(). However, it is not sufficient, and res_queryN() should be modified, too. So, I did same modification to res_queryN(). Obtained from: KAME
* Check for truncation in calls to res_send/res_query/res_search.nectar2002-09-156-12/+42
| | | | Fail when it is detected.
* Add wcstod() as a wrapper around strtod(). It does not handle any characterstjr2002-09-153-2/+162
| | | | that strtod() does not (alternate digit characters, etc. are not handled).
* Use the heap instead of the stack to store temporary multibyte stringtjr2002-09-151-10/+28
| | | | | buffers; this is slower but safer for threaded programs where threads often have relatively low stack size limits.
* Backout the increase of MAXPACKET from 1024 to 65536: itnectar2002-09-156-7/+26
| | | | | | broke pthreads. Reported by: mbr, tjr
* Use the macros from machine/fsr.h; some minor cleanups.tmm2002-09-141-5/+6
|
* Add implementations of fpgetmask(), fpgetround(), fpgetsticky(),tmm2002-09-146-1/+126
| | | | | fpsetround(), fpsetsticky(), obtained from NetBSD and tweaked a little to use definitions from machine/fsr.h instead of magic numbers.
* Limit UDP payload size for EDNS0 to 0xffff, not use lower 16bit value.ume2002-09-141-0/+2
| | | | Obtained from: KAME
* When using res_send/res_query/res_search, the caller must eithernectar2002-09-136-26/+7
| | | | | | | | | insure enough space is available for the response, or be prepared to resize the buffer and retry as necessary. Do the conservative thing and make sure enough space is available. Reviewed by: silence on freebsd-audit
* Add an implementation of fabs() (which is quite trivial).tmm2002-09-132-1/+38
| | | | | | | | | When it is called directly, gcc is smart enough to generate inline code for it, which is why it wasn't noticed before that it was missing. fabs() would probably better fit into libm, but it has traditionally been in libc on FreeBSD, so there is probably software around that makes assumptions about this by now.
* Correct type of second argument: it is wchar_t ** restrict,tjr2002-09-121-2/+2
| | | | not wchar_t * restrict.
* Update to reflect reality.archie2002-09-112-31/+8
| | | | | Reviewed by: mini MFC after: 3 days
* Add man pages for getcontext()/setcontext(), makecontext()/swapcontext(),archie2002-09-114-5/+331
| | | | | | | and ucontext_t. Reviewed by: mini MFC after: 3 days
* In kvm_openfiles/kvm_open, mark the file descriptors as close-on-exec.nectar2002-09-111-0/+12
| | | | | Applications can not do this themselves, as the descriptors are hidden behind the opaque `kvm_t' type.
* Add an implementation of wcsftime() (wide character version of strftime()).tjr2002-09-113-2/+152
|
* Completely redo thread states.julian2002-09-111-21/+24
| | | | Reviewed by: davidxu@freebsd.org
* Add `restrict' type-qualifier.mike2002-09-113-6/+6
|
* Adjust to reflect reality, which is that sigaltstack() takes stack_t *'s.archie2002-09-101-6/+6
| | | | MFC after: 3 days
* Implement C99's _Exit() interface.wollman2002-09-106-55/+158
| | | | | | Implement a version of qsort that provides a thunk to the comparison function. Update manual pages.
* Get this file closer to style(9).phk2002-09-081-51/+55
|
* Add wcstol() and wcstoul(), based on strtol() and strtoul().tjr2002-09-084-4/+314
|
* Replace a stray reference to strtok() with one to wcstok().tjr2002-09-081-1/+1
|
* Fix a syntax error which causes an annoying warning.wollman2002-09-081-0/+1
|
* Add an implementation of wcstok(), based on strtok_r().tjr2002-09-073-3/+213
|
* Two arrays were born from the same seeds, both grew into complementary setsjmallett2002-09-071-1/+1
| | | | | | | | of pointers to strings. These two arrays were fixed to the same size, but one had an implicit zeroed trailer element, which was unused because the size was used up by the ones before said zeroed trailer element. So the unused limb was chopped off the over-sized-but-not-over-sized array, and everyone lived happily ever after.
* Sync prototypes with <wchar.h> with respect to the restrict qualifier.tjr2002-09-071-6/+6
|
* Add restrict qualifiers where C99 permits them. All of these already hadtjr2002-09-076-12/+12
| | | | restrict qualifiers on their prototypes in <wchar.h>.
* Call strtok_r() via a libc private name from within strtok().tjr2002-09-071-2/+6
|
* Fix a bug where calling MD5File(3) with a zero-length file generated anbmah2002-09-061-0/+1
| | | | | | error, due to an uninitialized variable. Reviewed by: phk, archie
* Include some verbage about not calling exit() from functions registeredwollman2002-09-062-2/+24
| | | | by atexit().
* Style: One space between "restrict" qualifier and "*".tjr2002-09-0659-92/+92
|
* Don't need to install the signal trampoline here anymore.jake2002-09-031-1/+0
|
* Install the userland signal trampoline when sigaction is first called,jake2002-09-032-1/+50
| | | | | | | instead of on startup. This fixes binary compatibility of dynamically linked binaries from before the signal code move. Suggested by: wollman (a long time ago)
* Fix a nasty bug exposed by mktime() when time_t is significantly biggerpeter2002-09-031-0/+6
| | | | | | | than 32 bits. It was trying to figure out things like the day of week of when time_t is roughly 2^62 etc. Make a better guess for the starting point for the binary search that works on both 32 and 64 bit types. I have been using this for a while now.
* Set errno to EILSEQ when invalid multibyte sequences are detectedtjr2002-09-033-3/+14
| | | | (XSI extension to 1003.1-2001).
* Use FOO(a) for macros with variadic args, instead of FOO(a,) or FOO(a, ).jake2002-09-021-3/+3
| | | | Submitted by: gcc3.2
* - Let their manual pages show the reader that the bzero(3) androbert2002-09-014-22/+33
| | | | | | | | | | bcopy(3) functions are prototyped in <strings.h> and not in <string.h> anymore. - Add a sentence about that to the respective HISTORY sections. In the C source files: - Include <string.h> or <strings.h> depending on what function is to be compiled. - Use ANSI-C function definitions.
* Typo: refer to MB_LEN_MAX instead of MB_CHAR_MAX (which does not exist).tjr2002-09-011-1/+1
|
* Add restrict qualifiers to the arguments of mbstowcs, mbtowc() andtjr2002-09-014-9/+9
| | | | wcstombs().
OpenPOWER on IntegriCloud