version 1.158, 2009/11/03 22:40:40 |
version 1.159, 2009/11/04 20:50:11 |
|
|
#include <sys/uio.h> |
#include <sys/uio.h> |
|
|
#include <bitstring.h> |
#include <bitstring.h> |
|
#include <event.h> |
#include <getopt.h> |
#include <getopt.h> |
#include <limits.h> |
#include <limits.h> |
#include <poll.h> |
|
#include <signal.h> |
#include <signal.h> |
#include <stdarg.h> |
#include <stdarg.h> |
#include <stdint.h> |
#include <stdint.h> |
|
|
struct client *client; |
struct client *client; |
|
|
int fd; |
int fd; |
|
struct event event; |
struct buffer *out; |
struct buffer *out; |
|
|
void (*callbackfn)(struct job *); |
void (*callbackfn)(struct job *); |
|
|
char *cwd; |
char *cwd; |
|
|
pid_t pid; |
pid_t pid; |
int fd; |
|
char tty[TTY_NAME_MAX]; |
char tty[TTY_NAME_MAX]; |
|
|
|
int fd; |
|
struct event event; |
struct buffer *in; |
struct buffer *in; |
struct buffer *out; |
struct buffer *out; |
|
|
struct input_ctx ictx; |
struct input_ctx ictx; |
|
|
int pipe_fd; |
int pipe_fd; |
|
struct event pipe_event; |
struct buffer *pipe_buf; |
struct buffer *pipe_buf; |
size_t pipe_off; |
size_t pipe_off; |
|
|
|
|
struct tty_term *term; |
struct tty_term *term; |
|
|
int fd; |
int fd; |
|
struct event event; |
struct buffer *in; |
struct buffer *in; |
struct buffer *out; |
struct buffer *out; |
|
|
|
|
/* Client connection. */ |
/* Client connection. */ |
struct client { |
struct client { |
struct imsgbuf ibuf; |
struct imsgbuf ibuf; |
|
struct event event; |
|
|
struct timeval creation_time; |
struct timeval creation_time; |
struct timeval activity_time; |
struct timeval activity_time; |
|
|
extern const struct set_option_entry set_window_option_table[]; |
extern const struct set_option_entry set_window_option_table[]; |
|
|
/* tmux.c */ |
/* tmux.c */ |
extern volatile sig_atomic_t sigwinch; |
|
extern volatile sig_atomic_t sigterm; |
|
extern volatile sig_atomic_t sigcont; |
|
extern volatile sig_atomic_t sigchld; |
|
extern volatile sig_atomic_t sigusr1; |
|
extern volatile sig_atomic_t sigusr2; |
|
extern struct options global_s_options; |
extern struct options global_s_options; |
extern struct options global_w_options; |
extern struct options global_w_options; |
extern struct environ global_environ; |
extern struct environ global_environ; |
|
|
extern char *socket_path; |
extern char *socket_path; |
extern int login_shell; |
extern int login_shell; |
void logfile(const char *); |
void logfile(const char *); |
void siginit(void); |
|
void sigreset(void); |
|
void sighandler(int); |
|
const char *getshell(void); |
const char *getshell(void); |
int checkshell(const char *); |
int checkshell(const char *); |
int areshell(const char *); |
int areshell(const char *); |
|
|
extern struct clients clients; |
extern struct clients clients; |
extern struct clients dead_clients; |
extern struct clients dead_clients; |
int server_start(char *); |
int server_start(char *); |
void server_poll_add(int, int, void (*)(int, int, void *), void *); |
void server_signal_set(void); |
|
void server_signal_clear(void); |
|
|
/* server-client.c */ |
/* server-client.c */ |
void server_client_create(int); |
void server_client_create(int); |
void server_client_lost(struct client *); |
void server_client_lost(struct client *); |
void server_client_prepare(void); |
void server_client_prepare(void); |
void server_client_callback(int, int, void *); |
void server_client_callback(int, short, void *); |
void server_client_loop(void); |
void server_client_loop(void); |
|
|
/* server-job.c */ |
/* server-job.c */ |
void server_job_prepare(void); |
void server_job_prepare(void); |
void server_job_callback(int, int, void *); |
void server_job_callback(int, short, void *); |
void server_job_loop(void); |
void server_job_loop(void); |
|
|
/* server-window.c */ |
/* server-window.c */ |
void server_window_prepare(void); |
void server_window_prepare(void); |
void server_window_callback(int, int, void *); |
void server_window_callback(int, short, void *); |
void server_window_loop(void); |
void server_window_loop(void); |
|
|
/* server-fn.c */ |
/* server-fn.c */ |