Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Back out disabling ungetc() at 0, use different solution: | ache | 2001-09-01 | 5 | -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. | rwatson | 2001-09-01 | 1 | -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. | ache | 2001-08-31 | 1 | -9/+17 |
| | | | | Sort ERRORS section | ||||
* | Add originally missing __sinit() call. | ache | 2001-08-31 | 1 | -0/+4 |
| | |||||
* | Simplify offset underflow checks even more | ache | 2001-08-31 | 1 | -12/+2 |
| | |||||
* | Describe that we disallow ungetc at offset 0 now. | ache | 2001-08-31 | 1 | -1/+4 |
| | |||||
* | Disallow ungetc at offset 0 (to prevent negative offset happens), so simplify | ache | 2001-08-31 | 2 | -22/+15 |
| | | | | checks in ftell. | ||||
* | Drop buffer first, _then_ ask for real position | ache | 2001-08-31 | 1 | -4/+4 |
| | |||||
* | The same big piece of ftell code repeated in 3 places. Simplify things moving | ache | 2001-08-31 | 3 | -94/+30 |
| | | | | | it into one subfunction instead. Try to use real offset in strange cases. | ||||
* | If file offset is smaller than internal buffer character left count, just drop | ache | 2001-08-31 | 2 | -16/+30 |
| | | | | internal buffer and trust offset, not return error. | ||||
* | Initialize _offset to 0 in fopen(), it helps to optimize fseek/ftell | ache | 2001-08-31 | 1 | -0/+2 |
| | |||||
* | Detect fp->_offset overflow on read | ache | 2001-08-31 | 1 | -9/+23 |
| | | | | Use errno to catch negative seek with -1 offset | ||||
* | Add manpage for inet_net_ntop(3) and inet_net_pton(3). | ru | 2001-08-31 | 3 | -1/+162 |
| | | | | Obtained from: NetBSD | ||||
* | Use ``.Rv -std'' wherever possible. | ru | 2001-08-31 | 41 | -216/+69 |
| | | | | Submitted by: yar | ||||
* | o Use .Fx to refer to FreeBSD | rwatson | 2001-08-31 | 1 | -1/+2 |
| | | | | | Submitted by: tmm Obtained from: TrustedBSD Project | ||||
* | o Remove definition of CAP_MAX_BUF_LEN since it is defined in | rwatson | 2001-08-31 | 1 | -1/+4 |
| | | | | | | | sys/capability.h now. Submitted by: tmm Obtained from: TrustedBSD Project | ||||
* | Introduce implementations of POSIX.1e non-portable form capability | rwatson | 2001-08-31 | 4 | -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 | ||||
* | Add Xref to make.conf(5). | alex | 2001-08-30 | 1 | -1/+2 |
| | |||||
* | Try to discard some ungetc data in saved internal buffer checks too, | ache | 2001-08-30 | 2 | -7/+25 |
| | | | | if offset tends to be negative. | ||||
* | goto dumb; if can't obtain curoff for whence != SEEK_CUR cases, as supposed | ache | 2001-08-30 | 1 | -8/+4 |
| | |||||
* | Add more EOVERFLOW checks. | ache | 2001-08-30 | 2 | -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. | ||||
* | o Remove some GCCisms in src/powerpc/include/endian.h. | mike | 2001-08-30 | 1 | -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 | ||||
* | o src/sys/capability.h provides a number of support macros that are not | rwatson | 2001-08-29 | 2 | -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 | ||||
* | Fixed namespace pollution related to `warn' in libc (but not in other | bde | 2001-08-29 | 5 | -3/+26 |
| | | | | | | libraries or for other members of the err() family). This fixes world breakage in bc and rcs/* for NOSHARED worlds. | ||||
* | There shuldn't be whitespace before a question mark. | dd | 2001-08-27 | 1 | -1/+1 |
| | |||||
* | mdoc(7) police: removed whitespace at EOL. | ru | 2001-08-27 | 1 | -2/+2 |
| | |||||
* | mdoc(7) police: markup and spelling fixes. | ru | 2001-08-27 | 1 | -15/+25 |
| | |||||
* | mdoc(7) police: removed whitespace at EOL, sorted SEE ALSO xrefs. | ru | 2001-08-27 | 1 | -2/+2 |
| | |||||
* | Remove grammatical bogon. | sobomax | 2001-08-27 | 1 | -1/+0 |
| | |||||
* | Cosmetique fixes from bde | ache | 2001-08-26 | 1 | -2/+0 |
| | |||||
* | o s/violate/override/ Capabilities are part of the system policy, not | rwatson | 2001-08-25 | 1 | -1/+1 |
| | | | | | | | an exception to it. Submitted by: tmm Obtained from: TrustedBSD Project | ||||
* | Ok, third time is the charm. VM_INHERIT_XXX -> INHERIT_XX (use the same | dillon | 2001-08-24 | 1 | -3/+3 |
| | | | | | semantics as PROT_XXX vs VM_PROT_XXX separating user-space defines from kernel defines). | ||||
* | Oops, minherit() uses VM_INHERIT_XXX as the argument, not MAP_XXX. Properly | dillon | 2001-08-24 | 1 | -5/+10 |
| | | | | document minherit(). | ||||
* | Update the mmap.2 and minherit.2 manual pages. Add a short explanation and | dillon | 2001-08-24 | 2 | -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. | ||||
* | Fd is macro too, so use \&Fd | ache | 2001-08-24 | 1 | -1/+1 |
| | |||||
* | Fildes -> Fd too (started from big letter) | ache | 2001-08-24 | 1 | -1/+1 |
| | |||||
* | Change | ache | 2001-08-24 | 1 | -1/+3 |
| | | | | | | | start means ... to .Fa l_start means ... | ||||
* | Fix up English from previous 3 revisions. | sheldonh | 2001-08-24 | 1 | -6/+6 |
| | | | | There is no such argument 'fildes' in the SYNOPSIS. It's called 'fd'. | ||||
* | begin executed --> being executed | dd | 2001-08-24 | 1 | -1/+1 |
| | | | | Obtained from: NetBSD | ||||
* | Killed reference to MAP_INHERIT which is not supported in FreeBSD. | dg | 2001-08-23 | 1 | -4/+0 |
| | |||||
* | Now we implement l_len<0 per POSIX, describe it. | ache | 2001-08-23 | 1 | -3/+4 |
| | |||||
* | Cosmetique: correct English in comments | ache | 2001-08-23 | 1 | -2/+2 |
| | |||||
* | Rephrasing prev. commit a bit. | ache | 2001-08-23 | 1 | -4/+12 |
| | |||||
* | Describe EOVERFLOW, EOPNOTSUPP and reaction to negative l_len | ache | 2001-08-23 | 1 | -7/+18 |
| | |||||
* | mdoc(7) police: Fixed broken xrefs. | ru | 2001-08-22 | 1 | -1/+1 |
| | |||||
* | Document new EINVAL, EOVERFLOW cases. Sort ERRORS | ache | 2001-08-21 | 1 | -3/+9 |
| | |||||
* | Use .In, .Ux, and .Rv where appropriate. Also consistently call this | dd | 2001-08-21 | 1 | -18/+16 |
| | | | | | | a "function" instead of a "routine". Submitted by: ru | ||||
* | Expand the ?: construct into an if/else. | dd | 2001-08-21 | 1 | -1/+4 |
| | | | | Submitted by: nectar | ||||
* | The setprogname() function sets the name of the program to be the last | dd | 2001-08-21 | 1 | -1/+3 |
| | | | | component of the progname argument. | ||||
* | Fix style bug. | dd | 2001-08-21 | 1 | -1/+1 |
| |