summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys
Commit message (Collapse)AuthorAgeFilesLines
* fcntl(2): Fix typos in name of constant "F_DUP2FD_CLOEXEC".jilles2012-11-011-2/+2
| | | | MFC after: 1 week
* Update the kill(2) and killpg(2) man pages to the modern permissioneadler2012-10-221-8/+15
| | | | | | | | | checks. Also indicate killpg(2) is POSIX compliant. Reviewed by: jilles Reviewed by: wblock Approved by: cperciva MFC after: 3 days
* Grammar fixes to r241781.andre2012-10-201-1/+1
| | | | Submitted by: alc
* Hide the unfortunate named sysctl kern.ipc.somaxconn from sysctl -aandre2012-10-201-4/+18
| | | | | | | | | | | output and replace it with a new visible sysctl kern.ipc.acceptqueue of the same functionality. It specifies the maximum length of the accept queue on a listen socket. The old kern.ipc.somaxconn remains available for reading and writing for compatibility reasons so that existing programs, scripts and configurations continue to work. There no plans to ever remove the orginal and now hidden kern.ipc.somaxconn.
* sigaction(2),sigwait(2),sigwaitinfo(2): Remove [EFAULT] error condition.jilles2012-09-273-16/+3
| | | | | | | | | | | | | | Passing an invalid pointer results in undefined behaviour. The wrappers in libthr access some of the data pointed to by the arguments in userland, so that an invalid pointer will cause a signal and not an [EFAULT] error return. Furthermore, if the [EFAULT] error occurs when the kernel is writing, it is not a proper error in the sense that the call still commits (changing the signal disposition or accepting the signal). MFC after: 1 week
* Remove the restrict qualifier to match function prototype.kevlo2012-09-201-1/+1
|
* Describe in detail required conditions for receiving the SCM_CREDSglebius2012-09-121-4/+18
| | | | | control message and suggest to use LOCAL_CREDS setsockopt() for reliability.
* When WIFCONTINUED was added, the number of "first" macros grew fromjhb2012-09-051-1/+1
| | | | | | three to four. MFC after: 1 week
* Add missing .Pp macro.zeising2012-08-211-0/+1
| | | | | | PR: docs/170380 Submitted by: Garrett Cooper <yanegomi@gmail.com> Approved by: joel (mentor)
* Implement syscall clock_getcpuclockid2, so we can get a clock iddavidxu2012-08-171-0/+3
| | | | | | | | for process, thread or others we want to support. Use the syscall to implement POSIX API clock_getcpuclock and pthread_getcpuclockid. PR: 168417
* Document F_DUP2FD_CLOEXEC.kib2012-07-271-4/+14
| | | | MFC after: 1 week
* (Incomplete) fixes for symbols visibility issues and style in fcntl.h.kib2012-07-211-1/+1
| | | | | | | | | | | | | | | | | Append '__' prefix to the tag of struct oflock, and put it under BSD namespace. Structure is needed both by libc and kernel, thus cannot be hidden under #ifdef _KERNEL. Move a set of non-standard F_* and O_* constants into BSD namespace. SUSv4 explicitely allows implemenation to pollute F_* and O_* names after fcntl.h is included, but it costs us nothing to adhere to the specification if exact POSIX compliance level is requested by user code. Change some spaces after #define to tabs. Noted by and discussed with: bde MFC after: 1 week
* Document F_DUPFD_CLOEXEC. Also provide some wording changes forkib2012-07-191-4/+15
| | | | | | F_DUPFD to make it less confusing, at least for me. MFC after: 1 week
* Move the ffclock symbols from FBSD_1.2 to FBSD_1.3 where they should have beenlstewart2012-07-101-3/+3
| | | | | | | | put initially. They were added to head during development of 10-CURRENT, not 9-CURRENT. Submitted by: glebius Reviewed by: kib
* Use struct vdso_timehands data to implement fast gettimeofday(2) andkib2012-06-224-0/+249
| | | | | | | | | | | | | | | clock_gettime(2) functions if supported. The speedup seen in microbenchmarks is in range 4x-7x depending on the hardware. Only amd64 and i386 architectures are supported. Libc uses rdtsc and kernel data to calculate current time, if enabled by kernel. Hopefully, this code is going to migrate into vdso in some future. Discussed with: bde Reviewed by: jhb Tested by: flo MFC after: 1 month
* Further refine the implementation of POSIX_FADV_NOREUSE.jhb2012-06-191-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | First, extend the changes in r230782 to better handle the common case of using NOREUSE with sequential reads. A NOREUSE file descriptor will now track the last implicit DONTNEED request it made as a result of a NOREUSE read. If a subsequent NOREUSE read is adjacent to the previous range, it will apply the DONTNEED request to the entire range of both the previous read and the current read. The effect is that each read of a file accessed sequentially will apply the DONTNEED request to the entire range that has been read. This allows NOREUSE to properly handle misaligned reads by flushing each buffer to cache once it has been completely read. Second, apply the same changes made to read(2) by r230782 and this change to writes. This provides much better performance in the sequential write case as it allows writes to still be clustered. It also provides much better performance for misaligned writes. It does mean that NOREUSE will be generally ineffective for non-sequential writes as the current implementation relies on a future NOREUSE write's implicit DONTNEED request to flush the dirty buffer from the current write. MFC after: 2 weeks
* Remove invalid remark about pipes.ed2012-06-021-2/+2
| | | | | | | | | The stat structures returned on pipes seems to contain all the information required by POSIX. Especially the wording "and thus to a pipe" makes little sense, because it seems to imply a certain relationship between sockets and pipes that simply isn't there. MFC after: 2 weeks
* Clarify the SEEK_HOLE description, it repositions the file pointer.kib2012-05-261-4/+4
| | | | MFC after: 3 days
* Remove tab from kernel configuration option. This is consistent with the restjoel2012-05-121-1/+1
| | | | of our manual pages.
* General mdoc(7) and typo fixes.gjb2012-05-0812-15/+17
| | | | | PR: 167713 Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org)
* fix a further typo in the pdfork(2) man page.rwatson2012-04-301-1/+1
| | | | | Submitted by: Norman Hardy MFC after: 3 days
* The returned file descriptor from pdfork(2) is via fdp, not pidp.rwatson2012-04-301-2/+2
| | | | | Submitted by: Norman Hardy MFC after: 3 days
* pread(2) might fail with EBUSY, so document iteadler2012-04-291-0/+2
| | | | | | | PR: docs/167201 Submitted by: Kurt Jaeger <fbsd-ports@opsec.eu> Approved by: cperciva MFC after: 3 days
* A new jail(8) with a configuration file, ultimately to replace the workjamie2012-04-261-39/+1
|\ | | | | | | | | | | currently done by /etc/rc.d/jail. MFC after: 3 months
| * Remove a section that went to jail(8), and fix a small grammar error.jamie2010-10-201-39/+1
| |
* | - Use quote when tab is used;delphij2012-04-221-2/+3
| | | | | | | | - Follow the same macros used in device driver manual pages.
* | Additional manual page updates for r234103.jh2012-04-131-8/+12
| | | | | | | | Submitted by: bde
* | Return EBADF instead of EMFILE from dup2 when the second argument iseadler2012-04-112-7/+12
| | | | | | | | | | | | | | | | | | | | outside the range of valid file descriptors PR: kern/164970 Submitted by: Peter Jeremy <peterjeremy@acm.org> Reviewed by: jilles Approved by: cperciva MFC after: 1 week
* | - Return EPERM from ufs_setattr() when an user without PRIV_VFS_SYSFLAGSjh2012-04-101-3/+2
| | | | | | | | | | | | | | | | | | privilege attempts to toggle SF_SETTABLE flags. - Use the '^' operator in the SF_SNAPSHOT anti-toggling check. Flags are now stored to ip->i_flags in one place after all checks. Submitted by: bde
* | mdoc: Ud takes no argument.joel2012-03-291-1/+1
| |
* | mandoc complains loudly when <TAB>s are misused in columnated lists. Fixjoel2012-03-291-17/+17
| | | | | | | | | | this syntax violation and while I'm here also convert <TAB> to Ta and adjust quotation marks in order to prevent this problem in the future.
* | Remove trailing whitespace per mdoc lint warningeadler2012-03-2912-21/+21
| | | | | | | | | | | | | | Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days
* | Fix comment to specify correct struct name.jimharris2012-03-281-2/+2
| | | | | | | | | | Reviewed by: gjb Approved by: sbruno
* | Make sure sections are sorted into conventional order.joel2012-03-251-5/+5
| |
* | Remove superfluous paragraph macro.joel2012-03-256-6/+0
| |
* | Remove trailing whitespace.bjk2012-03-191-2/+2
| | | | | | | | Approved by: hrs (mentor)
* | Expound a bit more about the system maximum number of FIBs,bjk2012-03-191-2/+20
| | | | | | | | | | | | | | | | how it may be set, and current limitations on the value. Approved by: hrs (mentor) PR: docs/157453 MFC after: 1 week
* | Do not claim that msync(2) is obsoleted [1].kib2012-03-172-4/+7
| | | | | | | | | | | | | | | | Document EIO from msync(2). Inspired by PR: docs/165929 [1] Reviewed by: jilles MFC after: 2 weeks
* | Extend the description for ESRCH a bit.ed2012-03-151-1/+1
| | | | | | | | | | | | | | | | This errno can also be returned if the passed process identifier doesn't correspond with a process group. Discussed on: arch@ MFC after: 1 week
* | Remove impossible error condition from the man page.ed2012-03-151-4/+1
| | | | | | | | | | | | | | | | | | On FreeBSD, all processes have a process group, so it is impossible for kill(2) to fail this way. POSIX also doesn't mention this error condition. Discussed on: arch@ MFC after: 3 weeks
* | Cross-reference sigqueue(2) and kill(2).trasz2012-03-102-2/+4
| |
* | Link EV_SET(3) to kqueue(2).pjd2012-03-051-1/+1
| | | | | | | | MFC after: 3 days
* | Document SO_PROTOCOL socket option.kib2012-02-261-2/+13
| | | | | | | | | | | | Discussed with: bz Reviewed by: glebius MFC after: 2 weeks
* | Whitespace cleanup:gjb2012-02-251-1/+2
| | | | | | | | | | | | | | | | | | o Wrap sentences on to new lines o Cleanup trailing whitespace Found with: textproc/igor MFC after: 1 week X-MFC-With: r232157
* | Fix various typos in manual pages.gjb2012-02-254-8/+8
| | | | | | | | | | | | Submitted by: amdmi3 PR: 165431 MFC after: 1 week
* | Document PL_FLAG_CHILD.kib2012-02-181-1/+6
| | | | | | | | MFC after: 3 days
* | Bump .Dd date for previous revision.delphij2012-02-151-1/+1
| |
* | Add notes about sigev_notify_kevent_flags introduced in revision 230857davidxu2012-02-151-0/+3
| | | | | | | | | | | | which enables thread-friendly polling on same fd for AIO events. Reviewed by: delphij
* | Globally replace u_int*_t from (non-contributed) man pages.ed2012-02-123-7/+7
| | | | | | | | | | | | | | | | | | | | | | The reasoning behind this, is that if we are consistent in our documentation about the uint*_t stuff, people will be less tempted to write new code that uses the non-standard types. I am not going to bump the man page dates, as these changes can be considered style nits. The meaning of the man pages is unaffected. MFC after: 1 month
* | Acknowledge that jail_attach and jail_remove can return EPERM.jamie2012-02-081-1/+3
| | | | | | | | MFC after: 1 week
OpenPOWER on IntegriCloud