summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys
Commit message (Collapse)AuthorAgeFilesLines
* The NetBSD Foundation has granted permission to remove clause 3 and 4 fromjoel2010-03-023-21/+0
| | | | | | their software. Obtained from: NetBSD
* Mention EISDIR as a possible errno.phk2010-02-171-0/+2
|
* o Add support for COMPAT_IA32.marcel2010-02-111-13/+21
| | | | | | | | | | o Incorporate review comments: - Properly reference and lock the map - Take into account that the VM map can change inbetween requests - Add the fileid and fsid attributes Credits: kib@ Reviewed by: kib@
* Add PT_VM_TIMESTAMP and PT_VM_ENTRY so that the tracing process canmarcel2010-02-091-1/+76
| | | | | | | | obtain the memory map of the traced process. PT_VM_TIMESTAMP can be used to check if the memory map changed since the last time to avoid iterating over all the VM entries unnecesarily. MFC after: 1 month
* You must include fcntl.h (in practice) to be able to do anything usefulrwatson2010-01-291-0/+1
| | | | | | with shm_open(2), as otherwise the O_ flags are undefined. MFC after: 3 days
* Add information about when nmount(2) was introduced.trasz2010-01-261-1/+5
|
* The waitpid(2) function needs neither sys/time.h nor sys/resource.h.pjd2010-01-201-2/+2
|
* Miscellaneous mdoc, spelling and inconsistency fixes.brueffer2010-01-123-22/+30
| | | | | | PR: 142573, 142576 (mostly) Submitted by: brucec MFC after: 1 week
* Add a set of manual pages for pthread[_attr]_[sg]etaffinity(3).delphij2010-01-092-4/+8
| | | | | Reviewed by: davidxu MFC after: 2 weeks
* Further fix grammar.kib2010-01-071-1/+1
| | | | | Suggested by: alc MFC after: 3 days
* Fix a typo and bump date for the previous commit.brueffer2010-01-071-2/+2
|
* Give some information on SF_MNOWAIT flag.kib2010-01-071-2/+10
| | | | MFC after: 3 days
* The devices that supported EVFILT_NETDEV kqueue filters were removed inbrooks2009-12-311-20/+0
| | | | | | | | | | | | r195175. Remove all definitions, documentation, and usage. fifo_misc.c: Remove all kqueue tests as fifo_io.c performs all those that would have remained. Reviewed by: rwatson MFC after: 3 weeks X-MFC note: don't change vlan_link_state() function signature
* Document _FAST and _PRECISE clocks.kib2009-12-291-10/+40
| | | | | Submitted by: Valentin Nechayev <netch segfault kiev ua> MFC after: 3 days
* Document CLOCK_SECOND, add cross-reference from time(3) to clock_gettime(2).kib2009-12-291-3/+6
| | | | | Based on submission by: pluknet gmail com MFC after: 3 days
* cpuset(2): fix a typo and a markup error in the man pagejilles2009-12-151-2/+2
| | | | MFC after: 1 week
* Fix many "function declaration isn't a prototype" warnings in libc.ed2009-12-051-1/+1
| | | | | I've only fixed code that seems to be written by `us'. There are still many warnings like this present in resolv/, rpc/, stdtime/ and yp/.
* Describe what setpgid(2) does when pgid=0. The text has beenkeramida2009-12-011-0/+5
| | | | | | | | | | copied from NetBSD's manpage, and it also matches the behavior described by the Open Group's online copy of setpgid.2 at http://www.opengroup.org/onlinepubs/009695399/functions/setpgid.html Obtained from: NetBSD Submitted by: Petros Barbayiannis <petrosbarbayiannis@yahoo.gr> MFC after: 1 week
* Remove a note about vfork(4) going to be eliminated, it's here to stay.brueffer2009-11-131-8/+0
| | | | | Submitted by: kib MFC after: 1 week
* Improved the manpage description. The committed wordingbrueffer2009-11-131-2/+2
| | | | | | | | | was provided by jhb. PR: 140528 Submitted by: Chris Petrik <chris@officialunix.com> Discussed with: remko, jhb and the submitter MFC after: 1 week
* Add MAP_ANONYMOUS.ed2009-11-061-1/+5
| | | | | | | | Many operating systems also provide MAP_ANONYMOUS. It's not hard to support this ourselves, we'd better add it to make it more likely for applications to work out of the box. Reviewed by: alc (mman.h)
* Attempt to reduce accidental foot-shooting by pointing out thatcperciva2009-11-021-0/+4
| | | | | | | | accept(2)ed sockets do not necessarily inherit O_NONBLOCK from listening sockets on non-FreeBSD platforms. Feet shot: cperciva MFC after: 1 month
* Move pselect(3) man page to section 2.kib2009-10-282-1/+124
| | | | | Noted by: jhb MFC after: 1 month
* Current pselect(3) is implemented in usermode and thus vulnerable tokib2009-10-271-0/+3
| | | | | | | | | | | | | | | | | well-known race condition, which elimination was the reason for the function appearance in first place. If sigmask supplied as argument to pselect() enables a signal, the signal might be delivered before thread called select(2), causing lost wakeup. Reimplement pselect() in kernel, making change of sigmask and sleep atomic. Since signal shall be delivered to the usermode, but sigmask restored, set TDP_OLDMASK and save old mask in td_oldsigmask. The TDP_OLDMASK should be cleared by ast() in case signal was not gelivered during syscall execution. Reviewed by: davidxu Tested by: pho MFC after: 1 month
* Make openat(2) a cancellation point.jilles2009-10-111-0/+2
| | | | | | | This is required by POSIX and matches open(2). Reviewed by: kib, jhb MFC after: 1 month
* In nanosleep(2), note that the calling thread is put to sleep, not thekib2009-10-111-1/+3
| | | | | whole process. Also explicitely name the parameter that specifies sleep interval.
* Document errno codes added in r144530.das2009-10-111-0/+8
|
* Add a new errno, ENOTCAPABLE, to be returned when a process requests anrwatson2009-10-071-0/+3
| | | | | | | | operation on a file descriptor that is not authorized by the descriptor's capability flags. MFC after: 1 month Sponsored by: Google
* Add two new fcntls to enable/disable read-ahead:delphij2009-09-281-1/+17
| | | | | | | | | | | | | | | | | | | | - F_READAHEAD: specify the amount for sequential access. The amount is specified in bytes and is rounded up to nearest block size. - F_RDAHEAD: Darwin compatible version that use 128KB as the sequential access size. A third argument of zero disables the read-ahead behavior. Please note that the read-ahead amount is also constrainted by sysctl variable, vfs.read_max, which may need to be raised in order to better utilize this feature. Thanks Igor Sysoev for proposing the feature and submitting the original version, and kib@ for his valuable comments. Submitted by: Igor Sysoev <is rambler-co ru> Reviewed by: kib@ MFC after: 1 month
* Fix setfib(1) section number.brueffer2009-09-181-2/+2
| | | | | | PR: 133765 Submitted by: Konstantin Zolotukhin <erebus@gorodok.net> MFC after: 3 days
* Make libc.a provide __stack_chk_fail_local weak alias. This iskan2009-09-171-0/+4
| | | | | | needed to satisfy static libraries that are compiled with -fpic and linked into static binary afterwards. Several libraries in gcc are examples of such static libs.
* Add EV_RECEIPT to kevents.sson2009-09-161-0/+9
| | | | | | | | EV_RECEIPT is useful to disambiguating error conditions when multiple events structures are passed to kevent(2). The error code is returned in the data field and EV_ERROR is set. Approved by: rwatson (co-mentor)
* Add the EV_DISPATCH flag to kevents.sson2009-09-161-0/+5
| | | | | | | | When the EV_DISPATCH flag is used the event source will be disabled immediately after the delivery of an event. This is similar to the EV_ONESHOT flag but it doesn't delete the event. Approved by: rwatson (co-mentor)
* Add EVFILT_USER to kevents.sson2009-09-161-1/+39
| | | | | | | | | Add user events support to kernel events which are not associated with any kernel mechanism but are triggered by user level code. This is useful for adding user level events to an event handler that may also be monitoring kernel events. Approved by: rwatson (co-mentor)
* Synchornize description in manual page with strerror() output.pjd2009-09-061-2/+2
|
* Eliminate a stale paragraph from the BUGS section. This "bug" wasalc2009-07-261-8/+1
| | | | | | eliminated in r195693. Approved by: re (kensmith)
* Correct AT_SYMLINK_FOLLOW flag name in linkat(2) man page.jilles2009-07-191-1/+1
| | | | Approved by: re (kib), ed (mentor)
* Second attempt at eliminating .text relocations in shared librarieskan2009-07-142-7/+1
| | | | | | | | | | | | | | compiled with stack protector. Use libssp_nonshared library to pull __stack_chk_fail_local symbol into each library that needs it instead of pulling it from libc. GCC generates local calls to this function which result in absolute relocations put into position-independent code segment, making dynamic loader do extra work every time given shared library is being relocated and making affected text pages non-shareable. Reviewed by: kib Approved by: re (kib)
* - Change mmap() to fail requests with EINVAL that pass a length of 0. Thisjhb2009-07-141-2/+2
| | | | | | | | | | | | behavior is mandated by POSIX. - Do not fail requests that pass a length greater than SSIZE_MAX (such as > 2GB on 32-bit platforms). The 'len' parameter is actually an unsigned 'size_t' so negative values don't really make sense. Submitted by: Alexander Best alexbestms at math.uni-muenster.de Reviewed by: alc Approved by: re (kib) MFC after: 1 week
* Move msg{snd,recv,get,ctl} manual pages from section 3 to 2.trasz2009-07-135-0/+758
| | | | Approved by: re (kib)
* There is an optimization in chmod(1), that makes it not to call chmod(2)trasz2009-07-083-3/+27
| | | | | | | | | | | | | if the new file mode is the same as it was before; however, this optimization must be disabled for filesystems that support NFSv4 ACLs. Chmod uses pathconf(2) to determine whether this is the case - however, pathconf(2) always follows symbolic links, while the 'chmod -h' doesn't. This change adds lpathconf(3) to make it possible to solve that problem in a clean way. Reviewed by: rwatson (earlier version) Approved by: re (kib)
* - Don't suggest opening file for writing in preparation for fexecve(2).pjd2009-07-051-6/+5
| | | | | | - execve(2)/fexecve(2) won't return ETXTBSY if file is open for reading. Approved by: re (kib)
* Make it clear where to look for for protocol-specific socket options.trasz2009-06-301-0/+9
| | | | | Reviewed by: rwatson Approved by: re (kib)
* Make the structure definitions in the man pages match the real code, andkib2009-06-292-16/+2
| | | | | | remove no longer valid caution. Approved by: re (kensmith)
* Back out previous revision until better tested fix is ready.kan2009-06-292-1/+7
| | | | Approved by: re (impliciti, by approving previos check-in)
* Eliminate .text relocations in shared libraries compiled with stack protector.kan2009-06-282-7/+1
| | | | | | | | | | | | Use libssp_nonshared library to pull __stack_chk_fail_local symbol into each library that needs it instead of pulling it from libc. GCC generates local calls to this function which result in absolute relocations put into position-independent code segment, making dynamic loader do extra work everys time given shared library is being relocated and making affected text pages non-shareable. Reviewed by: kib Approved by: re (kensmith)
* Bump manual page timestamps.trasz2009-06-251-1/+1
|
* Add NFSv4 ACL support to libc.trasz2009-06-251-0/+3
| | | | | | | | | | | This adds the following functions to the acl(3) API: acl_add_flag_np, acl_clear_flags_np, acl_create_entry_np, acl_delete_entry_np, acl_delete_flag_np, acl_get_extended_np, acl_get_flag_np, acl_get_flagset_np, acl_set_extended_np, acl_set_flagset_np, acl_to_text_np, acl_is_trivial_np, acl_strip_np, acl_get_brand_np. Most of them are similar to what Darwin does. There are no backward-incompatible changes. Approved by: rwatson@
* Change the ABI of some of the structures used by the SYSV IPC API:jhb2009-06-242-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - The uid/cuid members of struct ipc_perm are now uid_t instead of unsigned short. - The gid/cgid members of struct ipc_perm are now gid_t instead of unsigned short. - The mode member of struct ipc_perm is now mode_t instead of unsigned short (this is merely a style bug). - The rather dubious padding fields for ABI compat with SV/I386 have been removed from struct msqid_ds and struct semid_ds. - The shm_segsz member of struct shmid_ds is now a size_t instead of an int. This removes the need for the shm_bsegsz member in struct shmid_kernel and should allow for complete support of SYSV SHM regions >= 2GB. - The shm_nattch member of struct shmid_ds is now an int instead of a short. - The shm_internal member of struct shmid_ds is now gone. The internal VM object pointer for SHM regions has been moved into struct shmid_kernel. - The existing __semctl(), msgctl(), and shmctl() system call entries are now marked COMPAT7 and new versions of those system calls which support the new ABI are now present. - The new system calls are assigned to the FBSD-1.1 version in libc. The FBSD-1.0 symbols in libc now refer to the old COMPAT7 system calls. - A simplistic framework for tagging system calls with compatibility symbol versions has been added to libc. Version tags are added to system calls by adding an appropriate __sym_compat() entry to src/lib/libc/incldue/compat.h. [1] PR: kern/16195 kern/113218 bin/129855 Reviewed by: arch@, rwatson Discussed with: kan, kib [1]
* Usermode portion of the support for swap allocation accounting:kib2009-06-231-0/+9
| | | | | | | | | | | - update for getrlimit(2) manpage; - support for setting RLIMIT_SWAP in login class; - addition to the limits(1) and sh and csh limit-setting builtins; - tuning(7) documentation on the sysctls controlling overcommit. In collaboration with: pho Reviewed by: alc Approved by: re (kensmith)
OpenPOWER on IntegriCloud