summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen
Commit message (Collapse)AuthorAgeFilesLines
* Add a Bugs section and note that fmtcheck() is out of sync with printf();tjr2002-10-161-1/+7
| | | | it does not recognise any of the conversions or modifiers added in C99.
* Add restrict type-qualifier.mike2002-10-122-3/+4
|
* Do not allow empty GIDs for non-NIS entries.maxim2002-10-111-0/+7
| | | | MFC after: 2 weeks
* Drop almost 3k from /bin/sync by moving errno to a seperate filepeter2002-10-093-2/+31
| | | | | | to avoid all syscalls pulling in sys_errlst[]. Noted by: bde
* Add restrict type-qualifier to sem_getvalue().mike2002-10-042-2/+2
|
* Too strict error checking in rev. 1.22 broke pwd_mkdb(8) in NISmaxim2002-10-021-2/+2
| | | | | | environment. An empty UID and GID are valid there. Spotted by: rwatson
* Disqualify UID/GID with non-numeric character.maxim2002-09-251-3/+13
| | | | | | PR: bin/41721 Reviewed by: tjr, silence on -audit MFC after: 2 weeks
* Initiate deorbit burn sequence for sysctl CTL_USER MIB branch.wollman2002-09-211-105/+351
| | | | | | | | | | | | | Use the correct constants directly from sysconf() rather than calling sysctl() to tell us the (still compiled-in) value. Leave the CTL_POSIX1B stuff alone for now (but I'd like to see this replaced with a single structure returning all of the relevant information). Implement all of the keys from 1003.1-2001 that we can. Ensure that the build will break if someone redefines an option constant to zero without implementing the necessary presence-detection logic here. (4 of 5)
* Make the threatened fts(3) ABI fix. FTSENT now avoids the use of the structwollman2002-09-214-34/+184
| | | | | | | | | | | | | | | | hack, thereby allowing future extensions to the structure (e.g., for extended attributes) without rebreaking the ABI. FTSENT now contains a pointer to the parent stream, which fts_compar() can then take advantage of, avoiding the undefined behavior previously warned about. As a consequence of this change, the prototype of the comparison function passed to fts_open() has changed to reflect the required amount of constness for its use. All callers in the tree are updated to use the correct prototype. Comparison functions can now make use of the new parent pointer to access the new stream-specific private data pointer, which is intended to assist creation of reentrant library routines which use fts(3) internally. Not objected to in spirit by: -arch
* Don't peek into MD structures from MI code. The getcontext(3) andmini2002-09-201-9/+1
| | | | setcontext(3) functions check the validify of the mcontext_t structs.
* Return the correct environment name for 64-bit platforms in thewollman2002-09-191-1/+2
| | | | _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS case.
* Welcome the sem_ API to libc!alfred2002-09-191-0/+354
|
* add a stub for pthread_cond_destroy.alfred2002-09-191-0/+7
|
* Bandaid to stop failing on non-i386 platforms.peter2002-09-171-0/+5
| | | | Add a big ugly #warning as a reminder.
* Initiate deorbit burn for the i386-only a.out related support. Moves arepeter2002-09-172-158/+5
| | | | | | | | | | | | | | | under way to move the remnants of the a.out toolchain to ports. As the comment in src/Makefile said, this stuff is deprecated and one should not expect this to remain beyond 4.0-REL. It has already lasted WAY beyond that. Notable exceptions: gcc - I have not touched the a.out generation stuff there. ldd/ldconfig - still have some code to interface with a.out rtld. old as/ld/etc - I have not removed these yet, pending their move to ports. some includes - necessary for ldd/ldconfig for now. Tested on: i386 (extensively), alpha
* Add signalcontext(), which lays down a signal frame onto a ucontext_t.mini2002-09-161-12/+15
| | | | | Reviewed by: deischen, julian Approved by: -arch
* Add man pages for getcontext()/setcontext(), makecontext()/swapcontext(),archie2002-09-114-5/+331
| | | | | | | and ucontext_t. Reviewed by: mini MFC after: 3 days
* Add `restrict' type-qualifier.mike2002-09-113-6/+6
|
* Fix a syntax error which causes an annoying warning.wollman2002-09-081-0/+1
|
* 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.
* Style: One space between "restrict" qualifier and "*".tjr2002-09-062-2/+2
|
* Fix a memory leak.mike2002-09-011-1/+3
|
* Note that <sys/types.h> in no longer a prerequisite for <utime.h> andmike2002-08-241-1/+0
| | | | <sys/mman.h>.
* s/EDOFUS/EDOOFUS/phk2002-08-211-1/+1
| | | | Persuaded by: Google
* s/trailing NULL/trailing NUL/jmallett2002-08-192-2/+2
|
* Fix libc build breakage by defining FSTYPENAMES before includingbmilekic2002-08-161-0/+1
| | | | | | | disklabel.h; broken originally by 1.87 of sys/disklabel.h, which made the split between DKTYPENAMES and FSTYPENAMES. Someone who knows disklabel.c: do we still need DKTYPENAMES to be defined here now?
* can not -> cannot.ru2002-08-131-1/+1
|
* Add a missing copyright for Doug. There are other files missing thisdwmalone2002-08-111-0/+28
| | | | | | | copyright in -stable. PR: 41397 Submitted by: dfr
* Fix typos; each file has at least one s/seperat/separat/schweikh2002-08-111-4/+4
| | | | | | | | | | (I skipped those in contrib/, gnu/ and crypto/) While I was at it, fixed a lot more found by ispell that I could identify with certainty to be errors. All of these were in comments or text, not in actual code. Suggested by: bde MFC after: 3 days
* - Introduce a new struct xvfsconf, the userland version of struct vfsconf.mux2002-08-103-55/+43
| | | | | | | | | | | | | | | | | | | | | | | - Make getvfsbyname() take a struct xvfsconf *. - Convert several consumers of getvfsbyname() to use struct xvfsconf. - Correct the getvfsbyname.3 manpage. - Create a new vfs.conflist sysctl to dump all the struct xvfsconf in the kernel, and rewrite getvfsbyname() to use this instead of the weird existing API. - Convert some {set,get,end}vfsent() consumers to use the new vfs.conflist sysctl. - Convert a vfsload() call in nfsiod.c to kldload() and remove the useless vfsisloadable() and endvfsent() calls. - Add a warning printf() in vfs_sysctl() to tell people they are using an old userland. After these changes, it's possible to modify struct vfsconf without breaking the binary compatibility. Please note that these changes don't break this compatibility either. When bp will have updated mount_smbfs(8) with the patch I sent him, there will be no more consumers of the {set,get,end}vfsent(), vfsisloadable() and vfsload() API, and I will promptly delete it.
* mdoc(7) police: laundry.ru2002-08-091-9/+14
|
* Introduce a new error return code:phk2002-08-091-0/+3
| | | | | | #define EDOFUS 88 /* Programming error */ This can be used to signal error situations which indicate that the program logic or assumptions is deficient.
* Implement POSIX.1-2001 (XSI)'s ulimit(3).mike2002-08-083-3/+171
| | | | Submitted by: Kyle Martin <mkm@ieee.org>
* o Fix a memory leak.mike2002-08-051-11/+15
| | | | | | o Rewrite validmsgverb() so that it works (I'm not sure how it escaped my original testing). o Document nextcomp().
* Implement POSIX.1-2001 (XSI)'s fmtmsg(3).mike2002-08-054-2/+473
|
* Update glob(3) to add all the POSIX required options, specifically:mikeh2002-07-172-29/+34
| | | | | | | | | | - add GLOB_NOMATCH return value and use it when we don't get a match - rename GLOB_ABEND to GLOB_ABORTED and use it instead of returning 1 in some places - add GLOB_NOESCAPE flag and retire GLOB_QUOTE to compatibility section Suggestions/advice on correct usage of POSIX defines: wollman
* Don't ask me how I consistently turned struct statvfs into struct vfsconf....wollman2002-07-161-3/+3
|
* Assume that my bug report against 1003.1-2001 will be resolved my way,wollman2002-07-151-13/+9
| | | | | and make 64-bit architectures use the LP64_OFF64 environment instead of the LPBIG_OFFBIG one.
* Support POSIX/SUS ``programming environment'' mistake in confstr().wollman2002-07-151-1/+62
|
* All of the things that confstr() returns are compile-time constants.wollman2002-07-151-31/+10
| | | | | | | | | It's silly to call sysctl() to get the value of _PATH_STDPATH from <paths.h> when we can just use it directly. This greatly simplifies the implementation. (This is also part of my grand scheme to get rid of sysctl's `user' category, which should never have been created.) Use strlcpy() instead of strncpy() as it has the exact semantics we want.
* Don't bother asking the kernel about _SC_FSYNC; it's not optional.wollman2002-07-151-4/+3
|
* Fix a few bugs in the ERRORS section.wollman2002-07-131-3/+12
|
* Add statvfs(3) to the build.wollman2002-07-131-2/+3
| | | | Tested by: Steve Kargl
* Well, it's not quite strxfrm(3) but at least it's honest.wollman2002-07-131-0/+176
|
* Various typo fixes.keramida2002-07-121-2/+2
| | | | | PR: docs/39395 Submitted by: Rich Neswold <rneswold@ameritech.net>
* A simple implementation of statvfs(3) (one step above the trivial one).wollman2002-07-111-0/+160
| | | | Not yet connected to the build (awaiting documentation).
* Move appropriate information out of `DESCRIPTION' and into `SECURITYchris2002-07-031-12/+12
| | | | | | CONSIDERATIONS'. Sponsored by: DARPA, NAI Labs
* Remove pselect from application namespace and instead use a weak referencedeischen2002-06-271-1/+3
| | | | | | | to the actual implementation. This is to allow libc_r to override pselect() making it a cancellation point. Prompted by: wollman
* Remove improper use of <namespace.h>.deischen2002-06-271-6/+2
| | | | Remove fmtcheck from application name space (fix the weak reference).
* Actually document pselect(3) so that Bruce can mention it in the releasewollman2002-06-172-1/+123
| | | | notes. :-)
OpenPOWER on IntegriCloud