summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* 1) Disallow negative seek as POSIX require for fseek{o} (but not for lseek):Andrey A. Chernov2001-08-153-13/+45
| | | | | | | | | | | | | | | "[EINVAL] ... The resulting file-position indicator would be set to a negative value." Moreover, in real life negative seek in stdio cause EOF indicator cleared and not set again forever even if EOF returned. 2) Catch few possible off_t overflows. Reviewed by: arch discussion Notes: svn path=/head/; revision=81666
* Use the ".Rv" mdoc(7) macro where appropriate.Yaroslav Tykhiy2001-08-146-39/+18
| | | | | | | Reviewed by: ru Notes: svn path=/head/; revision=81629
* Isolate the ERRORS section from the RETURN VALUES one.Yaroslav Tykhiy2001-08-141-5/+3
| | | | | | | Reviewed by: ru Notes: svn path=/head/; revision=81627
* mdoc(7) police: s/BSD/.Bx/ where appropriate.Ruslan Ermilov2001-08-144-9/+21
| | | | Notes: svn path=/head/; revision=81622
* Rip out the old __stdin/out/err stuff. It was completely 100% useless. :-(Peter Wemm2001-08-132-16/+8
| | | | | | | | | | | | | | | | | | | It was foiled because of dynamic copy relocations that caused compile-time space to be reserved in .bss and at run time a blob of data was copied to that space and everything used the .bss version.. The problem is that the space is reserved at compile time, not runtime... So we *still* could not change the size of FILE. Sigh. :-( Replace it with something that does actually work and really does let us make 'FILE' extendable. It also happens to be the same as Linux does in glibc, but has the slight cost of a pointer. Note that this is the same cost that 'fp = fopen(), fprintf(fp, ...); fclose(fp);' has. Fortunately, actual references to stdin/out/err are not all that common since we have implicit stdin/out/err-using versions of functions (printf() vs. fprintf()). Notes: svn path=/head/; revision=81600
* mdoc(7) police: s;BSD/OS;.Bsx; where appropriate.Ruslan Ermilov2001-08-132-2/+3
| | | | Notes: svn path=/head/; revision=81591
* mdoc(7) police: s/NetBSD/.Nx/ where appropriate.Ruslan Ermilov2001-08-132-2/+3
| | | | Notes: svn path=/head/; revision=81590
* mdoc(7) police: s/OpenBSD/.Ox/ where appropriate.Ruslan Ermilov2001-08-131-1/+2
| | | | Notes: svn path=/head/; revision=81589
* Spell "FreeBSD" with "F" and "BSD" in uppercase.Ruslan Ermilov2001-08-138-8/+8
| | | | Notes: svn path=/head/; revision=81588
* Removed duplicate VCS ID tags, as per style(9).Ruslan Ermilov2001-08-1385-181/+30
| | | | Notes: svn path=/head/; revision=81586
* Cross-reference io(4).Ian Dowse2001-08-121-0/+2
| | | | Notes: svn path=/head/; revision=81565
* Fill _res.sort_list with harmless entry. sortlist for IPv6/IPv4Hajimu UMEMOTO2001-08-111-0/+3
| | | | | | | | | | | | is stored in _res_ext.sort_list, and sortlist for IPv4 is stored in _res.sort_list for backward compatibility. However, both sort_list's are maintaind by just one index _res.nsort. So, when IPv6 address is specified to sortlist, empty entry was created in _res.sort_list. It broke sortlist facility of gethostbyname(). Discussed on users@jp.ipv6.org. Notes: svn path=/head/; revision=81530
* Use .Fn, .Fa, and .Dv where appropriate.Dima Dorfman2001-08-101-2/+6
| | | | Notes: svn path=/head/; revision=81478
* mdoc(7) police: join split punctuation to macro calls.Ruslan Ermilov2001-08-107-13/+13
| | | | Notes: svn path=/head/; revision=81462
* mdoc(7) police: fixed the "new sentence" bogons.Ruslan Ermilov2001-08-101-1/+1
| | | | Notes: svn path=/head/; revision=81458
* mdoc(7) police: protect trailing full stops of abbreviationsRuslan Ermilov2001-08-106-6/+6
| | | | | | | with a trailing zero-width space: `e.g.\&'. Notes: svn path=/head/; revision=81449
* Fixed style bugs (dot `.' at the end of error and warning messages).Ruslan Ermilov2001-08-101-22/+22
| | | | | | | Noticed by: bde Notes: svn path=/head/; revision=81447
* Markup nits: use diagnostic type lists for error and warning messages.Ruslan Ermilov2001-08-101-21/+17
| | | | | | | | | | | Backout previous revision. We should not expand plain text xrefs if they appear in the literal text, e.g. in the error or warning message of the library function. (Submitted by: bde) Moved "out of memory" from warning to errors section. Notes: svn path=/head/; revision=81446
* mdoc(7) police: add xref to intro(2).Ruslan Ermilov2001-08-101-0/+1
| | | | Notes: svn path=/head/; revision=81417
* o Remove some misleading and incomplete information about searchMike Barcroft2001-08-091-11/+8
| | | | | | | | | | | permissions. o Add a reference to intro(2) where it is properly documented. Reviewed by: bde MFC after: 3 days Notes: svn path=/head/; revision=81362
* o Various mdoc fixes.Mike Barcroft2001-08-091-10/+50
| | | | | | | | | | | | | o Replace strncpy examples with less confusing ones from OpenBSD. These examples give more detail and also suggest using strlcpy(3). Reviewed by: des, ru, sheldonh Obtained from: OpenBSD MFC after: 3 days Notes: svn path=/head/; revision=81361
* Fix xrefs.Maxim Sobolev2001-08-091-1/+1
| | | | | | | | | | | times.3: gettimeofday(3) --> gettimeofday(2) rc.conf.5: isndn(8) --> isdnd(8) idsnd(8) --> isdnd(8) MFC after: 2 weeks Notes: svn path=/head/; revision=81359
* Use the ``.Rv -std'' mdoc(7) macro in appropriate cases.Yaroslav Tykhiy2001-08-0958-243/+58
| | | | | | | Reviewed by: ru Notes: svn path=/head/; revision=81352
* typo: patched->matchedMike Heffner2001-08-091-1/+1
| | | | Notes: svn path=/head/; revision=81326
* mdoc(7) police: expand plain text xrefs.Ruslan Ermilov2001-08-0810-10/+25
| | | | Notes: svn path=/head/; revision=81285
* Urge the reader to start using getaddrinfo(3) and getnameinfo(3)Ruslan Ermilov2001-08-081-0/+14
| | | | | | | | | | protocol-independant functions that don't use static memory area. Suggested by: nik Liked by: ume, brian Notes: svn path=/head/; revision=81283
* mdoc(7) police: remove whitespace at EOL.Ruslan Ermilov2001-08-081-1/+1
| | | | Notes: svn path=/head/; revision=81281
* mdoc(7) police: markup nits.Ruslan Ermilov2001-08-081-16/+11
| | | | Notes: svn path=/head/; revision=81276
* Update ptrace(2) re: PT_READ_U and PT_WRITE_UPeter Wemm2001-08-081-45/+0
| | | | Notes: svn path=/head/; revision=81266
* mdoc(7) police:Ruslan Ermilov2001-08-0717-88/+66
| | | | | | | | | | Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text. Not only this slows down the mdoc(7) processing significantly, but it also has an undesired (in this case) effect of disabling hyphenation within the entire enclosed block. Notes: svn path=/head/; revision=81251
* mdoc(7) police: sort xrefs.Ruslan Ermilov2001-08-071-1/+1
| | | | Notes: svn path=/head/; revision=81235
* mdoc(7) police: markup nits.Ruslan Ermilov2001-08-071-1/+2
| | | | Notes: svn path=/head/; revision=81233
* varargs -> stdargDima Dorfman2001-08-051-2/+2
| | | | Notes: svn path=/head/; revision=81149
* Don't clobber the default for CFLAGS.Bruce Evans2001-08-031-1/+2
| | | | Notes: svn path=/head/; revision=81118
* In getclnthandle(), if the address is found in the cache we needIan Dowse2001-08-021-2/+5
| | | | | | | | | | | | | to strdup() the address string before returning it via *targaddr because the caller will free the string. Change the comment at the top of getclnthandle() to clarify that the caller is responsible for freeing *targaddr. Noticed by: sobomax Notes: svn path=/head/; revision=81069
* mdoc(7) police: remove hard sentence breaks.Dima Dorfman2001-08-011-4/+4
| | | | Notes: svn path=/head/; revision=80904
* MFS: in HISTORY section, fix release number of first appearanceSheldon Hearn2001-08-014-4/+4
| | | | Notes: svn path=/head/; revision=80898
* Fix broken Fn calls; Fn doesn't take a manual page section as anSheldon Hearn2001-08-011-5/+5
| | | | | | | | | argument. Terminate the last sentence with a period. Notes: svn path=/head/; revision=80895
* Only pull in the MD files if they exist. This allows for progressiveMark Peek2001-07-315-0/+10
| | | | | | | implementation and compilation when bringing up a new architecture. Notes: svn path=/head/; revision=80743
* Mention the sa_handler and sa_sigaction #defines in the synopsis.Brian Somers2001-07-311-3/+7
| | | | | | | | | Mark sa_sigaction consistently. MFC after: 1 week Notes: svn path=/head/; revision=80723
* FreeBSD now also defines EIDRM and uses it.Jeroen Ruigrok van der Werven2001-07-301-8/+0
| | | | | | | | | Inspired by PR: 22470 Which was submitted by: Bjorn Tornqvist <bjorn@west.se> MFC after: 1 week Notes: svn path=/head/; revision=80671
* Remove bogus BUGS section.Jeroen Ruigrok van der Werven2001-07-301-6/+1
| | | | | | | | | | | FreeBSD _does_ define ENOMSG as per SVID when IPC_NOWAIT is set. PR: 22470 Submitted by: Bjorn Tornqvist <bjorn@west.se> MFC after: 1 week Notes: svn path=/head/; revision=80669
* Correct the old length argument passed to sysctlbyname to be a pointerThomas Moestl2001-07-291-1/+2
| | | | | | | | | to a size_t (not to an int). MFC after: 2 days Notes: svn path=/head/; revision=80552
* Avoid any chance of being misunderstood as having libelled developersSheldon Hearn2001-07-291-1/+1
| | | | | | | | | | | or developers' vendors without compromising the importance of warning against bad practice. Reported by: mjacob MFC after: 1 week Notes: svn path=/head/; revision=80541
* Don't xref mt(1) just because it mentions ioctl.Dima Dorfman2001-07-291-1/+0
| | | | | | | Submitted by: Philipp Mergenthaler <philipp.mergenthaler@stud.uni-karlsruhe.de> Notes: svn path=/head/; revision=80533
* Don't capitalize variable names.Dima Dorfman2001-07-291-3/+3
| | | | Notes: svn path=/head/; revision=80532
* ioctl(2) can return EFAULT from copyin.Dima Dorfman2001-07-291-0/+3
| | | | | | | | PR: 29285 Submitted by: Philipp Mergenthaler <philipp.mergenthaler@stud.uni-karlsruhe.de> Notes: svn path=/head/; revision=80531
* Rename the GLOB_MAXPATH flag of glob(3) to GLOB_LIMIT to be compatibleMike Heffner2001-07-292-21/+24
| | | | | | | | | | | | | with NetBSD and OpenBSD. glob(3) will now return GLOB_NOSPACE with errno set to 0 instead of GLOB_LIMIT when we match more than `gl_matchc' patterns. GLOB_MAXPATH has been left as an alias of GLOB_LIMIT to maintain backwards compatibility. Reviewed by: sheldonh, assar Obtained from: NetBSD/OpenBSD Notes: svn path=/head/; revision=80525
* Add cross-references for the new kldsym(2) man page.Chris Costello2001-07-279-0/+9
| | | | Notes: svn path=/head/; revision=80433
* Add a new kldsym(2) man page.Chris Costello2001-07-272-2/+124
| | | | Notes: svn path=/head/; revision=80432