Commit Graph

15545 Commits

Author SHA1 Message Date
joerg
d2be1428c2 Avoid getcontext() as it triggers clobbering warnings. Use inline
assembler to get the fields directly. Saves a system call as side
effect.
2012-03-02 23:19:47 +00:00
joerg
12529f382e Fix indentation. 2012-03-02 18:11:53 +00:00
joerg
1d9862f144 Drop obsolete incompatibility note for interaction with libpthread. 2012-03-02 18:07:17 +00:00
joerg
a56440951d Separate pthread_t from thread stack. Drop additional alignment
restrictions on the thread stack. Remove remaining parts of stackid.
2012-03-02 18:06:05 +00:00
christos
2b01a8ad07 PR/46111: Wolfgang Stukenbrock: Add yp_setbindtries(3) so that yp operations
don't hang forever if requested.
2012-03-02 17:27:48 +00:00
wiz
e5899dd0ea Fix punctuation markup. 2012-03-01 21:31:10 +00:00
tron
df92d05dec Move "libexpat" from X11 into base which fixes PR lib/40346.
This change was approved by the Core Group.
2012-02-29 20:07:51 +00:00
matt
fc3d31db9e PowerPC doesn't have CERROR since it never had a.out.
Use _C_LABEL(__cerror) instead.
2012-02-27 15:47:11 +00:00
tsutsui
501876fe73 Fix pasto. 2012-02-27 14:48:34 +00:00
joerg
f46fb1259f Make __cerror protected to restore ABI leak in older libc versions,
where e.g. librt referenced the copy from libc. This still allows libc
to use PC-relative jumps.
2012-02-27 12:26:21 +00:00
tls
6e07f2d4dc Make arc4random far less greedy for entropy. Make arc4random actually
implement arc4 when used by threaded programs.
2012-02-27 04:25:12 +00:00
shattered
aaf49ded47 Xref zdump(8). OK by wiz@ 2012-02-25 10:56:52 +00:00
njoly
addd71bd1d Check if fstab file exists before trying to parse it, to avoid
warnings from {get,set}fsent() functions if missing.

dholland ok.
2012-02-24 18:00:09 +00:00
dholland
6c69bdb74e Note that gets() is finally dead in C11 and can be removed if we ever
bump libc.
2012-02-24 16:06:39 +00:00
christos
968af0c9f3 PR/46075: Asau: fix typo set_color_paid -> set_color_pair 2012-02-22 23:11:20 +00:00
martin
136a5cd515 Use C++ compatible declaration for posix_spawn (instead of the C99 specific
posix one).
2012-02-22 17:51:01 +00:00
christos
8aaa635ed5 PR/46049: Tim van der Molen:
clrtobot() and clrtoeol() do not set background attributes
2012-02-19 19:38:13 +00:00
matt
c18d70cbd8 Emit SA syscalls using SYS_compat_60_* 2012-02-19 19:18:40 +00:00
christos
be2404a773 remove unused variable 2012-02-17 23:58:36 +00:00
christos
f325545b10 Fix: CVE-2012-0864 fprintf() positional argument abuse.
Described in: http://www.phrack.org/issues.html?issue=67&id=9#article
Reported by Stefan Cornelius / Red Hat Security Response Team

- convert internal positional arguments bookkeeping from int to size_t
- provide overflow protection in positional argument spec
- convert loops to memset
- fix memory leaks
- limit positional argument stack offset to the number of arguments required
  by the printf to avoid coredump from va_arg() exhaustion.
2012-02-17 19:57:53 +00:00
joerg
52a4c27e3e Add _dlauxinfo helper function to provide access to the ELF auxilary
vector. This can normally be found via __ps_strings, but libc is
initialised too early when linked dynamically and doesn't have access to
it yet, so provide an alternative mechanism via ld.elf_so.
Bump libc minor.
2012-02-16 23:00:38 +00:00
joerg
3358b3a30d Make sure that membar_producer gets the proper namespace mangling for libc. 2012-02-15 15:49:46 +00:00
matt
62335767ce Add workaround for ARM cores that don't properly implement the MRC instruction
used for reading the thread pointer.  This is the corresponding change which
was made to <arm/mcontext.h>
2012-02-14 17:32:43 +00:00
dholland
7da608ca9c Update dangling references to quotactl(2), mostly now libquota(3), and to
quotactl(8), mostly now quotarestore(8). ok riz@
2012-02-13 19:53:24 +00:00
dholland
e7114a9280 Fix wrong xref; wrote quotactl(8), meant quotacheck(8). ok riz@ 2012-02-13 19:50:15 +00:00
njoly
e6f95d3fd6 Fix sched_set{param,scheduler} sections. 2012-02-13 16:35:59 +00:00
wiz
7f2677a5a5 Bump date for previous. 2012-02-13 13:23:29 +00:00
wiz
074fd0cb6c Merge descriptions for same error code. 2012-02-13 13:22:09 +00:00
dholland
62cfdf3316 Quota-related docs fixes:
- Remove old quotactl(2); replace with new __quotactl(2).
- Document quota_getrestrictions(3), the semantic restriction codes,
  and quota_quotaon/off(3).
- Update VFS_QUOTACTL(9), which was still describing the pre-proplib API.

Approved by releng for the freeze.
2012-02-13 01:24:00 +00:00
wiz
a49dba341d Remove duplicate function declaration. From Henning Petersen in PR 45998. 2012-02-12 13:52:51 +00:00
wiz
6234e98d3f Remove unused variables. From cppcheck via Henning Petersen in PR 45997. 2012-02-12 13:51:29 +00:00
martin
fcb6901656 Add missing <sys/spawn.h> include 2012-02-12 01:46:05 +00:00
martin
19f52532ad Add userland part of posix_spawn. Libc functions imported from FreeBSD.
Based on Charles Zhang's summer of code project.
2012-02-11 23:31:22 +00:00
njoly
341370651e Add missing Fa macro argument. 2012-02-10 15:21:53 +00:00
mbalmer
577cb3569f Add missing cast, fixes i386 build. releng ok. 2012-02-08 12:10:17 +00:00
christos
4b63973d52 Restore binary compatibility with netbsd-1.x for readdir(3). Tested with
a shark tcsh dynamic binary:

    tcsh: ELF 32-bit LSB executable, ARM, version 1, dynamically linked \
	(uses shared libs), for NetBSD, not stripped
    -rwxr-xr-x  1 root  wheel  994170 Jun 24  2004 /bin/tcsh

This would infinite loop on ls-F /dev
2012-02-08 03:24:30 +00:00
joerg
410d0f4380 Import the new apropos/whatis.
This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.
2012-02-07 19:13:24 +00:00
rmind
f7fec0d2a4 Multiple NPF fixes, add better error reporting from kernel side, add some
asserts, bump the version.
2012-02-05 00:37:13 +00:00
joerg
eab3272778 ld.elf_so is reentrant. 2012-02-03 21:11:17 +00:00
manu
9724ab82d4 Make sure perfused exit when the filesystem crashed, so that unmount
is done. Failure to do so caused deadlocks, with operation that
held a lock on the root vnode and got stuck in perfused forever.

Approved by releng.
2012-02-03 15:54:15 +00:00
dholland
53787c1f86 Bump libquota.so major version (to 1) 2012-02-01 17:53:23 +00:00
dholland
4146833dd8 Remove old (5.99.48 - 5.99.62) libquota interface. 2012-02-01 17:52:07 +00:00
wiz
890a9f1122 Remove trailing whitespace. Bump date for previous. 2012-02-01 13:30:42 +00:00
manu
5036fcef74 Document when recv(2) returns 0 2012-02-01 13:29:15 +00:00
dholland
31f4a06fb0 Fix stupid bug in cursor_getn - it's supposed to return the number of
values retrieved, but it was returning 0 on success. Fortunately nothing
was using it yet.
2012-02-01 06:19:05 +00:00
dholland
1ce78a5fbd Add missing RCSID(). 2012-02-01 06:12:37 +00:00
dholland
832d4ca72b Be consistent about whether idtype and objtype codes are signed or
unsigned. They are signed. (While unsigned might have been a better
choice, it doesn't really matter and the majority of preexisting uses
were signed. And consistency is good.)
2012-02-01 05:46:45 +00:00
dholland
d2d6fa0ae1 Improve the names of some members of struct quotactl_args. These are
effectively function parameter names, but since they need to be
described with the same names in the man page the choices do matter.
Some.
2012-02-01 05:43:53 +00:00
dholland
59b296daa7 Change the syscall API for quotas over to the new non-proplib one.
- struct vfs_quotactl_args -> struct quotactl_args
   - add sys/stdint.h to sys/quotactl.h for clean userland build
   - install sys/quotactl.h in /usr/include
   - update set lists for same
   - add new marshalling code in libquota
   - add new unmarshalling code in vfs_syscalls.c
   - discard proplib interpreter code in vfs_quotactl.c
   - add dispatching code for the 14 quotactl ops in vfs_quotactl.c
   - mark the proplib quotactl syscall obsolete
   - add a new syscall number for the new quotactl syscall
   - change the name of the syscall to __quotactl()
   - remove the decl of the old quotactl from quota/quotaprop.h
   - add a decl of the new quotactl to sys/quotactl.h
   - update the libc build
   - update ktruss
   - remove proplib marshalling code from libquota
   - update copy of syscall table in gdb ppc sources
   - hack rumphijack to accomodate new quotactl name (as I recall,
     pooka wanted such a name change to simplify something, but I
     don't really see what/how)

This change appears to require a kernel version bump for rumpish
reasons.
2012-02-01 05:34:38 +00:00
uwe
4d9bf144be Implement crtbegin* for sh3. Tested to work on landisk. 2012-01-31 20:30:15 +00:00