summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* 1) If __SAPP stream is not seekable, remove __SAPP flag on first call insteadache2001-09-071-3/+10
| | | | | | | | | of repeating unsuccessful lseek call on each write (original stdio bug). 2) Save errno accross _sseek call in _swrite to not touch it in case write success (original stdio bug). 3) Add _sseek error checking back, but only for __SOPT mode now.
* Move to using .In instead of .Fd #include <> for include mark-up.asmodai2001-09-0727-39/+39
| | | | Inspired by comment from: dd
* reconnect strfmon.c to build listphantom2001-09-071-1/+1
|
* Fix some mdoc nits caused by my knowledge not being too up-to-date onasmodai2001-09-071-9/+12
| | | | | | mdocNG. Submitted by: dd
* Port to ia64, taking into account the fact that pagesizes may be variable.dfr2001-09-071-0/+11
|
* Add strfmon.3 to the fray.asmodai2001-09-072-1/+89
| | | | | | | | This is a first cut, but enough to help people interested in using it further than before. More text coming to illustrate use and provide more details. Based on standards' text.
* For now just back out seek error checking in __SAPP case, it cause problemsache2001-09-071-2/+2
| | | | | | with non-seekable streams. Now here is what here was originally, but it is ugly, producing unneded seek syscall on each non-seekable stream write. I'll think about proper solution later.
* Fix all the ambiguous or erroneous statements of the brk(2)yar2001-09-061-55/+87
| | | | | | | | manpage by taking its text from NetBSD and editing it further. This also improves the page's mdoc(7) markup style. Reviewed by: ru Obtained from: NetBSD
* correctly wrap macros with { }phantom2001-09-061-2/+3
|
* Add zopen(), a stdio wrapper for gzipped data streams.kris2001-09-062-1/+41
| | | | Obtained from: NetBSD
* strfmon(3) is not ready to go live.obrien2001-09-061-1/+1
|
* Add strfmon(3) implementation. It still contains few XXX's because I lostphantom2001-09-052-3/+618
| | | | | | | | | my last version of this work due to HDD crash, but this version cleanly passed all POSIX and SuSv2 tests. I am working on testing scripts which should test this implementation against all locales and surely more fixes will come soon. Reviewed by: ache, silence at -audit & -developers
* mdoc(7) police: markup and minor content fixes.ru2001-09-052-73/+61
| | | | | | | | | | | | o Removed whitespace at EOL o Removed hard sentence breaks o Added cap_size() to the NAME section o Normalized .Nd descriptions o Fixed the abuses of .Nm and .Va o Fixed some DESCRIPTION texts o Fixed the RETURN VALUES and ERRORS texts to look more traditional Reviewed by: tmm
* Use fseeko() instead of fseek() (u->offset is already an off_t), and markdes2001-09-051-4/+4
| | | | some function arguments as unused.
* Add Thomas Moestl and Chris Faulhaber to the author list for POSIX.1erwatson2001-09-051-0/+2
| | | | | | support. Obtained from: TrustedBSD Project
* Portability fix: use unsigned cast to guaranteed positive part of expressionache2001-09-042-2/+2
| | | | | in case {L}LONG_MAX > abs({L}LONG_MIN). Non-functional change - we don't have any such platforms.
* Remove rcsids and unneded includeache2001-09-046-34/+12
|
* 'acc' is not initialized in one hypotetical case, fix itache2001-09-044-8/+8
|
* 1) repair the return value in the PAM_RETURN() macro (Side effects!!).markm2001-09-041-2/+3
| | | | | | | 2) canonicalise the options use in pam_options(). Submitted by: Gunnar Kreitz <gunnark@chello.se> PR: 30250
* Locale *is* used in strto*l*(), at least for isspace(), so removeache2001-09-048-58/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'locale not used' statement from comments and BUGS section of manpage. strtol(): fix non-portable 'cutoff' calculation using the same method as in strtoll(). Cleanup 'cutoff' calculation, remove unneded casts. Misc. cleanup to make all functions looks the same. Implement EINVAL reaction per POSIX, document it in manpage, corresponding POSIX example quotes here: ------------------------------------------------ If the subject sequence is empty or does not have the expected form, no conversion is performed; the value of str is stored in the object pointed to by endptr, provided that endptr is not a null pointer. If no conversion could be performed, 0 shall be returned and errno may be set to [EINVAL]. [EINVAL] The value of base is not supported. Since 0, {LONG_MIN} or {LLONG_MIN}, and {LONG_MAX} or {LLONG_MAX} are returned on error and are also valid returns on success, an application wishing to check for error situations should set errno to 0, then call strtol( ) or strtoll ( ), then check errno. -----------------------------------------------------
* Implement _setjmp()/_longjmp().dfr2001-09-041-125/+345
| | | | Obtained from: Intel's EFI toolkit
* This does not describe sched_{get,set}scheduler.dd2001-09-031-2/+3
| | | | | PR: 26001 Submitted by: OHSAWA Chitoshi <ohsawa@catv1.ccn-net.ne.jp>
* Don't capitalize jail(2) in the middle of a sentence.dd2001-09-031-1/+1
| | | | | PR: 25876 Submitted by: Koizumi Satoru <koizumi@cms.phys.s.u-tokyo.ac.jp>
* Remove bogus implementation of _setjmp/_longjmpdfr2001-09-031-140/+0
|
* PT_STEP in ptrace(2) man page is described as 'addr and data fieldsmurray2001-09-031-3/+3
| | | | | | | | | are not used'. This is incorrect, as addr must be passed (caddr_t)1 to do anything useful. The source for gdb and a short test program will confirm that this man page was in error. PR: docs/27758 Submitted by: Jiangyi Liu <jyliu@163.net>
* Check for malloc failure in a couple of caseskris2001-09-032-0/+8
| | | | MFC after: 2 weeks
* When __SOPT is cleared, clear __SOFF too.ache2001-09-031-1/+1
| | | | NOTE: original stdio bug.
* Re-arrange my funopen(3) fix to minimize differences with original stdio code,ache2001-09-036-83/+91
| | | | | | no functional changes. Add fp->_offset optimization in _SAPP+_SOPT case
* o Sync up prototypes for cap_size() and cap_copy_ext() withrwatson2001-09-021-2/+2
| | | | | | | | sys/capability.h--this compiled fine on i386 where (int) and (ssize_t) are the same, but broke on Alpha where they differ. Submitted by: Mike Barcroft <mike@FreeBSD.org> Obtained from: TrustedBSD Project
* Internal seeks are overoptimized. They should remember fp->_offset only forache2001-09-022-3/+1
| | | | | | | plain regular files, i.e. files with __SOPT flag set. Fix it, so ftell(stdout) always returns the same as lseek(1, 0, 1) now. NOTE: this bug was in original stdio code
* Fix bug in off_t overflow checking: if fp->_offset overflows, just removeache2001-09-021-5/+3
| | | | | __SOFF flag (i.e. we don't have offset) instead of returning EOVERFLOW. It allows again continious reading from non-stop stream.
* Remove MLINKS seek.2 to lseek.2, we don't have seek.2 syscallache2001-09-021-1/+0
|
* Typo seek(2) -> lseek(2)ache2001-09-021-1/+1
|
* Move all stdio internal flags processing and setting out of __sread(),ache2001-09-029-55/+89
| | | | | | | | | | __swrite() and __sseek() to higher level. According to funopen(3) they all are just wrappers to something like standard read(2), write(2) and lseek(2), i.e. must not touch stdio internals because they are replaceable with any other functions knows nothing about stdio internals. See example of funopen(3) usage in sendmail sources f.e. NOTE: this is original stdio bug, not result of my range checkin added.
* Another punctuation fix (missing comma ending preposition).chris2001-09-011-1/+1
|
* o Mention the fact that specifying a fileid of 0 searches all loadedchris2001-09-011-1/+4
| | | | | modules. o Properly terminate a preposition.
* Save errno before function call and restore it on success (because manyache2001-09-012-2/+11
| | | | | | internal functions there may fail and set (i.e. overwrite) errno in normal (not error) situation). In original variant errno testing after call (as POSIX suggest) is wrong when errno overwrite happens.
* Remove even more unneded checks, original code can't overflows in that placeache2001-09-011-5/+1
|
* Remove two checks unneeded now (can't happens)ache2001-09-011-4/+0
|
* Make fseek(... SEEK_CUR) fails if current file-position is unspecified.ache2001-09-012-8/+8
|
* Note that prev. commit addition is for ftell/ftelloache2001-09-011-2/+6
|
* Describe ESPIPE as result of unspecified file-position indicator value.ache2001-09-011-2/+7
| | | | Add more to SEE ALSO section.
* Describe file-position behaviour from POSIXache2001-09-011-0/+5
|
* Strict in the POSIX sence, if file position is unspecified after ungetc() atache2001-09-011-6/+4
| | | | | | | 0, return that we can't specify it, i.e. error with ESPIPE. (hint from: "Peter S. Housel" <housel@acm.org>) Back out sinit() addition, not needed after various code simplifications.
* If lseek to wrong value sucessfully happens despite all pre-checks, set __SERRache2001-09-012-1/+4
| | | | to indicate that stream becomes inconsistent.
* If position is underflowed, don't try to hide that fact by recovery, justache2001-09-011-17/+7
| | | | return EIO and set __SERR to mark stream as inconsistent.
* Back out disabling ungetc() at 0, use different solution:ache2001-09-015-34/+48
| | | | | keep negative offset internally, but return 0 externally in ftell*() I.e. use 0 now as 'unspecified value' per POSIX ungetc() description.
* o Attach cap_cmp.c and cap_copy.c to the build.rwatson2001-09-011-1/+6
| | | | | | | | o Attach cap_copy_ext.3 and cap_copy_int.3 to the install, and link cap_size.3 to cap_copy_ext.3. Submitted by: tmm Obtained from: TrustedBSD Project
* Describe EOVERFLOW I implement per POSIX.ache2001-08-311-9/+17
| | | | Sort ERRORS section
* Add originally missing __sinit() call.ache2001-08-311-0/+4
|
OpenPOWER on IntegriCloud