Misc fixes and additions
This commit is contained in:
parent
e1c5c6c8f3
commit
d4b173ee50
|
@ -26,7 +26,6 @@ typedef struct {
|
|||
|
||||
#define ASYN_NONBLOCK 0x01
|
||||
|
||||
#define EINPROGRESS EINTR
|
||||
#define ASYN_INPROGRESS EINPROGRESS
|
||||
|
||||
void asyn_init(asynchio_t *_asyn);
|
||||
|
|
|
@ -11,5 +11,6 @@
|
|||
#define DIOCSETP _IOW('d', 3, struct partition)
|
||||
#define DIOCGETP _IOR('d', 4, struct partition)
|
||||
#define DIOCEJECT _IO ('d', 5)
|
||||
#define DIOCTIMEOUT _IOW('d', 6, int)
|
||||
|
||||
#endif /* _S_I_DISK_H */
|
||||
|
|
|
@ -31,10 +31,10 @@ typedef struct {
|
|||
|
||||
_PROTOTYPE( int select, (int nfds, fd_set *readfds, fd_set *writefds, fd_set *errorfds, struct timeval *timeout) );
|
||||
|
||||
#define FD_ZERO(s) do { int _i; for(_i = 0; _i < _FDSETWORDS; _i++) { (s)->_fdsetval[_i] = 0; } } while(0)
|
||||
#define FD_SET(f, s) do { (s)->_fdsetval[_FD_BITWORD(f)] |= _FD_BITMASK(f); } while(0)
|
||||
#define FD_CLR(f, s) do { (s)->_fdsetval[_FD_BITWORD(f)] &= ~(_FD_BITMASK(f)); } while(0)
|
||||
#define FD_ISSET(f, s) ((s)->_fdsetval[_FD_BITWORD(f)] & _FD_BITMASK(f))
|
||||
#define FD_ZERO(s) do { int _i; for(_i = 0; _i < _FDSETWORDS; _i++) { (s)->fds_bits[_i] = 0; } } while(0)
|
||||
#define FD_SET(f, s) do { (s)->fds_bits[_FD_BITWORD(f)] |= _FD_BITMASK(f); } while(0)
|
||||
#define FD_CLR(f, s) do { (s)->fds_bits[_FD_BITWORD(f)] &= ~(_FD_BITMASK(f)); } while(0)
|
||||
#define FD_ISSET(f, s) ((s)->fds_bits[_FD_BITWORD(f)] & _FD_BITMASK(f))
|
||||
|
||||
/* possible select() operation types; read, write, errors */
|
||||
/* (FS/driver internal use only) */
|
||||
|
|
Loading…
Reference in a new issue