svn commit: r250716 - stable/9/lib/libc/gen

2013-05-16 Thread Jilles Tjoelker
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

svn commit: r250715 - stable/9/lib/libc/gen

2013-05-16 Thread Jilles Tjoelker
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

svn commit: r250573 - stable/9/lib/libc/sys

2013-05-12 Thread Jilles Tjoelker
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

svn commit: r250572 - stable/9/lib/libc/sys

2013-05-12 Thread Jilles Tjoelker
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

svn commit: r250571 - stable/9/lib/libc/gen

2013-05-12 Thread Jilles Tjoelker
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)

svn commit: r250570 - stable/9/lib/libc/sys

2013-05-12 Thread Jilles Tjoelker
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

svn commit: r250569 - in stable/9: lib/libc/gen sys/kern

2013-05-12 Thread Jilles Tjoelker
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

svn commit: r250567 - head/sys/fs/fdescfs

2013-05-12 Thread Jilles Tjoelker
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:

svn commit: r250530 - head/tools/regression/file/dup

2013-05-11 Thread Jilles Tjoelker
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 ===

svn commit: r250527 - head/bin/sh

2013-05-11 Thread Jilles Tjoelker
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

svn commit: r250513 - head/tools/regression/file/dup

2013-05-11 Thread Jilles Tjoelker
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

svn commit: r250512 - head/tools/regression/file/dup

2013-05-11 Thread Jilles Tjoelker
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 ==

svn commit: r250507 - stable/9/lib/libkvm

2013-05-11 Thread Jilles Tjoelker
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/ (

svn commit: r250506 - stable/9/lib/libkvm

2013-05-11 Thread Jilles Tjoelker
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

svn commit: r250421 - head/lib/libc/gen

2013-05-09 Thread Jilles Tjoelker
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

svn commit: r250412 - head/lib/libc/gen

2013-05-09 Thread Jilles Tjoelker
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

Re: svn commit: r250215 - stable/9/lib/libc/locale

2013-05-09 Thread Jilles Tjoelker
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

svn commit: r250406 - head/lib/libc/gen

2013-05-09 Thread Jilles Tjoelker
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 =

svn commit: r250267 - head/bin/sh

2013-05-05 Thread Jilles Tjoelker
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

svn commit: r250232 - stable/9/usr.sbin/syslogd

2013-05-04 Thread Jilles Tjoelker
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

svn commit: r250231 - head/lib/libkvm

2013-05-04 Thread Jilles Tjoelker
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

svn commit: r250230 - head/lib/libkvm

2013-05-04 Thread Jilles Tjoelker
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 ==

svn commit: r250222 - head/tools/regression/bin/sh/builtins

2013-05-03 Thread Jilles Tjoelker
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

Re: svn commit: r250215 - stable/9/lib/libc/locale

2013-05-03 Thread Jilles Tjoelker
_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"

svn commit: r250214 - in head: bin/sh tools/regression/bin/sh/builtins

2013-05-03 Thread Jilles Tjoelker
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

svn commit: r250163 - head/sys/sys

2013-05-01 Thread Jilles Tjoelker
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 ===

svn commit: r250161 - head/lib/libc/sys

2013-05-01 Thread Jilles Tjoelker
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 =

svn commit: r250160 - in head/sys: compat/freebsd32 kern sys

2013-05-01 Thread Jilles Tjoelker
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

svn commit: r250159 - in head: include lib/libc/sys sys/compat/freebsd32 sys/kern

2013-05-01 Thread Jilles Tjoelker
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

svn commit: r250155 - in head/sys: compat/freebsd32 kern sys

2013-05-01 Thread Jilles Tjoelker
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

svn commit: r250154 - in head: lib/libc/sys lib/libthr lib/libthr/thread sys/compat/freebsd32 sys/kern sys/sys

2013-05-01 Thread Jilles Tjoelker
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

svn commit: r250102 - head/sys/kern

2013-04-30 Thread Jilles Tjoelker
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

Re: svn commit: r249859 - head/lib/libc/sys

2013-04-29 Thread Jilles Tjoelker
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

svn commit: r249985 - head/lib/libthr/thread

2013-04-27 Thread Jilles Tjoelker
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 ==

svn commit: r249984 - head/bin/sh

2013-04-27 Thread Jilles Tjoelker
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

svn commit: r249983 - head/usr.sbin/syslogd

2013-04-27 Thread Jilles Tjoelker
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.

svn commit: r249979 - head/lib/libc/sys

2013-04-27 Thread Jilles Tjoelker
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

svn commit: r249956 - head/lib/libc/gen

2013-04-26 Thread Jilles Tjoelker
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

svn commit: r249953 - stable/9/sys/kern

2013-04-26 Thread Jilles Tjoelker
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-

svn commit: r249938 - stable/8/lib/libc/nls

2013-04-26 Thread Jilles Tjoelker
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

svn commit: r249936 - stable/9/lib/libc/locale

2013-04-26 Thread Jilles Tjoelker
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

svn commit: r249935 - stable/9/lib/libc/nls

2013-04-26 Thread Jilles Tjoelker
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

Re: svn commit: r249859 - head/lib/libc/sys

2013-04-26 Thread Jilles Tjoelker
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

svn commit: r249859 - head/lib/libc/sys

2013-04-24 Thread Jilles Tjoelker
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

svn commit: r249739 - head/lib/libc/sys

2013-04-21 Thread Jilles Tjoelker
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

svn commit: r249644 - head/sys/kern

2013-04-19 Thread Jilles Tjoelker
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

svn commit: r249593 - head/lib/libc/gen

2013-04-17 Thread Jilles Tjoelker
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

Re: svn commit: r249566 - in head: lib/libc/gen sys/kern

2013-04-16 Thread Jilles Tjoelker
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

svn commit: r249471 - head/lib/libc/nls

2013-04-14 Thread Jilles Tjoelker
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

svn commit: r249425 - head/lib/libthr/thread

2013-04-12 Thread Jilles Tjoelker
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

svn commit: r249407 - in head: bin/sh tools/regression/bin/sh/execution

2013-04-12 Thread Jilles Tjoelker
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.

svn commit: r249401 - stable/9/lib/libc/gen

2013-04-12 Thread Jilles Tjoelker
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

svn commit: r249242 - stable/9/bin/sh

2013-04-07 Thread Jilles Tjoelker
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

svn commit: r249235 - head/bin/sh

2013-04-07 Thread Jilles Tjoelker
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 ===

svn commit: r249233 - head/sys/kern

2013-04-07 Thread Jilles Tjoelker
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

svn commit: r249220 - head/tools/regression/bin/sh/builtins

2013-04-06 Thread Jilles Tjoelker
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

svn commit: r249219 - head

2013-04-06 Thread Jilles Tjoelker
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 =

Re: svn commit: r248534 - in head: lib/libc/sys share/man/man4 sys/kern sys/sys

2013-04-06 Thread Jilles Tjoelker
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

Re: svn commit: r249035 - head/lib/libc/stdlib

2013-04-04 Thread Jilles Tjoelker
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"

svn commit: r249034 - head/bin/sh

2013-04-02 Thread Jilles Tjoelker
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

svn commit: r248987 - in head: lib/libc/gen tools/regression/lib/libc/gen

2013-04-01 Thread Jilles Tjoelker
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

svn commit: r248980 - head/bin/sh

2013-04-01 Thread Jilles Tjoelker
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

svn commit: r248951 - in head/sys: compat/linux kern sys

2013-03-31 Thread Jilles Tjoelker
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

svn commit: r248932 - head/sys/sys

2013-03-30 Thread Jilles Tjoelker
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

svn commit: r248803 - head/lib/libc/locale

2013-03-27 Thread Jilles Tjoelker
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

svn commit: r248774 - head/lib/libc/sys

2013-03-26 Thread Jilles Tjoelker
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

svn commit: r248692 - head/bin/sh

2013-03-24 Thread Jilles Tjoelker
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

svn commit: r248681 - stable/9/usr.bin/find

2013-03-24 Thread Jilles Tjoelker
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

svn commit: r248652 - stable/9/lib/libc/stdio

2013-03-23 Thread Jilles Tjoelker
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)

svn commit: r248651 - stable/9/lib/libc/net

2013-03-23 Thread Jilles Tjoelker
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

svn commit: r248650 - stable/9/lib/libc/gen

2013-03-23 Thread Jilles Tjoelker
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

svn commit: r248620 - head/etc/rc.d

2013-03-22 Thread Jilles Tjoelker
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

svn commit: r248593 - in head: lib/libc/sys sys/kern

2013-03-21 Thread Jilles Tjoelker
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

Re: svn commit: r248534 - in head: lib/libc/sys share/man/man4 sys/kern sys/sys

2013-03-20 Thread Jilles Tjoelker
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

svn commit: r248534 - in head: lib/libc/sys share/man/man4 sys/kern sys/sys

2013-03-19 Thread Jilles Tjoelker
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

svn commit: r248446 - head/usr.bin/find

2013-03-17 Thread Jilles Tjoelker
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

svn commit: r248349 - in head: bin/sh tools/regression/bin/sh/builtins

2013-03-15 Thread Jilles Tjoelker
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

svn commit: r248252 - head/lib/libc/net

2013-03-13 Thread Jilles Tjoelker
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

svn commit: r247902 - stable/8/bin/sh

2013-03-06 Thread Jilles Tjoelker
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

svn commit: r247901 - stable/8/tools/regression/bin/sh/builtins

2013-03-06 Thread Jilles Tjoelker
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

svn commit: r247733 - stable/8/bin/sh

2013-03-03 Thread Jilles Tjoelker
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.

svn commit: r247720 - in head: bin/sh tools/regression/bin/sh/builtins

2013-03-03 Thread Jilles Tjoelker
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

svn commit: r247716 - head

2013-03-03 Thread Jilles Tjoelker
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 ===

Re: svn commit: r247683 - head/lib/libedit

2013-03-03 Thread Jilles Tjoelker
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 >

svn commit: r247713 - head/lib/libedit

2013-03-03 Thread Jilles Tjoelker
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

Re: svn commit: r247683 - head/lib/libedit

2013-03-03 Thread Jilles Tjoelker
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 ___

svn commit: r247619 - head/sys/fs/nullfs

2013-03-02 Thread 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

Re: svn commit: r247274 - in head: bin/test tools/regression/bin/test

2013-03-01 Thread Jilles Tjoelker
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

Re: svn commit: r247274 - in head: bin/test tools/regression/bin/test

2013-02-25 Thread Jilles Tjoelker
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

svn commit: r247273 - stable/9/lib/libc/gen

2013-02-25 Thread Jilles Tjoelker
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-

svn commit: r247237 - stable/9/lib/libc/sys

2013-02-24 Thread Jilles Tjoelker
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

svn commit: r247236 - head/lib/libc/gen

2013-02-24 Thread Jilles Tjoelker
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

svn commit: r247206 - in head: bin/sh tools/regression/bin/sh/builtins

2013-02-23 Thread Jilles Tjoelker
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

svn commit: r247190 - head/tools/regression/bin/sh/builtins

2013-02-23 Thread Jilles Tjoelker
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

svn commit: r247163 - stable/9/bin/sh

2013-02-22 Thread Jilles Tjoelker
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

svn commit: r247063 - in stable/8: bin/sh tools/regression/bin/sh/builtins

2013-02-20 Thread Jilles Tjoelker
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/

svn commit: r247058 - stable/9/bin/sh

2013-02-20 Thread Jilles Tjoelker
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.

svn commit: r247057 - stable/9/bin/sh

2013-02-20 Thread Jilles Tjoelker
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 ==

svn commit: r247013 - head/bin/sh

2013-02-19 Thread Jilles Tjoelker
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

svn commit: r246952 - head/lib/libc/stdio

2013-02-18 Thread Jilles Tjoelker
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

<    4   5   6   7   8   9   10   11   12   13   >