summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* - Put missing prototype for rcmd() in <unistd.h>.Ruslan Ermilov2001-11-092-58/+66
| | | | | | | | | | - Clean up the manpage. - style(9) rcmdsh.c. Committed from: BSDCon/EU 2k+1 terminal room Notes: svn path=/head/; revision=86214
* The algorithm that computes the tables used in the BM search algorithm sometimesDaniel C. Sobral2001-11-091-1/+2
| | | | | | | | | | | | | access an array beyond it's length. This only happens in the last iteration of a loop, and the value fetched is not used then, so the bug is a relatively innocent one. Fix this by not fetching any value on the last iteration of said loop. Submitted by: MKI <mki@mozone.net> MFC after: 1 week Notes: svn path=/head/; revision=86208
* Note that the manpage is incorrect about the vector argument.Peter Wemm2001-11-091-0/+3
| | | | Notes: svn path=/head/; revision=86200
* Fix vendor ID's.David E. O'Brien2001-11-0712-36/+60
| | | | Notes: svn path=/head/; revision=86175
* rcsid[]->__FBSDIDDavid E. O'Brien2001-11-0755-248/+95
| | | | Notes: svn path=/head/; revision=86170
* Don't ignore unknown characters. The previous code treated a line like:Bill Fenner2001-11-072-3/+5
| | | | | | | | | | | | | | | hosts:!!!!!!!!@@@@@$%^&*()()*$(files{}{}|||++!)(dns exactly the same as: hosts: files dns Recover from parse errors by looking for the end of a line; this allows entries without errors to still be parsed even if there is an erroneous entry earlier in the file. Notes: svn path=/head/; revision=86162
* Add a note explaining why CLOCKS_PER_SEC isn't 1000000.David Malone2001-11-051-1/+10
| | | | | | | | | | While I'm here, "of a second" does not belong to CLOCKS_PER_SEC. PR: 30297 Submitted by: Bernd Luevelsmeyer <bdluevel@heitec.net> Notes: svn path=/head/; revision=86107
* - There is no such thing as a socket structure. sockets are integers.John Baldwin2001-11-051-2/+2
| | | | | | | | | | | | | | I'm assuming that the comment was regarding socket address structures, so correct the comment about pre-zero'ing socket structures to recommend pre-zero'ing socket address structures. - Fix some minor grammar nits. - This isn't directly submitted by the PR below but is related to it and was inspired by it. PR: 31704 Notes: svn path=/head/; revision=86087
* Document ENETDOWN.Dima Dorfman2001-11-051-0/+2
| | | | | | | | PR: 31436 Submitted by: Milon Papezik <milon.papezik@oskarmobil.cz> Notes: svn path=/head/; revision=86065
* malloc and calloc do not free memory.Dima Dorfman2001-11-051-2/+3
| | | | | | | | PR: 31365 Submitted by: SUZUKI Koichi <koich@cac.co.jp> Notes: svn path=/head/; revision=86063
* Make strtod.c work on Alpha as well. strtod.c has got locale support,Peter Wemm2001-11-041-11/+8
| | | | | | | | | the netbsd_strtod.c file we have does not. More still should be done here, but this works happily on my Alpha. I have not (yet?) changed the Makefile.inc to use this. Notes: svn path=/head/; revision=86043
* Slightly closer to netbsd_strtod.c:Peter Wemm2001-11-041-11/+12
| | | | | | | | s/IEEE_8087/IEEE_LITTLE_ENDIAN/ s/IEEE_MC68k/IEEE_BIG_ENDIAN/ Notes: svn path=/head/; revision=86033
* Implement fpsetmask() and fpgetmask().Doug Rabson2001-11-033-1/+83
| | | | Notes: svn path=/head/; revision=85974
* phkmalloc->evilchecks++;Poul-Henning Kamp2001-11-021-3/+13
| | | | | | | | | | | If zero bytes are allocated, return pointer to the middle of page-zero (which is protected) so that the program will crash if it dereferences this illgotten pointer. Inspired & Urged by: Theo de Raadt <deraadt@cvs.openbsd.org> Notes: svn path=/head/; revision=85869
* Add notice about early use from malloc.c forbidding malloc use fromPoul-Henning Kamp2001-11-021-0/+5
| | | | | | | this function. Notes: svn path=/head/; revision=85868
* Add a long-overdue nail to the deprecated /dev/urandom interfaceMark Murray2001-10-302-2/+2
| | | | | | | | by asking some things that need unpredictable numbers to read /dev/random instead. Notes: svn path=/head/; revision=85752
* Make the output from assert() look more like the example in the C99Mike Barcroft2001-10-291-2/+2
| | | | | | | | | standard. Requested by: bde Notes: svn path=/head/; revision=85671
* Add time_to_int(), int_to_time(), time_to_long(), long_to_time().Matthew Dillon2001-10-281-0/+40
| | | | Notes: svn path=/head/; revision=85636
* Add routines to convert time_t to/from fixed-bit fields. These routinesMatthew Dillon2001-10-282-1/+62
| | | | | | | | | | | | | | | | | | | | | | serve two purposes: (1) so we can maintain backwards compatibility with protocols (rwhod, dump, etc...) that either assume time_t is 32 bits or assume sizeof(time_t) == sizeof(int), or make other similar assumptions. (2) To tag such routines (by the presence of these calls) for future cleanup/extension work. The 32->64 routine, time32_to_time() (when time_t is 64 bits, that is), is defined specifically to implement temporal locality to properly set the msb bits of a 64 bit time_t quantity, using the 50 year rule. The locality code has not been implemented yet (and doesn't need to be for a while), but that is the intent. This will allow us to maintain backwards protocol compatibility past 2038. These routines are intended to be platform and time_t agnostic. MFC after: 1 week Notes: svn path=/head/; revision=85634
* Only provide function information in compile environments that supportMike Barcroft2001-10-271-5/+10
| | | | | | | | | | the C99 variable __func__ and never for C++. Provide a more meaningful example in the assert(3) manual. Reviewed by: asmodai, bde Notes: svn path=/head/; revision=85607
* Restore K&R prototype. Fix other style bugs.Mike Barcroft2001-10-271-2/+3
| | | | | | | Reviewed by: asmodai, bde Notes: svn path=/head/; revision=85605
* Explicitly use int32_t for on-disk records for pw_change and pw_expire,Peter Wemm2001-10-271-2/+5
| | | | | | | | | since that is what we use now and this insulates us from any time_t tweaks here. We can define a record format that uses 64 bit times if/when we need to. Notes: svn path=/head/; revision=85572
* Remove the internal implementation details of wrapping syscalls,Ruslan Ermilov2001-10-2619-505/+0
| | | | | | | | | which do not match the reality anyway. Approved by: deischen, bde Notes: svn path=/head/; revision=85555
* Compensate for the way that _setjmp aligns the start of jmp_buf.Doug Rabson2001-10-262-5/+23
| | | | Notes: svn path=/head/; revision=85528
* Minimal libc for sparc64.Jake Burkholder2001-10-2619-0/+874
| | | | | | | Reviewed by: obrien Notes: svn path=/head/; revision=85518
* In > LONG_MAX test use sseek return value and not _offset which can be notAndrey A. Chernov2001-10-251-3/+4
| | | | | | | active. Notes: svn path=/head/; revision=85513
* De-orbit DEFS.h - the other arches do not use it, and it got replacedPeter Wemm2001-10-2442-82/+35
| | | | | | | | | with <machine/asm.h>. Reviewed by: bde Notes: svn path=/head/; revision=85437
* Add __FBSDID.Jeroen Ruigrok van der Werven2001-10-241-5/+10
| | | | | | | | | Change __assert() function to print failing function name. #if 0 the sccsid block. This makes us C99 conforming. Notes: svn path=/head/; revision=85422
* Help to recover from bad seek (i.e. negative or too big) happens beyondAndrey A. Chernov2001-10-242-5/+12
| | | | | | | | our pre-check control. Do the same way as refill.c does when it set __SERR, i.e. clear read and ungetc buffers. Clear EOF flag too. Notes: svn path=/head/; revision=85418
* Back out read buffer invalidating via __SMOD.Andrey A. Chernov2001-10-232-7/+2
| | | | | | | | It was correct, but not needed because internal buffer cleared on each seek outside of it. Notes: svn path=/head/; revision=85396
* Change comment explaining another usage of __SMODAndrey A. Chernov2001-10-231-2/+2
| | | | Notes: svn path=/head/; revision=85394
* Disallow fseek() optimization in internal read buffer, if pointer is moved byAndrey A. Chernov2001-10-231-0/+5
| | | | | | | | seek. It means that beginning of read buffer becomes not the same as current file position. Notes: svn path=/head/; revision=85391
* Allow users to specify a command to use as remote command instead ofWarner Losh2001-10-234-6/+257
| | | | | | | | | | | | | using rcmd directly. This has been in my tree for a long time, but we may need to sync with OpenBSD before MFC. Obtained from: openbsd PR: 15830 MFC after: 2 months Notes: svn path=/head/; revision=85342
* Refer to chflags(2) instead of chflags(1) (since we're a section 2Dima Dorfman2001-10-231-3/+2
| | | | | | | | | | manual page), fix capitalization, and remove chflags reference from SEE ALSO since the only time it's referenced is with an .Xr, anyway. Submitted by: bde Notes: svn path=/head/; revision=85338
* Fix WAW dependency. p6 is written in the syscall epilogue.Peter Wemm2001-10-221-0/+1
| | | | Notes: svn path=/head/; revision=85308
* Fix a few more dependancy violations.Doug Rabson2001-10-221-3/+3
| | | | Notes: svn path=/head/; revision=85306
* Implement setjmp, longjmp, sigsetjmp and siglongjmp.Doug Rabson2001-10-203-104/+53
| | | | Notes: svn path=/head/; revision=85229
* Add __divdf3(), __divsf3() and __infinity[].Doug Rabson2001-10-204-1/+296
| | | | | | | Obtained from: Intel (for the divide code) Notes: svn path=/head/; revision=85228
* mdoc(7) police: join OS version with the corresponding macro.Ruslan Ermilov2001-10-191-2/+2
| | | | Notes: svn path=/head/; revision=85162
* Just use RSYSCALL.Ruslan Ermilov2001-10-192-4/+2
| | | | Notes: svn path=/head/; revision=85160
* signanosleep(2) hasn't existed since 1998.Ruslan Ermilov2001-10-192-2/+0
| | | | Notes: svn path=/head/; revision=85159
* s/kernal/kernelAlfred Perlstein2001-10-192-2/+2
| | | | Notes: svn path=/head/; revision=85138
* Use the new SIOCGIFINDEX ioctl to efficiently map a name to an index.Jonathan Lemon2001-10-171-2/+22
| | | | | | | | If the syscall fails, fall back on the old method as a compatability measure. Notes: svn path=/head/; revision=85080
* Fix reference to aio_read, should be aio_writeAlfred Perlstein2001-10-161-1/+1
| | | | Notes: svn path=/head/; revision=85018
* Fixed style bugs in previous commit.Bruce Evans2001-10-151-15/+15
| | | | Notes: svn path=/head/; revision=84962
* link(2) may fail with EPERM if name1 is immutable or append-only.Dima Dorfman2001-10-141-1/+4
| | | | | | | | PR: 31025 Submitted by: Tim Singletary <tsingle@vetinsite.com> Notes: svn path=/head/; revision=84942
* Make this compile on ia64.Doug Rabson2001-10-141-25/+46
| | | | Notes: svn path=/head/; revision=84922
* Add warning about zeroing-out the socket structure before populating it.Matthew Dillon2001-10-131-0/+4
| | | | Notes: svn path=/head/; revision=84888
* Note that strncmp() will not compare characters after a NUL character.Mike Barcroft2001-10-111-1/+8
| | | | | | | | | | Add a missing word. Bump document date. Inspired by: IEEE Std 1003.1-200x (Draft 7) MFC after: 3 days Notes: svn path=/head/; revision=84810
* Clarify that strnstr() will stop searching after in encounters a NULMike Barcroft2001-10-111-5/+8
| | | | | | | character. Bump document date. Add a missing comma. Notes: svn path=/head/; revision=84808