diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2018-05-08 00:40:59 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2018-05-08 00:40:59 +0200 |
commit | dad140b0a494c416532a546fdd034dc27ad05b8c (patch) | |
tree | 99471393f2cc5feea300a320f086a91532e4f314 /src/jail.c | |
parent | be4352e2bb6ffcc1d548cf9e8cf9f497e2865af0 (diff) |
POTD skeleton #45.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/jail.c')
-rw-r--r-- | src/jail.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -21,11 +21,6 @@ typedef struct jail_prisoner_process { char *newroot; } jail_prisoner_process; -typedef enum connection_state { - CON_OK, CON_IN_TERMINATED, CON_OUT_TERMINATED, - CON_IN_ERROR, CON_OUT_ERROR -} connection_state; - static int jail_mainloop_epoll(int epoll_fd, jail_ctx *ctx[], size_t siz) __attribute__((noreturn)); static int jail_accept_client(jail_ctx *ctx[], @@ -33,7 +28,7 @@ static int jail_accept_client(jail_ctx *ctx[], static int jail_childfn(jail_prisoner_process *ctx) __attribute__((noreturn)); static int jail_socket_tty_epoll(jail_prisoner_process *ctx, int tty_fd); -static connection_state +static forward_state jail_socket_tty_io_epoll(struct epoll_event *ev, int dest_fd); @@ -390,7 +385,7 @@ static int jail_socket_tty_epoll(jail_prisoner_process *ctx, int tty_fd) return 0; } -static connection_state +static forward_state jail_socket_tty_io_epoll(struct epoll_event *ev, int dest_fd) { return CON_OK; |