Lines Matching refs:ARGV0

18 #ifndef ARGV0
19 #define ARGV0 "ossec-maild" macro
36 print_out(" %s: -[Vhdtf] [-u user] [-g group] [-c config] [-D dir]", ARGV0); in help_maild()
66 OS_SetName(ARGV0); in main()
84 ErrorExit("%s: -u needs an argument", ARGV0); in main()
90 ErrorExit("%s: -g needs an argument", ARGV0); in main()
96 ErrorExit("%s: -D needs an argument", ARGV0); in main()
102 ErrorExit("%s: -c needs an argument", ARGV0); in main()
116 debug1(STARTED_MSG, ARGV0); in main()
122 ErrorExit(USER_ERROR, ARGV0, user, group); in main()
127 ErrorExit(CONFIG_ERROR, ARGV0, cfg); in main()
166 ErrorExit("%s: ERROR: Could not create socket pair.", ARGV0); in main()
169 ErrorExit("%s: ERROR: Cannot set imsg_fds[0] to nonblock", ARGV0); in main()
172 ErrorExit("%s: ERROR: Cannot set imsg_fds[1] to nonblock", ARGV0); in main()
178 ErrorExit("%s: ERROR: Cannot fork() os_dns process", ARGV0); in main()
182 exit(osdns(&osdns_ibuf, ARGV0)); in main()
191 ErrorExit(SETGID_ERROR, ARGV0, group, errno, strerror(errno)); in main()
197 ErrorExit(CHROOT_ERROR, ARGV0, dir, errno, strerror(errno)); in main()
200 debug1(CHROOT_MSG, ARGV0, dir); in main()
205 ErrorExit(SETUID_ERROR, ARGV0, user, errno, strerror(errno)); in main()
208 debug1(PRIVSEP_MSG, ARGV0, user); in main()
211 StartSIG(ARGV0); in main()
214 if (CreatePID(ARGV0, getpid()) < 0) { in main()
215 ErrorExit(PID_ERROR, ARGV0); in main()
219 verbose(STARTUP_MSG, ARGV0, (int)getpid()); in main()
279 merror("%s: INFO: Max emails per hour reached.", ARGV0); in OS_Run()
298 merror(FORK_ERROR, ARGV0, errno, strerror(errno)); in OS_Run()
302 merror("%s: DEBUG: Running OS_Sendmail()", ARGV0); in OS_Run()
304 merror(SNDMAIL_ERROR, ARGV0, mail->smtpserver); in OS_Run()
412 merror(WAITPID_ERROR, ARGV0, errno, strerror(errno)); in OS_Run()
421 merror(CHLDWAIT_ERROR, ARGV0, p_status); in OS_Run()
422 merror(SNDMAIL_ERROR, ARGV0, mail->smtpserver); in OS_Run()
430 merror(TOOMANY_WAIT_ERROR, ARGV0); in OS_Run()
431 merror(SNDMAIL_ERROR, ARGV0, mail->smtpserver); in OS_Run()