summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* mdoc(7) police: kill hard sentence break.Ruslan Ermilov2002-05-301-4/+4
| | | | Notes: svn path=/head/; revision=97584
* mdoc(7) police: markup nits.Ruslan Ermilov2002-05-301-43/+53
| | | | Notes: svn path=/head/; revision=97570
* Check for defined(__i386__) instead of just defined(i386) since the compilerAlfred Perlstein2002-05-301-1/+1
| | | | | | | will be updated to only define(__i386__) for ANSI cleanliness. Notes: svn path=/head/; revision=97551
* Since POSIX gives us plenary authority to define _t types, changeGarrett Wollman2002-05-292-3/+3
| | | | | | | | | | __dlfunc_t to dlfunc_t to match what I have proposed to the Austin Group. (This also makes it easier for applications to store these values before they decide what to do with them, e.g., in a wrapper function.) Notes: svn path=/head/; revision=97509
* Add link dlopen(3) -> dlfunc(3).Garrett Wollman2002-05-291-1/+2
| | | | | | | Reminded by: mike Notes: svn path=/head/; revision=97490
* Reorganize dlfcn.h slightly to separate out XSI and BSD interfaces.Garrett Wollman2002-05-293-6/+61
| | | | | | | | | | | Add new dlfunc() interface, which is a version of dlsym() with a return type that can be cast to a function pointer without turning your computer into a frog. Reviewed by: freebsd-standards Notes: svn path=/head/; revision=97475
* mdoc(7) police: markup nits.Ruslan Ermilov2002-05-291-10/+17
| | | | Notes: svn path=/head/; revision=97470
* mdoc(7) police: bump document date on behalf of previous delta.Ruslan Ermilov2002-05-291-1/+1
| | | | Notes: svn path=/head/; revision=97469
* mdoc(7) police: sort xrefs.Ruslan Ermilov2002-05-291-2/+2
| | | | Notes: svn path=/head/; revision=97468
* mdoc(7) police: nit.Ruslan Ermilov2002-05-291-1/+1
| | | | Notes: svn path=/head/; revision=97467
* mdoc(7) police: fix markup for types.Ruslan Ermilov2002-05-291-4/+4
| | | | Notes: svn path=/head/; revision=97466
* Remove use of __P() (actually P()) from code now that it's no longerAlfred Perlstein2002-05-282-42/+42
| | | | | | | available. Notes: svn path=/head/; revision=97423
* Assume __STDC__, remove non-__STDC__ code.Alfred Perlstein2002-05-2830-343/+4
| | | | | | | Submitted by: keramida Notes: svn path=/head/; revision=97407
* Add uuidgen(2) and uuidgen(1).Marcel Moolenaar2002-05-282-1/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The uuidgen command, by means of the uuidgen syscall, generates one or more Universally Unique Identifiers compatible with OSF/DCE 1.1 version 1 UUIDs. From the Perforce logs (change 11995): Round of cleanups: o Give uuidgen() the correct prototype in syscalls.master o Define struct uuid according to DCE 1.1 in sys/uuid.h o Use struct uuid instead of uuid_t. The latter is defined in sys/uuid.h but should not be used in kernel land. o Add snprintf_uuid(), printf_uuid() and sbuf_printf_uuid() to kern_uuid.c for use in the kernel (currently geom_gpt.c). o Rename the non-standard struct uuid in kern/kern_uuid.c to struct uuid_private and give it a slightly better definition for better byte-order handling. See below. o In sys/gpt.h, fix the broken uuid definitions to match the now compliant struct uuid definition. See below. o In usr.bin/uuidgen/uuidgen.c catch up with struct uuid change. A note about byte-order: The standard failed to provide a non-conflicting and unambiguous definition for the binary representation. My initial implementation always wrote the timestamp as a 64-bit little-endian (2s-complement) integral. The clock sequence was always written as a 16-bit big-endian (2s-complement) integral. After a good nights sleep and couple of Pan Galactic Gargle Blasters (not necessarily in that order :-) I reread the spec and came to the conclusion that the time fields are always written in the native by order, provided the the low, mid and hi chopping still occurs. The spec mentions that you "might need to swap bytes if you talk to a machine that has a different byte-order". The clock sequence is always written in big-endian order (as is the IEEE 802 address) because its division is resulting in bytes, making the ordering unambiguous. Notes: svn path=/head/; revision=97372
* Correct a check for NUL.Robert Drehmel2002-05-271-1/+1
| | | | | | | Spotted by: bde Notes: svn path=/head/; revision=97357
* - Move the loop conditional into the "for" header.Robert Drehmel2002-05-271-19/+17
| | | | | | | | | | | - Remove redundant "? :" construct. style(9): - Place a space after return statements. - Compare pointers to NULL. - Do not use ! to compare a character to nul. Notes: svn path=/head/; revision=97345
* Remove spurious period.Dima Dorfman2002-05-271-1/+1
| | | | Notes: svn path=/head/; revision=97330
* Remove extra word.Dima Dorfman2002-05-261-1/+1
| | | | | | | Submitted by: Andre Guibert de Bruet <andy@siliconlandmark.com> Notes: svn path=/head/; revision=97295
* These files are no longer used.Jake Burkholder2002-05-2411-196/+0
| | | | Notes: svn path=/head/; revision=97207
* Generate the normal asm stubs for all sysv system calls. Use these insteadJake Burkholder2002-05-237-33/+18
| | | | | | | | | | of C wrappers for the *sys indirect system calls. The indirect system calls are horribly broken on sparc64. Submitted by: tmm Notes: svn path=/head/; revision=97191
* Avoid wandering over the beginning of the actual bufferRobert Drehmel2002-05-231-1/+1
| | | | | | | | | | if the passed template string contains only 'X' characters. Submitted by: Mark Andrews <marka@isc.org> (patch modified) PR: 38402 Notes: svn path=/head/; revision=97168
* Let this code know about PowerPC.Benno Rice2002-05-211-1/+1
| | | | Notes: svn path=/head/; revision=97044
* Update the EINVAL description again - it turns out that EINVALPeter Pentchev2002-05-171-3/+4
| | | | | | | | | | | | may be returned by Q_SETQUOTA as well as the originally listed Q_GETQUOTA. Noticed by: dd Approved by: silence from dd MFC after: 3 days Notes: svn path=/head/; revision=96817
* _C_LABEL -> CNAMEBenno Rice2002-05-171-14/+14
| | | | | | | Forgotten by: benno Notes: svn path=/head/; revision=96786
* Flesh this out, based on the NetBSD version.Benno Rice2002-05-171-10/+41
| | | | | | | Reviewed by: obrien Notes: svn path=/head/; revision=96775
* Grow RSYSCALL.David E. O'Brien2002-05-151-0/+4
| | | | Notes: svn path=/head/; revision=96695
* Our default syscall.S is identical to what was explicitly being done forDavid E. O'Brien2002-05-154-67/+2
| | | | | | | Alpha and IA-64. So there is no need for special handling. Notes: svn path=/head/; revision=96694
* Blah, fix stupid syntax error.David E. O'Brien2002-05-151-1/+1
| | | | | | | (where's the hat?) Notes: svn path=/head/; revision=96693
* host-network order conversion routines.David E. O'Brien2002-05-155-0/+158
| | | | | | | Luckily we are network order, so there is little to be done. :-) Notes: svn path=/head/; revision=96691
* PowerPC does not have profile support yet.David E. O'Brien2002-05-151-0/+2
| | | | Notes: svn path=/head/; revision=96686
* Beginnings of syscall bits for PowerPC. These are no doubtedly wrong,David E. O'Brien2002-05-151-0/+43
| | | | | | | | | but it gets the build father and is in the right direction. Partially obtained from: NetBSD Notes: svn path=/head/; revision=96685
* Clarify that the value of getc() etc. is an unsigned char convertedTony Finch2002-05-151-0/+4
| | | | | | | | | | | to an int (as per the C standard) i.e. it can be passed straight to isalpha() etc. Approved by: dwmalone (mentor) MFC after: 3 days Notes: svn path=/head/; revision=96675
* Document Q_GETQUOTA returning EINVAL when quotas are not enabledPeter Pentchev2002-05-141-0/+4
| | | | | | | | | | | | on the filesystem. PR: doc/37839 Submitted by: "Michael R. Wayne" <wayne@staff.msen.com> Approved by: silence on -doc MFC after: 3 days Notes: svn path=/head/; revision=96563
* Use the right byte order for unaligned stores. <blush>.Jake Burkholder2002-05-131-1/+1
| | | | Notes: svn path=/head/; revision=96548
* Handle alignment fault fixups in libc rather than in the kernel.Jake Burkholder2002-05-135-2/+120
| | | | Notes: svn path=/head/; revision=96492
* Retire the bogus uses of the disklabel field d_sbsize and begin toPoul-Henning Kamp2002-05-121-3/+1
| | | | | | | | | | initialize it to zero so we don't have to have everbody and their aunt including FFS specific header files. Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=96475
* s/demon/daemon/Dima Dorfman2002-05-121-1/+1
| | | | Notes: svn path=/head/; revision=96432
* Document that <netinet/in.h> can also provide prototypes. ChangeMike Barcroft2002-05-111-2/+6
| | | | | | | wording related to standards conformance. Notes: svn path=/head/; revision=96430
* Add a support macro to convert the 5-bit packed register field ofJake Burkholder2002-05-113-66/+90
| | | | | | | | | | | | | | | | | a floating point instruction into a 6-bit register number for double and quad arguments. Make use of the new INSFPdq_RN macro where apporpriate; this is required for correctly handling the "high" fp registers (>= %f32). Fix a number of bugs related to the handling of the high registers which were caused by using __fpu_[gs]etreg() where __fpu_[gs]etreg64() should be used (the former can only access the low, single-precision, registers). Submitted by: tmm Notes: svn path=/head/; revision=96422
* Avoid casting a different sized integer to a pointer on LP64 systems.Peter Wemm2002-05-101-1/+1
| | | | Notes: svn path=/head/; revision=96350
* Replace /kernel with /boot/kernel/kernel.Josef Karthauser2002-05-091-1/+1
| | | | | | | | PR: docs/37757 Submitted by: Hiten Pandya <hiten@uk.FreeBSD.org> Notes: svn path=/head/; revision=96247
* Some updates to mention accept filters and howMike Silbersack2002-05-082-2/+33
| | | | | | | | | listen queues work in a syncache world. MFC after: 3 days Notes: svn path=/head/; revision=96228
* Fix bug that causes passwd and friends to fail when the user has a '+' inDag-Erling Smørgrav2002-05-071-0/+3
| | | | | | | | | their passwd file for NIS because _PWF_SOURCE is not set. Submitted by: amigus (perforce change 10969) Notes: svn path=/head/; revision=96186
* Use __FBSDIDDavid E. O'Brien2002-05-061-2/+3
| | | | Notes: svn path=/head/; revision=96129
* We typically don't add trailing /'s.David E. O'Brien2002-05-061-1/+1
| | | | Notes: svn path=/head/; revision=96128
* Document the lchflags(2) syscall.Maxime Henrion2002-05-052-1/+14
| | | | Notes: svn path=/head/; revision=96085
* Fix fd leak. Threads people: does the call above to `access' need to beGarrett Wollman2002-05-031-1/+3
| | | | | | | | | | underscored as well? PR: 37717 Submitted by: fred@clift.org (slightly modified by me) Notes: svn path=/head/; revision=95989
* Add an alternate signal trampoline to libc; add a wrapper for the sigtrampJake Burkholder2002-04-294-2/+96
| | | | | | | | | | install sysarch, to be called from _start. This will allow the stack to be mapped non-executable, as required by the sparc v9 abi. Notes: svn path=/head/; revision=95745
* Spell void * as void * rather than caddr_t. This is complicated by theDag-Erling Smørgrav2002-04-2815-117/+122
| | | | | | | | | fact that caddr_t is often misspelled as char *. Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=95658
* Add code to emulate arithmetic, comparison and conversion operationsJake Burkholder2002-04-282-1/+136
| | | | | | | | | | | | | | on long double, which are not implemented in hardware on any UltraSPARC chip that I know of. This just calls into the existing floating point emulator, which is still needed to emulate other floating point operations in certain conditions. Without this gcc has to generate the quad floating point instructions directly, which sometimes causes internal compiler errors. Reviewed by: tmm Notes: svn path=/head/; revision=95604