diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/aio.h | 61 | ||||
| -rw-r--r-- | include/arch/x86_64/drm/drm.h | 2 | ||||
| -rw-r--r-- | include/arch/x86_64/drm/i915_drm.h | 8 | ||||
| -rw-r--r-- | include/arch/x86_64/linux/can/isotp.h | 2 | ||||
| -rw-r--r-- | include/arch/x86_64/linux/hdlcdrv.h | 2 | ||||
| -rw-r--r-- | include/arch/x86_64/linux/scc.h | 2 | ||||
| -rw-r--r-- | include/complex.h | 1 | ||||
| -rw-r--r-- | include/signal.h | 5 | ||||
| -rw-r--r-- | include/sys/eventfd.h | 20 |
9 files changed, 46 insertions, 57 deletions
diff --git a/include/aio.h b/include/aio.h index 9227cdfc..aa3598a6 100644 --- a/include/aio.h +++ b/include/aio.h @@ -1,72 +1,35 @@ #ifndef __AIO_H #define __AIO_H -#include <stddef.h> -#include <time.h> #define __BITS_SIGEVENT_H_ #include <bits/sigevent.h> -#undef __BITS_SIGEVENT_H_ #define __BITS_TIMESPEC_H_ #include <bits/timespec.h> -#undef __BITS_TIMESPEC_H_ -/** A return value indicating that all requested operations have been canceled. - */ -#define AIO_CANCELED 0 - -/** - * A return value indicating that some of the requested operations - * could not be canceled since they are in progress. - */ +#define AIO_CANCELED 0 #define AIO_NOTCANCELED 1 +#define AIO_ALLDONE 2 -/** - * A return value indicating that none of the requested operations - * could be canceled since they are already complete. - */ -#define AIO_ALLDONE 2 - -/** A lio_listio() element operation option requesting a read. */ -#define LIO_READ 0 - -/** - * A lio_listio() synchronization operation indicating that the calling - * thread is to suspend until the lio_listio() operation is complete. - */ +#define LIO_READ 0 #define LIO_WRITE 1 -/** - * A lio_listio() element operation option indicating - * that no transfer is requested. - */ -#define LIO_NOP 2 - -/** - * A lio_listio() synchronization operation indicating that the calling - * thread is to suspend until the lio_listio() operation is complete. - */ -#define LIO_WAIT 0 - -/** - * A lio_listio() synchronization operation indicating that the calling thread - * is to continue execution while the lio_listio() operation is being performed, - * and no notification is given when the operation is complete. - */ +#define LIO_WAIT 0 #define LIO_NOWAIT 1 +#define LIO_NOP 2 typedef __INT64_TYPE__ off_t; typedef __SIZE_TYPE__ size_t; typedef __INT64_TYPE__ ssize_t; struct aiocb { - int aio_fildes; /**< File descriptor. */ - off_t aio_offset; /**< File offset. */ - volatile void *aio_buf; /**< Location of buffer. */ - size_t aio_nbytes; /**< Length of transfer. */ - int aio_reqprio; /**< Request priority offset. */ - struct sigevent aio_sigevent; /**< Signal number and value. */ - int aio_lio_opcode; /**< Operation to be performed. */ + int aio_fildes; + off_t aio_offset; + volatile void *aio_buf; + size_t aio_nbytes; + int aio_reqprio; + struct sigevent aio_sigevent; + int aio_lio_opcode; }; int aio_cancel(int, struct aiocb *); diff --git a/include/arch/x86_64/drm/drm.h b/include/arch/x86_64/drm/drm.h index ebd6ebb5..a928f61f 100644 --- a/include/arch/x86_64/drm/drm.h +++ b/include/arch/x86_64/drm/drm.h @@ -253,7 +253,7 @@ enum drm_stat_type { _DRM_STAT_DMA, /**< DMA */ _DRM_STAT_SPECIAL, /**< Special DMA (e.g., priority or polled) */ _DRM_STAT_MISSED /**< Missed DMA opportunity */ - /* Add to the *END* of the list */ + /* Add to the *END* of the list */ }; /* diff --git a/include/arch/x86_64/drm/i915_drm.h b/include/arch/x86_64/drm/i915_drm.h index 68f08e16..e0403cb6 100644 --- a/include/arch/x86_64/drm/i915_drm.h +++ b/include/arch/x86_64/drm/i915_drm.h @@ -2115,10 +2115,10 @@ struct drm_i915_gem_context_param { #define I915_CONTEXT_MAX_USER_PRIORITY 1023 /* inclusive */ #define I915_CONTEXT_DEFAULT_PRIORITY 0 #define I915_CONTEXT_MIN_USER_PRIORITY -1023 /* inclusive */ - /* - * When using the following param, value should be a pointer to - * drm_i915_gem_context_param_sseu. - */ + /* + * When using the following param, value should be a pointer to + * drm_i915_gem_context_param_sseu. + */ #define I915_CONTEXT_PARAM_SSEU 0x7 /* diff --git a/include/arch/x86_64/linux/can/isotp.h b/include/arch/x86_64/linux/can/isotp.h index 3d72f3d3..d986173d 100644 --- a/include/arch/x86_64/linux/can/isotp.h +++ b/include/arch/x86_64/linux/can/isotp.h @@ -85,7 +85,7 @@ struct can_isotp_options { /* __u8 value : content on rx path */ __u8 rx_ext_address; /* set address for extended addressing */ - /* __u8 value : extended address (rx) */ + /* __u8 value : extended address (rx) */ }; struct can_isotp_fc_options { diff --git a/include/arch/x86_64/linux/hdlcdrv.h b/include/arch/x86_64/linux/hdlcdrv.h index 0d3f0ba7..784d1dcf 100644 --- a/include/arch/x86_64/linux/hdlcdrv.h +++ b/include/arch/x86_64/linux/hdlcdrv.h @@ -29,7 +29,7 @@ struct hdlcdrv_channel_params { int slottime; /* the slottime in 10ms; usually 10 = 100ms */ int ppersist; /* the p-persistence 0..255 */ int fulldup; /* some driver do not support full duplex, setting */ - /* this just makes them send even if DCD is on */ + /* this just makes them send even if DCD is on */ }; struct hdlcdrv_old_channel_state { diff --git a/include/arch/x86_64/linux/scc.h b/include/arch/x86_64/linux/scc.h index ac19e3ef..ce9c783b 100644 --- a/include/arch/x86_64/linux/scc.h +++ b/include/arch/x86_64/linux/scc.h @@ -87,7 +87,7 @@ enum CLOCK_sources { CLK_DIVIDER, /* Rx = DPLL, Tx = divider (fullduplex with */ /* modems without clock regeneration */ CLK_BRG /* experimental fullduplex mode with DPLL/BRG for */ - /* MODEMs without clock recovery */ + /* MODEMs without clock recovery */ }; /* Tx state */ diff --git a/include/complex.h b/include/complex.h index ced87a8f..e8cec9cc 100644 --- a/include/complex.h +++ b/include/complex.h @@ -1,6 +1,7 @@ #ifndef __COMPLEX_H #define __COMPLEX_H +#include <complex.h> #define complex _Complex #define _Complex_I (__extension__(0.0f + 1.0fi)) #define imaginary _Imaginary diff --git a/include/signal.h b/include/signal.h index 425f56e1..1760ef4a 100644 --- a/include/signal.h +++ b/include/signal.h @@ -79,6 +79,11 @@ union sigval; #define SS_ONSTACK 1 #define SS_DISABLE 2 +#define SIGEV_SIGNAL 0 +#define SIGEV_NONE 1 +#define SIGEV_THREAD 2 +#define SIGEV_THREAD_ID 4 + typedef __INT64_TYPE__ pid_t; typedef __UINT32_TYPE__ uid_t; typedef __UINT64_TYPE__ sigset_t; diff --git a/include/sys/eventfd.h b/include/sys/eventfd.h new file mode 100644 index 00000000..7daa81aa --- /dev/null +++ b/include/sys/eventfd.h @@ -0,0 +1,20 @@ +#ifndef __SYS_EVENTFD_H +#define __SYS_EVENTFD_H + +#include <sys/cdefs.h> + +__BEGIN_DECLS + +typedef __UINT64_TYPE__ eventfd_t; + +#define EFD_SEMAPHORE (1 << 0) +#define EFD_CLOEXEC 02000000 +#define EFD_NONBLOCK 00004000 + +int eventfd(unsigned int, int); +int eventfd_read(int, eventfd_t *); +int eventfd_write(int, eventfd_t); + +__END_DECLS + +#endif |
