Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 14063
b: refs/heads/master
c: fd9bc53
h: refs/heads/master
i:
  14061: 003fbf9
  14059: 12e8dc0
  14055: 6deb8b1
  14047: 96f38e3
v: v3
  • Loading branch information
Paolo 'Blaisorblade' Giarrusso authored and Linus Torvalds committed Nov 14, 2005
1 parent 3ee9aca commit 8baa3eb
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 42 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c50d2c4d6685db9b45cf6521046296df5bc42592
refs/heads/master: fd9bc53b99a77aefe89d810d889aa6385565959b
9 changes: 1 addition & 8 deletions trunk/arch/um/drivers/fd.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,21 +76,14 @@ static void fd_close(int fd, void *d)
}
}

static int fd_console_write(int fd, const char *buf, int n, void *d)
{
struct fd_chan *data = d;

return(generic_console_write(fd, buf, n, &data->tt));
}

struct chan_ops fd_ops = {
.type = "fd",
.init = fd_init,
.open = fd_open,
.close = fd_close,
.read = generic_read,
.write = generic_write,
.console_write = fd_console_write,
.console_write = generic_console_write,
.window_size = generic_window_size,
.free = generic_free,
.winch = 1,
Expand Down
9 changes: 1 addition & 8 deletions trunk/arch/um/drivers/port_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,21 +100,14 @@ static void port_close(int fd, void *d)
os_close_file(fd);
}

static int port_console_write(int fd, const char *buf, int n, void *d)
{
struct port_chan *data = d;

return(generic_console_write(fd, buf, n, &data->tt));
}

struct chan_ops port_ops = {
.type = "port",
.init = port_init,
.open = port_open,
.close = port_close,
.read = generic_read,
.write = generic_write,
.console_write = port_console_write,
.console_write = generic_console_write,
.window_size = generic_window_size,
.free = port_free,
.winch = 1,
Expand Down
11 changes: 2 additions & 9 deletions trunk/arch/um/drivers/pty.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,21 +118,14 @@ static int pty_open(int input, int output, int primary, void *d,
return(fd);
}

static int pty_console_write(int fd, const char *buf, int n, void *d)
{
struct pty_chan *data = d;

return(generic_console_write(fd, buf, n, &data->tt));
}

struct chan_ops pty_ops = {
.type = "pty",
.init = pty_chan_init,
.open = pty_open,
.close = generic_close,
.read = generic_read,
.write = generic_write,
.console_write = pty_console_write,
.console_write = generic_console_write,
.window_size = generic_window_size,
.free = generic_free,
.winch = 0,
Expand All @@ -145,7 +138,7 @@ struct chan_ops pts_ops = {
.close = generic_close,
.read = generic_read,
.write = generic_write,
.console_write = pty_console_write,
.console_write = generic_console_write,
.window_size = generic_window_size,
.free = generic_free,
.winch = 0,
Expand Down
9 changes: 1 addition & 8 deletions trunk/arch/um/drivers/tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,21 +60,14 @@ static int tty_open(int input, int output, int primary, void *d,
return(fd);
}

static int tty_console_write(int fd, const char *buf, int n, void *d)
{
struct tty_chan *data = d;

return(generic_console_write(fd, buf, n, &data->tt));
}

struct chan_ops tty_ops = {
.type = "tty",
.init = tty_chan_init,
.open = tty_open,
.close = generic_close,
.read = generic_read,
.write = generic_write,
.console_write = tty_console_write,
.console_write = generic_console_write,
.window_size = generic_window_size,
.free = generic_free,
.winch = 0,
Expand Down
9 changes: 1 addition & 8 deletions trunk/arch/um/drivers/xterm.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,21 +194,14 @@ static void xterm_free(void *d)
free(d);
}

static int xterm_console_write(int fd, const char *buf, int n, void *d)
{
struct xterm_chan *data = d;

return(generic_console_write(fd, buf, n, &data->tt));
}

struct chan_ops xterm_ops = {
.type = "xterm",
.init = xterm_init,
.open = xterm_open,
.close = xterm_close,
.read = generic_read,
.write = generic_write,
.console_write = xterm_console_write,
.console_write = generic_console_write,
.window_size = generic_window_size,
.free = xterm_free,
.winch = 1,
Expand Down

0 comments on commit 8baa3eb

Please sign in to comment.