svn commit: r273393 - head/contrib/netbsd-tests/lib/libc/sys
Garrett Cooper
ngie at FreeBSD.org
Tue Oct 21 18:00:56 UTC 2014
Author: ngie
Date: Tue Oct 21 18:00:55 2014
New Revision: 273393
URL: https://svnweb.freebsd.org/changeset/base/273393
Log:
Port t_write to FreeBSD
- Mark the signo variable for the signal handle __unused
- Use limits.h instead of sys/syslimits.h (the latter does not
exist on FreeBSD)
Sponsored by: EMC / Isilon Storage Division
Modified:
head/contrib/netbsd-tests/lib/libc/sys/t_write.c
Modified: head/contrib/netbsd-tests/lib/libc/sys/t_write.c
==============================================================================
--- head/contrib/netbsd-tests/lib/libc/sys/t_write.c Tue Oct 21 17:59:27 2014 (r273392)
+++ head/contrib/netbsd-tests/lib/libc/sys/t_write.c Tue Oct 21 18:00:55 2014 (r273393)
@@ -32,7 +32,9 @@ __COPYRIGHT("@(#) Copyright (c) 2008\
__RCSID("$NetBSD: t_write.c,v 1.2 2011/10/19 16:19:30 jruoho Exp $");
#include <sys/uio.h>
+#if defined(__NetBSD__)
#include <sys/syslimits.h>
+#endif
#include <atf-c.h>
#include <errno.h>
@@ -43,13 +45,21 @@ __RCSID("$NetBSD: t_write.c,v 1.2 2011/1
#include <string.h>
#include <unistd.h>
+#if defined(__FreeBSD__)
+#include <limits.h>
+#endif
+
static void sighandler(int);
static bool fail = false;
static const char *path = "write";
static void
+#if defined(__FreeBSD__)
+sighandler(int signo __unused)
+#else
sighandler(int signo)
+#endif
{
fail = false;
}
More information about the svn-src-all
mailing list