projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "error: make the module depend on vfprintf-posix"
[gnulib.git]
/
tests
/
test-accept4.c
diff --git
a/tests/test-accept4.c
b/tests/test-accept4.c
index
85232ca
..
99f901b
100644
(file)
--- a/
tests/test-accept4.c
+++ b/
tests/test-accept4.c
@@
-24,6
+24,7
@@
SIGNATURE_CHECK (accept4, int, (int, struct sockaddr *, socklen_t *, int));
#include <errno.h>
#include <fcntl.h>
#include <netinet/in.h>
#include <errno.h>
#include <fcntl.h>
#include <netinet/in.h>
+#include <unistd.h>
#include "binary-io.h"
#include "sockets.h"
#include "binary-io.h"
#include "sockets.h"
@@
-50,6
+51,7
@@
main (void)
struct sockaddr_in addr;
socklen_t addrlen = sizeof (addr);
struct sockaddr_in addr;
socklen_t addrlen = sizeof (addr);
+ close (99);
errno = 0;
ASSERT (accept4 (99, (struct sockaddr *) &addr, &addrlen,
O_CLOEXEC | O_BINARY)
errno = 0;
ASSERT (accept4 (99, (struct sockaddr *) &addr, &addrlen,
O_CLOEXEC | O_BINARY)