93 |
static int comsat_main (int fd); |
static int comsat_main (int fd); |
94 |
static void notify_user (const char *user, const char *device, const char *path, off_t offset); |
static void notify_user (const char *user, const char *device, const char *path, off_t offset); |
95 |
static int find_user (const char *name, char *tty); |
static int find_user (const char *name, char *tty); |
|
static void help (void); |
|
96 |
static char *mailbox_path (const char *user); |
static char *mailbox_path (const char *user); |
97 |
static void change_user (const char *user); |
static void change_user (const char *user); |
98 |
|
|
577 |
username = user; |
username = user; |
578 |
} |
} |
579 |
|
|
|
void |
|
|
help () |
|
|
{ |
|
|
printf ("Usage: comsatd [OPTIONS]\n"); |
|
|
printf ("Options are:\n"); |
|
|
printf (" -c, --config=PATH read configuration from the file\n"); |
|
|
printf (" -d, --daemon run in daemon mode\n"); |
|
|
printf (" -h, --help display this help and exit\n"); |
|
|
printf (" -i, --inetd run in inetd mode (default)\n"); |
|
|
printf (" -p, --port=PORT specify port to listen on, implies -d\n"); |
|
|
printf (" -t, --timeout=VALUE set idle timeout (implies -i)\n"); |
|
|
printf (" -v, --version display version information and exit\n"); |
|
|
printf ("\nReport bugs to bug-mailutils@gnu.org\n"); |
|
|
exit (EXIT_SUCCESS); |
|
|
} |
|
|
|
|
580 |
char * |
char * |
581 |
mailbox_path (const char *user) |
mailbox_path (const char *user) |
582 |
{ |
{ |