2002-10-29 06:54:07 +03:00
|
|
|
/*
|
|
|
|
** Copyright 2002, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
|
|
|
** Distributed under the terms of the OpenBeOS License.
|
|
|
|
*/
|
2002-10-29 07:21:22 +03:00
|
|
|
#ifndef VFS_SELECT_H
|
|
|
|
#define VFS_SELECT_H
|
2002-10-29 06:54:07 +03:00
|
|
|
|
|
|
|
typedef struct select_info {
|
2002-11-03 06:19:34 +03:00
|
|
|
uint16 selected_events;
|
2002-10-29 08:41:10 +03:00
|
|
|
uint16 events;
|
2002-10-29 06:54:07 +03:00
|
|
|
} 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))
|
|
|
|
|
2002-10-29 07:21:22 +03:00
|
|
|
#endif /* VFS_SELECT_H */
|