projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remainder* tests: More tests.
[gnulib.git]
/
tests
/
test-select.h
diff --git
a/tests/test-select.h
b/tests/test-select.h
index
4612dfc
..
9fe998c
100644
(file)
--- a/
tests/test-select.h
+++ b/
tests/test-select.h
@@
-1,5
+1,5
@@
/* Test of select() substitute.
/* Test of select() substitute.
- Copyright (C) 2008-201
1
Free Software Foundation, Inc.
+ Copyright (C) 2008-201
2
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-30,7
+30,7
@@
#include "macros.h"
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
#include "macros.h"
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
-# define WIN
32
_NATIVE
+# define WIN
DOWS
_NATIVE
#endif
#ifdef HAVE_SYS_WAIT_H
#endif
#ifdef HAVE_SYS_WAIT_H
@@
-121,7
+121,7
@@
connect_to_socket (bool blocking)
if (!blocking)
{
if (!blocking)
{
-#ifdef WIN
32
_NATIVE
+#ifdef WIN
DOWS
_NATIVE
unsigned long iMode = 1;
ioctl (s, FIONBIO, (char *) &iMode);
unsigned long iMode = 1;
ioctl (s, FIONBIO, (char *) &iMode);
@@
-262,7
+262,7
@@
static void
test_bad_fd (select_fn my_select)
{
/* This tests fails on OSF/1 and native Windows, even with fd = 16. */
test_bad_fd (select_fn my_select)
{
/* This tests fails on OSF/1 and native Windows, even with fd = 16. */
-#if !(defined __osf__ || defined WIN
32
_NATIVE)
+#if !(defined __osf__ || defined WIN
DOWS
_NATIVE)
int fd;
/* On Linux, MacOS X, *BSD, values of fd like 99 or 399 are discarded
int fd;
/* On Linux, MacOS X, *BSD, values of fd like 99 or 399 are discarded
@@
-318,7
+318,7
@@
test_connect_first (select_fn my_select)
static void
test_accept_first (select_fn my_select)
{
static void
test_accept_first (select_fn my_select)
{
-#ifndef WIN
32
_NATIVE
+#ifndef WIN
DOWS
_NATIVE
int s = open_server_socket ();
struct sockaddr_in ia;
socklen_t addrlen;
int s = open_server_socket ();
struct sockaddr_in ia;
socklen_t addrlen;