Jilles Tjoelker
e160aec9a5
getdtablesize(2): Describe what this function actually does.
...
getdtablesize() returns the limit on new file descriptors; this says nothing
about existing descriptors.
MFC after: 1 week
2013-04-24 21:24:35 +00:00
Ed Maste
5a6307cf42
Convert libc/stdio from K&R to ANSI C
...
And add '__restrict' where it appeared in the header prototypes
2013-04-23 14:36:44 +00:00
Ed Maste
1d8053c5c0
Renumber clauses to reduce diffs to other versions
...
NetBSD, OpenBSD, and Android's Bionic all number the clauses 1 through 3,
so follow suit to make comparison easier.
Acked-by: imp@
2013-04-23 13:33:13 +00:00
Eitan Adler
d001beb260
- sl_find does not modify 'name'
...
- make the prototype of sl_find match NetBSD
Reviewed by: jilles
Approved by: cperciva (mentor)
MFC After: 3 days
2013-04-23 13:03:03 +00:00
Eitan Adler
240f872cb8
Switch from K&R prototypes to modern C
...
Reviewed by: jilles
Approved by: cperciva (mentor)
MFC After: 3 days
2013-04-23 13:03:01 +00:00
Sergey Kandaurov
89bbe1496d
Keep up with negative addrlen check removal in r249649.
2013-04-22 09:18:50 +00:00
Jilles Tjoelker
2cd19a510a
dup(2): Remove incorrect sentence about getdtablesize().
...
There are no getdtablesize() bounds on the file descriptor to be duplicated;
it only has to be open. If the RLIMIT_NOFILE rlimit was decreased after
opening the file descriptor, it may be greater than or equal to
getdtablesize() but still valid.
MFC after: 1 week
2013-04-21 19:42:04 +00:00
Mikolaj Golub
b03e2d7729
Embed revision id in the library.
...
MFC after: 29 days
2013-04-21 17:10:10 +00:00
Konstantin Belousov
826549e53d
Merge the 386 and amd64 versions of the fenv.h, to make cc -m32
...
compilations which use fenv.h work.
Reviewed by: tjil
Sponsored by: The FreeBSD Foundation
2013-04-21 13:31:55 +00:00
Joel Dahl
15f764dd19
Add example.
...
PR: 177025
Submitted by: Fernando <fernando.apesteguia@gmail.com>
Reviewed by: theraven
2013-04-21 10:30:19 +00:00
Joel Dahl
cd088fc43a
Remove cross-references to nonexistent CPU_SET(3) manpage.
...
Also fix cpu_getaffinity(2) document title.
PR: 176317
Submitted by: brucec
2013-04-21 06:46:41 +00:00
Joel Dahl
20ed2b4343
mdoc: end function context properly.
2013-04-20 22:16:49 +00:00
Ed Schouten
108b6de211
Enable libcompiler-rt on MIPS.
...
Originally we disabled libcompiler-rt on MIPS and SPARC64, because of an
issue where __clzdi2 and __ctzdi2 would cause endless recursion. This
bug has been fixed in r230021 already, but for some reason we only
switched to libcompiler-rt on SPARC64 -- not MIPS.
This means we can finally use <stdatomic.h> on all our architectures.
2013-04-20 14:44:28 +00:00
Mikolaj Golub
6dd520d609
Bump date.
2013-04-20 08:25:14 +00:00
Mikolaj Golub
89358231fa
Add procstat_getkstack function to dump kernel stacks of a process.
...
MFC after: 1 month
2013-04-20 08:17:20 +00:00
Mikolaj Golub
2ff020d3c3
Add procstat_getauxv function to retrieve a process auxiliary vector.
...
MFC after: 1 month
2013-04-20 08:10:47 +00:00
Mikolaj Golub
4482b5e320
Extend libprocstat with functions to retrieve process command line
...
arguments and environment variables.
Suggested by: stas
Reviewed by: jhb and stas (initial version)
MFC after: 1 month
2013-04-20 08:07:04 +00:00
Mikolaj Golub
eec6cb1cf2
Add procstat_getosrel function to retrieve a process osrel info.
...
MFC after: 1 month
2013-04-20 08:03:56 +00:00
Mikolaj Golub
4cdf979641
Add procstat_getpathname function to retrieve a process executable.
...
MFC after: 1 month
2013-04-20 08:02:43 +00:00
Mikolaj Golub
7cc0ebfd10
Add procstat_getrlimit function to retrieve a process resource limits info.
...
MFC after: 1 month
2013-04-20 07:59:44 +00:00
Mikolaj Golub
5b9bcba971
Add procstat_getumask function to retrieve a process umask.
...
MFC after: 1 month
2013-04-20 07:57:08 +00:00
Mikolaj Golub
7f1d14e6e6
Add procstat_getgroups function to retrieve process groups.
...
MFC after: 1 month
2013-04-20 07:54:07 +00:00
Mikolaj Golub
39680c7bfb
Add procstat_getvmmap function to get VM layout of a process.
...
MFC after: 1 month
2013-04-20 07:49:35 +00:00
Mikolaj Golub
7153ad2b72
Make libprocstat(3) extract procstat notes from a process core file.
...
PR: kern/173723
Suggested by: jhb
Glanced by: kib
MFC after: 1 month
2013-04-20 07:47:26 +00:00
Ed Schouten
7e659f9491
Add the Clang specific -Wmissing-variable-declarations to WARNS=6.
...
This compiler flag enforces that that people either mark variables
static or use an external declarations for the variable, similar to how
-Wmissing-prototypes works for functions.
Due to the fact that Yacc/Lex generate code that cannot trivially be
changed to not warn because of this (lots of yy* variables), add a
NO_WMISSING_VARIABLE_DECLARATIONS that can be used to turn off this
specific compiler warning.
Announced on: toolchain@
2013-04-19 19:45:00 +00:00
Tim Kientzle
eb012e1c4c
An even more refined version of r249484, until we can come up with
...
a good fix for the -print-file-name=include breakage.
As suggested by Andrey Chernov.
2013-04-19 05:13:57 +00:00
Tim Kientzle
463f397c4e
Fix the symlink creation from r249484 so that repeated
...
installs work correctly.
Suggested by Tijl Coosemans.
2013-04-19 05:01:14 +00:00
David Xu
31e9d5b85e
Remove debug code.
2013-04-18 05:58:07 +00:00
David Xu
8bbeb7e9e0
Avoid copying memory if SIGCANCEL is not masked.
2013-04-18 05:56:00 +00:00
David Xu
acad2b1e22
Revert revision 249323, the PR/177624 is confusing, that bug is caused
...
by using buggy getcontext/setcontext on same stack, while swapcontext
normally works on different stack, there is no such a problem.
2013-04-18 05:12:11 +00:00
Jilles Tjoelker
00e080be77
pututxline: Don't set errno=0 in subfunctions.
...
The functions utx_active_add(), utx_active_remove(), utx_lastlogin_add() and
utx_log_add() set errno to 0 if they are successful. This not only violates
POSIX if pututxline() is successful, but may also overwrite a valid error
with 0 if, for example, utx_lastlogin_add() fails while utx_log_add()
succeeds.
Reviewed by: ed
2013-04-17 21:08:15 +00:00
Gabor Kovesdan
ab3f6b347e
- Correct mispellings of the word occurrence
...
Submitted by: Christoph Mallon <christoph.mallon@gmx.de> (via private mail)
2013-04-17 11:40:10 +00:00
Joel Dahl
9adbae037d
mdoc: remove superfluous paragraph macro.
2013-04-16 20:31:15 +00:00
John Baldwin
8916af883c
- Document that sem_wait() can fail with EINTR if it is interrupted by a
...
signal.
- Fix the old ksem implementation for POSIX semaphores to not restart
sem_wait() or sem_timedwait() if interrupted by a signal.
MFC after: 1 week
2013-04-16 20:26:31 +00:00
Robert Watson
a49ab93ce2
Use a suitable code generation when building libstand for MIPS.
...
Reviewed by: imp
Sponsored by: DARPA, AFRL
MFC after: 3 days
2013-04-16 17:20:52 +00:00
Robert Watson
909735d975
Adapt libstand's setjmp/longjmp MIPS support to be portable across 32-bit
...
and 64-bit MIPS. Don't use the floating-point coprocessor in the libstand
context for MIPS.
Reviewed by: imp
MFC after: 3 days
Sponsored by: DARPA, AFRL
2013-04-16 17:03:35 +00:00
Tim Kientzle
7c83e4431a
Install a symlink
...
/usr/lib/include ==> /usr/include
This fixes -print-file-name=include in clang (and is
arguably a better way to fix the same issue in GCC than
the change I made in r231336).
MFC after: 1 week
2013-04-14 19:13:51 +00:00
Dag-Erling Smørgrav
fb69d3e351
Backport upstream r684 (OPENPAM_DEBUG enables debugging macros but does
...
not turn debugging on by default) and add OPENPAM_DEBUG to CFLAGS.
2013-04-14 16:49:27 +00:00
Jilles Tjoelker
c9e57bf8be
libc: Fix typo in French translation.
...
PR: kern/177704
Submitted by: martymac
MFC after: 1 week
2013-04-14 11:44:47 +00:00
Dag-Erling Smørgrav
f2ffd00a72
Clean up.
2013-04-14 00:59:56 +00:00
Dag-Erling Smørgrav
6abb347c5a
Include ldns's b{32,64}_{ntop,pton}().
2013-04-13 22:45:41 +00:00
Dag-Erling Smørgrav
4056bae982
Use the CONNECT method to proxy HTTPS connections through HTTP proxies.
...
PR: bin/80176
Submitted by: Yuichiro NAITO <naito.yuichiro@gmail.com>
2013-04-12 22:05:15 +00:00
Jilles Tjoelker
706b04b66f
libthr: Remove _thr_rtld_fini(), unused since r245630.
2013-04-12 19:47:32 +00:00
Dimitry Andric
139f7f9bf5
Upgrade our copy of llvm/clang to trunk r178860, in preparation of the
...
upcoming 3.3 release (branching and freezing expected in a few weeks).
Preliminary release notes can be found at the usual location:
<http://llvm.org/docs/ReleaseNotes.html >
An MFC is planned once the actual 3.3 release is finished.
2013-04-12 17:57:40 +00:00
Ed Maste
b4c19408e9
Spelling correction
2013-04-11 20:15:37 +00:00
Mikolaj Golub
f574e90c0a
Add sbuf_start_section and sbuf_end_section to the libsbuf symbol map.
...
MFC after: 1 month
2013-04-11 19:50:10 +00:00
Joel Dahl
aaaade7024
Remove EOL whitespace.
2013-04-11 13:05:38 +00:00
Ed Maste
b4fc4a4c72
Remove unused atomic header
2013-04-11 12:49:42 +00:00
Gleb Smirnoff
8d13912c31
Fix typo.
2013-04-11 10:14:28 +00:00
Gleb Smirnoff
b448b67bbb
Include types.h for C99 uintXX_t types.
2013-04-11 07:30:49 +00:00