summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Simplify offset underflow checks even moreache2001-08-311-12/+2
|
* Describe that we disallow ungetc at offset 0 now.ache2001-08-311-1/+4
|
* Disallow ungetc at offset 0 (to prevent negative offset happens), so simplifyache2001-08-312-22/+15
| | | | checks in ftell.
* Drop buffer first, _then_ ask for real positionache2001-08-311-4/+4
|
* The same big piece of ftell code repeated in 3 places. Simplify things movingache2001-08-313-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 dropache2001-08-312-16/+30
| | | | internal buffer and trust offset, not return error.
* Initialize _offset to 0 in fopen(), it helps to optimize fseek/ftellache2001-08-311-0/+2
|
* Detect fp->_offset overflow on readache2001-08-311-9/+23
| | | | Use errno to catch negative seek with -1 offset
* Add manpage for inet_net_ntop(3) and inet_net_pton(3).ru2001-08-313-1/+162
| | | | Obtained from: NetBSD
* Use ``.Rv -std'' wherever possible.ru2001-08-3143-232/+71
| | | | Submitted by: yar
* o Use .Fx to refer to FreeBSDrwatson2001-08-311-1/+2
| | | | | Submitted by: tmm Obtained from: TrustedBSD Project
* o Remove definition of CAP_MAX_BUF_LEN since it is defined inrwatson2001-08-311-1/+4
| | | | | | | sys/capability.h now. Submitted by: tmm Obtained from: TrustedBSD Project
* Introduce implementations of POSIX.1e non-portable form capabilityrwatson2001-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
* Add Xref to make.conf(5).alex2001-08-301-1/+2
|
* Try to discard some ungetc data in saved internal buffer checks too,ache2001-08-302-7/+25
| | | | if offset tends to be negative.
* goto dumb; if can't obtain curoff for whence != SEEK_CUR cases, as supposedache2001-08-301-8/+4
|
* Add more EOVERFLOW checks.ache2001-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.
* o Remove some GCCisms in src/powerpc/include/endian.h.mike2001-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
* Fix a bug in lseek which caused the loader to fail on some gzippedjdp2001-08-291-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | kernels. The error message was "elf_loadexec: cannot seek". Libstand maintains a read-ahead buffer for each open file, so that it can read in chunks of 512 bytes for greater efficiency. When the loader tries to lseek forward in a file by a small amount, it sometimes happens that the target file offset is already in the read-ahead buffer. But the lseek code simply discarded the contents of that buffer and performed a seek directly on the underlying file. This resulted in an attempt to seek backwards in the file, since some of the data has already been read into the read-ahead buffer. Gzipped data streams cannot seek backwards, so an error was returned. This commit adds code which checks to see if the desired file offset is already in the read-ahead buffer. If it is, the code simply adjusts the buffer pointer and length, thereby avoiding a reverse seek on the gzipped data stream. I incorporated a suggestion from Matt Dillon which saved a little bit of code in this fix. Reviewed by: dillon, gallatin, jhb
* o src/sys/capability.h provides a number of support macros that are notrwatson2001-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
* Fixed namespace pollution related to `warn' in libc (but not in otherbde2001-08-295-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.dd2001-08-271-1/+1
|
* mdoc(7) police: removed whitespace at EOL.ru2001-08-271-2/+2
|
* mdoc(7) police: markup and spelling fixes.ru2001-08-271-15/+25
|
* mdoc(7) police: removed whitespace at EOL, sorted SEE ALSO xrefs.ru2001-08-271-2/+2
|
* mdoc(7) police: markup nits.ru2001-08-271-1/+2
|
* Remove grammatical bogon.sobomax2001-08-271-1/+0
|
* Introduce a "noroot_ok" option to make this module ignore authenticationsmarkm2001-08-262-5/+33
| | | | to a non-superuser if required.
* Introduce better logging, error reporting and use of login_cap data.markm2001-08-262-6/+21
|
* Add extra logging detail. This needs a more general solution.markm2001-08-261-0/+4
|
* Adjust dependancies and build order. PAM needs RPC.markm2001-08-261-2/+3
|
* Big module makeover; improve logging, standardise variable names,markm2001-08-264-22/+567
| | | | | introduce ability to change passwords for both "usual" Unix methods and NIS.
* Cosmetique fixes from bdeache2001-08-261-2/+0
|
* o s/violate/override/ Capabilities are part of the system policy, notrwatson2001-08-251-1/+1
| | | | | | | an exception to it. Submitted by: tmm Obtained from: TrustedBSD Project
* Rename the DIAGNOSTICS section to RETURN VALUES and describe thebrian2001-08-241-4/+10
| | | | | | | | return values a little more. Specifically, mention that a return of 0 from NgRecvData() and NgRecvMsg() means the socket has been closed. Suggested by: jkh
* Ok, third time is the charm. VM_INHERIT_XXX -> INHERIT_XX (use the samedillon2001-08-241-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. Properlydillon2001-08-241-5/+10
| | | | document minherit().
* Update the mmap.2 and minherit.2 manual pages. Add a short explanation anddillon2001-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.
* Explain what the return value from NgRecvMsg() and NgRecvData() means,brian2001-08-241-0/+6
| | | | specifically that 0 means the socket has been closed.
* Fd is macro too, so use \&Fdache2001-08-241-1/+1
|
* Fildes -> Fd too (started from big letter)ache2001-08-241-1/+1
|
* Changeache2001-08-241-1/+3
| | | | | | | start means ... to .Fa l_start means ...
* Fix up English from previous 3 revisions.sheldonh2001-08-241-6/+6
| | | | There is no such argument 'fildes' in the SYNOPSIS. It's called 'fd'.
* Make ps -M corefile work again. This has been broken for quite some time.peter2001-08-241-6/+11
| | | | kvm_proclist() was aborting when it saw the ithreads with no pgrp.
* Dynamically adjust to the value of KERNBASE in a crashdump, withpeter2001-08-242-4/+24
| | | | a fallback for old kernels without the "kernbase" symbol.
* Remove a duplicate "that".ken2001-08-241-1/+1
| | | | Submitted by: "Sergey A. Osokin" <osa@freebsd.org.ru>
OpenPOWER on IntegriCloud