summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* If file offset is smaller than internal buffer character left count, just dropAndrey A. Chernov2001-08-312-16/+30
| | | | | | | internal buffer and trust offset, not return error. Notes: svn path=/head/; revision=82659
* Initialize _offset to 0 in fopen(), it helps to optimize fseek/ftellAndrey A. Chernov2001-08-311-0/+2
| | | | Notes: svn path=/head/; revision=82654
* Detect fp->_offset overflow on readAndrey A. Chernov2001-08-311-9/+23
| | | | | | | Use errno to catch negative seek with -1 offset Notes: svn path=/head/; revision=82653
* Add manpage for inet_net_ntop(3) and inet_net_pton(3).Ruslan Ermilov2001-08-313-1/+162
| | | | | | | Obtained from: NetBSD Notes: svn path=/head/; revision=82644
* Use ``.Rv -std'' wherever possible.Ruslan Ermilov2001-08-3141-216/+69
| | | | | | | Submitted by: yar Notes: svn path=/head/; revision=82642
* o Use .Fx to refer to FreeBSDRobert Watson2001-08-311-1/+2
| | | | | | | | Submitted by: tmm Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=82617
* o Remove definition of CAP_MAX_BUF_LEN since it is defined inRobert Watson2001-08-311-1/+4
| | | | | | | | | | sys/capability.h now. Submitted by: tmm Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=82616
* Introduce implementations of POSIX.1e non-portable form capabilityRobert Watson2001-08-314-0/+366
| | | | | | | | | | | | | | | | | support functions: cap_subset_np() - Is cap1 a subset of cap2 cap_equal_np() - Is cap1 equal to cap2 o Introduce implementations of POSIX.1e capability support functions: cap_copy_ext() - Externalize capability cap_copy_int() - Internalize capability cap_size() - Determine size required for cap_copy_ext() Submitted by: tmm Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=82614
* Add Xref to make.conf(5).Alexander Langer2001-08-301-1/+2
| | | | Notes: svn path=/head/; revision=82600
* Try to discard some ungetc data in saved internal buffer checks too,Andrey A. Chernov2001-08-302-7/+25
| | | | | | | if offset tends to be negative. Notes: svn path=/head/; revision=82591
* goto dumb; if can't obtain curoff for whence != SEEK_CUR cases, as supposedAndrey A. Chernov2001-08-301-8/+4
| | | | Notes: svn path=/head/; revision=82590
* Add more EOVERFLOW checks.Andrey A. Chernov2001-08-302-31/+94
| | | | | | | | | | | | | | | When file offset tends to be negative due to internal and ungetc buffers additions counted, try to discard some ungetc data first, then return EBADF. Later one can happens if lseek(fileno(fd),...) called f.e. POSIX says that ungetc beyond beginning of the file results are undefined, so we can just discard some of ungetc data in that case. Don't rely on gcc cast when checking for overflow, use OFF_MAX. Cosmetique. Notes: svn path=/head/; revision=82588
* o Remove some GCCisms in src/powerpc/include/endian.h.Mike Barcroft2001-08-301-9/+14
| | | | | | | | | | | | | | | | | | | | | | | o Unify <machine/endian.h>'s across all architectures. o Make bswapXX() functions use a different spelling of u_int16_t and friends to reduce namespace pollution. The bswapXX() functions don't actually exist, but we'll probably import these at some point. Atleast one driver (if_de) depends on bswapXX() for big endian cases. o Deprecate byteorder(3) prototypes from <sys/types.h>, these are now prototyped indirectly in <arpa/inet.h>. o Deprecate in_addr_t and in_port_t typedefs in <sys/types.h>, these are now typedef'd in <arpa/inet.h>. o Change byteorder(3) prototypes to use standards compliant uint32_t (spelled __uint32_t to reduce namespace pollution). o Document new preferred headers and standards compliance. Discussed with: bde PR: 29946 Reviewed by: bmilekic Notes: svn path=/head/; revision=82530
* o src/sys/capability.h provides a number of support macros that are notRobert Watson2001-08-292-0/+5
| | | | | | | | | | | | | documented by POSIX.1e, and understand the opaque capability structures. Introduce support in the userland POSIX.1e library for a _CAPABILITY_NEEDMACROS define to remove these macros from the normal namespace, but allow the libc functions to use them. Submitted by: tmm Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=82511
* Fixed namespace pollution related to `warn' in libc (but not in otherBruce Evans2001-08-295-3/+26
| | | | | | | | | libraries or for other members of the err() family). This fixes world breakage in bc and rcs/* for NOSHARED worlds. Notes: svn path=/head/; revision=82496
* There shuldn't be whitespace before a question mark.Dima Dorfman2001-08-271-1/+1
| | | | Notes: svn path=/head/; revision=82407
* mdoc(7) police: removed whitespace at EOL.Ruslan Ermilov2001-08-271-2/+2
| | | | Notes: svn path=/head/; revision=82402
* mdoc(7) police: markup and spelling fixes.Ruslan Ermilov2001-08-271-15/+25
| | | | Notes: svn path=/head/; revision=82401
* mdoc(7) police: removed whitespace at EOL, sorted SEE ALSO xrefs.Ruslan Ermilov2001-08-271-2/+2
| | | | Notes: svn path=/head/; revision=82400
* Remove grammatical bogon.Maxim Sobolev2001-08-271-1/+0
| | | | Notes: svn path=/head/; revision=82397
* Cosmetique fixes from bdeAndrey A. Chernov2001-08-261-2/+0
| | | | Notes: svn path=/head/; revision=82348
* o s/violate/override/ Capabilities are part of the system policy, notRobert Watson2001-08-251-1/+1
| | | | | | | | | | an exception to it. Submitted by: tmm Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=82321
* Ok, third time is the charm. VM_INHERIT_XXX -> INHERIT_XX (use the sameMatthew Dillon2001-08-241-3/+3
| | | | | | | | semantics as PROT_XXX vs VM_PROT_XXX separating user-space defines from kernel defines). Notes: svn path=/head/; revision=82292
* Oops, minherit() uses VM_INHERIT_XXX as the argument, not MAP_XXX. ProperlyMatthew Dillon2001-08-241-5/+10
| | | | | | | document minherit(). Notes: svn path=/head/; revision=82291
* Update the mmap.2 and minherit.2 manual pages. Add a short explanation andMatthew Dillon2001-08-242-0/+40
| | | | | | | | | | | referal from mmap to minherit for MAP_INHERIT. Fully document the minherit.2 manual page (because frankly, my dear, however you think it currently works is almost certainly wrong!). I may soon re-implement MAP_COPY because I believe we can support it properly now, but I will have to call it something else and that is for a later time. Notes: svn path=/head/; revision=82289
* Fd is macro too, so use \&FdAndrey A. Chernov2001-08-241-1/+1
| | | | Notes: svn path=/head/; revision=82274
* Fildes -> Fd too (started from big letter)Andrey A. Chernov2001-08-241-1/+1
| | | | Notes: svn path=/head/; revision=82273
* ChangeAndrey A. Chernov2001-08-241-1/+3
| | | | | | | | | | start means ... to .Fa l_start means ... Notes: svn path=/head/; revision=82272
* Fix up English from previous 3 revisions.Sheldon Hearn2001-08-241-6/+6
| | | | | | | There is no such argument 'fildes' in the SYNOPSIS. It's called 'fd'. Notes: svn path=/head/; revision=82271
* begin executed --> being executedDima Dorfman2001-08-241-1/+1
| | | | | | | Obtained from: NetBSD Notes: svn path=/head/; revision=82252
* Killed reference to MAP_INHERIT which is not supported in FreeBSD.David Greenman2001-08-231-4/+0
| | | | Notes: svn path=/head/; revision=82240
* Now we implement l_len<0 per POSIX, describe it.Andrey A. Chernov2001-08-231-3/+4
| | | | Notes: svn path=/head/; revision=82216
* Cosmetique: correct English in commentsAndrey A. Chernov2001-08-231-2/+2
| | | | Notes: svn path=/head/; revision=82197
* Rephrasing prev. commit a bit.Andrey A. Chernov2001-08-231-4/+12
| | | | Notes: svn path=/head/; revision=82177
* Describe EOVERFLOW, EOPNOTSUPP and reaction to negative l_lenAndrey A. Chernov2001-08-231-7/+18
| | | | Notes: svn path=/head/; revision=82176
* mdoc(7) police: Fixed broken xrefs.Ruslan Ermilov2001-08-221-1/+1
| | | | Notes: svn path=/head/; revision=82139
* Document new EINVAL, EOVERFLOW cases. Sort ERRORSAndrey A. Chernov2001-08-211-3/+9
| | | | Notes: svn path=/head/; revision=82103
* Use .In, .Ux, and .Rv where appropriate. Also consistently call thisDima Dorfman2001-08-211-18/+16
| | | | | | | | | a "function" instead of a "routine". Submitted by: ru Notes: svn path=/head/; revision=82090
* Expand the ?: construct into an if/else.Dima Dorfman2001-08-211-1/+4
| | | | | | | Submitted by: nectar Notes: svn path=/head/; revision=82089
* The setprogname() function sets the name of the program to be the lastDima Dorfman2001-08-211-1/+3
| | | | | | | component of the progname argument. Notes: svn path=/head/; revision=82087
* Fix style bug.Dima Dorfman2001-08-211-1/+1
| | | | Notes: svn path=/head/; revision=82086
* Fixed warnings.Ruslan Ermilov2001-08-212-1/+4
| | | | Notes: svn path=/head/; revision=82081
* Pass the pointy hat, please.Jacques Vidrine2001-08-211-2/+4
| | | | | | | Submitted by: ru Notes: svn path=/head/; revision=82077
* setprogname() should set __progname to the last component of the givenJacques Vidrine2001-08-211-1/+3
| | | | | | | path. Notes: svn path=/head/; revision=82075
* Mark some functions as __printflike() and/or taking const char * argumentsKris Kennaway2001-08-203-2/+6
| | | | | | | | | instead of char *. MFC after: 2 weeks Notes: svn path=/head/; revision=81975
* Handle snprintf() returning -1Brian Somers2001-08-201-2/+2
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=81969
* Handle snrintf() returning -1.Brian Somers2001-08-201-16/+30
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=81966
* Add about rewind+errno, describe ESPIPE, minor formatting.Andrey A. Chernov2001-08-191-6/+23
| | | | Notes: svn path=/head/; revision=81912
* Implement getpeereid(3), a front-end to the LOCAL_PEERCREDDima Dorfman2001-08-173-2/+191
| | | | | | | | | | socket option for the Unix domain. It's weaker than the socket option (this only returns the uid and gid, while the socket opt. can return the entire group list), and is implemented mostly for compatibility with OpenBSD. Notes: svn path=/head/; revision=81861
* Xref raise(3).Dima Dorfman2001-08-171-0/+1
| | | | Notes: svn path=/head/; revision=81853