summaryrefslogtreecommitdiffstats
path: root/tools/regression/file
Commit message (Collapse)AuthorAgeFilesLines
* MFC r264400,r265836:ngie2014-12-314-4/+4
| | | | | | | | | | | | | | r264400: NO_MAN= has been deprecated in favor of MAN= for some time, go ahead and finish the job. ncurses is now the only Makefile in the tree that uses it since it wasn't a simple mechanical change, and will be addressed in a future commit. r265836: Remove last two NO_MAN= in the tree. In both of these cases, MAN= is what is needed.
* MFC r268385:kib2014-07-151-2/+7
| | | | Make this compilable on latest Linux'es without warnings.
* Fix fcntl F_GETFL F_SETFL for files opened execute-only (O_EXEC).jilles2013-08-253-0/+127
| | | | | | | | | The FFLAGS and OFLAGS now work correctly also for files opened with O_EXEC. Except possibly fuse, the other users pass values without O_EXEC set. fuse appears to assume O_EXEC is handled correctly. Although F_SETFL may not be commonly used for execute-only file descriptors, F_GETFL may be useful to find the access mode.
* Add tests for dup3().jilles2013-08-161-1/+86
|
* Add simple testcases for fcntl(F_DUP2FD_CLOEXEC).jilles2013-05-111-1/+47
|
* Add simple testcases for fcntl(F_DUPFD_CLOEXEC).jilles2013-05-111-1/+23
|
* Add missing argument to fcntl(F_DUPFD) in regression test.jilles2013-05-111-2/+6
|
* Spelling fixes for tools/uqs2011-12-301-1/+1
| | | | Add some $FreeBSD$ tags so svn will allow the commit.
* Fixed missing or broken library dependencies.ru2010-02-252-3/+3
|
* Fixed error checking of pthread(3) functions.ru2010-02-121-1/+1
| | | | | PR: 143807 Submitted by: pluknet (partly)
* Add a new 'void closefrom(int lowfd)' system call. When called, it closesjhb2009-06-153-0/+293
| | | | | | | | | | | | | | | | | | | | any open file descriptors >= 'lowfd'. It is largely identical to the same function on other operating systems such as Solaris, DFly, NetBSD, and OpenBSD. One difference from other *BSD is that this closefrom() does not fail with any errors. In practice, while the manpages for NetBSD and OpenBSD claim that they return EINTR, they ignore internal errors from close() and never return EINTR. DFly does return EINTR, but for the common use case (closing fd's prior to execve()), the caller really wants all fd's closed and returning EINTR just forces callers to call closefrom() in a loop until it stops failing. Note that this implementation of closefrom(2) does not make any effort to resolve userland races with open(2) in other threads. As such, it is not multithread safe. Submitted by: rwatson (initial version) Reviewed by: rwatson MFC after: 2 weeks
* Add a regression test for multiple threads of the same process acquiring the ↵zml2009-05-282-0/+110
| | | | | | same fcntl lock. Approved by: dfr (mentor)
* Add a regresion test to determine whether or not a file descriptor isrwatson2009-02-112-0/+129
| | | | | | | | | | | | | | | | | allocated in a fork(2)-inheritable way at the beginning or end of an accept(2) system call. This test creates a test thread and blocks it in accept(2), then forks a child process which tests to see if the next available file descriptor is defined or not (EBADF vs EINVAL for ftruncate(2)). This detects a regression introduced during the network stack locking work, in which a very narrow race during which fork(2) from one thread during accept(2) in a second thread lead to an extra inherited file descriptor turned into a very wide race ensuring that a descriptor was leaked into the child even though it hadn't been returned. PR: kern/130348
* Re-implement the client side of rpc.lockd in the kernel. This implementationdfr2008-06-261-50/+182
| | | | | | | | | | | | provides the correct semantics for flock(2) style locks which are used by the lockf(1) command line tool and the pidfile(3) library. It also implements recovery from server restarts and ensures that dirty cache blocks are written to the server before obtaining locks (allowing multiple clients to use file locking to safely share data). Sponsored by: Isilon Systems PR: 94256 MFC after: 2 weeks
* Fix the __FreeBSD_version check.dfr2008-03-261-1/+1
|
* Add some regression tests for posix record locks.dfr2008-03-262-0/+1356
|
* Introduce a new F_DUP2FD command to fcntl(2), for compatibility withantoine2008-03-081-2/+71
| | | | | | | | | | | | Solaris and AIX. fcntl(fd, F_DUP2FD, arg) and dup2(fd, arg) are functionnaly equivalent. Document it. Add some regression tests (identical to the dup2(2) regression tests). PR: 120233 Submitted by: Jukka Ukkonen Approved by: rwaston (mentor) MFC after: 1 month
* o Indent by tab.maxim2006-11-111-1/+1
|
* o Add several regression tests for dup(2), dup2(2) and fcntl(F_DUPFD).maxim2006-11-113-0/+177
| | | | Obtained from: OpenBSD
* o style.Makefile(5): WARNS= -> WARNS?=.maxim2006-07-091-1/+1
|
* When extending a file with truncate, check that newly added bytes haverwatson2006-07-091-21/+55
| | | | | | | a value of 0 in the extended region. Make sure that we get EINVAL back if we try to truncate a read-only file descriptor.
* Add regression tests to make sure that attempting to call ftruncate() onrwatson2006-07-091-5/+46
| | | | various non-file objects fails.
* Add very basic ftruncate() regression test, with a comment rather morerwatson2006-07-092-0/+109
thorough than the tests regarding what should be tested.
OpenPOWER on IntegriCloud