summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* * Add stubs for pthread_cond_broadcast.Doug Rabson2002-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 Notes: svn path=/head/; revision=106288
* No need to include floatio.h here: vfscanf() no longer uses anythingTim J. Robbins2002-11-012-2/+0
| | | | | | | it defines. Notes: svn path=/head/; revision=106282
* Re-apply the previously backed-out commit that fixes the problem whereArchie Cobbs2002-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 Notes: svn path=/head/; revision=106268
* Make __sF static. This can not be allowed to exist in 5.x.Alfred Perlstein2002-10-311-1/+1
| | | | Notes: svn path=/head/; revision=106230
* Add two additional references to the See Also section, which contain muchTim J. Robbins2002-10-301-2/+16
| | | | | | | better descriptions of UTF-8 and related issues. Notes: svn path=/head/; revision=106201
* Implement DCE 1.1 compliant UUID functions. Immediate use of theseMarcel Moolenaar2002-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 Notes: svn path=/head/; revision=106184
* While an interface can be depreciated, we prefer deprecated.Robert Watson2002-10-291-1/+1
| | | | | | | Submitted by: Wayne Morrison <tewok@tislabs.com> Notes: svn path=/head/; revision=106172
* Cosmetics.Ruslan Ermilov2002-10-291-1/+1
| | | | Notes: svn path=/head/; revision=106145
* bsd.doc.mk changes:Ruslan Ermilov2002-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. Notes: svn path=/head/; revision=106143
* Remove unnecessary inclusion of <rune.h> to make it obvious that this fileTim J. Robbins2002-10-291-1/+0
| | | | | | | does not use the deprecated rune system. Notes: svn path=/head/; revision=106119
* Scoop out examples illustrating the label text format and refer toChris Costello2002-10-281-51/+5
| | | | | | | | | | maclabel(7) instead. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Labs Notes: svn path=/head/; revision=106104
* Cross-reference putc(3).Tim J. Robbins2002-10-281-0/+1
| | | | Notes: svn path=/head/; revision=106083
* Handle boundary cases more correctly; mblen(s, 0) and mbtowc(NULL, s, 0)Tim J. Robbins2002-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. Notes: svn path=/head/; revision=106077
* Create a small library function, check_utility_compat(3), to determineGarrett Wollman2002-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. Notes: svn path=/head/; revision=106065
* Update limits and configuration parameters for 1003.1/TC1/D6.Garrett 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.) Notes: svn path=/head/; revision=106055
* Do not include <sys/syslimits.h> directly; it is not intended for generalGarrett Wollman2002-10-273-3/+5
| | | | | | | consumption. Notes: svn path=/head/; revision=106053
* Style sweep.Tim J. Robbins2002-10-275-40/+32
| | | | Notes: svn path=/head/; revision=106032
* query ip6.arpa then ip6.int for IPv6 reverse lookup. follows RFC3152.Hajimu UMEMOTO2002-10-261-1/+7
| | | | | | | MFC after: 5 days Notes: svn path=/head/; revision=106000
* - scopeid is u_int32_tHajimu UMEMOTO2002-10-251-14/+21
| | | | | | | | | | - strtoul pedant. pointed out by deraadt Obtained from: KAME MFC after: 1 week Notes: svn path=/head/; revision=105943
* - kill strcpyHajimu UMEMOTO2002-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 Notes: svn path=/head/; revision=105940
* Use an internal buffer for the result when the first argument is NULL.Tim J. Robbins2002-10-251-0/+4
| | | | Notes: svn path=/head/; revision=105932
* The ORIENTLOCK macro is no longer needed since all functions useTim J. Robbins2002-10-251-7/+0
| | | | | | | FLOCKFILE/FUNLOCKFILE explicitly. Notes: svn path=/head/; revision=105909
* Restored sigaction's name in its prototype.Bruce Evans2002-10-241-1/+1
| | | | Notes: svn path=/head/; revision=105870
* * Modernize aio(4), providing instructions for static and dynamic kernelSheldon Hearn2002-10-247-147/+8
| | | | | | | | | | | | | | | | | linking. * Fix disorder in the SEE ALSO sections of aio_*(2). * Remove unnecessary cross-references from the SEE ALSO sections of aio_*(2); config(8), kldload(8) and kldunload(8) are cross-referenced from aio(4). * Remove the KERNEL OPTIONS sections from aio_*(2), now that these pages cross-reference aio(4), which contains suitable kernel linking reference material. Notes: svn path=/head/; revision=105864
* Add cross-references to the aio(4) manual page.Dag-Erling Smørgrav2002-10-246-0/+6
| | | | | | | Submitted by: Craig Rodrigues <rodrigc@attbi.com> Notes: svn path=/head/; revision=105861
* Replace wcsstr() with an implementation based on strstr(), which is farTim J. Robbins2002-10-241-38/+32
| | | | | | | | | more efficient. The problem with the previous implementation was that it calculated the length of the first argument ("big") with wcslen() when it was not necessary. Notes: svn path=/head/; revision=105844
* Restore Berkeley SCCS id.Tim J. Robbins2002-10-241-1/+5
| | | | Notes: svn path=/head/; revision=105842
* Remove the Standards section again until we get these functions sortedTim J. Robbins2002-10-241-8/+0
| | | | | | | out. This will probably have to wait until after 5.0-R. Notes: svn path=/head/; revision=105838
* Place mac_prepare() with the other mac_prepare*() functions.Chris Costello2002-10-241-10/+10
| | | | Notes: svn path=/head/; revision=105837
* mac_free() no longer accepts a void * parameter; only mac_t's are supposedChris Costello2002-10-241-9/+20
| | | | | | | | | | | to be passed. Point this out in a warning notice, which will eventually go away, sometime between now and -RELEASE. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=105835
* Remove superfluous empty "FILES" section.Chris Costello2002-10-231-1/+0
| | | | | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=105830
* Remove hard sentence breaks.Chris Costello2002-10-231-11/+19
| | | | | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=105829
* Make the first argument of getbsize a size_t* instead of an int*, as this is ↵Mark Murray2002-10-232-3/+4
| | | | | | | what the quantity actually is. Fix an easy const while I'm here. Notes: svn path=/head/; revision=105797
* Fix the NetBSD RCS id's on these files; somehow they were initiallyTim J. Robbins2002-10-232-2/+2
| | | | | | | committed with the tags unexpanded. Notes: svn path=/head/; revision=105787
* Reimplement more efficiently, using a single forward scan (like strrchr(3))Tim J. Robbins2002-10-231-22/+12
| | | | | | | | instead of scanning forwards to find the end of the string then scanning backwards to find the character. Notes: svn path=/head/; revision=105786
* Reimplement, handling the case where c == L'\0' correctly and fixingTim J. Robbins2002-10-231-21/+7
| | | | | | | some style(9) bugs. Notes: svn path=/head/; revision=105785
* query ip6.arpa then ip6.int for IPv6 reverse lookup. follows RFC3152.Hajimu UMEMOTO2002-10-231-51/+77
| | | | | | | | Obtained from: KAME MFC after: 1 week Notes: svn path=/head/; revision=105783
* Add a Standards section, claiming conformance to IEEE Std. 1003.1-2001.Tim J. Robbins2002-10-231-1/+17
| | | | | | | | Also add a note to the Bugs section pointing out that strerror() and perror() share the same static buffer. Notes: svn path=/head/; revision=105779
* Translate to English.Dag-Erling Smørgrav2002-10-231-13/+18
| | | | Notes: svn path=/head/; revision=105772
* Replace this wcsncpy() implementation with one based on strncpy.c to fixTim J. Robbins2002-10-231-26/+32
| | | | | | | | | | two major bugs: - off-by-one overflow when the length of the source string exceeds or equals the destination buffer size. - old version was not padding the destination buffer with null wide chars Notes: svn path=/head/; revision=105761
* Explain to users that they may want to kldload aio.Alfred Perlstein2002-10-227-22/+175
| | | | | | | | | Move Xref sections. Submitted by: Craig Rodrigues <rodrigc@attbi.com> Notes: svn path=/head/; revision=105720
* Rename the libc signal trampoline to __sigtramp to match netbsd. ThisJake Burkholder2002-10-222-4/+4
| | | | | | | should allow gdb to detect when we're executing in a signal trampoline. Notes: svn path=/head/; revision=105709
* Reflect MAC kernel/user API changes into the libc MAC implementation.Robert Watson2002-10-227-247/+398
| | | | | | | | | | | | | | | This removes a lot of complexity, since we basically just reserve space on a retrieval of a label, and pass around strings. Two new elements: (1) consumers of the API must now declare what label elements they are interested in retrieving, or (2) rely on the default provided in a new configuration file, mac.conf. Approved by: re Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=105698
* .Xr mac.3 and posix1e.3 to mac.9. Point at sys/mac.h in posix1e.3.Robert Watson2002-10-222-3/+5
| | | | | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=105671
* Unhook the per-policy parsing/printing MAC modules in libc to prepareRobert Watson2002-10-217-815/+5
| | | | | | | | | | | | to bring in the new MAC label management API. With the new API revision, we have only policy-agnostic code in libc and the base kernel. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=105605
* track gratuitous change to sys/i386/include/reg.hSam Leffler2002-10-212-4/+4
| | | | Notes: svn path=/head/; revision=105604
* Cross-reference fmtcheck(3).Tim J. Robbins2002-10-201-0/+1
| | | | Notes: svn path=/head/; revision=105498
* Give in on the __sF stuff. I have a better fix in mind that is futurePeter Wemm2002-10-191-1/+1
| | | | | | | proof, but this should buy me some time for now. Notes: svn path=/head/; revision=105491
* Indent code example with one tab, not two, for consistency with the rest.Tim J. Robbins2002-10-191-8/+8
| | | | Notes: svn path=/head/; revision=105448
* C89 does not specifiy strsep(), so our strsep() implementation cannotTim J. Robbins2002-10-191-1/+0
| | | | | | | | | conform to it. Obtained from: OpenBSD Notes: svn path=/head/; revision=105447