David Xu
8931e524bf
In sem_post, the field _has_waiters is no longer used, because some
...
application destroys semaphore after sem_wait returns. Just enter
kernel to wake up sleeping threads, only update _has_waiters if
it is safe. While here, check if the value exceed SEM_VALUE_MAX and
return EOVERFLOW if this is true.
2012-04-05 03:05:02 +00:00
Xin LI
32ffd2336c
Eliminate two cases of unwanted strncpy(). The name is not required
...
by the current code, and the results would get overwritten anyway
by subsequent memset().
Reviewed by: ume
MFC after: 1 month
2012-04-02 07:42:17 +00:00
Joel Dahl
10b4d262da
Remove unnecessary Xo/Xc.
...
Reviewed by: brueffer
2012-03-29 20:23:35 +00:00
Joel Dahl
a53e0df1d7
mdoc: Ud takes no argument.
2012-03-29 16:20:20 +00:00
Joel Dahl
288eac5aed
mandoc complains loudly when <TAB>s are misused in columnated lists. Fix
...
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.
2012-03-29 16:02:40 +00:00
Eitan Adler
50d675f7a9
Remove trailing whitespace per mdoc lint warning
...
Disussed with: gavin
No objection from: doc
Approved by: joel
MFC after: 3 days
2012-03-29 05:02:12 +00:00
Jim Harris
0f70b33419
Fix comment to specify correct struct name.
...
Reviewed by: gjb
Approved by: sbruno
2012-03-28 23:51:06 +00:00
Joel Dahl
3b3faeb9da
Fix Fo arguments.
...
Reviewed by: gabor
2012-03-28 19:20:28 +00:00
Joel Dahl
539617ec61
mdoc: add missing El macro.
2012-03-27 20:50:14 +00:00
Joel Dahl
478c2636bb
Minor indentation and paragraph nits.
2012-03-27 20:39:49 +00:00
Joel Dahl
c1f71e84f1
Minor mdoc nit.
2012-03-27 15:22:10 +00:00
Joel Dahl
46355096e1
mdoc: correct .Bd/.Bl arguments.
...
Reviewed by: brueffer
2012-03-26 21:22:53 +00:00
Joel Dahl
bea977e7f6
mdoc: sort prologue macros.
2012-03-26 19:23:57 +00:00
Joel Dahl
6ae6870fe8
mdoc: remove unknown macro.
2012-03-26 19:06:59 +00:00
Joel Dahl
5b40a50e9a
mdoc: remove empty lines.
2012-03-26 15:30:28 +00:00
Joel Dahl
c2965cd185
mdoc: terminate quoted strings.
...
Reviewed by: brueffer
2012-03-26 15:18:14 +00:00
Joel Dahl
7226ab98cf
Fix date.
2012-03-26 14:56:23 +00:00
Joel Dahl
edf5bf9919
mdoc: document title should be all caps.
2012-03-25 19:34:05 +00:00
Joel Dahl
12afe06c06
Make sure sections are sorted into conventional order.
2012-03-25 16:00:56 +00:00
Joel Dahl
41949a1ed5
Remove superfluous paragraph macro.
2012-03-25 12:13:24 +00:00
Ed Schouten
126b6df920
Make utmpx(3) thread safe if we support TLS.
...
Because the utmpx interface is generally not required to be thread-safe,
but it is nice to have, if easy to do so. Therefore don't make a mess
out of the code and only use it if __NO_TLS is not defined.
2012-03-23 08:26:31 +00:00
Sergey Kandaurov
3daaaabdb8
Fix style. Somehow I managed to lost a space when copy&paste.
...
Pointed out by: stefanf
2012-03-22 09:51:31 +00:00
Sergey Kandaurov
130b343048
Prevent fs_file NULL pointer dereference in fixfsfile() uncovered after r1.5
...
when passing damaged user-supplied fstab file data.
MFC after: 1 week
2012-03-22 09:42:27 +00:00
David Xu
4e2158bf53
Revert previous change. It is an incomplete change from old branch. :-(
2012-03-21 07:16:58 +00:00
David Xu
cc583082f4
Use version 2 of semaphore provided by kernel umtx code, now if there is
...
no waiters, we still increase and decrease count in user mode without
entering kernel, once there is a waiter, sem_post will enter kernel to
increase count and wake thread up, this is atomicy and allow us to
gracefully destroy semaphore after sem_wait returned.
2012-03-21 07:12:52 +00:00
David Chisnall
5a674eeb8f
Make __get_locale() static inline, not just inline, so when compiling libc in
...
debug mode (without optimisations) it doesn't generate a linker failure.
Approved by: dim (mentor)
2012-03-19 11:47:37 +00:00
Benjamin Kaduk
87696ecec7
Remove trailing whitespace.
...
Approved by: hrs (mentor)
2012-03-19 05:08:09 +00:00
Benjamin Kaduk
8882458c89
Expound a bit more about the system maximum number of FIBs,
...
how it may be set, and current limitations on the value.
Approved by: hrs (mentor)
PR: docs/157453
MFC after: 1 week
2012-03-19 04:46:11 +00:00
Eitan Adler
6210106152
draft-ietf-ipv6-scoping-arch-02.txt is now RFC 4007
...
PR: docs/163771
Submitted by: phk
Reviewed by: If someone else reviewed your modification.
Approved by: cperciva
MFC after: 1 week
2012-03-19 00:47:01 +00:00
Jilles Tjoelker
012df2856c
fts(3): Mention that FTS_NOCHDIR imposes {PATH_MAX} limits on the returned
...
pathnames.
With the current API (no *at functions), FTS_NOCHDIR requires that the
fts_accpath start with the original path passed to fts_open(); therefore,
the depth that can be reached is limited by the {PATH_MAX} constraint on
this pathname.
MFC after: 1 week
2012-03-18 21:46:27 +00:00
Jilles Tjoelker
145c674dbd
fts(3): Document cases where FTS_NOCHDIR is set implicitly.
...
PR: docs/166091
Submitted by: Matthew Story
MFC after: 1 week
2012-03-18 20:34:01 +00:00
Oleksandr Tymoshenko
61ad92ef03
Unbreak trhe build by including proper header
2012-03-18 08:08:06 +00:00
Oleksandr Tymoshenko
7dc77cabb9
Fix TLS for statically linked binaries
...
Approved by: cognet
2012-03-18 03:42:54 +00:00
Konstantin Belousov
1d73bec4c1
Do not claim that msync(2) is obsoleted [1].
...
Document EIO from msync(2).
Inspired by PR: docs/165929 [1]
Reviewed by: jilles
MFC after: 2 weeks
2012-03-17 23:55:18 +00:00
Ed Schouten
effed41a0b
Remove non-existing error condition.
...
Just like kill(2), it is impossible for killpg(0, ...) to fail with
ESRCH, as a process always has a process group.
Discussed on: arch@
MFC after: 1 week
2012-03-15 21:19:50 +00:00
Ed Schouten
e06ea46468
Extend the description for ESRCH a bit.
...
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
2012-03-15 12:12:39 +00:00
Ed Schouten
c0fd04a922
Remove impossible error condition from the man page.
...
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
2012-03-15 11:49:26 +00:00
Konstantin Belousov
a9e7383c18
Fix indentation.
...
MFC after: 3 days
2012-03-14 15:30:59 +00:00
David Chisnall
c889dd01b9
First set of xlocale man pages. More to follow...
...
Approved by: dim (mentor)
2012-03-13 20:02:41 +00:00
David Chisnall
4d7815ecc4
More xlocale cleanups.
...
Approved by: dim (mentor)
2012-03-13 14:14:13 +00:00
Edward Tomasz Napierala
6975edd9d0
Cross-reference sigqueue(2) and kill(2).
2012-03-10 10:54:52 +00:00
Dimitry Andric
cc09dfac61
Fix build of libc.so after r232620. This caused a duplicate definition
...
of __getCurrentRuneLocale().
Pointy hat to: me
2012-03-06 21:56:30 +00:00
David Chisnall
7dfd88318b
Remove some duplicated copyright notices.
...
Approved by: dim (mentor)
2012-03-06 12:53:44 +00:00
Oleksandr Tymoshenko
54da2fb8f2
- Switch ARM and MIPS to TLS Variant I
...
- Fix TLS allocation for Variant I: both rtld and libc allocators
assume that tls_static_space includes space for TLS structure.
So increment calculated static size by the size of it.
2012-03-06 03:42:54 +00:00
Oleksandr Tymoshenko
011caac286
Implement _set_tp
2012-03-06 03:30:09 +00:00
Pawel Jakub Dawidek
cc83460ceb
Link EV_SET(3) to kqueue(2).
...
MFC after: 3 days
2012-03-05 20:59:34 +00:00
Eitan Adler
a8448a8ce7
Remove outdated comment of seven years
...
PR: docs/116116
Approved by: cperciva
MFC after: 1 week
2012-03-04 16:44:04 +00:00
Eitan Adler
008474bbf1
Remove reference to gcc's non-standard -fwritable-strings, which
...
doesn't exist in recent releases (and is bad advice anyway)
PR: docs/163119
Submitted by: Yuri Pankov <yuri.pankov@gmail.com>
Approved by: cperciva
MFC after: 1 week
2012-03-04 16:41:07 +00:00
Eitan Adler
0a0c8e010d
POSIX mandates that swab do nothing when len < 0
...
PR: kern/140690
Submitted by: Jeremy Huddleston <jeremyhu@apple.com>
Approved by: cperciva
MFC after: 2 weeks
2012-03-04 16:39:08 +00:00
David Chisnall
a8ed63bb3d
Reapply 227753 (xlocale cleanup), plus some fixes so that it passes build
...
universe with gcc.
Approved by: dim (mentor)
2012-03-04 15:31:13 +00:00