summaryrefslogtreecommitdiffstats
path: root/regress/lib/libpthread/select/select.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2018-04-26 15:55:14 +0000
committerguenther <guenther@openbsd.org>2018-04-26 15:55:14 +0000
commit6316a812ffce2a07760250a855370f709586d085 (patch)
tree817a308ccfb569fe5fcf952dc86fb13a140faba6 /regress/lib/libpthread/select/select.c
parentNo need for two copies of tricky user input gathering code. Just use (diff)
downloadwireguard-openbsd-6316a812ffce2a07760250a855370f709586d085.tar.xz
wireguard-openbsd-6316a812ffce2a07760250a855370f709586d085.zip
Prefer <fcntl.h> over <sys/fcntl.h> in userland
While here, delete some extra #includes and apply style(9) sort rules. ok deraadt@ krw@ mpi@
Diffstat (limited to 'regress/lib/libpthread/select/select.c')
-rw-r--r--regress/lib/libpthread/select/select.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/regress/lib/libpthread/select/select.c b/regress/lib/libpthread/select/select.c
index 5e3f4a61fa0..a2bbd3da25e 100644
--- a/regress/lib/libpthread/select/select.c
+++ b/regress/lib/libpthread/select/select.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: select.c,v 1.3 2003/07/31 21:48:06 deraadt Exp $ */
+/* $OpenBSD: select.c,v 1.4 2018/04/26 15:55:14 guenther Exp $ */
/*
* Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors,
* proven@mit.edu All rights reserved.
@@ -36,15 +36,15 @@
* Rudimentary test of select().
*/
-#include <pthread.h>
-#include <pthread_np.h>
-#include <stdio.h>
-#include <sys/fcntl.h>
#include <sys/types.h>
#include <sys/time.h>
#include <errno.h>
-#include <unistd.h>
+#include <fcntl.h>
+#include <pthread.h>
+#include <pthread_np.h>
+#include <stdio.h>
#include <stdlib.h>
+#include <unistd.h>
#include "test.h"
#define NLOOPS 10000