/*
- * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2000-2006 Apple Computer, Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
#ifndef _SYS_MSGBUF_H_
#define _SYS_MSGBUF_H_
-#define MSG_BSIZE (4096 - 3 * sizeof(long))
+#include <sys/cdefs.h>
+
+#define MSG_BSIZE 4096
struct msgbuf {
#define MSG_MAGIC 0x063061
long msg_magic;
+ long msg_size;
long msg_bufx; /* write pointer */
long msg_bufr; /* read pointer */
- char msg_bufc[MSG_BSIZE]; /* buffer */
+ char *msg_bufc; /* buffer */
};
#ifdef KERNEL
+__BEGIN_DECLS
extern struct msgbuf *msgbufp;
extern void log_putc(char);
+extern void log_putc_locked(char);
+extern void log_setsize(long size);
+extern int log_dmesg(user_addr_t, uint32_t, register_t *);
+__END_DECLS
#endif
#endif /* !_SYS_MSGBUF_H_ */