Fixed some minor a larger issues (one memory corruption due to the use of FD_ZERO()). notify_select_event() is no longer binary compatible (hasn't been used on R5). Added syscalls for select/poll in the syscall dispatcher. Fixed some debug output in fd.c, adapted for the new notify_select_event() call. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1831 a95241bf-73f2-0310-859d-f6bbb57e9c96
36 lines
634 B
C
36 lines
634 B
C
/*
|
|
** Copyright 2002, Axel Dörfler, [email protected]. All rights reserved.
|
|
** Distributed under the terms of the OpenBeOS License.
|
|
*/
|
|
#ifndef VFS_SELECT_H
|
|
#define VFS_SELECT_H
|
|
|
|
typedef struct select_info {
|
|
uint16 selected_events;
|
|
uint16 events;
|
|
} select_info;
|
|
|
|
typedef struct select_sync {
|
|
sem_id sem;
|
|
uint32 count;
|
|
select_info *set;
|
|
} select_sync;
|
|
|
|
enum select_events {
|
|
B_SELECT_READ = 1,
|
|
B_SELECT_WRITE,
|
|
B_SELECT_ERROR,
|
|
|
|
B_SELECT_PRI_READ,
|
|
B_SELECT_PRI_WRITE,
|
|
|
|
B_SELECT_HIGH_PRI_READ,
|
|
B_SELECT_HIGH_PRI_WRITE,
|
|
|
|
B_SELECT_DISCONNECTED
|
|
};
|
|
|
|
#define SELECT_FLAG(type) (1L << (type - 1))
|
|
|
|
#endif /* VFS_SELECT_H */
|