Xin LI
28ffe927c2
Expose an interface to determine if an ACE is inherited.
...
Submitted by: sef
Reviewed by: trasz
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D3540
2015-09-04 00:14:20 +00:00
Craig Rodrigues
60caf0c9c2
- Replace N(a)/N(i)/N(T)/LEN(a)/ARRAY_SIZE(a) with nitems()
...
- Add missing <err.h> for err() and <sys/sysctl.h> for sysctlbyname()
- NULL -> 0 for 5th parameter of sysctlbyname()
Submitted by: Andriy Voskoboinyk <s3erios@gmail com>
Differential Revision: https://reviews.freebsd.org/D3442
2015-08-29 19:47:20 +00:00
Jilles Tjoelker
89cead337a
wordexp(): Improve some error codes.
...
Distinguish between WRDE_BADVAL and WRDE_SYNTAX based on when the error
occurred (parsing or execution), not based on whether WRDE_UNDEF was passed.
Also, return WRDE_NOSPACE for a few more unexpected results from sh.
2015-08-19 20:31:03 +00:00
Christian Brueffer
238ca3cb7e
Add a missing break statement, which made the code default to IPv6.
...
PR: 201285
Submitted by: David Binderman
MFC after: 1 week
2015-07-14 15:24:50 +00:00
Mariusz Zaborski
c36e54bb32
Let the nv.h and dnv.h includes be only in sys directory.
...
Change consumers to include those files from sys.
Add duplicated files to ObsoleteFiles.
Approved by: pjd (mentor)
2015-07-02 21:58:10 +00:00
Simon J. Gerraty
ccfb965433
Add META_MODE support.
...
Off by default, build behaves normally.
WITH_META_MODE we get auto objdir creation, the ability to
start build from anywhere in the tree.
Still need to add real targets under targets/ to build packages.
Differential Revision: D2796
Reviewed by: brooks imp
2015-06-13 19:20:56 +00:00
Simon J. Gerraty
98e0ffaefb
Merge sync of head
2015-05-27 01:19:58 +00:00
Enji Cooper
5db06fccd8
Remove directory for test that has been integrated in under tests/sys/...
...
X-MFC with: r282067
MFC after: 1 week
2015-05-24 07:21:30 +00:00
Enji Cooper
5956adf2c6
Fix more warnings related to missing headers
...
MFC after: 1 week
2015-05-16 22:53:26 +00:00
Enji Cooper
65221ed42e
Integrate tools/regression/mmap into the FreeBSD test suite as
...
tests/sys/kern/mmap_test
MFC after: 1 week
2015-04-27 09:06:27 +00:00
Enji Cooper
fce04f6ee5
Convert this testcase over to a TAP format testcase
...
MFC after: 1 week
2015-04-27 09:04:16 +00:00
Enji Cooper
f44eb01339
Integrate tools/regression/aio/aiotest and tools/regression/aio/kqueue into the
...
FreeBSD test suite as tests/sys/aio
MFC after: 1 week
2015-04-27 08:51:40 +00:00
Enji Cooper
cfbf6b6975
- Fix style(9) a bit
...
-- Fix whitespace
-- Use err/errx
-- Remove superfluous braces
- Be a bit more defensive with input from the end-user
- Don't throw a floating point exception by dividing by 0 when processing a
zero-byte file
MFC after: 1 week
2015-04-27 08:37:13 +00:00
Enji Cooper
a39b8b86f7
- Fix compilation (MAP_INHERIT's dead)
...
- Fix warnings
- Use mkstemp instead of tmpnam
MFC after: 1 week
2015-04-27 08:34:46 +00:00
Enji Cooper
e100f6a2fc
Integrate tools/regression/mqueue into the FreeBSD test suite as
...
tests/sys/mqueue
MFC after: 1 week
2015-04-27 08:31:43 +00:00
Enji Cooper
3cedbec3ee
Integrate tools/regression/fifo into the FreeBSD test suite as tests/sys/fifo
...
and tools/regression/file into the FreeBSD test suite as tests/sys/file
MFC after: 1 week
2015-04-27 08:15:17 +00:00
Enji Cooper
70598e5094
Integrate tools/regression/kqueue into the FreeBSD test suite as
...
tests/sys/kqueue
MFC after: 1 week
2015-04-27 07:37:48 +00:00
Enji Cooper
f19fbaf8eb
Fix -Wformat warnings by using proper format string qualifiers for
...
long and unsigned[ long] types
MFC after: 1 week
2015-04-27 07:28:41 +00:00
Enji Cooper
bbf12e6f7f
Integrate tools/regression/execve into the FreeBSD test suite as
...
tests/sys/kern/execve
MFC after: 1 week
2015-04-27 07:22:18 +00:00
John Baldwin
179fa75e6e
Reassign copyright statements on several files from Advanced
...
Computing Technologies LLC to Hudson River Trading LLC.
Approved by: Hudson River Trading LLC (who owns ACT LLC)
MFC after: 1 week
2015-04-23 14:22:20 +00:00
Enji Cooper
a954133569
Fix even more warnings..
...
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
2015-04-11 07:37:21 +00:00
Enji Cooper
13517893dd
Fix more warnings I didn't catch in the first go-around
...
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
2015-04-11 07:35:30 +00:00
Enji Cooper
75171ec59a
Fix warnings, bump WARNS to 6, and use a temporary socket instead of one in /tmp
...
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
2015-04-11 07:33:04 +00:00
Enji Cooper
f7f1145f94
- Remove the .t wrapper and put the "magic" of determining the number of
...
testcases into the .c file
- Require root for now because it fails with SOCK_RAW without root privileges
- Increment the test count properly on socket create failure
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
2015-04-11 06:40:38 +00:00
Enji Cooper
ddecfa0403
Fix the knob twiddling to work properly per src.opts.mk
...
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
2015-04-11 06:38:50 +00:00
Enji Cooper
93b278f08d
Generate temporary files with mkstemp instead of mktemp
...
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
2015-04-11 05:20:01 +00:00
Enji Cooper
1103e0c1bc
Garbage collect argc/argv and bump WARNS to 6
...
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
2015-04-11 03:57:35 +00:00
Enji Cooper
f305e6eaf8
Garbage collect argc/argv and bump WARNS to 6
...
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
2015-04-11 03:56:23 +00:00
Enji Cooper
5a3935b6d6
- Garbage collect argc/argv
...
- Use random paths instead of one in /tmp
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
2015-04-11 03:54:43 +00:00
Enji Cooper
1e0d206337
- Garbage collect argc/argv; bump WARNS to 6
...
- Make the socket path random and move it out of /tmp as that's outside ATF's
prescribed path
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
2015-04-11 03:43:43 +00:00
Enji Cooper
38a7f1e446
Fix warnings and bump WARNS to 6
...
- Staticize variables as needed
- Garbage collect argc/argv
- Fix -Wsign-compare warnings by casting small sizeof to (int)
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
2015-04-11 03:38:49 +00:00
Enji Cooper
d09e3a296c
Garbage collect argc/argv and bump WARNS to 6
...
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
2015-04-11 03:35:33 +00:00
Enji Cooper
abbb25c74d
Mark signum unused in signal_handler; bump WARNS to 6
...
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
2015-04-11 03:24:49 +00:00
Enji Cooper
bcd1483d9d
Fix a -Wuninitialized warning by setting the socket to -1 and bump WARNS to 6
...
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
2015-04-11 03:19:48 +00:00
Enji Cooper
b74bcac4bd
- Don't use /tmp because it's outside ATF's prescribed sandbox
...
- Replace a hardcoded PATH_MAX value with sizeof(path)
- Use path like an array, not a pointer, and always try to unlink it in cleanup
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
2015-04-11 03:18:14 +00:00
Enji Cooper
c7ded8ba9e
Fix warnings and bump WARNS to 6
...
- Garbage collect argc/argv (-Wunused)
- sleep(3) will always return an unsigned int; don't check for return codes <0
(-Wsign-compare)
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
2015-04-11 03:13:09 +00:00
Enji Cooper
572e1f51aa
- Garbage collect argc/argv (-Wunused)
...
- Bump WARNS to 6
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
2015-04-11 02:59:45 +00:00
Enji Cooper
f6b2ef31db
- Use static buffers for temporary file paths instead of strdup of constant strings
...
- Don't use /tmp because it's outside ATF's prescribed sandbox
- Use mkstemp instead of mktemp to eliminate warning
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
2015-04-11 02:50:44 +00:00
Enji Cooper
e04e98929f
Use _exit, not exit in forked process
...
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
2015-04-10 09:37:53 +00:00
Enji Cooper
62b65008d0
Remove argc/argv (-Wunused)
...
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
2015-04-10 09:27:23 +00:00
Enji Cooper
7d075cff6e
Fix warnings
...
- Remove argc/argv (-Wunused)
- Mark some parameters to socket_listen_update __unused (-Wunused)
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
2015-04-10 09:26:21 +00:00
Enji Cooper
cc469a3b3a
Remove argc/argv (-Wunused)
...
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
2015-04-10 09:23:00 +00:00
Enji Cooper
41119c8725
- Parameterize out the number of accept/connect attempts
...
- Randomize the bind port to allow 2+ consecutive calls in < 10 minutes, and
to also not fail if (for instance) there's a server already listening on port
8080
- Don't leak the listening socket / fds into the child process
- Fix warnings:
-- Remove argc/argv (-Wunused)
-- Mark sig __unused (-Wunused)
-- Mark quit static (-Wmissing-variable-declarations)
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
2015-04-10 09:21:07 +00:00
Enji Cooper
957885bf58
Fix -Wunused warnings, bump WARNS to 6
...
The output is still broken if prove -rv is run and the testcase aborts
prematurely with fail_assertion (the testcase doesn't really conform to TAP
protocol properly, except when it completes fully)
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
2015-04-10 08:01:49 +00:00
Enji Cooper
1aa40dada2
Fix -Wunused warnings, bump WARNS to 6
...
The testcase fails today on subtest # 9
The output is still broken if prove -rv is run and the testcase aborts
prematurely (the testcase doesn't really conform to TAP protocol properly,
except when it completes fully)
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
2015-04-10 07:59:46 +00:00
Enji Cooper
2084db1777
Fix warnings, fix a typo in a testcase description, bump WARNS to 3
...
- Remove argc/argv (-Wunused)
- Cast len in comparison to size_t (-Wsign-compare)
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
2015-04-10 07:35:53 +00:00
Enji Cooper
b41853c8fe
- Fix -Wsign issue
...
- Bump up to WARNS=6
2015-03-31 06:51:13 +00:00
Enji Cooper
b5d45f0794
Minor cleanup before converting to ATF testcases
...
- Remove blank (tab-only) lines.
- Fix -Wunused warnings.
- Bump up to WARNS= 6
2015-03-31 06:50:28 +00:00
Enji Cooper
76cbe329d6
Cleanup and do minor refactoring before converting testcases to ATF
...
- Convert errx(-1, ..) to errx(1, ..)
- Move the aio(4) checks to a single function (aio_available); use modfind(2)
instead of depending on SIGSYS (doesn't work when aio(4) support is missing,
not documented in the aio syscall manpages).
- Use aio_available liberally in the testcase functions
- Use mkstemp(3) + unlink(2) instead of mktemp(3)
- Fix some -Wunused warnings
- Bump WARNS to 6
MFC after: 1 week
Submitted by: mjohnston [*]
Sponsored by: EMC / Isilon Storage Division
2015-03-31 06:43:55 +00:00
Jilles Tjoelker
9d14d0aaae
wordexp(): Add testcase for non-default IFS in environment.
...
The non-default IFS is expected to be used.
MFC after: 1 week
2015-03-29 22:00:24 +00:00