2 ** Copyright 2002, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 ** Distributed under the terms of the OpenBeOS License.
12 create_port(int32 capacity
, const char *name
)
14 return _kern_create_port(capacity
, name
);
19 find_port(const char *name
)
21 return _kern_find_port(name
);
26 write_port(port_id port
, int32 code
, const void *buffer
, size_t bufferSize
)
28 return _kern_write_port_etc(port
, code
, buffer
, bufferSize
, 0, 0);
33 read_port(port_id port
, int32
*code
, void *buffer
, size_t bufferSize
)
35 return _kern_read_port_etc(port
, code
, buffer
, bufferSize
, 0, 0);
40 write_port_etc(port_id port
, int32 code
, const void *buffer
, size_t bufferSize
,
41 uint32 flags
, bigtime_t timeout
)
43 return _kern_write_port_etc(port
, code
, buffer
, bufferSize
, flags
, timeout
);
48 read_port_etc(port_id port
, int32
*code
, void *buffer
, size_t bufferSize
,
49 uint32 flags
, bigtime_t timeout
)
51 return _kern_read_port_etc(port
, code
, buffer
, bufferSize
, flags
, timeout
);
56 port_buffer_size(port_id port
)
58 return _kern_port_buffer_size_etc(port
, 0, 0);
63 port_buffer_size_etc(port_id port
, uint32 flags
, bigtime_t timeout
)
65 return _kern_port_buffer_size_etc(port
, flags
, timeout
);
70 port_count(port_id port
)
72 return _kern_port_count(port
);
77 set_port_owner(port_id port
, team_id team
)
79 return _kern_set_port_owner(port
, team
);
84 close_port(port_id port
)
86 return _kern_close_port(port
);
91 delete_port(port_id port
)
93 return _kern_delete_port(port
);
98 _get_next_port_info(team_id team
, int32
*cookie
, port_info
*info
, size_t size
)
100 // size is not yet used, but may, if port_info changes
103 return _kern_get_next_port_info(team
, cookie
, info
);
108 _get_port_info(port_id port
, port_info
*info
, size_t size
)
110 return _kern_get_port_info(port
, info
);
115 _get_port_message_info_etc(port_id port
, port_message_info
*info
,
116 size_t infoSize
, uint32 flags
, bigtime_t timeout
)
118 return _kern_get_port_message_info_etc(port
, info
, infoSize
, flags
,