Added (kernel private) B_PEEK_PORT_MESSAGE flag for read_port_etc().

When specified, the message is read but not removed from the port.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27527 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2008-09-15 12:59:49 +00:00
parent 68e6763b07
commit b4ec7b8ee5
2 changed files with 30 additions and 6 deletions
+10 -1
View File
@@ -15,6 +15,14 @@ struct select_info;
#define PORT_FLAG_USE_USER_MEMCPY 0x80000000
// port flags
enum {
// read_port_etc() flags
B_PEEK_PORT_MESSAGE = 0x100 // read the message, but don't remove it;
// kernel-only; memory must be locked
};
#ifdef __cplusplus
extern "C" {
#endif
@@ -29,7 +37,8 @@ status_t deselect_port(int32 object, struct select_info *info, bool kernel);
// currently private API
status_t writev_port_etc(port_id id, int32 msgCode, const iovec *msgVecs,
size_t vecCount, size_t bufferSize, uint32 flags, bigtime_t timeout);
size_t vecCount, size_t bufferSize, uint32 flags,
bigtime_t timeout);
// temp: test
void port_test(void);