📄 main.c
字号:
#include "opend.h"
#include <syslog.h>
/* define global variables */
int debug;
char errmsg[MAXLINE];
int oflag;
char *pathname;
Client *client = NULL;
int client_size;
int
main(int argc, char *argv[])
{
int c;
log_open("open.serv", LOG_PID, LOG_USER);
opterr = 0; /* don't want getopt() writing to stderr */
while ( (c = getopt(argc, argv, "d")) != EOF) {
switch (c) {
case 'd': /* debug */
debug = 1;
break;
case '?':
err_quit("unrecognized option: -%c", optopt);
}
}
if (debug == 0)
daemon_init();
loop(); /* never returns */
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -