summaryrefslogtreecommitdiff
path: root/lib/libc/sys
Commit message (Collapse)AuthorAgeFilesLines
* This commit was manufactured by cvs2svn to create branch 'RELENG_5_2'.cvs2svn2003-12-072-279/+0
| | | | Notes: svn path=/releng/5.2/; revision=123193
* Fixed a bug in sendfile(2) where the sent data would be corrupted dueDavid Greenman2003-12-011-2/+6
| | | | | | | | | | | | | to sendfile(2) being erroneously automatically restarted after a signal is delivered. Fixed by converting ERESTART to EINTR prior to exiting. Updated manual page to indicate the potential EINTR error, its cause and consequences. Approved by: re@freebsd.org Notes: svn path=/head/; revision=123094
* Replace out of date struct statfs definition with a reference to statfs(2).Tim J. Robbins2003-11-211-64/+3
| | | | | | | Approved by: re Notes: svn path=/head/; revision=122936
* Documented missing EINVAL errno valueDiomidis Spinellis2003-11-191-0/+6
| | | | | | | | | | | kern_prot.c: if (ngrp > NGROUPS) return (EINVAL); MFC after: 2 weeks Notes: svn path=/head/; revision=122895
* Resync. struct statfs and flag definitions with sys/mount.h.Tim J. Robbins2003-11-161-22/+57
| | | | Notes: svn path=/head/; revision=122776
* - Add documentation for EBUSY.Alan Cox2003-11-141-2/+4
| | | | | | | | - Remove EIO. - Add a cross reference to mlock(2). Notes: svn path=/head/; revision=122647
* - Markup fix-ups (add .Dq, and some hard line breaks at the endKen Smith2003-11-111-4/+10
| | | | | | | | | of sentences). Approved by: blackend (mentor) Notes: svn path=/head/; revision=122504
* - Add a note about how jail(2) effects the securelevel.Ken Smith2003-11-111-0/+6
| | | | | | | | Reviewed by: rwatson Approved by: blackend (mentor) Notes: svn path=/head/; revision=122503
* Add information about the EVFILT_NETDEV filterChristian Brueffer2003-11-111-0/+24
| | | | | | | | | PR: docs/56872 (based on) Submitted by: Suleiman Souhlal <refugee@vt.edu> Reviewed by: hmp, jmg Notes: svn path=/head/; revision=122489
* Add a section documenting the sysctl(8) tunables that influence theJoseph Koshy2003-11-111-2/+15
| | | | | | | | operation of ktrace(2). Add a cross-reference to sysctl(8). Make the language of rev 1.22 more consistent with the rest of the manual page. Notes: svn path=/head/; revision=122459
* Have utrace(2) return ENOMEM if malloc() fails. Document this errorJoseph Koshy2003-11-111-4/+6
| | | | | | | | | return in its manual page. Reviewed by: jhb Notes: svn path=/head/; revision=122457
* Document EINVAL for len == 0.Dag-Erling Smørgrav2003-11-101-1/+1
| | | | Notes: svn path=/head/; revision=122391
* Document KTR_DROP.Joseph Koshy2003-11-101-0/+9
| | | | Notes: svn path=/head/; revision=122388
* Add a reference to the new utrace(2) manual page.Tim J. Robbins2003-11-041-1/+2
| | | | Notes: svn path=/head/; revision=122040
* Add a manual page for the utrace() system call.Tim J. Robbins2003-11-012-1/+87
| | | | | | | Obtained from: NetBSD Notes: svn path=/head/; revision=121846
* - fix description of what processes SIGCONT can be sent toKen Smith2003-10-241-1/+1
| | | | | | | | | PR: docs/58413 Reviewed by: rwatson Approved by: blackend (mentor) Notes: svn path=/head/; revision=121484
* Bring the description of st_[cma]time modification conditions a bitDiomidis Spinellis2003-10-201-6/+18
| | | | | | | | | closer to reality. More work remains to be done. st_mtime should be the most complete based on IEEE Std 1003.1, 2003 Edition, a review of ufs_vnops.c, and some experimentation. Notes: svn path=/head/; revision=121279
* document the fact that kqueue will immediately return and not timeout whenJohn-Mark Gurney2003-10-201-0/+8
| | | | | | | | | nevents is 0. PR: kern/45291 Notes: svn path=/head/; revision=121263
* Changed EINVAL constant reference from UIO_MAXIOV to IOV_MAX.Diomidis Spinellis2003-10-111-1/+1
| | | | | | | | The former is a kernel-only visible constant, the latter the POSIX-specified userland constant defined by including limits.h. Notes: svn path=/head/; revision=121011
* mdoc(7): Fix common mistakes made in the SEE ALSO section.Ruslan Ermilov2003-09-121-4/+6
| | | | Notes: svn path=/head/; revision=120010
* mdoc(7): Properly mark C headers.Ruslan Ermilov2003-09-1012-20/+20
| | | | Notes: svn path=/head/; revision=119964
* Document the fact that send(2) can return EPIPE (like when a socket is notOllivier Robert2003-09-101-0/+4
| | | | | | | | | | | connected). PR: docs/56683 Submitted by: Chris S.J. Peron <maneo@bsdpro.com> MFC after: 3 days Notes: svn path=/head/; revision=119963
* mdoc(7): Use the new feature of the .In macro.Ruslan Ermilov2003-09-0813-21/+21
| | | | Notes: svn path=/head/; revision=119893
* In the !MNT_BYFSID case, return EINVAL from unmount(2) when theIan Dowse2003-09-081-7/+12
| | | | | | | | | | | | | | | | | specified directory is not found in the mount list. Before the MNT_BYFSID changes, unmount(2) used to return ENOENT for a nonexistent path and EINVAL for a non-mountpoint, but we can no longer distinguish between these cases. Of the two error codes, EINVAL was more likely to occur in practice, and it was the only one of the two that was documented. Update the manual page to match the current behaviour. Suggested by: tjr Reviewed by: tjr Notes: svn path=/head/; revision=119885
* Clarify that the second argument to accept() may be a null pointer ifPeter Pentchev2003-09-051-1/+7
| | | | | | | | | | | | no peer address information is desired. PR: 56044 Submitted by: Felix Opatz <felix@zotteljedi.de> and Bernd Luevelsmeyer <bdluevel@heitec.net> MFC after: 1 month Notes: svn path=/head/; revision=119775
* Fix/add errno return values to match the NFS client implementation andDiomidis Spinellis2003-09-022-5/+16
| | | | | | | | | | | better represent failures of special files accessed over NFS. Approved by: schweikh (mentor) Reviewed by: bde (as a description) MFC after: 6 weeks Notes: svn path=/head/; revision=119688
* Document that read(2) can also return EPERMDiomidis Spinellis2003-08-301-0/+3
| | | | | | | | | | | | | | | | | | | | See e.g. nfsclient/nfs_vnops.c static int nfs_read(struct vop_read_args *ap) { struct vnode *vp = ap->a_vp; if (vp->v_type != VREG) return (EPERM); return (nfs_bioread(vp, ap->a_uio, ap->a_ioflag, ap->a_cred)); } Approved by: schweikh (mentor) MFC after: 6 weeks Notes: svn path=/head/; revision=119570
* Make the documentation of PT_STEP match its implementation: theIan Dowse2003-08-111-2/+3
| | | | | | | | | | `data' parameter is not ignored; if non-zero, it specifies a signal number to be delivered to the traced process. MFC after: 1 day Notes: svn path=/head/; revision=118780
* Add the mlockall()/munlockall() system call manual page from NetBSD.Bruce M Simpson2003-08-111-0/+140
| | | | | | | | | | | PR: kern/42426, standards/54223 Obtained from: NetBSD Reviewed by: jake, alc Approved by: jake (mentor) MFC after: 2 weeks Notes: svn path=/head/; revision=118773
* Add the mlockall() and munlockall() system calls.Bruce M Simpson2003-08-111-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | - All those diffs to syscalls.master for each architecture *are* necessary. This needed clarification; the stub code generation for mlockall() was disabled, which would prevent applications from linking to this API (suggested by mux) - Giant has been quoshed. It is no longer held by the code, as the required locking has been pushed down within vm_map.c. - Callers must specify VM_MAP_WIRE_HOLESOK or VM_MAP_WIRE_NOHOLES to express their intention explicitly. - Inspected at the vmstat, top and vm pager sysctl stats level. Paging-in activity is occurring correctly, using a test harness. - The RES size for a process may appear to be greater than its SIZE. This is believed to be due to mappings of the same shared library page being wired twice. Further exploration is needed. - Believed to back out of allocations and locks correctly (tested with WITNESS, MUTEX_PROFILING, INVARIANTS and DIAGNOSTIC). PR: kern/43426, standards/54223 Reviewed by: jake, alc Approved by: jake (mentor) MFC after: 2 weeks Notes: svn path=/head/; revision=118771
* Add the POSIX 1003.1-2001 posix_madvise() interface.Bruce M Simpson2003-08-092-1/+25
| | | | | | | | | PR: standards/54634 Reviewed by: das Approved by: jake (mentor) Notes: svn path=/head/; revision=118684
* Document that connect(2) can return EINTR, and that itYaroslav Tykhiy2003-08-061-3/+6
| | | | | | | can return EALREADY for a socket in blocking mode as well. Notes: svn path=/head/; revision=118545
* add support for using kqueue to watch bpf sockets.John-Mark Gurney2003-08-051-1/+8
| | | | | | | | Submitted by: Brian Buchanan of nCircle, Inc. Tested on: i386 and sparc64 Notes: svn path=/head/; revision=118471
* Document an additional error return value. The connect(2) call can alsoDiomidis Spinellis2003-07-231-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | return EACCES on non-Unix domain sockets as demonstrated by the following program: #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> int main(int argc, char *argv[]) { struct sockaddr_in rem_addr; int sock; if ((sock = socket(AF_INET, SOCK_STREAM, 0)) < 0) { perror("socket"); exit(1); } bzero((char *)&rem_addr, sizeof(rem_addr)); rem_addr.sin_family = AF_INET; rem_addr.sin_addr.s_addr = INADDR_NONE; rem_addr.sin_port = htons(10000); if (connect(sock, (struct sockaddr *)&rem_addr, sizeof(rem_addr)) < 0) { perror("connect"); exit(1); } } The call chain returning this value is probably: kern/uipc_syscalls.c:connect kern/uipc_socket.c:soconnect netinet/tcp_usrreq.c:tcp_usr_connect netinet/tcp_output.c:tcp_output netinet/ip_output.c:ip_output Reviewed by: schweikh (mentor) MFC after: 2 weeks Notes: svn path=/head/; revision=117940
* Back out revision 1.22.Ceri Davies2003-07-151-1/+1
| | | | | | | Requested by: bde Notes: svn path=/head/; revision=117635
* ioctl macros and defines are now present in ioccom.h, not ioctl.h.Ceri Davies2003-07-131-1/+1
| | | | | | | | | | Update the manpage to reflect this. PR: docs/54235 Submitted by: Karen Thode <thode12@msn.com> Notes: svn path=/head/; revision=117520
* Add a new mount flag MNT_BYFSID that can be used to unmount a fileIan Dowse2003-07-011-1/+17
| | | | | | | | | | | | | | | | | | | | | system by specifying the file system ID instead of a path. Use this by default in umount(8). This avoids the need to perform any vnode operations to look up the mount point, so it makes it possible to unmount a file system whose root vnode cannot be looked up (e.g. due to a dead NFS server, or a file system that has become detached from the hierarchy because an underlying file system was unmounted). It also provides an unambiguous way to specify which file system is to be unmunted. Since the ability to unmount using a path name is retained only for compatibility, that case now just uses a simple string comparison of the supplied path against f_mntonname of each mounted file system. Discussed on: freebsd-arch mdoc help from: ru Notes: svn path=/head/; revision=117132
* Separate the description of the flags for mount(2) and unmount(2)Ian Dowse2003-06-301-14/+16
| | | | | | | | | | | to clarify which system call accepts which arguments. Previously the manual page gave the impression that calling unmount() with flags of (MNT_FORCE | MNT_UPDATE | MNT_RDONLY) would downgrade a read-write mount to read-only, which is clearly untrue; to do that, these flags should be passed to mount() instead. Notes: svn path=/head/; revision=117089
* Correct a misspelled name of time_hi_and_version.Yaroslav Tykhiy2003-06-271-1/+1
| | | | Notes: svn path=/head/; revision=116916
* Unify cross-references between sigpending(2), sigprocmask(2),Yaroslav Tykhiy2003-06-243-1/+5
| | | | | | | | | | | and sigsuspend(2), all three of which operate or depend on the process signal mask. Add a missing xref to sigsetops(3), without which the above three syscalls would be useless. Notes: svn path=/head/; revision=116786
* Add clarifications about the information that ntp_gettime returns.Warner Losh2003-06-211-8/+18
| | | | | | | | | | | | | TAI is a timescale, just like UTC. The tai field returns the offset between the two, and isn't really used for precision time keeping. Explain in brief what a positive and a negative leap seconds are. Add some URLs to very useful web pages about time and time keeping for more information on using this API. Reviewed by: phk Notes: svn path=/head/; revision=116656
* ntp_adjtime returns the current state of the clock (TIME_*) on successWarner Losh2003-06-201-1/+4
| | | | | | | | | | or -1 on failure. The manual used to say it returned 0 or -1. Both examination of the kernel sources, and ntpd show that this is the case. MFC After: 3 days Notes: svn path=/head/; revision=116631
* Xref policy: exit(2) -> _exit(2).Maxim Sobolev2003-06-171-1/+1
| | | | Notes: svn path=/head/; revision=116476
* Document ENOSPC.Tom Rhodes2003-06-131-0/+2
| | | | | | | | PR: 52612 Submitted by: Marc Olzheim <marcolz@ilse.nl> Notes: svn path=/head/; revision=116323
* .Xr p1003_1b moved to .St -p1003.1b-93Philippe Charnier2003-06-082-6/+6
| | | | Notes: svn path=/head/; revision=116023
* Add or correct section number in .Xr. Use .Vt or .FnPhilippe Charnier2003-06-083-3/+3
| | | | | | | instead of .Xr when needed Notes: svn path=/head/; revision=116021
* Document the new explicit listing API for extended attributes; noteRobert Watson2003-06-041-6/+32
| | | | | | | | | | | | that the old API (passing "" as the attribute name to the _get_ interface) is now deprecated (and was probably a bad idea). Pointed out by: Dominic Giampaolo <dbg@apple.com> Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=115802
* Document that kldload(2) can also return EEXIST.Hiten Pandya2003-06-031-0/+4
| | | | | | | Approved by: des (mentor) Notes: svn path=/head/; revision=115771
* Assorted mdoc(7) fixes.Ruslan Ermilov2003-06-011-6/+5
| | | | Notes: svn path=/head/; revision=115631
* Assorted mdoc(7) fixes.Ruslan Ermilov2003-05-223-26/+23
| | | | | | | Approved by: re (blanket) Notes: svn path=/head/; revision=115225