2 * Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
13 void *null_init(char *str
, int device
, struct chan_opts
*opts
)
18 int null_open(int input
, int output
, int primary
, void *d
, char **dev_out
)
21 return(os_open_file(DEV_NULL
, of_rdwr(OPENFLAGS()), 0));
24 int null_read(int fd
, char *c_out
, void *unused
)
29 void null_free(void *data
)
33 struct chan_ops null_ops
= {
37 .close
= generic_close
,
39 .write
= generic_write
,
40 .console_write
= generic_console_write
,
41 .window_size
= generic_window_size
,
47 * Overrides for Emacs so that we follow Linus's tabbing style.
48 * Emacs will notice this stuff at the end of the file and automatically
49 * adjust the settings for this buffer only. This must remain at the end
51 * ---------------------------------------------------------------------------
53 * c-file-style: "linux"