Commit Graph

1382 Commits

Author SHA1 Message Date
wiz
3730b7cf2f pull over agc's typo fix from agc-symver branch. 2013-04-04 21:52:04 +00:00
christos
38019b46e5 no need for __lwp_park50.S here and we don't provide __lwp_park60.S so that
it does not get accidentally used.
2013-03-29 02:10:53 +00:00
christos
e04ecc45a2 PR/47631: NAKAJIMA Yoshihiro
1. Utimens and lutimens don't require timeval but timespec.
2. The order of functions doesn't have a uniformity.
3. Utimens.2 and lutimens.2 aren't installed.
2013-03-08 16:52:11 +00:00
joerg
e240adbd0b Retire OSI network stack. OK core@ 2013-03-01 18:25:13 +00:00
wiz
4029d1a5ce Fix typo in error code; from Henning Petersen in PR 47565.
While here, sort errors.
2013-02-14 09:31:48 +00:00
joerg
6c3b61dddd Remove remnants of AF_IMPLINK. 2013-02-05 17:30:01 +00:00
wiz
8e0e98065f Xref getcwd(3).
Sort errors.
Bump date.
2013-02-05 13:36:59 +00:00
wiz
49573e6ea1 Bump date for previous. 2013-02-04 20:03:11 +00:00
njoly
c6bbf9b2f9 According to the opengroup document [1], we should include fcntl.h (not
sys/fcntl.h) for posix_fadvise().

[1] http://pubs.opengroup.org/onlinepubs/009695399/functions/posix_fadvise.html
2013-02-04 19:29:38 +00:00
dholland
ab137c90f7 Revert defective O_SEARCH implementation committed by manu@ along with
the *at system calls on November 18th of last year. Reasons to revert
it include:
   - it is incorrect in a whole variety of ways (but fortunately, one
     of them is that the missing and improper permission checks have
     no net effect);
   - it was committed without review or discussion;
   - core ruled that all the new O_* flags pertaining to the *at calls
     needed to wait until their semantics could be clarified.

manu was asked to revert it on these grounds but has ignored the request.

I have left O_SEARCH defined and visible and made open() explicitly
ignore it. This way, most code that tries to use it will continue to
build and run. I've also arranged lib/libc/c063/t_o_search.c so that
the tests that make use of the O_SEARCH semantics will disappear until
O_SEARCH comes back, and fixed some mistakes and/or incorrect hacks
that were causing some of these to succeed despite the broken O_SEARCH
implementation.
2013-01-13 08:15:02 +00:00
dholland
1239b9dce6 One more bit: explicitly state what calls to faccessat() are equivalent
to access().
2013-01-12 19:21:48 +00:00
dholland
c0a0e3174b Rewrite heavily. This was originally going to be just an improvement of
some wording related to the *at form... but it needed a general overhaul.

Add some missing errors for the *at form... plus EINVAL for the
traditional form for when you pass a bogus check mode.

Note that the AT_EACCESS flag is useless and strengthen the security
warning.
2013-01-12 19:19:24 +00:00
wiz
a8352d9716 Bump date. New sentence, new line. Wording/articles.
Sort errors while here.
2012-12-01 21:07:00 +00:00
wiz
df30358ee8 Bump date. New sentence, new line. Wording/articles.
Sort errors while here.
2012-12-01 21:00:18 +00:00
wiz
00c15860d1 Bump date, really. 2012-12-01 20:57:41 +00:00
wiz
1ef05d0df5 Bump date. New sentence, new line. Wording/articles.
Sort errors while here.
2012-12-01 20:53:10 +00:00
wiz
d4e1a73a59 Bump date. New sentence, new line. Wording/articles. 2012-12-01 20:51:29 +00:00
wiz
017d301f38 Bump date. New sentence, new line. Wording/articles.
While here, sort errors.
2012-12-01 20:50:19 +00:00
wiz
947bcf9e3f Bump date. New sentence, new line. Wording/articles. 2012-12-01 20:48:26 +00:00
wiz
dafc6bcd71 New sentence, new line. Add articles. 2012-12-01 20:46:54 +00:00
wiz
3e961cd531 Remove trailing whitespace. 2012-12-01 20:45:01 +00:00
christos
33b3ee33ee mention that kevent returns now EOPNOTSUPP. 2012-11-24 15:16:52 +00:00
manu
a76c1cc17f Add most system calls for POSIX extended API set, part 2, with test cases:
faccessat(2), fchmodat(2), fchownat(2), fstatat(2), mkdirat(2), mkfifoat(2),
mknodat(2), linkat(2), readlinkat(2), symlinkat(2), renameat(2), unlinkat(2),
utimensat(2), openat(2).

Also implement O_SEARCH for openat(2)

Still missing:
- some flags for openat(2)
- fexecve(2) implementation
2012-11-18 17:41:51 +00:00
wiz
443fa8fc45 NL -> . to improve output 2012-11-06 23:25:44 +00:00
uwe
3551775cc1 Mention sigevent(3) not only in DESCRIPTION but in SEE ALSO as well. 2012-11-06 21:16:21 +00:00
uwe
ffccaf97fd Fix another typo. 2012-11-06 15:26:37 +00:00
uwe
bce1bfa71d Fix typo. 2012-11-06 15:23:24 +00:00
wiz
c82468c671 Bump date for previous. Grammar fix. 2012-11-04 10:57:33 +00:00
christos
ff84366ca6 add utimens and lutimens wrappers using utimensat. 2012-11-03 19:39:21 +00:00
dholland
8b39f69929 typo 2012-10-14 08:49:28 +00:00
njoly
aa8d6d6d73 Function argument Fa macro expects its name on the same line. 2012-10-08 18:08:40 +00:00
christos
b856128072 add clock_nanosleep(2) 2012-10-02 01:46:40 +00:00
manu
bba80928a8 setcontext() used to be incompatible with -lpthread since it affected
the TLS pointer, therefore wrecking the pthread environement.

Some ports had _UC_TLSBASE flag or equivalent (_UC_UNIQUE on alpha)
that controlled whether setcontext() would change the TLS pointer.
This change let libpthread override setcontext() with its own version
that unsets _UC_TLSBASE, enabling safe usage of setcontext() with
-lpthread.

We also have the following required changes here:
- rename alpha's _UC_UNIQUE into _UC_TLSBASE
- add _UC_TLSBASE definition in header file for all ports
  (powerpc, sh3, sparc and sparc64 lack the implementation for now)
- introduce a libc stub that can be overriden for setcontext()
- modify MD libcs swapcontext() implementations so that they use the
  setcontext() libc stub instead of doing a plain system call.

While we are there:
- document various MD _UC_* flags in header file
- add libc and libpthread tests for swapcontext() behavior
  (hopefully helpful to spot MD problems introduced with this change)

Future work:
- Deciding whether kernel support or _UC_TLSBASE should be added for
  powerpc, sh3, sparc and sparc64 is left to portmasters
  sparc64

Approved by core@
2012-09-12 02:00:51 +00:00
jnemeth
942121f54c Add -A, -a, and -e options to modstat(8) along with kernel
changes required to support these options.  The -e option was
requested by martin@ in private chat in order to make writing tests
easier (i.e. don't bother testing MODULAR functionaility if it
doesn't exist).  While there, I added -A and -a since those were
quite similar.

     -A      Tells you whether or not modules can be autoloaded at the moment.
             This option does take into consideration the sysctl
             kern.module.autoload.

     -a      Tells you whether or not modules can be autoloaded at the moment.
             This option does not take into consideration the sysctl
             kern.module.autoload.

     -e      Tells you whether or not you may load a module at the moment.
2012-08-07 01:19:05 +00:00
jdf
156d32710f Add ENOTCONN to returned error codes, bump date.
Tip of asau.
2012-07-09 21:22:21 +00:00
abs
9e66e6d75e Update old-style definitions to ANSI, remove a couple of register
definitions along the way. Fixed gcc 4.1 build (thank you vax)
2012-06-25 22:32:43 +00:00
christos
3d365e7447 fix old style definitions; XXX: gcc should have picked them up but it did not. 2012-06-24 15:26:02 +00:00
dholland
069a188b26 "appeared in", not "appeared on". 2012-06-23 05:47:50 +00:00
wiz
2c4ba053cf Replace nonexistant Lx macro. Use full NetBSD version for Nx. 2012-06-22 22:54:26 +00:00
wiz
0355356981 Fix macro. Replace another one (there is no .Lx). Use full NetBSD version. 2012-06-22 22:54:09 +00:00
wiz
10258cb7fe Remove trailing whitespace. Sort errors. Bump date for previous. 2012-06-22 22:49:03 +00:00
wiz
efd86e84be Remove trailing whitespace. Use more markup. Bump date for previous. 2012-06-22 22:48:37 +00:00
christos
0826c9ae0a {send,recv}mmsg glue 2012-06-22 18:28:38 +00:00
christos
4b9b559fe8 describe RLIMIT_NTHR 2012-06-09 02:36:25 +00:00
martin
6c3cc552c2 Calling _lwp_create() with a bogus ucontext could trigger a kernel
assertion failure (and thus a crash in DIAGNOSTIC kernels). Independently
discovered by YAMAMOTO Takashi and Joel Sing.

To avoid this, introduce a cpu_mcontext_validate() function and move all
sanity checks from cpu_setmcontext() there. Also untangle the netbsd32
compat mess slightly and add a cpu_mcontext32_validate() cousin there.

Add an exhaustive atf test case, based partly on code from Joel Sing.

Should finally fix the remaining open part of PR kern/43903.
2012-05-21 14:15:16 +00:00
reinoud
e0760a5e85 Clarify description of the msgrcv() return value. I kept on misreading it for
some reason. This ought to clarify it a bit more.
2012-05-15 11:37:01 +00:00
roy
258cf0abec Add capfile(5) to describe the termcap format.
Adjust various man pages and other documentation to point to capfile(5)
instead of termcap(5).
Remove getcap(3) as curses hasn't been building it for a long time.
Punt wrterm.c as tset no longer uses it.
2012-04-21 12:27:24 +00:00
wiz
2306ff07c8 Sort errors. 2012-04-13 16:32:15 +00:00
yamt
8cd2291e6a needs sys/lwpctl.h for constants 2012-04-13 15:14:58 +00:00
yamt
0df0c59ba6 - fix ambiguous sentences.
- mention scheduling class.
2012-04-13 15:14:27 +00:00