Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC)

- Fix for possible unset uid/gid in toproto
 - Fix for default mtree style
 - Update libelf
 - Importing libexecinfo
 - Resynchronize GCC, mpc, gmp, mpfr
 - build.sh: Replace params with show-params.
     This has been done as the make target has been renamed in the same
     way, while a new target named params has been added. This new
     target generates a file containing all the parameters, instead of
     printing it on the console.
 - Update test48 with new etc/services (Fix by Ben Gras <ben@minix3.org)
     get getservbyport() out of the inner loop

Change-Id: Ie6ad5226fa2621ff9f0dee8782ea48f9443d2091
This commit is contained in:
2013-12-06 12:04:52 +01:00
parent ff10274392
commit 84d9c625bf
4655 changed files with 379317 additions and 151059 deletions

View File

@@ -1,4 +1,4 @@
/* $NetBSD: t_socket.c,v 1.1 2011/07/07 05:50:27 jruoho Exp $ */
/* $NetBSD: t_socket.c,v 1.3 2013/10/19 17:45:00 christos Exp $ */
#include <sys/types.h>
#include <sys/mount.h>
@@ -83,7 +83,7 @@ ATF_TC_BODY(cmsg_sendfd, tc)
struct cmsghdr *cmp;
struct msghdr msg;
struct sockaddr_un sun;
struct lwp *l1, *l2;
struct lwp *l1;
struct iovec iov;
socklen_t sl;
int s1, s2, sgot;
@@ -109,7 +109,7 @@ ATF_TC_BODY(cmsg_sendfd, tc)
/* create second process for test */
RZ(rump_pub_lwproc_rfork(RUMP_RFCFDG));
l2 = rump_pub_lwproc_curlwp();
(void)rump_pub_lwproc_curlwp();
/* connect to unix domain socket */
memset(&sun, 0, sizeof(sun));
@@ -179,10 +179,27 @@ ATF_TC_BODY(cmsg_sendfd, tc)
atf_tc_fail("expected \"%s\", got \"%s\"", MAGICSTRING, buf);
}
ATF_TC(sock_cloexec);
ATF_TC_HEAD(sock_cloexec, tc)
{
atf_tc_set_md_var(tc, "descr", "SOCK_CLOEXEC kernel invariant failure");
}
ATF_TC_BODY(sock_cloexec, tc)
{
rump_init();
rump_pub_lwproc_rfork(RUMP_RFFDG);
if (rump_sys_socket(-1, SOCK_CLOEXEC, 0) != -1)
atf_tc_fail("invalid socket parameters unexpectedly worked");
rump_pub_lwproc_releaselwp();
}
ATF_TP_ADD_TCS(tp)
{
ATF_TP_ADD_TC(tp, cmsg_sendfd);
ATF_TP_ADD_TC(tp, cmsg_sendfd_bounds);
ATF_TP_ADD_TC(tp, sock_cloexec);
return atf_no_error();
}