Commit Graph

960 Commits

Author SHA1 Message Date
mrg
e2eb31d3a3 version the socket(2) syscall. for compat30 socket, we use
EPROTONOSUPPORT instead of EAFNOSUPPORT.

from pavel@ with a little bit of clean up from myself.

XXX: netbsd32 (and perhaps other emulations) should be able
XXX: to call the standard socket calls for this i think, but
XXX: revisit this at another time.
2006-06-26 21:23:56 +00:00
christos
d89021fe17 Modernize:
getopt -> getopts
	`` -> $()
	YES/NO -> true/false
	[ x$f = x ] -> [ -z $f ]
	test -> [
	errors to stderr
2006-06-18 14:28:12 +00:00
ginsbach
d05e0bc3e8 Add EAFNOSUPPORT as a possible error if the address family is not
supported.  This adds further differentiation between which argument to
socket(2) caused the error.  No longer are invalid domain (address family)
errors classified as ENOPROTOSUPPORT errors.  This should make socket(2)
conform to current POSIX and X/Open standards.  Fixes PR/33676.
2006-06-13 21:19:56 +00:00
ginsbach
315fde38db Sort ERRORS. Bump date. 2006-06-13 20:37:24 +00:00
chap
f3ef5715ba Document the recent trunk changes to ntp_gettime(2) (Hi Matthias!). 2006-06-04 15:46:08 +00:00
christos
98f3ad2656 Document SA_NOKERNINFO. 2006-06-03 18:23:52 +00:00
drochner
837ecb8ce8 support the new ntp_gettime() syscall and add compatibility for the old one 2006-05-29 10:02:56 +00:00
tsutsui
d2152dcfde - getvfsstat(2) isn't in 2.1 but 3.0
- getffstat() -> getfsstat()
2006-05-19 17:59:28 +00:00
tsutsui
d3eabd24ce fhstatvfs(2) isn't in NetBSD 2.1 but 3.0. 2006-05-19 17:57:37 +00:00
christos
b0a429fdb3 Document more MSG_ flags. From FreeBSD 2006-05-11 15:48:48 +00:00
christos
99f76ec337 Adjust for the fhstat() compat kernel change. 2006-05-04 19:00:18 +00:00
wiz
975e7796db Improve description of msg_name and msg_namelen fields.
Addresses PR 33330 by Nils O. Selaasdal.
Use more markup.
2006-04-23 19:06:59 +00:00
rtr
6f6a761f7f Remove "len was less than zero" from the list of reasons that the function
will fail with EINVAL since the len param is size_t and couldn't possibly
be "less than zero".

Resolves pr32516
2006-03-25 01:24:28 +00:00
christos
eb961d0e02 Add glue to build the compat library as a separate "libcold" turned off by
default. Clean up the libc Makefile and remove obsolete stuff such as copy
to libkern.
2006-03-11 21:07:18 +00:00
wiz
d9f154cd37 Use more markup. 2006-03-11 12:03:03 +00:00
christos
f7f0b66150 Do not use SCARG() in userland. Eliminates need for <sys/systm.h>. 2006-03-09 23:44:43 +00:00
christos
8dd3175c14 Add documentations for the 3 undocumented ptrace calls. 2006-03-06 15:47:42 +00:00
agc
637a896022 Fix two unusual capitalisations, and add a preposition which had gone
missing.
2006-03-05 22:06:08 +00:00
wiz
6506e28d85 Bump date for previous. 2006-02-24 21:50:43 +00:00
wiz
ad381e882e Improve English, fix a typo. 2006-02-24 21:50:04 +00:00
wiz
cba53a68f9 Link to getvfsstat(2) instead of getfsstat(2). 2006-02-24 20:49:38 +00:00
christos
176a6bf510 Text for the 3 new error messages, from Elad. 2006-02-21 00:11:01 +00:00
yamt
03c44ce523 document posix_fadvise. 2006-02-19 22:27:47 +00:00
chs
899d1b31b2 convert "magiclinks" from a per-fs mount option to a system-wide sysctl.
as discussed on tech-kern quite some time ago.
2006-02-12 01:32:06 +00:00
enami
18e10ad389 Replace a period, which is left unchanged when sentense is added in
rev. 1.7, to comma.
2006-02-02 05:13:57 +00:00
christos
f69cef4676 Make _Exit an alias to _exit. 2006-01-20 22:03:23 +00:00
wiz
208bc3eec1 dd CAVEATS section provided by martin@ with minor cleanup by me. 2006-01-15 16:35:58 +00:00
kleink
6012e94867 Xref pthread_sigmask(3). 2006-01-07 20:11:30 +00:00
uwe
40336aba3d Make "When set is null" into a separate paragraph for better readability. 2006-01-06 02:30:08 +00:00
chs
89a8f7b8c9 change errors returned for various operations on "/" to conform to SUSv3.
as discussed on tech-kern some time back.
2005-12-27 17:24:07 +00:00
perry
fd18408b9a u_intN_t -> uintN_t 2005-12-26 19:40:14 +00:00
yamt
0c2ecd688d add posix_fadvise. 2005-11-29 23:06:45 +00:00
gendalia
0fbb37df6f statvfs did not appear in 2.1, but in 3.0. 2005-11-04 06:09:20 +00:00
chs
c6be96e0fb update errors for EIDRM (which we've returned for a long time now). 2005-11-03 17:07:28 +00:00
wiz
9b6a45d9e2 Bump date for previous. Use more appropriate markup.
Add an article.
2005-10-31 11:34:16 +00:00
uwe
6f167bd3a0 Document PMC_INFO_CPUCTR_TYPE. 2005-10-27 01:10:09 +00:00
chs
03b40cf7d8 remove text about converting async to sync, since we don't do it anymore. 2005-10-18 03:18:16 +00:00
wiz
ee1cc13ae5 Use only mdoc macros; remove unneeded Nm argument; use more
macros; English improvements.
2005-09-23 20:27:10 +00:00
jmmv
2a3e5eeb7c Apply the NFS exports list rototill patch:
- Remove all NFS related stuff from file system specific code.
- Drop the vfs_checkexp hook and generalize it in the new nfs_check_export
  function, thus removing redundancy from all file systems.
- Move all NFS export-related stuff from kern/vfs_subr.c to the new
  file sys/nfs/nfs_export.c.  The former was becoming large and its code
  is always compiled, regardless of the build options.  Using the latter,
  the code is only compiled in when NFSSERVER is enabled.  While doing this,
  also make some functions in nfs_subs.c conditional to NFSSERVER.
- Add a new command in nfssvc(2), called NFSSVC_SETEXPORTSLIST, that takes a
  path and a set of export entries.  At the moment it can only clear the
  exports list or append entries, one by one, but it is done in a way that
  allows setting the whole set of entries atomically in the future (see the
  comment in mountd_set_exports_list or in doc/TODO).
- Change mountd(8) to use the nfssvc(2) system call instead of mount(2) so
  that it becomes file system agnostic.  In fact, all this whole thing was
  done to remove a 'XXX' block from this utility!
- Change the mount*, newfs and fsck* userland utilities to not deal with NFS
  exports initialization; done internally by the kernel when initializing
  the NFS support for each file system.
- Implement an interface for VFS (called VFS hooks) so that several kernel
  subsystems can run arbitrary code upon receipt of specific VFS events.
  At the moment, this only provides support for unmount and is used to
  destroy NFS exports lists from the file systems being unmounted, though it
  has room for extension.

Thanks go to yamt@, chs@, thorpej@, wrstuden@ and others for their comments
and advice in the development of this patch.
2005-09-23 12:10:31 +00:00
christos
5c902c0f21 Document that mkdir("/", x) returns EISDIR. According to POSIX this is not
an allowed error, but we return EIO and EDQUOT also which are not in POSIX
either.
2005-09-17 06:08:03 +00:00
christos
5b84b3983f compat core reorg. 2005-09-13 01:44:08 +00:00
wiz
d317fce6ec Remove unnecessary parentheses. Add comma in enumeration. 2005-09-10 22:27:39 +00:00
yamt
545c75e39d d_namlen is now 16-bit. 2005-09-05 21:58:38 +00:00
yamt
f5a548d35d sync with kernel. 2005-09-05 21:57:35 +00:00
jmmv
379e595c13 Document that binding local sockets now honors the user's umask, why this
was done and that this behavior is not supposed to be portable.  Filling
under the security considerations section because code not following the
guidelines given here can be "less secure".
2005-08-30 15:05:04 +00:00
christos
3303764533 64 bit inode changes 2005-08-19 02:04:54 +00:00
jmmv
13f8011cf8 Fix typo. 2005-08-14 07:28:29 +00:00
pooka
304eed6ad2 document the flags O_ALT_IO and O_NOCTTY 2005-08-11 10:35:24 +00:00
jmmv
6625b5f32f Lowercase after semicolon. 2005-08-05 13:21:13 +00:00
christos
86741d79ab - Fix the remaining indr_references so that they define lint symbols.
- Add an internal symbol for strerror_r (thanks klaus for noticing)
- Remove internal __strerror
2005-07-30 15:21:20 +00:00