#define _POSIX_C_SOURCE 1 /* sigaction, sigaction() */
#define _DARWIN_C_SOURCE 1 /* SIGWINCH on OS X */
#define _POSIX_C_SOURCE 1 /* sigaction, sigaction() */
#define _DARWIN_C_SOURCE 1 /* SIGWINCH on OS X */
#include <signal.h> /* SIGWINCH, sigaction, sigaction() */
#include <stddef.h> /* NULL */
#include <stdlib.h> /* exit() */
#include <signal.h> /* SIGWINCH, sigaction, sigaction() */
#include <stddef.h> /* NULL */
#include <stdlib.h> /* exit() */
/* Declare hard-coded paths and values here. */
world.path_commands = "confclient/commands";
world.path_interface = "confclient/interface_conf";
/* Declare hard-coded paths and values here. */
world.path_commands = "confclient/commands";
world.path_interface = "confclient/interface_conf";
struct sigaction act;
memset(&act, 0, sizeof(act));
act.sa_handler = &winch_called;
struct sigaction act;
memset(&act, 0, sizeof(act));
act.sa_handler = &winch_called;
- exit_trouble(sigaction(SIGWINCH, &act, NULL), f_name, "sigaction()");
+ exit_trouble(sigaction(SIGWINCH, &act, NULL), __func__, "sigaction");
/* Open file streams for communicating with the server. */
exit_err(access(path_server_in, F_OK), "No server input file found.");
/* Open file streams for communicating with the server. */
exit_err(access(path_server_in, F_OK), "No server input file found.");