summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys
Commit message (Collapse)AuthorAgeFilesLines
* Add sticky(8) cross reference.dds2003-12-101-1/+2
| | | | | | PR: docs/60068 Submitted by: Ken Stailey MFC after: 2 weeks
* Add a short description of the kse_switchin(2) syscall to the ksemarcel2003-12-102-2/+14
| | | | | manpage and add a kse_switchin link. While here, list kse_thr_interrupt before kse_wakeup in the MLINKS variable and the synopsis.
* Fixed a bug in sendfile(2) where the sent data would be corrupted duedg2003-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
* Replace out of date struct statfs definition with a reference to statfs(2).tjr2003-11-211-64/+3
| | | | Approved by: re
* Documented missing EINVAL errno valuedds2003-11-191-0/+6
| | | | | | | | kern_prot.c: if (ngrp > NGROUPS) return (EINVAL); MFC after: 2 weeks
* Resync. struct statfs and flag definitions with sys/mount.h.tjr2003-11-161-22/+57
|
* - Add documentation for EBUSY.alc2003-11-141-2/+4
| | | | | - Remove EIO. - Add a cross reference to mlock(2).
* - Markup fix-ups (add .Dq, and some hard line breaks at the endkensmith2003-11-111-4/+10
| | | | | | of sentences). Approved by: blackend (mentor)
* - Add a note about how jail(2) effects the securelevel.kensmith2003-11-111-0/+6
| | | | | Reviewed by: rwatson Approved by: blackend (mentor)
* Add information about the EVFILT_NETDEV filterbrueffer2003-11-111-0/+24
| | | | | | PR: docs/56872 (based on) Submitted by: Suleiman Souhlal <refugee@vt.edu> Reviewed by: hmp, jmg
* Add a section documenting the sysctl(8) tunables that influence thejkoshy2003-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.
* Have utrace(2) return ENOMEM if malloc() fails. Document this errorjkoshy2003-11-111-4/+6
| | | | | | return in its manual page. Reviewed by: jhb
* Document EINVAL for len == 0.des2003-11-101-1/+1
|
* Document KTR_DROP.jkoshy2003-11-101-0/+9
|
* Add a reference to the new utrace(2) manual page.tjr2003-11-041-1/+2
|
* Add a manual page for the utrace() system call.tjr2003-11-012-1/+87
| | | | Obtained from: NetBSD
* - fix description of what processes SIGCONT can be sent tokensmith2003-10-241-1/+1
| | | | | | PR: docs/58413 Reviewed by: rwatson Approved by: blackend (mentor)
* Bring the description of st_[cma]time modification conditions a bitdds2003-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.
* document the fact that kqueue will immediately return and not timeout whenjmg2003-10-201-0/+8
| | | | | | nevents is 0. PR: kern/45291
* Changed EINVAL constant reference from UIO_MAXIOV to IOV_MAX.dds2003-10-111-1/+1
| | | | | The former is a kernel-only visible constant, the latter the POSIX-specified userland constant defined by including limits.h.
* mdoc(7): Fix common mistakes made in the SEE ALSO section.ru2003-09-121-4/+6
|
* mdoc(7): Properly mark C headers.ru2003-09-1012-20/+20
|
* Document the fact that send(2) can return EPIPE (like when a socket is notroberto2003-09-101-0/+4
| | | | | | | | connected). PR: docs/56683 Submitted by: Chris S.J. Peron <maneo@bsdpro.com> MFC after: 3 days
* mdoc(7): Use the new feature of the .In macro.ru2003-09-0813-21/+21
|
* In the !MNT_BYFSID case, return EINVAL from unmount(2) when theiedowse2003-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
* Clarify that the second argument to accept() may be a null pointer ifroam2003-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
* Fix/add errno return values to match the NFS client implementation anddds2003-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
* Document that read(2) can also return EPERMdds2003-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
* Make the documentation of PT_STEP match its implementation: theiedowse2003-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
* Add the mlockall()/munlockall() system call manual page from NetBSD.bms2003-08-111-0/+140
| | | | | | | | PR: kern/42426, standards/54223 Obtained from: NetBSD Reviewed by: jake, alc Approved by: jake (mentor) MFC after: 2 weeks
* Add the mlockall() and munlockall() system calls.bms2003-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
* Add the POSIX 1003.1-2001 posix_madvise() interface.bms2003-08-092-1/+25
| | | | | | PR: standards/54634 Reviewed by: das Approved by: jake (mentor)
* Document that connect(2) can return EINTR, and that ityar2003-08-061-3/+6
| | | | can return EALREADY for a socket in blocking mode as well.
* add support for using kqueue to watch bpf sockets.jmg2003-08-051-1/+8
| | | | | Submitted by: Brian Buchanan of nCircle, Inc. Tested on: i386 and sparc64
* Document an additional error return value. The connect(2) call can alsodds2003-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
* Back out revision 1.22.ceri2003-07-151-1/+1
| | | | Requested by: bde
* ioctl macros and defines are now present in ioccom.h, not ioctl.h.ceri2003-07-131-1/+1
| | | | | | | Update the manpage to reflect this. PR: docs/54235 Submitted by: Karen Thode <thode12@msn.com>
* Add a new mount flag MNT_BYFSID that can be used to unmount a fileiedowse2003-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
* Separate the description of the flags for mount(2) and unmount(2)iedowse2003-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.
* Correct a misspelled name of time_hi_and_version.yar2003-06-271-1/+1
|
* Unify cross-references between sigpending(2), sigprocmask(2),yar2003-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.
* Add clarifications about the information that ntp_gettime returns.imp2003-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
* ntp_adjtime returns the current state of the clock (TIME_*) on successimp2003-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
* Xref policy: exit(2) -> _exit(2).sobomax2003-06-171-1/+1
|
* Document ENOSPC.trhodes2003-06-131-0/+2
| | | | | PR: 52612 Submitted by: Marc Olzheim <marcolz@ilse.nl>
* .Xr p1003_1b moved to .St -p1003.1b-93charnier2003-06-082-6/+6
|
* Add or correct section number in .Xr. Use .Vt or .Fncharnier2003-06-083-3/+3
| | | | instead of .Xr when needed
* Document the new explicit listing API for extended attributes; noterwatson2003-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
* Document that kldload(2) can also return EEXIST.hmp2003-06-031-0/+4
| | | | Approved by: des (mentor)
* Assorted mdoc(7) fixes.ru2003-06-011-6/+5
|
OpenPOWER on IntegriCloud