Author: jilles
Date: Thu May 16 20:35:53 2013
New Revision: 250716
URL: http://svnweb.freebsd.org/changeset/base/250716
Log:
MFC 250421: posix_spawn_file_actions_adddup2(3): Document difference with
dup2().
The ability to clear a file descriptor's close-on-exec flag via
posix_spawn_file
Author: jilles
Date: Thu May 16 20:34:21 2013
New Revision: 250715
URL: http://svnweb.freebsd.org/changeset/base/250715
Log:
MFC r250412: posix_spawn_file_actions_addopen(3): Correct error for bad file
descriptor.
As per POSIX.1-2008, posix_spawn_file_actions_add* return [EBADF] if a file
Author: jilles
Date: Sun May 12 16:26:19 2013
New Revision: 250573
URL: http://svnweb.freebsd.org/changeset/base/250573
Log:
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
Author: jilles
Date: Sun May 12 16:22:10 2013
New Revision: 250572
URL: http://svnweb.freebsd.org/changeset/base/250572
Log:
MFC r249859: getdtablesize(2): Describe what this function actually does.
getdtablesize() returns the limit on new file descriptors; this says nothing
about existin
Author: jilles
Date: Sun May 12 16:20:27 2013
New Revision: 250571
URL: http://svnweb.freebsd.org/changeset/base/250571
Log:
MFC r249956: sysconf(3): Correct the description of _SC_OPEN_MAX.
Modified:
stable/9/lib/libc/gen/sysconf.3
Directory Properties:
stable/9/lib/libc/ (props changed)
Author: jilles
Date: Sun May 12 16:18:00 2013
New Revision: 250570
URL: http://svnweb.freebsd.org/changeset/base/250570
Log:
MFC r249979: intro(2): Fix some errors in ENFILE and EMFILE descriptions.
Modified:
stable/9/lib/libc/sys/intro.2
Directory Properties:
stable/9/lib/libc/ (props ch
Author: jilles
Date: Sun May 12 16:11:23 2013
New Revision: 250569
URL: http://svnweb.freebsd.org/changeset/base/250569
Log:
MFC r249566,r249644: EINTR in POSIX sem_*.
Document that sem_wait() can fail with [EINTR].
Programs often do not expect an [EINTR] return from sem_wait() and POS
Author: jilles
Date: Sun May 12 15:44:49 2013
New Revision: 250567
URL: http://svnweb.freebsd.org/changeset/base/250567
Log:
fdescfs: Supply a real value for d_type in readdir.
All the fdescfs nodes (except . and ..) appear as character devices to
stat(), so DT_CHR is correct.
Modified:
Author: jilles
Date: Sat May 11 22:13:24 2013
New Revision: 250530
URL: http://svnweb.freebsd.org/changeset/base/250530
Log:
Add simple testcases for fcntl(F_DUP2FD_CLOEXEC).
Modified:
head/tools/regression/file/dup/dup.c
Modified: head/tools/regression/file/dup/dup.c
===
Author: jilles
Date: Sat May 11 20:51:00 2013
New Revision: 250527
URL: http://svnweb.freebsd.org/changeset/base/250527
Log:
sh: Remove linked list of stack marks.
The linked list of stack marks may cause problems if the allocation stack is
used between an exception and a higher-level pop
Author: jilles
Date: Sat May 11 16:31:41 2013
New Revision: 250513
URL: http://svnweb.freebsd.org/changeset/base/250513
Log:
Add simple testcases for fcntl(F_DUPFD_CLOEXEC).
Modified:
head/tools/regression/file/dup/dup.c
Modified: head/tools/regression/file/dup/dup.c
Author: jilles
Date: Sat May 11 15:45:44 2013
New Revision: 250512
URL: http://svnweb.freebsd.org/changeset/base/250512
Log:
Add missing argument to fcntl(F_DUPFD) in regression test.
Modified:
head/tools/regression/file/dup/dup.c
Modified: head/tools/regression/file/dup/dup.c
==
Author: jilles
Date: Sat May 11 12:43:26 2013
New Revision: 250507
URL: http://svnweb.freebsd.org/changeset/base/250507
Log:
MFC r250231: libkvm: Make second /dev/null file descriptor close-on-exec as
well.
Modified:
stable/9/lib/libkvm/kvm.c
Directory Properties:
stable/9/lib/libkvm/ (
Author: jilles
Date: Sat May 11 11:56:50 2013
New Revision: 250506
URL: http://svnweb.freebsd.org/changeset/base/250506
Log:
MFC r250230: libkvm: Use O_CLOEXEC instead of separate fcntl(F_SETFD) call.
Modified:
stable/9/lib/libkvm/kvm.c
Directory Properties:
stable/9/lib/libkvm/ (props ch
Author: jilles
Date: Thu May 9 21:29:13 2013
New Revision: 250421
URL: http://svnweb.freebsd.org/changeset/base/250421
Log:
posix_spawn_file_actions_adddup2(3): Document difference with dup2().
The ability to clear a file descriptor's close-on-exec flag via
posix_spawn_file_actions_adddu
Author: jilles
Date: Thu May 9 16:42:01 2013
New Revision: 250412
URL: http://svnweb.freebsd.org/changeset/base/250412
Log:
posix_spawn_file_actions_addopen(3): Correct error for bad file descriptor.
As per POSIX.1-2008, posix_spawn_file_actions_add* return [EBADF] if a file
descriptor i
PUs,
which allows comparison of 4 or 8 bytes at a time. SSE2 allows
comparison of 16 bytes at a time but is somewhat harder: not all i386
CPUs support SSE2, unaligned access is slow on some older CPUs and it
requires assembly so it only uses %xmm8-%xmm15 so rtld does not trash
function parameters (o
Author: jilles
Date: Thu May 9 11:43:45 2013
New Revision: 250406
URL: http://svnweb.freebsd.org/changeset/base/250406
Log:
wordexp(): Simplify code by deferring work to sh.
Modified:
head/lib/libc/gen/wordexp.c
Modified: head/lib/libc/gen/wordexp.c
=
Author: jilles
Date: Sun May 5 10:51:40 2013
New Revision: 250267
URL: http://svnweb.freebsd.org/changeset/base/250267
Log:
sh: Use O_CLOEXEC and F_DUPFD_CLOEXEC instead of separate fcntl() call.
Modified:
head/bin/sh/input.c
head/bin/sh/jobs.c
head/bin/sh/main.c
head/bin/sh/redir.c
M
Author: jilles
Date: Sat May 4 11:49:02 2013
New Revision: 250232
URL: http://svnweb.freebsd.org/changeset/base/250232
Log:
MFC r249983: syslogd: Use closefrom() instead of getdtablesize()/close()
loop.
When syslogd forks a process for '|' destinations, it closes all file
descriptors g
Author: jilles
Date: Sat May 4 11:45:48 2013
New Revision: 250231
URL: http://svnweb.freebsd.org/changeset/base/250231
Log:
libkvm: Make second /dev/null file descriptor close-on-exec as well.
MFC after:1 week
Modified:
head/lib/libkvm/kvm.c
Modified: head/lib/libkvm/kvm.c
Author: jilles
Date: Sat May 4 09:47:51 2013
New Revision: 250230
URL: http://svnweb.freebsd.org/changeset/base/250230
Log:
libkvm: Use O_CLOEXEC instead of separate fcntl(F_SETFD) call.
MFC after:1 week
Modified:
head/lib/libkvm/kvm.c
Modified: head/lib/libkvm/kvm.c
==
Author: jilles
Date: Fri May 3 20:39:53 2013
New Revision: 250222
URL: http://svnweb.freebsd.org/changeset/base/250222
Log:
sh: Remove racy test case for read builtin.
This test case sometimes fails because of an EINTR-related race condition.
Fixing this race condition likely requires an
_CTYPE_L,
> >> + _CTYPE_R,
> >> + _CTYPE_P,
> >> + _CTYPE_S,
> >> + _CTYPE_U,
> >> + _CTYPE_X,
> >> + _CTYPE_I,
> >> + _CTYPE_T,
> >> + _CTYPE_Q,
> >> + 0xFF00L
> >> };
> >> - int i;
> >> + size_t len1, len2;
> >> + const char *p;
> >> + const wctype_t *q;
> >>
> >> - i = 0;
> >> - while (props[i].name != NULL && strcmp(props[i].name, property) != 0)
> >> - i++;
> >> + len1 = strlen(property);
> >> + q = propmasks;
> >> + for (p = propnames; (len2 = strlen(p)) != 0; p += len2 + 1) {
> >> + if (len1 == len2 && memcmp(property, p, len1) == 0)
> >> + return (*q);
> >> + q++;
> >> + }
> >>
> >> - return (props[i].mask);
> >> + return (0UL);
> >> }
> >>
> >> wctype_t wctype(const char *property)
--
Jilles Tjoelker
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
Author: jilles
Date: Fri May 3 15:28:31 2013
New Revision: 250214
URL: http://svnweb.freebsd.org/changeset/base/250214
Log:
sh: Improve error handling in read builtin:
* If read -t times out, return status as if interrupted by SIGALRM
(formerly 1).
* If a trapped signal interrupts re
Author: jilles
Date: Wed May 1 23:04:29 2013
New Revision: 250163
URL: http://svnweb.freebsd.org/changeset/base/250163
Log:
Bump __FreeBSD_version for accept4() and pipe2().
Modified:
head/sys/sys/param.h
Modified: head/sys/sys/param.h
===
Author: jilles
Date: Wed May 1 22:47:47 2013
New Revision: 250161
URL: http://svnweb.freebsd.org/changeset/base/250161
Log:
accept(2), pipe(2): Fix .Dd.
Modified:
head/lib/libc/sys/accept.2
head/lib/libc/sys/pipe.2
Modified: head/lib/libc/sys/accept.2
=
Author: jilles
Date: Wed May 1 22:45:04 2013
New Revision: 250160
URL: http://svnweb.freebsd.org/changeset/base/250160
Log:
Regenerate files for pipe2().
Modified:
head/sys/compat/freebsd32/freebsd32_proto.h
head/sys/compat/freebsd32/freebsd32_syscall.h
head/sys/compat/freebsd32/freebsd3
Author: jilles
Date: Wed May 1 22:42:42 2013
New Revision: 250159
URL: http://svnweb.freebsd.org/changeset/base/250159
Log:
Add pipe2() system call.
The pipe2() function is similar to pipe() but allows setting FD_CLOEXEC and
O_NONBLOCK (on both sides) as part of the function.
If p p
Author: jilles
Date: Wed May 1 20:12:58 2013
New Revision: 250155
URL: http://svnweb.freebsd.org/changeset/base/250155
Log:
Regenerate files for accept4().
Modified:
head/sys/compat/freebsd32/freebsd32_proto.h
head/sys/compat/freebsd32/freebsd32_syscall.h
head/sys/compat/freebsd32/freebs
Author: jilles
Date: Wed May 1 20:10:21 2013
New Revision: 250154
URL: http://svnweb.freebsd.org/changeset/base/250154
Log:
Add accept4() system call.
The accept4() function, compared to accept(), allows setting the new file
descriptor atomically close-on-exec and explicitly controlling
Author: jilles
Date: Tue Apr 30 15:06:30 2013
New Revision: 250102
URL: http://svnweb.freebsd.org/changeset/base/250102
Log:
socket: Make shutdown() wake up a blocked accept().
A blocking accept (and some other operations) waits on &so->so_timeo. Once
it wakes up, it will detect the SBS_C
On Sat, Apr 27, 2013 at 04:36:56AM +1000, Bruce Evans wrote:
> On Fri, 26 Apr 2013, Jilles Tjoelker wrote:
> > On Thu, Apr 25, 2013 at 09:56:01PM +1000, Bruce Evans wrote:
> >> On Wed, 24 Apr 2013, Jilles Tjoelker wrote:
> >>> Log:
> >>> getdtablesiz
Author: jilles
Date: Sat Apr 27 14:21:36 2013
New Revision: 249985
URL: http://svnweb.freebsd.org/changeset/base/249985
Log:
libthr: Fix a parameter name in an internal header file.
Modified:
head/lib/libthr/thread/thr_umtx.h
Modified: head/lib/libthr/thread/thr_umtx.h
==
Author: jilles
Date: Sat Apr 27 14:07:25 2013
New Revision: 249984
URL: http://svnweb.freebsd.org/changeset/base/249984
Log:
sh: Don't consider jobs -s/-p as reporting the status of jobs.
This ensures that something like j=$(jobs -p) does not prevent any
status from being written to the t
Author: jilles
Date: Sat Apr 27 13:26:35 2013
New Revision: 249983
URL: http://svnweb.freebsd.org/changeset/base/249983
Log:
syslogd: Use closefrom() instead of getdtablesize()/close() loop.
When syslogd forks a process for '|' destinations, it closes all file
descriptors greater than 2.
Author: jilles
Date: Sat Apr 27 11:55:23 2013
New Revision: 249979
URL: http://svnweb.freebsd.org/changeset/base/249979
Log:
intro(2): Fix some errors in ENFILE and EMFILE descriptions.
MFC after:1 week
Modified:
head/lib/libc/sys/intro.2
Modified: head/lib/libc/sys/intro.2
Author: jilles
Date: Fri Apr 26 21:43:42 2013
New Revision: 249956
URL: http://svnweb.freebsd.org/changeset/base/249956
Log:
sysconf(3): Correct the description of _SC_OPEN_MAX.
Reported by: bde
MFC after:1 week
Modified:
head/lib/libc/gen/sysconf.3
Modified: head/lib/libc/gen/sy
Author: jilles
Date: Fri Apr 26 21:07:27 2013
New Revision: 249953
URL: http://svnweb.freebsd.org/changeset/base/249953
Log:
MFC r249233: mqueue,ksem,shm: Fix race condition with setting UF_EXCLOSE.
POSIX mqueue, compatibility ksem and POSIX shm create a file descriptor that
has close-on-
Author: jilles
Date: Fri Apr 26 16:11:07 2013
New Revision: 249938
URL: http://svnweb.freebsd.org/changeset/base/249938
Log:
MFC r249471: libc: Fix typo in French translation.
PR: kern/177704
Submitted by: martymac
Modified:
stable/8/lib/libc/nls/fr_FR.ISO8859-1.msg
Directory
Author: jilles
Date: Fri Apr 26 16:09:10 2013
New Revision: 249936
URL: http://svnweb.freebsd.org/changeset/base/249936
Log:
MFC r248803: btowc(3), isblank(3): Correct prototypes for _l variants.
Modified:
stable/9/lib/libc/locale/btowc.3
stable/9/lib/libc/locale/isblank.3
Directory Propert
Author: jilles
Date: Fri Apr 26 16:05:43 2013
New Revision: 249935
URL: http://svnweb.freebsd.org/changeset/base/249935
Log:
MFC r249471: libc: Fix typo in French translation.
PR: kern/177704
Submitted by: martymac
Modified:
stable/9/lib/libc/nls/fr_FR.ISO8859-1.msg
Directory
On Thu, Apr 25, 2013 at 09:56:01PM +1000, Bruce Evans wrote:
> On Wed, 24 Apr 2013, Jilles Tjoelker wrote:
> > Log:
> > getdtablesize(2): Describe what this function actually does.
> > getdtablesize() returns the limit on new file descriptors; this
> > says nothing
Author: jilles
Date: Wed Apr 24 21:24:35 2013
New Revision: 249859
URL: http://svnweb.freebsd.org/changeset/base/249859
Log:
getdtablesize(2): Describe what this function actually does.
getdtablesize() returns the limit on new file descriptors; this says nothing
about existing descriptors
Author: jilles
Date: Sun Apr 21 19:42:04 2013
New Revision: 249739
URL: http://svnweb.freebsd.org/changeset/base/249739
Log:
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
Author: jilles
Date: Fri Apr 19 10:16:00 2013
New Revision: 249644
URL: http://svnweb.freebsd.org/changeset/base/249644
Log:
sem: Restart the POSIX sem_* calls after signals with SA_RESTART set.
Programs often do not expect an [EINTR] return from sem_wait() and POSIX
only allows it if the
Author: jilles
Date: Wed Apr 17 21:08:15 2013
New Revision: 249593
URL: http://svnweb.freebsd.org/changeset/base/249593
Log:
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
uggest pthread cancellation,
not returning from the signal handler or leaving the default
action in place (if it is termination). The racy functionality can be
kept by leaving [EINTR] and [ERESTART] from the sleep function as they
are except for changing [ERESTART] to [EINTR] when UMTX_OP_SEM_WAIT was
Author: jilles
Date: Sun Apr 14 11:44:47 2013
New Revision: 249471
URL: http://svnweb.freebsd.org/changeset/base/249471
Log:
libc: Fix typo in French translation.
PR: kern/177704
Submitted by: martymac
MFC after:1 week
Modified:
head/lib/libc/nls/fr_FR.ISO8859-1.msg
Mo
Author: jilles
Date: Fri Apr 12 19:47:32 2013
New Revision: 249425
URL: http://svnweb.freebsd.org/changeset/base/249425
Log:
libthr: Remove _thr_rtld_fini(), unused since r245630.
Modified:
head/lib/libthr/thread/thr_private.h
head/lib/libthr/thread/thr_rtld.c
Modified: head/lib/libthr/thr
Author: jilles
Date: Fri Apr 12 15:19:35 2013
New Revision: 249407
URL: http://svnweb.freebsd.org/changeset/base/249407
Log:
sh: Don't modify exit status when break/continue/return passes !.
This matches what would happen if ! P were to be replaced with
if P; then false; else true; fi.
Author: jilles
Date: Fri Apr 12 11:37:24 2013
New Revision: 249401
URL: http://svnweb.freebsd.org/changeset/base/249401
Log:
MFC r232385 by ru: Remove 3 syscalls from opendir().
Finally removed the stat() and fstat() calls from the opendir() code.
They were made excessive in r205424 by op
Author: jilles
Date: Sun Apr 7 21:25:14 2013
New Revision: 249242
URL: http://svnweb.freebsd.org/changeset/base/249242
Log:
MFC r230998,r233792: sh: Use vfork in a few common cases.
This uses vfork() for simple commands and command substitutions containing a
single simple command, invoki
Author: jilles
Date: Sun Apr 7 16:28:36 2013
New Revision: 249235
URL: http://svnweb.freebsd.org/changeset/base/249235
Log:
sh: Add const to nodesavestr().
Modified:
head/bin/sh/nodes.c.pat
Modified: head/bin/sh/nodes.c.pat
===
Author: jilles
Date: Sun Apr 7 15:26:09 2013
New Revision: 249233
URL: http://svnweb.freebsd.org/changeset/base/249233
Log:
mqueue,ksem,shm: Fix race condition with setting UF_EXCLOSE.
POSIX mqueue, compatibility ksem and POSIX shm create a file descriptor that
has close-on-exec set. How
Author: jilles
Date: Sat Apr 6 22:30:46 2013
New Revision: 249220
URL: http://svnweb.freebsd.org/changeset/base/249220
Log:
sh: Add a variation on builtins/eval4.0 where the cmdsubst returns 0.
Added:
head/tools/regression/bin/sh/builtins/eval6.0
- copied, changed from r248873,
head/to
Author: jilles
Date: Sat Apr 6 22:28:19 2013
New Revision: 249219
URL: http://svnweb.freebsd.org/changeset/base/249219
Log:
Add warning about SOCK_CLOEXEC and SOCK_NONBLOCK (r248534).
Reviewed by: rpaulo
Modified:
head/UPDATING
Modified: head/UPDATING
=
On Sat, Apr 06, 2013 at 01:06:24AM -0700, Peter Wemm wrote:
> On Wed, Mar 20, 2013 at 4:50 PM, Jilles Tjoelker wrote:
> > On Wed, Mar 20, 2013 at 01:18:56PM +0400, Gleb Smirnoff wrote:
> >> On Tue, Mar 19, 2013 at 08:58:18PM +0000, Jilles Tjoelker wrote:
> >> J> Au
27;t be
>used in new code in FreeBSD.
I think it is fine to have static OIDs for sysctls that are very
commonly used because it saves a system call to translate the name to
the OID.
> - bogus cast of &next. In the old code, the cast had an additional style
>bug (space after it), but it was necessary and probably sufficient for
>supporting K&R with no prototypes. Now it is certainly insufficient, since
>the NULL and 0 args to sysctl() are not cast.
The cast is indeed against style.
--
Jilles Tjoelker
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
Author: jilles
Date: Tue Apr 2 21:34:38 2013
New Revision: 249034
URL: http://svnweb.freebsd.org/changeset/base/249034
Log:
sh: Write as much into the heredoc pipe as possible, to avoid forking.
Use non-blocking I/O to write as much as the pipe will accept (often 64K,
but it can be as li
Author: jilles
Date: Mon Apr 1 20:50:07 2013
New Revision: 248987
URL: http://svnweb.freebsd.org/changeset/base/248987
Log:
wordexp(): Remove wrong IFS usage.
Words in shell script are separated by spaces or tabs independent of the
value of IFS. The value of IFS is only relevant for the
Author: jilles
Date: Mon Apr 1 17:18:22 2013
New Revision: 248980
URL: http://svnweb.freebsd.org/changeset/base/248980
Log:
sh: Fix various compiler warnings.
It now passes WARNS=7 with clang on i386.
GCC 4.2.1 does not understand setjmp() properly so will always trigger
-Wuninitial
Author: jilles
Date: Sun Mar 31 17:42:54 2013
New Revision: 248951
URL: http://svnweb.freebsd.org/changeset/base/248951
Log:
Rename do_pipe() to kern_pipe2() and declare it properly.
Modified:
head/sys/compat/linux/linux_file.c
head/sys/kern/sys_pipe.c
head/sys/sys/syscallsubr.h
Modified
Author: jilles
Date: Sat Mar 30 13:30:27 2013
New Revision: 248932
URL: http://svnweb.freebsd.org/changeset/base/248932
Log:
Improve namespacing in :
* MSG_NOSIGNAL is in POSIX.1-2008.
* MSG_NOTIFICATION (SCTP) is not in POSIX.
* PRU_FLUSH_* (SCTP) are not in POSIX.
* bindat()/con
Author: jilles
Date: Wed Mar 27 21:31:40 2013
New Revision: 248803
URL: http://svnweb.freebsd.org/changeset/base/248803
Log:
btowc(3), isblank(3): Correct prototypes for _l variants.
MFC after:1 week
Modified:
head/lib/libc/locale/btowc.3
head/lib/libc/locale/isblank.3
Modified: h
Author: jilles
Date: Tue Mar 26 22:46:56 2013
New Revision: 248774
URL: http://svnweb.freebsd.org/changeset/base/248774
Log:
accept(2): Mention inheritance of O_ASYNC and signal destination.
While almost nobody uses O_ASYNC, and rightly so, the inheritance of the
related properties across
Author: jilles
Date: Sun Mar 24 22:48:45 2013
New Revision: 248692
URL: http://svnweb.freebsd.org/changeset/base/248692
Log:
sh(1): Mention possible ambiguities with $(( and ((.
In some other shells, things like $((a);(b)) are command substitutions.
Also, there are shells that have an
Author: jilles
Date: Sun Mar 24 12:35:12 2013
New Revision: 248681
URL: http://svnweb.freebsd.org/changeset/base/248681
Log:
MFC r248446: find: Include nanoseconds when comparing timestamps of files.
When comparing to the timestamp of a given file using -newer, -Xnewer and
-newerXY (where
Author: jilles
Date: Sat Mar 23 16:06:20 2013
New Revision: 248652
URL: http://svnweb.freebsd.org/changeset/base/248652
Log:
MFC r246824,r246952: setbuf(3): Bring BUGS section up to date.
Modified:
stable/9/lib/libc/stdio/setbuf.3
Directory Properties:
stable/9/lib/libc/ (props changed)
Author: jilles
Date: Sat Mar 23 16:02:49 2013
New Revision: 248651
URL: http://svnweb.freebsd.org/changeset/base/248651
Log:
MFC r248252: libc: Avoid SIGPIPE when nscd closes the connection
unexpectedly.
It is almost always a bug if nscd closes the connection unexpectedly but
programs s
Author: jilles
Date: Sat Mar 23 15:50:34 2013
New Revision: 248650
URL: http://svnweb.freebsd.org/changeset/base/248650
Log:
MFC r246641: fts: Use O_DIRECTORY when opening name that might be changed by
attacker.
There are uncommon cases where fts_safe_changedir() may be called with a
no
Author: jilles
Date: Fri Mar 22 20:12:25 2013
New Revision: 248620
URL: http://svnweb.freebsd.org/changeset/base/248620
Log:
rc.d/sysctl: Fix error messages about unknown OIDs.
There are three situations where the sysctl script is called:
1. "start", very early
2. "lastload", near the e
Author: jilles
Date: Thu Mar 21 21:39:15 2013
New Revision: 248593
URL: http://svnweb.freebsd.org/changeset/base/248593
Log:
Allow O_CLOEXEC in posix_openpt() flags.
PR: kern/162374
Reviewed by: ed
Modified:
head/lib/libc/sys/posix_openpt.2
head/sys/kern/tty_pts.c
Modifie
On Wed, Mar 20, 2013 at 01:18:56PM +0400, Gleb Smirnoff wrote:
> On Tue, Mar 19, 2013 at 08:58:18PM +0000, Jilles Tjoelker wrote:
> J> Author: jilles
> J> Date: Tue Mar 19 20:58:17 2013
> J> New Revision: 248534
> J> URL: http://svnweb.freebsd.org/changeset/base/248534
Author: jilles
Date: Tue Mar 19 20:58:17 2013
New Revision: 248534
URL: http://svnweb.freebsd.org/changeset/base/248534
Log:
Implement SOCK_CLOEXEC, SOCK_NONBLOCK and MSG_CMSG_CLOEXEC.
This change allows creating file descriptors with close-on-exec set in some
situations. SOCK_CLOEXEC and
Author: jilles
Date: Sun Mar 17 22:51:58 2013
New Revision: 248446
URL: http://svnweb.freebsd.org/changeset/base/248446
Log:
find: Include nanoseconds when comparing timestamps of files.
When comparing to the timestamp of a given file using -newer, -Xnewer and
-newerXY (where X and Y are
Author: jilles
Date: Fri Mar 15 20:29:31 2013
New Revision: 248349
URL: http://svnweb.freebsd.org/changeset/base/248349
Log:
sh: Recognize "--" and explicitly reject options in wait builtin.
If syntactically invalid job identifiers are to be taken as jobs that exited
with status 127, this
Author: jilles
Date: Wed Mar 13 18:38:18 2013
New Revision: 248252
URL: http://svnweb.freebsd.org/changeset/base/248252
Log:
libc: Avoid SIGPIPE when nscd closes the connection unexpectedly.
It is almost always a bug if nscd closes the connection unexpectedly but
programs should not be ki
Author: jilles
Date: Wed Mar 6 22:12:45 2013
New Revision: 247902
URL: http://svnweb.freebsd.org/changeset/base/247902
Log:
MFC r246522: sh: Simplify mksyntax and make it fit for cross-compiling.
Now it outputs fixed files, which use constants provided by the C standard
library to determ
Author: jilles
Date: Wed Mar 6 21:30:42 2013
New Revision: 247901
URL: http://svnweb.freebsd.org/changeset/base/247901
Log:
MFC r213713 by obrien: Correct regression test to not show a false positive
when run as root.
Modified:
stable/8/tools/regression/bin/sh/builtins/cd1.0
Directory Prop
Author: jilles
Date: Sun Mar 3 22:33:13 2013
New Revision: 247733
URL: http://svnweb.freebsd.org/changeset/base/247733
Log:
MFC r246371: sh: Do not test for digit_contig in mksyntax.
ISO/IEC 9899:1999 (E) 5.2.1p3 guarantees that the values of the characters
0123456789 are contiguous.
Author: jilles
Date: Sun Mar 3 17:33:59 2013
New Revision: 247720
URL: http://svnweb.freebsd.org/changeset/base/247720
Log:
sh: When executing a trap, keep exit status along with evalskip.
This ensures 'return' in a trap returns the correct status to the caller.
If evalskip is not set
Author: jilles
Date: Sun Mar 3 15:02:56 2013
New Revision: 247716
URL: http://svnweb.freebsd.org/changeset/base/247716
Log:
MAINTAINERS: Document my maintainership of sh(1).
Modified:
head/MAINTAINERS
Modified: head/MAINTAINERS
===
On Sun, Mar 03, 2013 at 02:43:14PM +0100, Jilles Tjoelker wrote:
> On Sun, Mar 03, 2013 at 02:11:04AM +, Pedro F. Giffuni wrote:
> > Author: pfg
> > Date: Sun Mar 3 02:11:03 2013
> > New Revision: 247683
> > URL: http://svnweb.freebsd.org/changeset/base/247683
>
Author: jilles
Date: Sun Mar 3 14:42:15 2013
New Revision: 247713
URL: http://svnweb.freebsd.org/changeset/base/247713
Log:
libedit: Revert r247683 to fix buildworld.
I think r247683 is wrong because libedit.so actually uses symbols from
libcurses.so. Since it breaks the build, revert it
then give it the oldest version where libedit.so expects a newer
version.
Perhaps we should add -Wl,--no-undefined to SOLINKOPTS in bsd.lib.mk
with the exception of libraries that deliberately have undefined symbols
(for example, to be supplied by the application).
--
Jilles Tjoelker
___
Author: jilles
Date: Sat Mar 2 12:42:23 2013
New Revision: 247619
URL: http://svnweb.freebsd.org/changeset/base/247619
Log:
nullfs: Improve f_flags in statfs().
Include some flags of the nullfs mount itself:
MNT_RDONLY, MNT_NOEXEC, MNT_NOSUID, MNT_UNION, MNT_NOSYMFOLLOW.
This allows
On Wed, Feb 27, 2013 at 07:25:48PM +1100, Peter Jeremy wrote:
> On 2013-Feb-26 01:02:27 +0100, Jilles Tjoelker wrote:
> >> Enhance test(1) by adding provision to compare any combination of the
> >> access, birth, change and modify times of two files, instead of only
1 1 0 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 1 0 0 0 1 0 0 1 1 1 1 1 1 0 1 $b $b
The ctime cannot be manipulated explicitly but the other times can be
set in the future so both relations with the ctime can be tested.
The touch -a is indeed required because file reads do not set the atime
if the filesy
Author: jilles
Date: Mon Feb 25 18:07:20 2013
New Revision: 247273
URL: http://svnweb.freebsd.org/changeset/base/247273
Log:
MFC r241010: libc/fts: Use O_CLOEXEC for internal file descriptors.
Because fts keeps internal file descriptors open across calls, making such
descriptors close-on-
Author: jilles
Date: Sun Feb 24 21:00:37 2013
New Revision: 247237
URL: http://svnweb.freebsd.org/changeset/base/247237
Log:
MFC r246617: sigqueue(2): Fix typo (EEPERM -> EPERM).
Modified:
stable/9/lib/libc/sys/sigqueue.2
Directory Properties:
stable/9/lib/libc/ (props changed)
stable/9
Author: jilles
Date: Sun Feb 24 20:53:32 2013
New Revision: 247236
URL: http://svnweb.freebsd.org/changeset/base/247236
Log:
libc/opendir: Improve behaviour of union uniquifier:
* Reopen the directory using openat(fd, ".", ...) instead of opening the
pathname again. This fixes a race co
Author: jilles
Date: Sat Feb 23 22:50:57 2013
New Revision: 247206
URL: http://svnweb.freebsd.org/changeset/base/247206
Log:
sh: If a SIGINT or SIGQUIT interrupts "wait", return status 128+sig.
Added:
head/tools/regression/bin/sh/builtins/wait4.0 (contents, props changed)
head/tools/regre
Author: jilles
Date: Sat Feb 23 15:15:41 2013
New Revision: 247190
URL: http://svnweb.freebsd.org/changeset/base/247190
Log:
sh: Test that the exit status is 1 if read encounters EOF.
Added:
head/tools/regression/bin/sh/builtins/read6.0 (contents, props changed)
Added: head/tools/regressio
Author: jilles
Date: Fri Feb 22 20:16:16 2013
New Revision: 247163
URL: http://svnweb.freebsd.org/changeset/base/247163
Log:
MFC r246522: sh: Simplify mksyntax and make it fit for cross-compiling.
Now it outputs fixed files, which use constants provided by the C standard
library to determ
Author: jilles
Date: Wed Feb 20 23:26:14 2013
New Revision: 247063
URL: http://svnweb.freebsd.org/changeset/base/247063
Log:
MFC r92,r230095: Show errno messages in cd.
Added:
stable/8/tools/regression/bin/sh/builtins/cd8.0
- copied unchanged from r230095,
head/tools/regression/bin/
Author: jilles
Date: Wed Feb 20 21:57:01 2013
New Revision: 247058
URL: http://svnweb.freebsd.org/changeset/base/247058
Log:
MFC r246371: sh: Do not test for digit_contig in mksyntax.
ISO/IEC 9899:1999 (E) 5.2.1p3 guarantees that the values of the characters
0123456789 are contiguous.
Author: jilles
Date: Wed Feb 20 21:49:52 2013
New Revision: 247057
URL: http://svnweb.freebsd.org/changeset/base/247057
Log:
MFC r246507: sh: Fix a comment.
Modified:
stable/9/bin/sh/parser.h
Directory Properties:
stable/9/bin/sh/ (props changed)
Modified: stable/9/bin/sh/parser.h
==
Author: jilles
Date: Tue Feb 19 23:46:51 2013
New Revision: 247013
URL: http://svnweb.freebsd.org/changeset/base/247013
Log:
sh: Fix a crash with the stackmark code.
If a stack mark is set while the current stack block is empty, the stack
block may move later on (because of realloc()) and
Author: jilles
Date: Mon Feb 18 22:47:59 2013
New Revision: 246952
URL: http://svnweb.freebsd.org/changeset/base/246952
Log:
setbuf(3): Restore a BUGS section about setbuf().
The brokenness of setbuf() is not specific to 4.2BSD and 4.3BSD but inherent
in the API definition.
Reported
801 - 900 of 1824 matches
Mail list logo