diff options
author | H. Nikolaus Schaller <hns@goldelico.com> | 2011-01-11 17:31:17 +0100 |
---|---|---|
committer | H. Nikolaus Schaller <hns@goldelico.com> | 2011-01-11 17:31:17 +0100 |
commit | e1bbb64ec2ca8ddf1dec91ae1e08ef96ee53639a (patch) | |
tree | a1da223c1cfb33cf32d3a12347dda0c25babd93d /x-loader/include/linux/posix_types.h | |
parent | 6494108fdc54f2bb285b3c4078d8965e89efaf95 (diff) | |
download | bootable_bootloader_goldelico_gta04_x-loader-e1bbb64ec2ca8ddf1dec91ae1e08ef96ee53639a.zip bootable_bootloader_goldelico_gta04_x-loader-e1bbb64ec2ca8ddf1dec91ae1e08ef96ee53639a.tar.gz bootable_bootloader_goldelico_gta04_x-loader-e1bbb64ec2ca8ddf1dec91ae1e08ef96ee53639a.tar.bz2 |
fixed issue with submodules
Diffstat (limited to 'x-loader/include/linux/posix_types.h')
m--------- | x-loader | 0 | ||||
-rw-r--r-- | x-loader/include/linux/posix_types.h | 48 |
2 files changed, 48 insertions, 0 deletions
diff --git a/x-loader b/x-loader deleted file mode 160000 -Subproject 1c9276af4d6a5b7014a7630a1abeddf3b317756 diff --git a/x-loader/include/linux/posix_types.h b/x-loader/include/linux/posix_types.h new file mode 100644 index 0000000..bd37e1f --- /dev/null +++ b/x-loader/include/linux/posix_types.h @@ -0,0 +1,48 @@ +#ifndef _LINUX_POSIX_TYPES_H +#define _LINUX_POSIX_TYPES_H + +#include <linux/stddef.h> + +/* + * This allows for 1024 file descriptors: if NR_OPEN is ever grown + * beyond that you'll have to change this too. But 1024 fd's seem to be + * enough even for such "real" unices like OSF/1, so hopefully this is + * one limit that doesn't have to be changed [again]. + * + * Note that POSIX wants the FD_CLEAR(fd,fdsetp) defines to be in + * <sys/time.h> (and thus <linux/time.h>) - but this is a more logical + * place for them. Solved by having dummy defines in <sys/time.h>. + */ + +/* + * Those macros may have been defined in <gnu/types.h>. But we always + * use the ones here. + */ +#undef __NFDBITS +#define __NFDBITS (8 * sizeof(unsigned long)) + +#undef __FD_SETSIZE +#define __FD_SETSIZE 1024 + +#undef __FDSET_LONGS +#define __FDSET_LONGS (__FD_SETSIZE/__NFDBITS) + +#undef __FDELT +#define __FDELT(d) ((d) / __NFDBITS) + +#undef __FDMASK +#define __FDMASK(d) (1UL << ((d) % __NFDBITS)) + +typedef struct { + unsigned long fds_bits [__FDSET_LONGS]; +} __kernel_fd_set; + +/* Type of a signal handler. */ +typedef void (*__kernel_sighandler_t)(int); + +/* Type of a SYSV IPC key. */ +typedef int __kernel_key_t; + +#include <asm/posix_types.h> + +#endif /* _LINUX_POSIX_TYPES_H */ |