summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* o Fix _longjmp() to return 1 when the return value is given as 0.marcel2002-11-141-52/+25
| | | | | | | | | | | | | o Remove the unwanted smartness in _longjmp() where it compares the current ar.bspstore with the saved ar.bspstore and restores ar.rnat based on it. This either avoids saving ar.rnat in the jmp_buf or is the consequence of not saving ar.rnat. All this complexity breaks libc_r where we use longjmp() to switch to different threads and the current ar.bspstore has no relation to the saved ar.bspstore. Thus: we save ar.rnat in setjmp() and simply restore ar.bspstore and ar.rnat in longjmp(). This code needs a cleanup.
* Argh, change declaration of two-dimensional array so that it actuallydeischen2002-11-132-2/+3
| | | | builds.
* Make this compile with whatever error-checking is enabled in buildworlddeischen2002-11-131-2/+2
| | | | and/or beast.
* Use a jump table (a la Solaris) for pthread routines with defaultdeischen2002-11-134-401/+230
| | | | | | | | | | entries in the table being stubs. While I'm here, add macros to auto-generate the stubs. A conforming threads library can override the stub routines by filling in the jump table. Add some entries to namespace.h and sync un-namespace.h to it. Also add a comment to remind folks to update un-namespace.h when changing namespace.h.
* ia64 ABI breaker:marcel2002-11-113-38/+6
| | | | | | | | | | | | | Don't force 16-byte alignment at run-time. Do it at compile-time. This saves us the pointer fiddling by the setjmp functions and reduces complexity. While here, increase the jmp_buf by 16 bytes to an even 512 bytes. Coincidentally, due to the way alignment was handled prior to this change, the jmp_buf has not changed in size, but only in how the space is used. Prior to this change the 16 bytes were reserved for enforcing alignment; now they are reserved by us for future extensions. Therefore, this ABI breaker is relatively save: the failure is always an alignment trap.
* Given that we have 3 places to document UUID related information,marcel2002-11-111-9/+69
| | | | | | | | | | | | | | | namely uuidgen(1), uuidgen(2) and uuid(3), the following division has been choosen: uuidgen(1) A description of the command line utility, and other user oriented UUID information. uuidgen(2) A mostly technical description of UUIDs. uuid(3) A description of the functions and other programmer oriented UUID information. According to the division: add more technical contents. Contributed by: Hiten Pandya <hiten@uk.FreeBSD.org> Edited and enhanced: marcel
* Add cross references to mbrtowc(3) and wcrtomb(3).tjr2002-11-101-1/+3
|
* Don't check whether the first byte of the buffer is a null byte whentjr2002-11-101-7/+1
| | | | the buffer has zero length (n == 0).
* Restore Peter's version of static __sF. There's too much pain for itimp2002-11-101-1/+4
| | | | | | | | | | | | to be static for 5.0. I may remove this for 5.1 or 5.2. No more binaries or libarires will be generated with __sF starting as of yesterday. Originally the plan had been to eliminate this for 5.0, but we didn't get the __std{in,out,err}p changes merged into -stable until yesterday (rather than in September 2001 like it should have been). Given that didn't happen on time, we can't do the other part of the scheme now. # Please do not change this without talking to me first.
* Describe the `n' and `ps' arguments to mbrlen().tjr2002-11-091-2/+17
|
* Typo: pointer to -> pointed totjr2002-11-091-1/+1
|
* Use wide character ctype functions directly instead of relying ontjr2002-11-091-2/+2
| | | | 4.4BSD extensions to the single-byte ctype functions.
* Add a missing return statement for the pwcs == NULL case (XSI extension).tjr2002-11-091-0/+1
|
* Update acl.3 to xref getfacl(1) and setfacl(1), the recommended tools forrwatson2002-11-081-6/+10
| | | | | | | manipulating file ACLs. Update the status of the implementation a bit, update the copyright, etc. Obtained from: TrustedBSD Project
* o Make the COMPATIBILITY section a bit less redundant.chris2002-11-061-1/+1
| | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Labs
* o Update man page to reflect the new prototypes for mac_{to,from}_text.chris2002-11-061-43/+15
| | | | | | | o Remove a (currently) no-longer-pertinent entry from errors. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Labs
* Hook up the userland wrapper for __mac_execve().rwatson2002-11-062-0/+43
| | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Wrap function prototype declarations in __BEGIN_DECLS to do the right thingjmallett2002-11-051-0/+2
| | | | | | with them in non-C cases. Requested by: Patrick Hartling <patrick@137.org>
* License update authorized by NAI: remove clause 3.rwatson2002-11-051-7/+4
|
* Clarify language relating to ACLs, Capabtilities, and MAC, since therwatson2002-11-041-28/+36
| | | | | implementation status of these services has changed substantially since this man page was last updated.
* Update license, historical information.rwatson2002-11-041-7/+8
|
* Point out that the MAC Framework is considered experimental.rwatson2002-11-041-0/+9
|
* After waiting for help with the markup, I finally decided to just patchnsayer2002-11-041-3/+3
| | | | | | | | | the page myself. The new language is more accurate than what was there before, but the most accurate way of describing the funcionality eludes me. PR: kern/33904 MFC after: 1 month
* Add descriptions for some _PC_* variables from <sys/unistd.h> thattjr2002-11-041-1/+40
| | | | were missing.
* Backout "compatibility hack" for __sF.alfred2002-11-042-9/+1
| | | | Requested by: Steve Kargl <sgk@troutmask.apl.washington.edu> (submitter)
* Provide a hook to make __sF visible outside of libc for commercial appsalfred2002-11-022-1/+9
| | | | | | if WANT_COMPAT4_STDIO is defined when compiling libc. Submitted by: Steve Kargl <sgk@troutmask.apl.washington.edu>
* Track the number of non-data chararacters stored in socket buffers so thatkbyanc2002-11-011-1/+1
| | | | | | | | | | | the data value returned by kevent()'s EVFILT_READ filter on non-TCP sockets accurately reflects the amount of data that can be read from the sockets by applications. PR: 30634 Reviewed by: -net, -arch Sponsored by: NTT Multimedia Communications Labs MFC after: 2 weeks
* * Add stubs for pthread_cond_broadcast.dfr2002-11-013-28/+246
| | | | | | | | | | * Fix typos in rwlock stubs. * Add pthread_XXX counterparts to the _pthread_XXX stubs which libraries like libX11 can use to ensure thread-safety without requiring the use of a thread library. Submitted by: Terry Lambert (pthread_cond_broadcast) Reviewed by: deischen
* No need to include floatio.h here: vfscanf() no longer uses anythingtjr2002-11-012-2/+0
| | | | it defines.
* Re-apply the previously backed-out commit that fixes the problem wherearchie2002-10-315-5/+5
| | | | | | | | HUGE_VAL is not properly aligned on some architectures. The previous fix now works because the two versions of 'math.h' (include/math.h and lib/msun/src/math.h) have since been merged into one. PR: bin/43544
* Make __sF static. This can not be allowed to exist in 5.x.alfred2002-10-311-1/+1
|
* Add two additional references to the See Also section, which contain muchtjr2002-10-301-2/+16
| | | | better descriptions of UTF-8 and related issues.
* Implement DCE 1.1 compliant UUID functions. Immediate use of thesemarcel2002-10-3012-0/+669
| | | | | | | | | | | | | | | | | | | | | | | | | functions is expected for uuidgen(1), mca(8) and gpt(8). Given the generic use of UUIDs beyond the scope of the DCE 1.1 specification, visibility of the data structure at all levels of the machine, including firmware and the wish to not create a permanent build- time FreeBSD-ism for DCE compliant applications by creating a new library, it was decided that libc would be the least inappropriate place. Also, because the UUID functions live in libc under IRIX as well, we have maximized our portability and left as many options open as possible. This implementation introduces an extension not found in the specification: the status parameter is allowed to be a NULL- pointer. The reason for introducing the extension is because the status is almost never of any use. The manpage that's part of this commit is a minimal place-holder and is further fleshed-out in the near future. Approved by: re@ Contributed by: Hiten Mahesh Pandya <hiten@unixdaemons.com> Sponsored by: marcel :-) Tested on: alpha, i386, ia64
* While an interface can be depreciated, we prefer deprecated.rwatson2002-10-291-1/+1
| | | | Submitted by: Wayne Morrison <tewok@tislabs.com>
* Cosmetics.ru2002-10-291-1/+1
|
* bsd.doc.mk changes:ru2002-10-296-6/+0
| | | | | | | | | | | | | | | Don't gratuitously pipe thru a cat(1) if NODOCCOMPRESS. Only create _stamp.extra when necessary. Get rid of SOELIMPP and OBJS. Use Groff version of soelim(1); we need its -I option for the following to work. Don't needlessly chdir to SRCDIR. Only a few documents need CD_HACK, and those that need it either use refer(1) or .PSPIC macro which internally uses the .psbb call.
* Remove unnecessary inclusion of <rune.h> to make it obvious that this filetjr2002-10-291-1/+0
| | | | does not use the deprecated rune system.
* Scoop out examples illustrating the label text format and refer tochris2002-10-281-51/+5
| | | | | | | maclabel(7) instead. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Labs
* Cross-reference putc(3).tjr2002-10-281-0/+1
|
* Handle boundary cases more correctly; mblen(s, 0) and mbtowc(NULL, s, 0)tjr2002-10-282-8/+6
| | | | | | | return -1 regardless of what s points to, mbtowc(&w, s, 1) sets w to a null wide character when s points to a null byte. This seems to be closer to what most other implementations do, but the C99 standard contradicts itself for these cases.
* Create a small library function, check_utility_compat(3), to determinewollman2002-10-283-2/+166
| | | | | | | | whether a named utility should behave in FreeBSD 4.x-compatible mode or in a standard mode (default standard). The configuration is done malloc(3)-style, with either an environment variable or a symlink. Update expr(1) to use this new interface.
* Update limits and configuration parameters for 1003.1/TC1/D6.wollman2002-10-271-1/+23
| | | | | | | | | | | Implement new sysconf keys. Change the implenentation of _SC_ASYNCHRONOUS_IO in preparation for the next set of changes. Move some limits which had been in <sys/syslimits.h> to <limits.h> where they belong. They had only ever been in syslimits.h to provide for the kernel implementation of the CTL_USER MIB branch, which went away with newsysctl years ago. (There is a #error in <sys/syslimits.h> which I will downgrade in the next commit.)
* Do not include <sys/syslimits.h> directly; it is not intended for generalwollman2002-10-273-3/+5
| | | | consumption.
* Style sweep.tjr2002-10-275-40/+32
|
* query ip6.arpa then ip6.int for IPv6 reverse lookup. follows RFC3152.ume2002-10-261-1/+7
| | | | MFC after: 5 days
* - scopeid is u_int32_tume2002-10-251-14/+21
| | | | | | | - strtoul pedant. pointed out by deraadt Obtained from: KAME MFC after: 1 week
* - kill strcpyume2002-10-251-67/+56
| | | | | | | | | | | | | | - port range check need to be done before htons. from deraadt - %d/%u audit - correct bad practice in the code - it uses two changing variables to manage buffer (buf and buflen). we eliminate buflen and use fixed point (ep) as the ending pointer. - use snprintf, not sprintf - pass correct name into q.name. from lukem@netbsd - sync comment Obtained from: KAME MFC after: 1 week
* Use an internal buffer for the result when the first argument is NULL.tjr2002-10-251-0/+4
|
* The ORIENTLOCK macro is no longer needed since all functions usetjr2002-10-251-7/+0
| | | | FLOCKFILE/FUNLOCKFILE explicitly.
* Restored sigaction's name in its prototype.bde2002-10-241-1/+1
|
OpenPOWER on IntegriCloud