Commit 04dd08b4 authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Linus Torvalds

Consolidate asm/poll.h

These files are almost all the same.

This patch could be made even simpler if we don't mind POLLREMOVE turning
up in a few architectures that didn't have it previously (which should be
OK as POLLREMOVE is not used anywhere in the current tree).
Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Cc: <linux-arch@vger.kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 99eaf3c4
#ifndef __ALPHA_POLL_H #include <asm-generic/poll.h>
#define __ALPHA_POLL_H
#define POLLIN (1 << 0)
#define POLLPRI (1 << 1)
#define POLLOUT (1 << 2)
#define POLLERR (1 << 3)
#define POLLHUP (1 << 4)
#define POLLNVAL (1 << 5)
#define POLLRDNORM (1 << 6)
#define POLLRDBAND (1 << 7)
#define POLLWRNORM (1 << 8)
#define POLLWRBAND (1 << 9)
#define POLLMSG (1 << 10)
#define POLLREMOVE (1 << 12)
#define POLLRDHUP (1 << 13)
struct pollfd {
int fd;
short events;
short revents;
};
#endif
#ifndef __ASMARM_POLL_H #include <asm-generic/poll.h>
#define __ASMARM_POLL_H
/* These are specified by iBCS2 */
#define POLLIN 0x0001
#define POLLPRI 0x0002
#define POLLOUT 0x0004
#define POLLERR 0x0008
#define POLLHUP 0x0010
#define POLLNVAL 0x0020
/* The rest seem to be more-or-less nonstandard. Check them! */
#define POLLRDNORM 0x0040
#define POLLRDBAND 0x0080
#define POLLWRNORM 0x0100
#define POLLWRBAND 0x0200
#define POLLMSG 0x0400
#define POLLREMOVE 0x1000
#define POLLRDHUP 0x2000
struct pollfd {
int fd;
short events;
short revents;
};
#endif
#ifndef __ASMARM_POLL_H #ifndef __ASMARM_POLL_H
#define __ASMARM_POLL_H #define __ASMARM_POLL_H
/* These are specified by iBCS2 */ #include <asm-generic/poll.h>
#define POLLIN 0x0001
#define POLLPRI 0x0002
#define POLLOUT 0x0004
#define POLLERR 0x0008
#define POLLHUP 0x0010
#define POLLNVAL 0x0020
/* The rest seem to be more-or-less nonstandard. Check them! */ #undef POLLREMOVE
#define POLLRDNORM 0x0040
#define POLLRDBAND 0x0080
#define POLLWRNORM 0x0100
#define POLLWRBAND 0x0200
#define POLLMSG 0x0400
#define POLLRDHUP 0x2000
struct pollfd {
int fd;
short events;
short revents;
};
#endif #endif
#ifndef __ASM_AVR32_POLL_H #include <asm-generic/poll.h>
#define __ASM_AVR32_POLL_H
/* These are specified by iBCS2 */
#define POLLIN 0x0001
#define POLLPRI 0x0002
#define POLLOUT 0x0004
#define POLLERR 0x0008
#define POLLHUP 0x0010
#define POLLNVAL 0x0020
/* The rest seem to be more-or-less nonstandard. Check them! */
#define POLLRDNORM 0x0040
#define POLLRDBAND 0x0080
#define POLLWRNORM 0x0100
#define POLLWRBAND 0x0200
#define POLLMSG 0x0400
#define POLLREMOVE 0x1000
#define POLLRDHUP 0x2000
struct pollfd {
int fd;
short events;
short revents;
};
#endif /* __ASM_AVR32_POLL_H */
#ifndef __ASM_CRIS_POLL_H #include <asm-generic/poll.h>
#define __ASM_CRIS_POLL_H
/* taken from asm-alpha */
#define POLLIN 1
#define POLLPRI 2
#define POLLOUT 4
#define POLLERR 8
#define POLLHUP 16
#define POLLNVAL 32
#define POLLRDNORM 64
#define POLLRDBAND 128
#define POLLWRNORM 256
#define POLLWRBAND 512
#define POLLMSG 1024
#define POLLREMOVE 4096
#define POLLRDHUP 8192
struct pollfd {
int fd;
short events;
short revents;
};
#endif
#ifndef _ASM_POLL_H #ifndef _ASM_POLL_H
#define _ASM_POLL_H #define _ASM_POLL_H
#define POLLIN 1
#define POLLPRI 2
#define POLLOUT 4
#define POLLERR 8
#define POLLHUP 16
#define POLLNVAL 32
#define POLLRDNORM 64
#define POLLWRNORM POLLOUT #define POLLWRNORM POLLOUT
#define POLLRDBAND 128
#define POLLWRBAND 256 #define POLLWRBAND 256
#define POLLMSG 0x0400
#define POLLRDHUP 0x2000
struct pollfd { #include <asm-generic/poll.h>
int fd;
short events; #undef POLLREMOVE
short revents;
};
#endif #endif
...@@ -4,6 +4,7 @@ header-y += fcntl.h ...@@ -4,6 +4,7 @@ header-y += fcntl.h
header-y += ioctl.h header-y += ioctl.h
header-y += ipc.h header-y += ipc.h
header-y += mman.h header-y += mman.h
header-y += poll.h
header-y += signal.h header-y += signal.h
header-y += statfs.h header-y += statfs.h
......
#ifndef __ASM_GENERIC_POLL_H
#define __ASM_GENERIC_POLL_H
/* These are specified by iBCS2 */
#define POLLIN 0x0001
#define POLLPRI 0x0002
#define POLLOUT 0x0004
#define POLLERR 0x0008
#define POLLHUP 0x0010
#define POLLNVAL 0x0020
/* The rest seem to be more-or-less nonstandard. Check them! */
#define POLLRDNORM 0x0040
#define POLLRDBAND 0x0080
#ifndef POLLWRNORM
#define POLLWRNORM 0x0100
#endif
#ifndef POLLWRBAND
#define POLLWRBAND 0x0200
#endif
#ifndef POLLMSG
#define POLLMSG 0x0400
#endif
#ifndef POLLREMOVE
#define POLLREMOVE 0x1000
#endif
#ifndef POLLRDHUP
#define POLLRDHUP 0x2000
#endif
struct pollfd {
int fd;
short events;
short revents;
};
#endif /* __ASM_GENERIC_POLL_H */
#ifndef __H8300_POLL_H #ifndef __H8300_POLL_H
#define __H8300_POLL_H #define __H8300_POLL_H
#define POLLIN 1
#define POLLPRI 2
#define POLLOUT 4
#define POLLERR 8
#define POLLHUP 16
#define POLLNVAL 32
#define POLLRDNORM 64
#define POLLWRNORM POLLOUT #define POLLWRNORM POLLOUT
#define POLLRDBAND 128
#define POLLWRBAND 256 #define POLLWRBAND 256
#define POLLMSG 0x0400
#define POLLRDHUP 0x2000
struct pollfd { #include <asm-generic/poll.h>
int fd;
short events; #undef POLLREMOVE
short revents;
};
#endif #endif
#ifndef __i386_POLL_H #include <asm-generic/poll.h>
#define __i386_POLL_H
/* These are specified by iBCS2 */
#define POLLIN 0x0001
#define POLLPRI 0x0002
#define POLLOUT 0x0004
#define POLLERR 0x0008
#define POLLHUP 0x0010
#define POLLNVAL 0x0020
/* The rest seem to be more-or-less nonstandard. Check them! */
#define POLLRDNORM 0x0040
#define POLLRDBAND 0x0080
#define POLLWRNORM 0x0100
#define POLLWRBAND 0x0200
#define POLLMSG 0x0400
#define POLLREMOVE 0x1000
#define POLLRDHUP 0x2000
struct pollfd {
int fd;
short events;
short revents;
};
#endif
#ifndef _ASM_IA64_POLL_H #include <asm-generic/poll.h>
#define _ASM_IA64_POLL_H
/*
* poll(2) bit definitions. Based on <asm-i386/poll.h>.
*
* Modified 1998, 1999, 2002
* David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co
*/
#define POLLIN 0x0001
#define POLLPRI 0x0002
#define POLLOUT 0x0004
#define POLLERR 0x0008
#define POLLHUP 0x0010
#define POLLNVAL 0x0020
#define POLLRDNORM 0x0040
#define POLLRDBAND 0x0080
#define POLLWRNORM 0x0100
#define POLLWRBAND 0x0200
#define POLLMSG 0x0400
#define POLLREMOVE 0x1000
#define POLLRDHUP 0x2000
struct pollfd {
int fd;
short events;
short revents;
};
#endif /* _ASM_IA64_POLL_H */
#ifndef _ASM_M32R_POLL_H #include <asm-generic/poll.h>
#define _ASM_M32R_POLL_H
/*
* poll(2) bit definitions. Based on <asm-i386/poll.h>.
*
* Modified 2004
* Hirokazu Takata <takata at linux-m32r.org>
*/
#define POLLIN 0x0001
#define POLLPRI 0x0002
#define POLLOUT 0x0004
#define POLLERR 0x0008
#define POLLHUP 0x0010
#define POLLNVAL 0x0020
#define POLLRDNORM 0x0040
#define POLLRDBAND 0x0080
#define POLLWRNORM 0x0100
#define POLLWRBAND 0x0200
#define POLLMSG 0x0400
#define POLLREMOVE 0x1000
#define POLLRDHUP 0x2000
struct pollfd {
int fd;
short events;
short revents;
};
#endif /* _ASM_M32R_POLL_H */
#ifndef __m68k_POLL_H #ifndef __m68k_POLL_H
#define __m68k_POLL_H #define __m68k_POLL_H
#define POLLIN 1
#define POLLPRI 2
#define POLLOUT 4
#define POLLERR 8
#define POLLHUP 16
#define POLLNVAL 32
#define POLLRDNORM 64
#define POLLWRNORM POLLOUT #define POLLWRNORM POLLOUT
#define POLLRDBAND 128
#define POLLWRBAND 256 #define POLLWRBAND 256
#define POLLMSG 0x0400
#define POLLREMOVE 0x1000
#define POLLRDHUP 0x2000
struct pollfd { #include <asm-generic/poll.h>
int fd;
short events;
short revents;
};
#endif #endif
#ifndef __ASM_POLL_H #ifndef __ASM_POLL_H
#define __ASM_POLL_H #define __ASM_POLL_H
#define POLLIN 0x0001
#define POLLPRI 0x0002
#define POLLOUT 0x0004
#define POLLERR 0x0008
#define POLLHUP 0x0010
#define POLLNVAL 0x0020
#define POLLRDNORM 0x0040
#define POLLRDBAND 0x0080
#define POLLWRNORM POLLOUT #define POLLWRNORM POLLOUT
#define POLLWRBAND 0x0100 #define POLLWRBAND 0x0100
/* These seem to be more or less nonstandard ... */ #include <asm-generic/poll.h>
#define POLLMSG 0x0400
#define POLLREMOVE 0x1000
#define POLLRDHUP 0x2000
struct pollfd {
int fd;
short events;
short revents;
};
#endif /* __ASM_POLL_H */ #endif /* __ASM_POLL_H */
#ifndef __PARISC_POLL_H #include <asm-generic/poll.h>
#define __PARISC_POLL_H
/* These are specified by iBCS2 */
#define POLLIN 0x0001
#define POLLPRI 0x0002
#define POLLOUT 0x0004
#define POLLERR 0x0008
#define POLLHUP 0x0010
#define POLLNVAL 0x0020
/* The rest seem to be more-or-less nonstandard. Check them! */
#define POLLRDNORM 0x0040
#define POLLRDBAND 0x0080
#define POLLWRNORM 0x0100
#define POLLWRBAND 0x0200
#define POLLMSG 0x0400
#define POLLREMOVE 0x1000
#define POLLRDHUP 0x2000
struct pollfd {
int fd;
short events;
short revents;
};
#endif
#ifndef _ASM_POWERPC_POLL_H #include <asm-generic/poll.h>
#define _ASM_POWERPC_POLL_H
#define POLLIN 0x0001
#define POLLPRI 0x0002
#define POLLOUT 0x0004
#define POLLERR 0x0008
#define POLLHUP 0x0010
#define POLLNVAL 0x0020
#define POLLRDNORM 0x0040
#define POLLRDBAND 0x0080
#define POLLWRNORM 0x0100
#define POLLWRBAND 0x0200
#define POLLMSG 0x0400
#define POLLREMOVE 0x1000
#define POLLRDHUP 0x2000
struct pollfd {
int fd;
short events;
short revents;
};
#endif /* _ASM_POWERPC_POLL_H */
/* #include <asm-generic/poll.h>
* include/asm-s390/poll.h
*
* S390 version
*
* Derived from "include/asm-i386/poll.h"
*/
#ifndef __S390_POLL_H
#define __S390_POLL_H
/* These are specified by iBCS2 */
#define POLLIN 0x0001
#define POLLPRI 0x0002
#define POLLOUT 0x0004
#define POLLERR 0x0008
#define POLLHUP 0x0010
#define POLLNVAL 0x0020
/* The rest seem to be more-or-less nonstandard. Check them! */
#define POLLRDNORM 0x0040
#define POLLRDBAND 0x0080
#define POLLWRNORM 0x0100
#define POLLWRBAND 0x0200
#define POLLMSG 0x0400
#define POLLREMOVE 0x1000
#define POLLRDHUP 0x2000
struct pollfd {
int fd;
short events;
short revents;
};
#endif
#ifndef __ASM_SH_POLL_H #include <asm-generic/poll.h>
#define __ASM_SH_POLL_H
/* These are specified by iBCS2 */
#define POLLIN 0x0001
#define POLLPRI 0x0002
#define POLLOUT 0x0004
#define POLLERR 0x0008
#define POLLHUP 0x0010
#define POLLNVAL 0x0020
/* The rest seem to be more-or-less nonstandard. Check them! */
#define POLLRDNORM 0x0040
#define POLLRDBAND 0x0080
#define POLLWRNORM 0x0100
#define POLLWRBAND 0x0200
#define POLLMSG 0x0400
#define POLLREMOVE 0x1000
#define POLLRDHUP 0x2000
struct pollfd {
int fd;
short events;
short revents;
};
#endif /* __ASM_SH_POLL_H */
#ifndef __ASM_SH64_POLL_H #ifndef __ASM_SH64_POLL_H
#define __ASM_SH64_POLL_H #define __ASM_SH64_POLL_H
/* #include <asm-generic/poll.h>
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* include/asm-sh64/poll.h
*
* Copyright (C) 2000, 2001 Paolo Alberelli
*
*/
/* These are specified by iBCS2 */ #undef POLLREMOVE
#define POLLIN 0x0001
#define POLLPRI 0x0002
#define POLLOUT 0x0004
#define POLLERR 0x0008
#define POLLHUP 0x0010
#define POLLNVAL 0x0020
/* The rest seem to be more-or-less nonstandard. Check them! */
#define POLLRDNORM 0x0040
#define POLLRDBAND 0x0080
#define POLLWRNORM 0x0100
#define POLLWRBAND 0x0200
#define POLLMSG 0x0400
#define POLLRDHUP 0x2000
struct pollfd {
int fd;
short events;
short revents;
};
#endif /* __ASM_SH64_POLL_H */ #endif /* __ASM_SH64_POLL_H */
#ifndef __SPARC_POLL_H #ifndef __SPARC_POLL_H
#define __SPARC_POLL_H #define __SPARC_POLL_H
#define POLLIN 1
#define POLLPRI 2
#define POLLOUT 4
#define POLLERR 8
#define POLLHUP 16
#define POLLNVAL 32
#define POLLRDNORM 64
#define POLLWRNORM POLLOUT #define POLLWRNORM POLLOUT
#define POLLRDBAND 128
#define POLLWRBAND 256 #define POLLWRBAND 256
#define POLLMSG 512 #define POLLMSG 512
#define POLLREMOVE 1024 #define POLLREMOVE 1024
#define POLLRDHUP 2048 #define POLLRDHUP 2048
struct pollfd { #include <asm-generic/poll.h>
int fd;
short events;
short revents;
};
#endif #endif
#ifndef __SPARC64_POLL_H #ifndef __SPARC64_POLL_H
#define __SPARC64_POLL_H #define __SPARC64_POLL_H
#define POLLIN 1
#define POLLPRI 2
#define POLLOUT 4
#define POLLERR 8
#define POLLHUP 16
#define POLLNVAL 32
#define POLLRDNORM 64
#define POLLWRNORM POLLOUT #define POLLWRNORM POLLOUT
#define POLLRDBAND 128
#define POLLWRBAND 256 #define POLLWRBAND 256
#define POLLMSG 512 #define POLLMSG 512
#define POLLREMOVE 1024 #define POLLREMOVE 1024
#define POLLRDHUP 2048 #define POLLRDHUP 2048
struct pollfd { #include <asm-generic/poll.h>
int fd;
short events;
short revents;
};
#endif #endif
#ifndef __V850_POLL_H__ #ifndef __V850_POLL_H__
#define __V850_POLL_H__ #define __V850_POLL_H__
#define POLLIN 0x0001
#define POLLPRI 0x0002
#define POLLOUT 0x0004
#define POLLERR 0x0008
#define POLLHUP 0x0010
#define POLLNVAL 0x0020
#define POLLRDNORM 0x0040
#define POLLWRNORM POLLOUT #define POLLWRNORM POLLOUT
#define POLLRDBAND 0x0080
#define POLLWRBAND 0x0100 #define POLLWRBAND 0x0100
#define POLLMSG 0x0400
#define POLLREMOVE 0x1000
#define POLLRDHUP 0x2000
struct pollfd { #include <asm-generic/poll.h>
int fd;
short events;
short revents;
};
#endif /* __V850_POLL_H__ */ #endif /* __V850_POLL_H__ */
#ifndef __x86_64_POLL_H #include <asm-generic/poll.h>
#define __x86_64_POLL_H
/* These are specified by iBCS2 */
#define POLLIN 0x0001
#define POLLPRI 0x0002
#define POLLOUT 0x0004
#define POLLERR 0x0008
#define POLLHUP 0x0010
#define POLLNVAL 0x0020
/* The rest seem to be more-or-less nonstandard. Check them! */
#define POLLRDNORM 0x0040
#define POLLRDBAND 0x0080
#define POLLWRNORM 0x0100
#define POLLWRBAND 0x0200
#define POLLMSG 0x0400
#define POLLREMOVE 0x1000
#define POLLRDHUP 0x2000
struct pollfd {
int fd;
short events;
short revents;
};
#endif
...@@ -11,28 +11,10 @@ ...@@ -11,28 +11,10 @@
#ifndef _XTENSA_POLL_H #ifndef _XTENSA_POLL_H
#define _XTENSA_POLL_H #define _XTENSA_POLL_H
#define POLLIN 0x0001
#define POLLPRI 0x0002
#define POLLOUT 0x0004
#define POLLERR 0x0008
#define POLLHUP 0x0010
#define POLLNVAL 0x0020
#define POLLRDNORM 0x0040
#define POLLRDBAND 0x0080
#define POLLWRNORM POLLOUT #define POLLWRNORM POLLOUT
#define POLLWRBAND 0x0100 #define POLLWRBAND 0x0100
#define POLLMSG 0x0400
#define POLLREMOVE 0x0800 #define POLLREMOVE 0x0800
#define POLLRDHUP 0x2000
struct pollfd { #include <asm-generic/poll.h>
int fd;
short events;
short revents;
};
#endif /* _XTENSA_POLL_H */ #endif /* _XTENSA_POLL_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment