* Changed return value of read_port[_etc] from status_t to ssize_t. That's

not how it is declared in R5, but it is what actually is returned.
* Temporarily added debug_[v]printf() functions for userland usage,
  equivalent to dprintf() in kernel.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10758 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2005-01-15 21:41:14 +00:00
parent 60a463c673
commit 57b6c3bcad

View File

@ -7,6 +7,8 @@
#define _OS_H
#include <stdarg.h>
#include <SupportDefs.h>
#include <StorageDefs.h>
@ -107,8 +109,8 @@ typedef struct port_info {
extern port_id create_port(int32 capacity, const char *name);
extern port_id find_port(const char *name);
extern status_t read_port(port_id port, int32 *code, void *buffer, size_t bufferSize);
extern status_t read_port_etc(port_id port, int32 *code, void *buffer, size_t bufferSize,
extern ssize_t read_port(port_id port, int32 *code, void *buffer, size_t bufferSize);
extern ssize_t read_port_etc(port_id port, int32 *code, void *buffer, size_t bufferSize,
uint32 flags, bigtime_t timeout);
extern status_t write_port(port_id port, int32 code, const void *buffer, size_t bufferSize);
extern status_t write_port_etc(port_id port, int32 code, const void *buffer, size_t bufferSize,
@ -361,6 +363,10 @@ extern void debugger(const char *message);
*/
extern const int disable_debugger(int state);
// TODO: Remove. Temporary debug helper.
extern void debug_printf(const char *format, ...);
extern void debug_vprintf(const char *format, va_list args);
/*-------------------------------------------------------------*/
/* System information */