summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Emulate ldq and stq (load/store long double) instructions. GCC has startedJake Burkholder2002-04-2712-106/+252
| | | | | | | | | | | | using these to load long doubles, but they aren't implemented in hardware on (at least) UltraSPARC I and II machines. Emulate popc in the user trap handler as well. Re-arrange slightly to make support functions more accessible. Reviewed by: tmm Notes: svn path=/head/; revision=95587
* #include <string.h> instead of <strings.h>Dag-Erling Smørgrav2002-04-251-1/+1
| | | | Notes: svn path=/head/; revision=95459
* Constify _malloc_options.Poul-Henning Kamp2002-04-242-3/+3
| | | | Notes: svn path=/head/; revision=95377
* Implement several of the c99 updates to scanf(3):Bill Fenner2002-04-202-140/+220
| | | | | | | | | | | | | | | | - New length modifiers: hh, j, ll, t, z. Still to do: - %C, %S, %lc, %ls (wide character support) - %a/%A (exact hex representation of floating-point numbers) Removed old compatability equivalents: - %D for %ld, %O for %lo, %X for %lx, %E and %F for %le & %lf (these were buggy anyway, since they should have represented %Le & %Lf). - %[unknown uppercase char] for %ld, %[unknown lowercase char] for %d Notes: svn path=/head/; revision=95137
* mdoc(7) police: polishing.Ruslan Ermilov2002-04-191-11/+14
| | | | Notes: svn path=/head/; revision=95041
* just merged cosmetic changes from KAME to ease sync between KAME and FreeBSD.SUZUKI Shinsuke2002-04-196-11/+22
| | | | | | | | | | (based on freebsd4-snap-20020128) Reviewed by: ume MFC after: 1 week Notes: svn path=/head/; revision=95023
* Connect the kenv.2 manpage to the build.Maxime Henrion2002-04-181-1/+1
| | | | Notes: svn path=/head/; revision=95004
* Add a manpage for the kenv(2) syscall that Chad David kindlyMaxime Henrion2002-04-181-0/+172
| | | | | | | | | wrote for me. Submitted by: davidc Notes: svn path=/head/; revision=95003
* Support the snapshot file flag, so that tools like 'ls -ol' workJosef Karthauser2002-04-161-0/+3
| | | | | | | | | | as expected on snapshot files. PR: bin/37038 Submitted by: Joshua Goodall <joshua@roughtrade.net> Notes: svn path=/head/; revision=94831
* Add awareness of an IPv6.Hajimu UMEMOTO2002-04-151-7/+20
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=94789
* Quoting log message for OpenBSD rev 1.7:Jacques Vidrine2002-04-151-0/+28
| | | | | | | | | ``Tack on MagniComp (BSD) license since this originally came from rdist.'' Obtained from: OpenBSD Notes: svn path=/head/; revision=94757
* Missed a spot in previous commit.Dag-Erling Smørgrav2002-04-151-1/+3
| | | | | | | Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=94700
* (ab)use unused bits in the pw_fields member of struct passwd to recordDag-Erling Smørgrav2002-04-141-2/+12
| | | | | | | | | the source of the data contained in the structure. Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=94688
* Remove the hard-coded limit of 3 bytes for EUC encodings.Jeroen Ruigrok van der Werven2002-04-141-1/+3
| | | | | | | | | | | | | Satoshi NIIMI-san kindly explained that EUC does not limit the byte length to any arbitrary number. We now set the limit to the maximum octet length of the codeset and it is locale-specific. Submitted by: Yong-Jhen Hong <winard@ms11.url.com.tw> Notes: svn path=/head/; revision=94649
* Correct markup.Dima Dorfman2002-04-141-1/+2
| | | | Notes: svn path=/head/; revision=94632
* Install digittoint.3 (forgotten in rev 1.21)Dag-Erling Smørgrav2002-04-131-1/+1
| | | | | | | | PR: docs/26451 Submitted by: Adrian Filipi-Martin <adrian@ubergeeks.com> Notes: svn path=/head/; revision=94616
* Use the correct macros for F_SETFD/F_GETFD instead of magic numbers.Jeroen Ruigrok van der Werven2002-04-131-4/+12
| | | | | | | | | | | | Reflect that fact in the manual page. PR: 12723 Submitted by: Peter Jeremy <peter.jeremy@alcatel.com.au> Approved by: bde MFC after: 2 weeks Notes: svn path=/head/; revision=94586
* This was recently MFC'd, so it will appear in 4.6.Dima Dorfman2002-04-131-1/+1
| | | | | | | PR: 37018 Notes: svn path=/head/; revision=94571
* Implement _Unwind_FindTableEntry(). This function is part of GCCMarcel Moolenaar2002-04-132-0/+130
| | | | | | | | for some configurations, but not for FreeBSD (yet?). Have one in libc in the mean time. Notes: svn path=/head/; revision=94569
* scanf.3 has an obsolete ``this release''.Tom Rhodes2002-04-101-7/+0
| | | | | | | | PR: 35610 MFC after: 2 days Notes: svn path=/head/; revision=94384
* No longer needed to #ifdef __FBSDID, this is now handled by Makefile.inc1.Ruslan Ermilov2002-04-092-4/+0
| | | | Notes: svn path=/head/; revision=94276
* Rename some fields in struct frame to be compatible with NetBSD/OpenBSD,Jake Burkholder2002-04-091-1/+1
| | | | | | | | | | | | | | and add some compatibility defines. Add fields for ins and locals to struct reg also for the same reason; these aren't filled in yet because getting at those registers sucks and I'd rather not save them in the trapframe just for this. Reorder struct reg to be ABI compatible as well. Add needed include of machine/emul.h. This gets pmdb (poor man's debugger) from OpenBSD mostly compiling but it doesn't work yet :( Notes: svn path=/head/; revision=94254
* Catch up with const'ification of <sys/disklabel.h> and quelch warnings.Poul-Henning Kamp2002-04-081-18/+13
| | | | Notes: svn path=/head/; revision=94181
* Fix style of ether_ntoa().Ruslan Ermilov2002-04-081-3/+3
| | | | Notes: svn path=/head/; revision=94174
* Fix EUC encoding conversion for codeset 3 and 4 to comply to the specification.Jeroen Ruigrok van der Werven2002-04-071-0/+6
| | | | | | | | PR: 28552 Submitted by: NIIMI Satoshi <sa2c@and.or.jp> Notes: svn path=/head/; revision=94122
* Polish previous revision.Ruslan Ermilov2002-04-061-1/+1
| | | | Notes: svn path=/head/; revision=93956
* Fix ether_ntoa() to generate the %02x format people expect, instead of %x,Matthew Dillon2002-04-061-2/+3
| | | | | | | | | for the ethernet address. MFC after: 1 day Notes: svn path=/head/; revision=93929
* htonl() and ntohl() operate on unsinged types, so they must zero-extend,Thomas Moestl2002-04-062-2/+2
| | | | | | | | not sign-extend. Fix a comment in the former to that effect, and change the latter over to do the right conversion. Notes: svn path=/head/; revision=93913
* Initial deorbit burn for the undocumented and unused d_boot[01]Poul-Henning Kamp2002-04-031-5/+0
| | | | | | | | | fields of struct disklabel. Sponsored by: DARPA and NAI Labs. Notes: svn path=/head/; revision=93723
* When _kevent() returns with errno = EINTR and timeout is notHajimu UMEMOTO2002-04-011-4/+3
| | | | | | | | | exceeded, it should be falldown to next_ns. MFC after: 1 week Notes: svn path=/head/; revision=93544
* Do not use __progname directly (except in [gs]etprogname(3)).Mark Murray2002-03-2913-32/+49
| | | | | | | | | Also, make an internal _getprogname() that is used only inside libc. For libc, getprogname(3) is a weak symbol in case a function of the same name is defined in userland. Notes: svn path=/head/; revision=93399