matt
cf884af3e9
Use C89 definitions.
...
Remove use of __P
2012-03-20 16:36:04 +00:00
matt
8147d218bf
Convert to use C89 prototypes.
...
Remove use of __P
2012-03-20 16:30:26 +00:00
matt
68e3ffa377
Convert to C89 prototypes. Remove use of __P
2012-03-20 16:26:12 +00:00
matt
336af9bbce
Revert unneeded casts.
2012-03-20 16:19:56 +00:00
kardel
5d92cd82ed
PR pkg/46206
...
re-establish fqdn lookup when AI_ADDRCONFIG is used in hints
AI_ADDRCONFIG led to fqdn lookup being skipped as the systems didn't
configure any PF_UNSPEC addresses - check was too strict here.
Thnaks to Ryo ONODERA for testing.
2012-03-20 12:04:01 +00:00
he
46fd488dd6
Cast to unsigned int before doing shift operations, to appease lint.
2012-03-20 10:51:23 +00:00
he
a1a4d3d82c
Sprinkle some /* ARGSUSED */ before the dummy functions to appease lint.
2012-03-20 10:40:48 +00:00
kardel
52f5a00d5c
PR 46206: fix programmed SIGSEGV
...
more work is needed as tests seem to indicate that name resolution now
does no seem to work (firefox reports Server not found)
thanks to Ryo ONODERA for testing.
2012-03-20 10:34:33 +00:00
christos
bc3dd708b6
ansi prototype
2012-03-20 01:42:59 +00:00
matt
7e14795b01
Simplify a bit and constify as well. Since the file is mapped read-only,
...
use const references to access its data.
2012-03-20 00:31:24 +00:00
christos
b5fc25d19b
cast to size_t
2012-03-20 00:16:35 +00:00
christos
8b01ea2a71
- sprinkle CONSTCOND
...
- back to char * to simplify code, requested by gimpy
2012-03-20 00:03:12 +00:00
matt
f8659af7ae
Move -D_DIAGNOSTIC to a separate line (makes it easier to comment out).
2012-03-19 22:32:16 +00:00
matt
5d44f1d51d
Convert to C89 definitions.
...
Cleanup up type usage.
2012-03-19 22:23:10 +00:00
christos
ff236fe4d7
don't do arithmetic on void pointer.
2012-03-19 16:20:58 +00:00
plunky
3d672173f2
pselect->paccept for this page
2012-03-19 09:34:36 +00:00
christos
768a62209a
parenthesize.
2012-03-18 16:43:34 +00:00
christos
1af1a7c82f
fix lint
2012-03-18 16:26:34 +00:00
christos
8aceef3b7b
fix lint.
2012-03-18 14:34:28 +00:00
christos
59ba550f28
fail as the man page says sched_rr_get_interval should.
2012-03-18 02:04:39 +00:00
christos
2a6850a9bf
Add AI_ADDRCONFIG, which makes getaddrinfo() return only address with families
...
that are already configured in the system.
2012-03-17 21:56:40 +00:00
martin
0abf123a71
delint
2012-03-17 21:35:06 +00:00
martin
e9be25776b
Avoid lint warnings
2012-03-17 20:48:58 +00:00
christos
3bf842e395
PR/44097: Yamamoto Takashi: Prevent overflow.
2012-03-17 20:01:14 +00:00
christos
4bc43cf6c5
make lint exit on warnings
2012-03-17 18:00:50 +00:00
christos
64c780f832
hack to silence lint
2012-03-17 17:59:58 +00:00
njoly
a973b36486
Use Lk macro when dealing with URLs. Another part of PR/29238.
2012-03-15 19:04:46 +00:00
christos
526d942790
- ansify, knf.
...
- no functional changes
2012-03-15 18:22:30 +00:00
christos
815317212f
missed one (thanks joerg)
2012-03-15 16:47:38 +00:00
christos
16b0f218f0
fix signature.
2012-03-15 13:23:10 +00:00
njoly
874d053d0b
Use puffs_access() return value in the VA_UTIMES_NULL case.
2012-03-15 12:49:36 +00:00
christos
504754efd0
ansi prototypes.
2012-03-15 11:46:08 +00:00
joerg
66dd2755f5
Add __printflike attribution to use vprintf and friends with an argument
...
as format string.
2012-03-15 02:02:20 +00:00
martin
90310d68b0
Rename __zero to __sf128_zero to avoid clashes with the strange new
...
inline function in cdefs.h
2012-03-14 17:03:10 +00:00
skrll
938140d192
Use the _end symbol rather than the end symbol. Prevents version info
...
problems in elflink.c for the heimdal libraries.
2012-03-14 14:18:10 +00:00
jruoho
0208cf2398
Use more markup.
2012-03-14 13:24:48 +00:00
christos
98c744016d
rename the macros ftsent_ since they apply to the ftsent struct not the
...
fts one.
2012-03-14 00:25:19 +00:00
joerg
9cc96dd169
Fix all the issues lint is too dumb to warn about and re-enable
...
-Wconstant-conversion.
2012-03-13 22:37:51 +00:00
joerg
3e39914d72
Add missing includes.
2012-03-13 22:24:48 +00:00
joerg
7e379a8558
Disable -w again until the complains are resolved.
2012-03-13 22:12:40 +00:00
joerg
51d5b8a1ef
Revert bloat.
2012-03-13 21:32:12 +00:00
christos
c5e820cae4
PR/45989: Martin Husemann: lint invocation does include -w only on i386
...
- turn lint -w for all the platforms after fixing the lint warnings.
- add _DIAGASSERTS() for casts that would assign values to types that
would not fit.
- change types, add casts
- change into ansii prototypes
- turn on _DIAGNOSTIC for libc (during current, to be eliminated for release
builds)
approved by core@
2012-03-13 21:13:30 +00:00
joerg
e865ac2891
Move the pthread_once alias where it belongs.
2012-03-13 01:05:55 +00:00
joerg
77bfe129a9
Move pthread_once implementation into a separate file, it doesn't depend
...
on the mutex implementation in any way.
2012-03-12 21:35:10 +00:00
joerg
d3660af7b6
Keep track of the size of the guard area, in case we want to make it
...
modifiable later. Only reuse the stack if it was allocated by libpthread
and if the expected thread size matches the current stack size.
2012-03-12 20:16:52 +00:00
joerg
1d34190ecc
Further refine stack allocation. If the stack was provided by the user,
...
don't bother with setting up a guard page. Otherwise, round up the size
to page size. Point stack inside the guarded area, without the guard
page. Fix size when mprotect failed.
2012-03-12 16:37:15 +00:00
christos
9b25b03245
include the NULL in the argv conversion
2012-03-11 21:15:25 +00:00
christos
75b1bb5aad
use arraycount
2012-03-11 21:14:56 +00:00
joerg
654395b265
Keep in sync with libpthread: Fix error handling.
2012-03-10 19:59:21 +00:00
joerg
fa060fc8c7
Fix error handling
2012-03-10 18:01:10 +00:00
joerg
af435e468b
Use correct size.
2012-03-10 18:01:09 +00:00
joerg
a65b1aeb01
Disable reduced stack for now. It creates fallout I'm not willing to
...
deal with.
2012-03-09 21:03:09 +00:00
drochner
677d666c8d
-fix initial stacksize rounding
...
-minor indentation fix
2012-03-09 12:06:44 +00:00
njoly
92562600d4
On alpha compile the math library with dynamic rounding mode instead
...
of fixed normal IEEE rounding mode. This makes function that depends on
the current rounding mode, such as rint(3), just work.
2012-03-09 08:03:53 +00:00
wiz
9c18a264d9
Add sem_timedwait to NAME and fix SYNOPSIS. Add serial comma.
2012-03-08 22:13:32 +00:00
wiz
6e8389e3bc
Whitespace nits.
2012-03-08 22:13:05 +00:00
wiz
5f354a83a5
Merge error descriptions for same error code.
2012-03-08 22:12:52 +00:00
wiz
c744abbb43
Add missing comma.
2012-03-08 22:12:37 +00:00
joerg
4acff4c01b
Implement sem_timedwait.
2012-03-08 21:59:24 +00:00
joerg
344a231144
Actually use the stack thread attributes when creating a new thread.
2012-03-08 16:40:45 +00:00
joerg
bfcb2008c8
Fix the stack base pointer for the initial thread on !HPPA.
...
AT_STACKBASE is pointing to the start of the stack, which is the
upper limit on platforms where the stack grows down.
2012-03-08 16:33:45 +00:00
manu
202e6de05c
The kernel can lookup the same node multiple time and will reclaim as
...
many times it looked up. All reclaims but the last one must be ignored,
otherwise we discard a node which will still get operations. We therefore
have to keep track of lookup/reclaim count and hnour reclaims only when
the count reaches zero.
2012-03-08 14:58:57 +00:00
joerg
d1de8de689
Remove libpthread's semaphore implementation and always use the kernel
...
one. The implementation doesn't provide an async-safe sem_post and can't
without a lot of work on the pthread primitives.
Remove bogus time out requirement in test case, it should have been
a "known failure" if anything.
2012-03-07 23:31:44 +00:00
christos
fd10e83118
misc cleanups:
...
- const for mibs
- #define for magic constants
- casts
2012-03-05 19:40:08 +00:00
tnozaki
2f142eb3e0
don't use __link_set_* stuff for locale implementation.
...
patch reviewed by matt@, thanks.
2012-03-04 21:14:55 +00:00
christos
abe98abf0f
base0 == NULL is allowed when nmemb == 0, in fact the nsdispatch code calls
...
bsearch this way.
2012-03-04 20:01:45 +00:00
wiz
87b2e48e9c
Sort error descriptions.
2012-03-04 11:58:31 +00:00
wiz
cb8f720cc4
Change macro argument for mdoclint, no effective change.
2012-03-04 11:52:32 +00:00
christos
3a7a306503
fix signature according to TOG.
2012-03-04 03:23:35 +00:00
tls
b39292dc65
Fix bug in previous: don't reinitialize on every call! Fix arc4random_buf so it actually ever initializes -- a security problem with revisions 1.9 and 1.10.
2012-03-04 00:36:43 +00:00
dholland
e9f7fa95bf
Clarify description of sticky bit, based on a 3-year-old suggestion by
...
Hubert Feyrer.
2012-03-04 00:07:44 +00:00
mbalmer
afd3d43b03
Add an empty line.
2012-03-03 11:32:14 +00:00
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
uwe
1415c6da05
New ___start() C function takes 3 arguments instead of 6 and fetches
...
argc, argv and environ from ps_strings instead. Adjust the trampoline
accordingly.
Fix brain fart in previous: direct jump is jmp @rN, not bsrf rN.
2012-01-31 20:17:57 +00:00
uwe
cd23fa6d26
Use unambiguous .p2align 2 since .align 4 copied from i386 is
...
incorrect, as .align is .p2align on sh3, not .balign
2012-01-31 20:12:47 +00:00
uwe
5ade3e48ae
Move crt0.S in front of crt0-common.c when building crt0.o and gcrt0.o.
...
Reading disassembly is easier when the asm crt0.S trampoline is at the
start, not hidden behind the C code in crt0-common.c.
2012-01-31 20:08:28 +00:00
uwe
1ecbaba27e
Hmm, funny. I wonder why and how did emacs VC managed to add
...
Warning: Permanently added the RSA host key for IP address '...' to the list of known hosts.
to the committed file. (hi, new cvs!)
2012-01-31 20:03:50 +00:00
uwe
cfdbe19d5f
Use -DPIC to compile crtbeginS.o since that's what <machine/asm.h>
...
headers check.
2012-01-31 19:58:22 +00:00
dholland
36e1f47401
This will need its own compat copy of some of the strings from
...
quotaprop.h even after the latter goes away.
2012-01-30 19:19:55 +00:00
dholland
e8133e8154
Bump libquota minor version (version is now 0.2) because I added some stuff.
2012-01-30 16:52:15 +00:00
dholland
5f0d2c5f55
Add quota_quotaon() and quota_quotaoff(). Use them in quotaon(8).
2012-01-30 16:45:13 +00:00
dholland
129b8a27f6
Add quota_getrestrictions() to report the semantic restrictions
...
associated with a particular quotahandle.
2012-01-30 16:44:09 +00:00
dholland
f6b247aa3b
Add quota_getrestrictions() to report the semantic restrictions
...
associated with a particular quotahandle.
2012-01-30 16:44:08 +00:00
dholland
da6872566a
Remove redundant break statement.
2012-01-30 06:39:26 +00:00
dholland
dfbeb14079
Fix silly bug reading fstab.
2012-01-30 06:15:22 +00:00
dholland
e5e6acbd31
Remove an old, no longer necessary hack from libquota and handle the
...
relevant case properly in usr.bin/quota.
2012-01-30 06:00:49 +00:00
uwe
ffe3d8992e
Since it's in a separate file now, we cannot use direct branch to label.
2012-01-29 23:27:24 +00:00
wiz
be748bdcc2
Add Nm for __clone, man page is already linked to that name.
...
Noted by Abhinav Upadhyay.
2012-01-29 11:44:54 +00:00
dholland
762237230c
Fix 32-bit build
2012-01-29 09:01:31 +00:00
manu
8fcbc70792
Improve FUSE trace facility
2012-01-29 06:22:01 +00:00
christos
e9da35f00c
remove unneeded change
2012-01-28 21:54:26 +00:00
christos
f83bdef67a
Use -X so that the link-set symbols are not stripped.
2012-01-28 21:34:22 +00:00
uwe
2e92e8630a
Steal arch/i386/crtend.S
2012-01-28 15:08:47 +00:00
uwe
002cc93ef2
Add a comment that explains what this code does.
2012-01-28 12:44:19 +00:00
uwe
30250d8bed
Asm cosmetic. Add a comment that explains what this trampoline does.
2012-01-28 12:21:13 +00:00
christos
b76235fd7a
handle the case where we have no space properly (Nat Sloss)
2012-01-27 15:37:09 +00:00
jnemeth
01f3bfcec8
PR/45877 - Geoff C. Wing -- openpam modules need to be owned by root
2012-01-27 08:45:10 +00:00
wiz
807d8e00fe
Use more markup. Fix xrefs. Sort ERRORS. Fix typos. Remove trailing
...
whitespace. Fix minus symbol ("\-", not "-").
2012-01-25 21:58:43 +00:00
dholland
63ecc36207
duh, forgot to cvs add
2012-01-25 21:11:45 +00:00
dholland
a9927e3f0e
Add a preliminary man page for libquota.
2012-01-25 17:45:13 +00:00
dholland
fa577c93e1
Improve how quota_open() works and generally improve function
...
dispatching. Allow access to the quota files via the oldfiles code if
quotaon hasn't run yet. Change the latter so it calls getfsent() up
front (and only once) to make it easier to avoid whacking caller
state.
2012-01-25 17:43:37 +00:00
he
281cbfe50c
After christos@ latest re-structuring of includes and defines in
...
the various param.h files, STACKALIGNBYTES is now called STACK_ALIGNBYTES,
so adapt accordingly.
2012-01-25 13:29:58 +00:00
wiz
a3c4a222b1
Bump date for previous.
2012-01-25 09:18:52 +00:00
dholland
92d1ae00da
Move some more stuff technically specific to the proplib kernel
...
interface into the source file for using the proplib kernel interface.
2012-01-25 01:22:56 +00:00
christos
5418d2a724
As discussed in tech-kern, provide the means to prevent delivery of SIGPIPE
...
on EPIPE for all file descriptor types:
- provide O_NOSIGPIPE for open,kqueue1,pipe2,dup3,fcntl(F_{G,S}ETFL) [NetBSD]
- provide SOCK_NOSIGPIPE for socket,socketpair [NetBSD]
- provide SO_NOSIGPIPE for {g,s}seckopt [NetBSD/FreeBSD/MacOSX]
- provide F_{G,S}ETNOSIGPIPE for fcntl [MacOSX]
2012-01-25 00:28:35 +00:00
wiz
63c79ad1c2
Bump date for previous.
2012-01-22 19:13:48 +00:00
wiz
785aa9aa57
Remove trailing whitespace.
2012-01-22 19:13:42 +00:00
christos
1897181a72
From tnozaki@: make fpos_t a complex object that keeps track of the parse
...
state of the stream. Change argument of the seek function to funopen() from
fpos_t to off_t. Make f{g,s}etpos() use the new fpos_t struct, while providing
backwards compatible entry points. Approved by releng@
2012-01-22 18:36:14 +00:00
tnozaki
dc7498df23
libintl crash when *.mo file lacks header section(old gettext format).
...
reported by jun@ -san, tested by tsutsui@ -san. thanks!
2012-01-21 13:35:49 +00:00
joerg
0f5f511fae
Remove code for CITRUS!=yes.
2012-01-20 16:31:29 +00:00
joerg
e8bec33be1
Change CMSG_SPACE and CMSG_LEN to provide Integer Constant Expressions
...
again. This was changed in sys/socket.h r1.51 to work around fallout
from the IPv6 aux data migration. It broke the historic ABI on some
platforms. This commit restores compatibility for netbsd32 code on such
platforms and provides a template for future changes to the CMSG_*
alignment. Revert PCC/Clang workarounds in postfix and tmux.
2012-01-20 14:08:04 +00:00
drochner
2b9ee4cb40
let one bit more through to SSE, to make FP_X_IMP work
2012-01-19 16:37:18 +00:00
joerg
726d8a62b9
_runetype_from_ctype is unused
2012-01-18 14:22:27 +00:00
joerg
71d0bcc69f
Introduce __HAVE_NO___THREAD for sun2 and vax to disable the TLS usage.
...
Require __HAVE_TLS_VARIANT_I or __HAVE_TLS_VARIANT_II as well as
__lwp_getprivate_fast / __lwp_gettcb_fast to exist for libpthread.
Define VAX as going to use TLS variant I, if it is ever implemented.
2012-01-17 20:34:57 +00:00
christos
fc5fe3c352
PR/45850: Pierre Pronchery: USB multi-touch panels are not supported
2012-01-17 03:49:19 +00:00
christos
3c15bad9a7
PR/45843: Henning Petersen: Fix resource leak on error.
2012-01-16 14:57:45 +00:00
rmind
4b85474b41
- Expire all sessions on flush.
...
- Enable checking for zero mask in IP{4,6}MATCH after npfctl changes.
- Make locking symmetric for npf_ruleset_inspect().
- Sync function prototypes in npf(3) man page with reality.
- Rename NPF_TABLE_RBTREE to NPF_TABLE_TREE.
2012-01-15 00:49:47 +00:00
chs
9f94a5cde3
fix handling of large pages.
2012-01-10 16:01:16 +00:00
dholland
84ed28bf40
Implement quota_put and quota_delete for the fallback direct file
...
access backend.
2012-01-09 15:45:19 +00:00
dholland
583f7defcf
Implement quota_put() and quota_delete() using code from edquota(8).
2012-01-09 15:43:19 +00:00
dholland
8d70e807c3
Implement fallback direct access to quota1-type quota files.
...
Uses (mostly) code from repquota. Add some missing pieces that
weren't in repquota.
Use the direct file access code for cursors if proplib reports the
quota version is 1.
2012-01-09 15:41:58 +00:00
dholland
857bee05cd
Implement the libquota cursor interface, using proplib code from repquota.
2012-01-09 15:40:10 +00:00
dholland
22363307c5
Implement the schema-related functions, using proplib code from
...
/usr/bin/quota.
2012-01-09 15:34:34 +00:00
dholland
fa6b6291ec
Handle default ID case in quota_get(), based on logic found in
...
/usr/bin/quota.
2012-01-09 15:32:38 +00:00
dholland
9f8b8c04bd
Redo getfsquota() and getnfsquota() using the new API.
...
Change the previous getufsquota() to __quota_getquota() and call it
from all three functions: getfsquota(), getufsquota(), and getnfsquota().
2012-01-09 15:31:11 +00:00
dholland
2957f1ccb8
Add quota_nfs.c and implement quota_get() for nfs, using
...
code from getnfsquota().
Also implement quota_getmountdevice().
2012-01-09 15:29:55 +00:00
dholland
2ff48b73e6
Rework getufsquota() in terms of the new quota API.
2012-01-09 15:28:31 +00:00
dholland
8d8965ace0
Add initial versions of quota_open(), quota_close(), quota_get(),
...
calling proplib code mostly taken from getufsquota().
Correct the proplib refcount handling in the code from getufsquota(),
where it was (as far as I can tell) wrong.
Avoid doing illegal and unsafe casts from (struct quotaval *)
to (uint64_t *).
2012-01-09 15:27:04 +00:00
christos
6a6c8f616b
PR/45805: Borodin Oleg: telnet/telnetd with -DAUTHENTICATION -DENCRYPTION
...
(rfc2941)
- minimal fixes to compile with WARNS=4
- separate kerberos (USE_KERBEROS) from encryption (MKCRYPTO)
2012-01-09 15:25:33 +00:00
dholland
e15d192c7f
Bump minor version of libquota.so.
2012-01-09 15:24:37 +00:00
dholland
bb96a16625
Add stub entry points of the entire new quota interface. These fail or
...
do nothing for the time being; however, putting them all in up front
avoids the need to do multiple bumps of the libquota.so version.
2012-01-09 15:22:38 +00:00
christos
89cf253562
- add strspct
...
- be explicit about string not being NUL terminated if bufsiz == 0
2012-01-07 18:40:55 +00:00
chs
d331b836f8
define _UC_TLSBASE and use it to pass the TLS pointer to setcontext().
...
since there is no available space in ucontext_t on vax, pass the
TLS pointer on the stack referenced by the ucontext_t instead.
suggested by joerg.
2012-01-07 16:47:42 +00:00
martin
f989e55d57
Do not force errno to EOVERFLOW when returning -1 from mktime or friends.
...
First, there are legitimate cases where we want to return -1 and errno == 0,
second, all paths go through time1() and/or time2sub() which explicitly
take care to set errno in cases of real overflows.
Should fix atf test failure on various ports in
lib/libc/time/t_mktime:timegm_epoch.
2012-01-07 15:19:35 +00:00
christos
acd0d5274c
PR/45791: Nat Sloss: getnstr erase character weirdness
...
Fix processing of backspace erase char and char left.
2012-01-06 22:20:54 +00:00
drochner
2a0c9a37dc
pull in from FreeBSD rev.1.41: Narrow the use of user credentials.
...
(call pam_get_authtok() with caller's rights rather than user's)
2012-01-06 14:04:02 +00:00
reinoud
5bd510aeaa
Revert MAP_NOSYSCALLS patch.
2012-01-05 15:19:52 +00:00
yamt
41610fe7ba
move the most of description to an appropriate section, HISTORY.
2012-01-05 07:05:59 +00:00
drochner
8fd6dadaf8
include <netipsec/ipsec.h> rather than <netinet6/ipsec.h> from userland
...
where possible, for consistency and compatibility to FreeBSD
(exception: KAME specific statistics gathering in netstat(1) and systat(1))
2012-01-04 16:09:40 +00:00
drochner
3712f81ced
-consistently use "char *" for the compiled policy buffer in the
...
ipsec_*_policy() functions, as it was documented and used by clients
-remove "ipsec_policy_t" which was undocumented and only present
in the KAME version of the ipsec.h header
-misc cleanup of historical artefacts, and to remove unnecessary
differences between KAME ans FAST_IPSEC
2012-01-04 15:55:35 +00:00
wiz
88918228b2
Fix a sentence, following a hint by Abhinav Upadhyay.
2012-01-04 10:53:39 +00:00
christos
1b695acdbf
avoid using %m in format.
2012-01-03 19:02:54 +00:00
dholland
b972515e63
Remove unnecessary cast to caddr_t.
2012-01-02 21:29:55 +00:00
dholland
677bc7fd8c
stdlib.h, not malloc.h
2012-01-02 21:29:29 +00:00
wiz
b3da5e68a9
Remove trailing whitespace.
2012-01-02 18:06:37 +00:00
dholland
27eed90c42
Clarify the behavior of exit(x) for out-of-range x. PR 45769
2012-01-02 15:55:29 +00:00
christos
952b88962c
a typo and missing markup
2012-01-01 23:42:03 +00:00
christos
35a585027b
Improve returns description from Solar Designer.
2012-01-01 23:18:51 +00:00
riz
1874c03a4b
Redo previous; remove all the casts I added, and use PRI* macros instead.
...
(by popular demand - makes sense, too)
2011-12-29 04:25:49 +00:00
riz
8340adc56e
Cast time_t to intmax_t for printf purposes, and format with %j. Fixes
...
build on amd64 and probably i386 as well.
2011-12-29 01:40:32 +00:00
wiz
4c98bf7fdf
Remove trailing whitespace. Avoid xr to itself.
2011-12-28 22:41:34 +00:00
christos
fd093070ff
reflect current reality about return values.
2011-12-28 22:15:23 +00:00
manu
4fba06add5
Add a FUSE trace facility, with statistics collection. This should help
...
tracking bugs and performance issues
2011-12-28 17:33:52 +00:00
christos
0c2a9fc481
- reverse the order of printf formatting to make it easier for compilers to
...
check printf arguments
- add compiler checking for printf formats and fix broken ones.
From joerg@
2011-12-28 14:52:56 +00:00
christos
e7926f1e9e
make __crypt static
2011-12-28 03:13:09 +00:00
christos
3b47f52ce7
clamp length to 72 (73) characters.
2011-12-28 03:12:38 +00:00
christos
dbd463652a
wrap crypt() to a function that returns *0 and *1 on error.
2011-12-27 23:34:13 +00:00
christos
0d2c1e1b4f
- go back to returning NULL, we are going to wrap crypt instead.
...
- limit length of key to 253 to prevent truncation.
2011-12-27 23:33:41 +00:00
christos
671f563b75
we want to check against "*0" not "*\0"
2011-12-27 22:01:26 +00:00
christos
91160c96e4
Instead of returning ":" on error, return "*0" or "*1" which will always result
...
in logged password entries, even if the calling program decides to blindly
use them. Discussed in: http://www.openwall.com/lists/oss-security/2011/11/15/3
2011-12-27 19:36:10 +00:00
christos
97c77932e4
undo the pam bump.
2011-12-27 16:53:24 +00:00
christos
b0ca4d4eba
perform the check for all salts > 2.
2011-12-27 01:20:45 +00:00
christos
aeeea54d2f
Provide a safer salting method that does not turn invalid salts to '.'.
...
Be more sensitive to bad salts and counts. From:
http://cvsweb.openwall.com/cgi/cvsweb.cgi/Owl/packages/glibc/crypt_freesec.c
From Solar Designer
2011-12-26 22:58:45 +00:00
christos
c9260d16b9
Return ":1" on error instead of ":", so that sloppy password creation programs
...
don't end up confusing libc or the other way around. From Solar Designer
2011-12-26 21:51:53 +00:00
njoly
f5d424631e
Remove obsolete puffs_suspend(3) xref.
2011-12-26 17:59:07 +00:00
christos
ad9882f615
avoid accessing array over its bound, from Solar Designer
2011-12-26 16:03:42 +00:00
christos
f5389e0d8c
Move to the new version.
2011-12-25 23:18:25 +00:00
tsutsui
cabc3353b8
Apply fix for previous changes per request from joerg@:
...
http://mail-index.NetBSD.org/source-changes-d/2011/12/25/msg004454.html
XXX1: More Makefiles should be fixed otherwise they will be
copy-and-pasted blindly again and again.
XXX2: Probably we need more explicit and simple macro to check active CC.
2011-12-25 12:32:36 +00:00
tsutsui
d1ac98d51b
Specify "-fno-tree-ter" to getaddrinfo.c and gethnamaddr.c on arm and gcc45
...
for workaround of a possible optimazation bug.
On my W-ZERO3 and Zaurus, hostname lookup against CNAME by some commands
(ping(8), ftp(1) etc.) fails even though nslookup(8) returns a proper name
against the same CNAME, after NetBSD/arm ports has been switched to
gcc 4.5 since 201110311420Z (i.e 201110310000Z binaries worked but
201111010000Z ones not).
Building getaddrinfo.c and gethnamaddr.c in libc with "-O2 -fno-tree-ter"
(or using objects built by old gcc 4.1) seems to fix this issue.
Accroding to nonaka@, the following gcc bugzilla test case also fails
with -O2 but works with -O2 -fno-tree-ter on NetBSD/zaurus 5.99.57:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48863#c4
but CNAME lookup didn't fail on his environment even without this workaround.
2011-12-24 04:59:00 +00:00
christos
b49426a4b0
Avoid buffer overflow, reported by Colin Percival at FreeBSD
2011-12-23 16:48:16 +00:00
wiz
e62237163a
New sentence, new line. Bump date for previous.
2011-12-20 16:43:14 +00:00
reinoud
d131102a3b
Add a MAP_NOSYSCALLS flag to mmap. This flag prohibits executing of system
...
calls from the mapped region. This can be used for emulation perposed or for
extra security in the case of generated code.
Its implemented by adding mapping-attributes to each uvm_map_entry. These can
then be queried when needed.
Currently the MAP_NOSYSCALLS is only implemented for x86 but other
architectures are easy to adapt; see the sys/arch/x86/x86/syscall.c patch.
Port maintainers are encouraged to add them for their processor ports too.
When this feature is not yet implemented for an architecture the
MAP_NOSYSCALLS is simply ignored with virtually no cpu cost..
2011-12-20 15:39:35 +00:00
riastradh
dade315727
Fix error reporting in puffs_framev_enqueue_waitevent and callers.
...
ok christos
2011-12-19 15:36:26 +00:00
apb
f93996848b
Use mktime(3) instead of hand-coded equivalent.
...
Don't treat negative results as errors (we should be able
to handle years before 1970).
XXX: This still fails on 1969-12-31 23:59:59.
2011-12-17 19:14:10 +00:00
joerg
41a3b9d2d6
Request always_inline for rumpclient__dofork, it won't work correctly
...
for vfork otherwise. Also give it the returns twice attribute to ensure
that the stack tainting is done recursively.
2011-12-16 23:19:28 +00:00
drochner
cb4d5f3dcb
support ECDSA keys used by recent ssh
2011-12-16 17:37:14 +00:00
drochner
2462eb040a
disallow empty passphrases per default, and implement the "nullok"
...
option to allow it if the administator wishes, from FreeBSD
2011-12-16 17:35:09 +00:00
drochner
705315cdf8
-remove remainders of the misguided changes in revs 1.5-1.9
...
-iron out more unnecessary differences to FreeBSD
2011-12-16 17:30:12 +00:00
manu
ac705b5bee
Do not tell about specific errno, as all xattr copying function
...
retuenrs error from extattr_list_file and extattr_get_file.
2011-12-16 15:21:13 +00:00
wiz
a107b19ebf
Split extattr(3) into two man pages to get rid of ugly duplicate Nd.
...
Work done by Abhinav Upadhyay with minimal cleanup.
2011-12-16 12:46:00 +00:00
manu
71a2942b6b
Rework puffs_framebuf management toremove leaks and abusive reuses. On
...
exchange error, the puffs_framebuf is now freed immediatly, before
requeuing outstanding requests.
2011-12-16 05:34:54 +00:00
njoly
973e485533
Start making fs read(2) fail with EISDIR if the implementation does
...
not allow read on directories (kernfs, rumpfs, ptyfs and sysvbfs).
Adjust man page accordingly, and add a small corresponding vfs
testcase.
2011-12-12 19:11:21 +00:00
joerg
a5a75c0cc8
Mark rumphijack_dlsym explicitly as weak to prevent optimisations based
...
on pointer (non-)identity of it and rumpclient__dlsym.
2011-12-12 16:53:53 +00:00
joerg
c7d626a65f
Don't use K&R syntax
2011-12-12 15:21:32 +00:00
joerg
eb47f1619a
Use a constant array for the MIB. Newer LLVM decided that mib[] warranted
...
stack protections, with the obvious crash after the setup was done.
As a positive side effect, code size shrinks a bit.
2011-12-08 02:27:14 +00:00
skrll
79fb68b068
Deal with __MACHINE_STACK_GROWS_UP machines.
...
constify the other psize while I'm here.
Thanks to Christos for looking.
2011-12-06 21:15:39 +00:00
wiz
6533efb150
Do not xref to itself.
2011-12-05 10:27:40 +00:00
jym
f3effc5ec2
Improvements in secmodel(9). Document secmodel_register(9), _deregister(9)
...
and _eval(9).
Add secmodel_extensions(9), and indicate the new sysctl(7) to let
ordinary users control the CPU affinity (user_set_cpu_affinity).
2011-12-04 21:08:37 +00:00
drochner
7babedb72c
remove the option to build this against openssl - this hasn't been used
...
in the NetBSD build
since the libc version of MD5Final zeroes out the context, replace
the bzero introduced in the previous commit by comments telling that
2011-11-29 17:27:10 +00:00
drochner
487c0196f3
zero out hash context after use, to avoid traces in RAM
...
(hint from "Solar Designer")
2011-11-29 13:18:52 +00:00
drochner
fc3deeb5d7
fix minor typo
2011-11-29 13:17:04 +00:00
joerg
93a30e6d6f
Kill a bunch of manual __attribute__ usages and replace them with the
...
equivalent sys/cdefs.h invocation.
2011-11-28 12:44:18 +00:00
tls
f27d6532f5
Remove arc4random() and arc4randbytes() from the kernel API. Replace
...
arc4random() hacks in rump with stubs that call the host arc4random() to
get numbers that are hopefully actually random (arc4random() keyed with
stack junk is not). This should fix some of the currently failing anita
tests -- we should no longer generate duplicate "random" MAC addresses in
the test environment.
2011-11-28 08:05:05 +00:00
manu
55557eb9ac
- Add missing ENOENT or ESTALL when accessing deleted node
...
- Fix a warning, fix style (80 chars for a line)
2011-11-28 05:33:33 +00:00
christos
3552fa1ee9
- consistency with types
...
- prefer sizeof(*var)
2011-11-26 23:42:27 +00:00
rmind
fc9011aa1d
Add _npf_config_setsubmit() function.
2011-11-26 23:11:19 +00:00
joerg
b05af17f87
If we have to cast, do it properly.
2011-11-25 17:48:22 +00:00
dholland
51d1d7e7c4
Rename struct ufs_quota_entry -> struct quotaval.
2011-11-25 16:55:05 +00:00
dholland
58632c2b81
Use CHAR_BIT; don't hardwire 8. Fix logic slightly to work with arbitrary
...
CHAR_BIT. Compiler output unchanged (on amd64).
2011-11-25 16:46:56 +00:00
manu
154cec5236
Rollback previous change as it breaks autmates tests
2011-11-25 15:02:02 +00:00
tron
de9ace2de1
Add explicit casts to make lint happy and fix the NetBSD/i386 build.
2011-11-25 09:00:51 +00:00