6a73e85ad1
. only good for obsolete K&R support . also remove a stray ansi.h and the proto cmd
36 lines
779 B
C
36 lines
779 B
C
/* Includes. */
|
|
#include <minix/drivers.h>
|
|
#include <minix/chardriver.h>
|
|
#include <minix/type.h>
|
|
#include <minix/const.h>
|
|
#include <minix/com.h>
|
|
#include <sys/types.h>
|
|
#include <minix/ipc.h>
|
|
|
|
/* Constants and types. */
|
|
|
|
#define LOG_SIZE (50*1024)
|
|
#define SUSPENDABLE 1
|
|
|
|
struct logdevice {
|
|
char log_buffer[LOG_SIZE];
|
|
int log_size, /* no. of bytes in log buffer */
|
|
log_read, /* read mark */
|
|
log_write; /* write mark */
|
|
#if SUSPENDABLE
|
|
endpoint_t log_proc_nr,
|
|
log_source;
|
|
int log_iosize,
|
|
log_revive_alerted,
|
|
log_status;
|
|
cp_grant_id_t log_user_grant;
|
|
vir_bytes log_user_offset;
|
|
#endif
|
|
int log_selected, log_select_proc,
|
|
log_select_alerted, log_select_ready_ops;
|
|
};
|
|
|
|
/* Function prototypes. */
|
|
void do_new_kmess(void);
|
|
void log_append(char *buf, int len);
|
|
|