Enji Cooper
484b700751
Fix up r312105
...
- Only #include tcpd.h when LIBWRAP is true to avoid header include errors
- Only define whichaf when LIBWRAP is true to avoid -Wunused warning and
to avoid issues with structs being defined that should only be defined
when tcpd.h is included.
MFC after: 2 weeks
X-MFC with: r312105
Pointyhat to: ngie
Reported by: gcc tinderbox
Sponsored by: Dell EMC Isilon
2017-01-14 10:20:38 +00:00
Enji Cooper
83e891f222
Revert t_pow@r312154
...
This hunk hasn't been accepted yet
2017-01-14 10:10:49 +00:00
Enji Cooper
1f6a3aa8e5
Fix the build using hunks pending upstream contributions
2017-01-14 10:08:22 +00:00
Enji Cooper
e0940c61c2
Diff reduce with upstream post-accepted contributions
2017-01-14 10:05:26 +00:00
Jason A. Harmening
28699efd43
For i386 temporary mappings, unpin the thread before releasing
...
the cmap lock. Releasing the lock first may result in the thread
being immediately rescheduled and bound to the same CPU, only to
unpin itself upon resuming execution.
Noted by: skra (in review for armv6 equivalent)
MFC after: 1 week
2017-01-14 09:56:01 +00:00
Enji Cooper
81e7d81dc3
One more sys/types.h kevent clarification missed in r312151
2017-01-14 09:47:06 +00:00
Enji Cooper
ecab856bc9
Clarify why sys/types.h #include is needed on FreeBSD
2017-01-14 09:45:46 +00:00
Enji Cooper
c8300756f2
Use cleanup routines to remove POSIX semaphores instead of just blindly
...
unlinking them at the beginning of the testcase
This is a lot more intelligent in cleaning up the semaphores if the testcase
fails before sem_unlink is called.
Contributed back as bin/51872 upstream.
2017-01-14 09:42:06 +00:00
Enji Cooper
2a1440c618
Diff reduce with upstream by taking diff hunks that were contributed back
2017-01-14 09:38:40 +00:00
Enji Cooper
9f30f6b7c3
Readd the CMSG_DATA for assigning the kqueue... this testcase isn't officially
...
correct yet, but it's getting closer.
2017-01-14 09:25:09 +00:00
Enji Cooper
25785590d5
Remove extra EVSET I added in r312146 by accident
2017-01-14 09:21:36 +00:00
Enji Cooper
a41b7cf58e
Diff reduce with upstream
...
Use CMSG_FIRSTHDR macro to properly link the kqueue to the socket to
get it to now return -1/EBADF with sendmsg per the testcase expectations
2017-01-14 09:20:54 +00:00
Enji Cooper
7bb9bc9cc2
Try to consolidate the #ifdef soup into FreeBSD vs non-FreeBSD blocks better
2017-01-14 08:47:00 +00:00
Enji Cooper
0e6a2253dc
Diff reduce with upstream
2017-01-14 08:39:53 +00:00
Enji Cooper
6e515978dd
Remove comment no longer true since the test no longer bombs out earlier on
2017-01-14 08:38:21 +00:00
Enji Cooper
04f40d86db
Diff reduce with upstream
2017-01-14 08:36:43 +00:00
Enji Cooper
50e474a4f6
:strtold_nan: remove unnecessary strcmp check
...
It gets checked again later on in the testcase
2017-01-14 08:35:29 +00:00
Enji Cooper
1081817ad5
Diff reduce with upstream
2017-01-14 08:12:57 +00:00
Enji Cooper
154be35857
Use copy of sha2.h from libnetbsd
2017-01-14 08:11:17 +00:00
Enji Cooper
c3b0c094b3
libnetbsd: improve sha2.h compat with FreeBSD
...
Add sha384 #include to libnetbsd's copy of sha2.h to expose all of the
SHA384 support via the header.
2017-01-14 08:10:37 +00:00
Enji Cooper
0e3f47800f
Restore deleted line
2017-01-14 07:59:33 +00:00
Enji Cooper
1cb4521644
Diff reduce with upstream using lib/libnetbsd's updated copy of sha1.h
2017-01-14 07:58:40 +00:00
Enji Cooper
59754238a2
libnetbsd: improve sha1.h compat with FreeBSD
...
Map SHA1_CTX to SHA_CTX and SHA1Final to SHA1_Final
2017-01-14 07:57:34 +00:00
Enji Cooper
9a62e988b3
r312133 should have used the non-FreeBSD block
2017-01-14 07:50:29 +00:00
Enji Cooper
4e9c68081e
Diff reduce with upstream by using util.h from libnetbsd instead of libutil.h
2017-01-14 07:48:22 +00:00
Enji Cooper
acf26de3fa
Add stdio.h #include for fparseln
...
fparseln on FreeBSD requires stdio.h, then libutil.h, whereas NetBSD only
requires util.h
2017-01-14 07:46:03 +00:00
Enji Cooper
3b85282333
Diff reduce with upstream
2017-01-14 07:39:07 +00:00
Enji Cooper
88dd6cd01d
Copy ^/vendor/NetBSD/tests/dist/lib/libc/hash/t_hmac.c to
...
contrib/netbsd-tests/lib/libc/hash/t_hmac.c
This was missed in r303980
2017-01-14 07:16:15 +00:00
Enji Cooper
8eace6ac0f
Try again with a better commit message
2017-01-14 07:15:14 +00:00
Enji Cooper
519b4f22b0
Copy ^/vendor/NetBSD/tests/dist to contrib/netbsd-tests
...
This was missed in r303980
2017-01-14 07:14:25 +00:00
Enji Cooper
71164a14d0
Integrate .../contrib/netbsd-tests/usr.bin/uniq into the FreeBSD test
...
suite as .../usr.bin/uniq/tests
Sponsored by: Dell EMC Isilon
2017-01-14 06:51:31 +00:00
Enji Cooper
63d1fd5970
Merge content currently under test from ^/vendor/NetBSD/tests/dist/@r312123
...
Sponsored by: Dell EMC Isilon
2017-01-14 06:49:17 +00:00
Mateusz Guzik
ed2159c92c
tmpfs: manage tm_pages_used with atomics
...
Reviewed by: kib (previous version)
2017-01-14 06:20:36 +00:00
Enji Cooper
a567518138
Add additional tests missed in previous merges
...
Reminder: use cvs up -APd to pull new directories
2017-01-14 06:18:54 +00:00
Enji Cooper
792bbaba98
Remove contrib/netbsd-tests/fs/nfs/nfsservice/rpcbind
...
This should have been pruned in r305358
MFC after: 3 days
Sponsored by: Dell EMC Isilon
2017-01-14 06:16:57 +00:00
Enji Cooper
dcdb30d8f8
Follow up to r312118
...
State that execve failed instead of just printing out the program name
and strerror(errno) via err(3).
MFC after: 3 days
X-MFC with: r312118
Sponsored by: Dell EMC Isilon
2017-01-14 05:24:35 +00:00
Enji Cooper
f614ceaf4a
Fix warnings
...
- Staticize test_num
- Promote i to size_t to deal with -Wsign-compare issues
Tested with: clang, gcc, gcc49
MFC after: 1 week
Sponsored by: Dell EMC Isilon
2017-01-14 05:18:18 +00:00
Enji Cooper
d467b2ee0c
encode_long, encode_timeval: mechanically replace exp
with exponent
...
This helps fix a -Wshadow issue with exp(3) with tests/sys/acct/acct_test,
which include math.h, which in turn defines exp(3)
MFC after: 2 weeks
Tested with: clang, gcc 4.2.1, gcc 4.9
Sponsored by: Dell EMC Isilon
2017-01-14 05:06:14 +00:00
Enji Cooper
dfa7f3a543
Fix -Wformat issue with zero-length format string passed to err(3)
...
MFC after: 3 days
Tested with: clang, gcc 4.2.1, gcc 4.9
Sponsored by: Dell EMC Isilon
2017-01-14 05:02:53 +00:00
Enji Cooper
bf8f6d7c8d
Remove WARNS set globally by ../Makefile.inc now
...
Sponsored by: Dell EMC Isilon
2017-01-14 04:20:42 +00:00
Enji Cooper
de81acbd15
Enable WARNS?= 6 across all of tests/sys
...
MFC after: 1 week
Sponsored by: Dell EMC Isilon
2017-01-14 04:20:06 +00:00
Enji Cooper
66db8cca1a
Clean up trailing whitespace
...
MFC after: 3 days
Sponsored by: Dell EMC Isilon
2017-01-14 04:16:13 +00:00
Enji Cooper
5e8fcdfe1b
Fix -Wunused on gcc 4.9 (x was set but not used)
...
MFC after: 3 days
Sponsored by: Dell EMC Isilon
2017-01-14 04:13:28 +00:00
Enji Cooper
54ff563fb9
Remove unused vars to fix -Wunused issues
...
MFC after: 3 days
Sponsored by: Dell EMC Isilon
2017-01-14 04:10:04 +00:00
Enji Cooper
5fea45956e
Fix -Wsign-compare warnings
...
The loop index (i) doesn't need to be size_t as its comparison is signed
MFC after: 1 week
Sponsored by: Dell EMC Isilon
2017-01-14 04:09:01 +00:00
Enji Cooper
02820e5e4e
Bump WARNS up to 6 again
...
Has not been tested (can't be after r312103 without cem's hacks
to atf/kyua)!
2017-01-14 04:00:26 +00:00
Enji Cooper
36b9e15c66
Delete trailing whitespace and use __arraycount instead of nitems in contrib code
...
MFC after: 1 week
2017-01-14 03:54:23 +00:00
Conrad Meyer
5c9ce2504a
Follow-up to r312103:
...
Revert r310995 as well.
2017-01-14 02:29:25 +00:00
Enji Cooper
a72f1252fc
Commit more accepted upstream changes from <NetBSD>/tests/...
...
This includes a number of accepted patches for:
- lib/libc/sys
- lib/libm
christos was also nice enough to do the heavy lifting with the h_macros.h
#includes so testcases which use h_macros.h now can work more easily with
the FreeBSD tree's layout for contrib/netbsd-tests vs the testcases.
2017-01-14 02:26:46 +00:00
Enji Cooper
63eca8f1dd
Conditionalize libwrap support into inetd based on MK_TCP_WRAPPERS
...
This will allow inetd to stand by itself without libwrap.
MFC after: 2 weeks
Relnotes: yes
Reviewed by: hrs (earlier version)
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D9056
2017-01-14 01:37:03 +00:00