mirror of
https://git.savannah.gnu.org/git/make.git
synced 2025-01-30 19:24:07 +00:00
Formerly main.c.~51~
This commit is contained in:
parent
9d3d0c6b79
commit
517a17b6d9
1 changed files with 7 additions and 7 deletions
14
main.c
14
main.c
|
@ -333,7 +333,7 @@ struct file *default_file;
|
||||||
#ifdef POSIX
|
#ifdef POSIX
|
||||||
sigset_t fatal_signal_set;
|
sigset_t fatal_signal_set;
|
||||||
#else
|
#else
|
||||||
#ifndef SIGSETMASK_MISSING
|
#ifdef HAVE_SIGSETMASK
|
||||||
int fatal_signal_mask;
|
int fatal_signal_mask;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
@ -344,7 +344,7 @@ main (argc, argv, envp)
|
||||||
char **argv;
|
char **argv;
|
||||||
char **envp;
|
char **envp;
|
||||||
{
|
{
|
||||||
#ifdef SYS_SIGLIST_MISSING
|
#ifndef HAVE_SYS_SIGLIST
|
||||||
extern void init_siglist ();
|
extern void init_siglist ();
|
||||||
#endif
|
#endif
|
||||||
extern RETSIGTYPE fatal_error_signal (), child_handler ();
|
extern RETSIGTYPE fatal_error_signal (), child_handler ();
|
||||||
|
@ -363,7 +363,7 @@ main (argc, argv, envp)
|
||||||
reading_filename = 0;
|
reading_filename = 0;
|
||||||
reading_lineno_ptr = 0;
|
reading_lineno_ptr = 0;
|
||||||
|
|
||||||
#ifdef SYS_SIGLIST_MISSING
|
#ifndef HAVE_SYS_SIGLIST
|
||||||
init_siglist ();
|
init_siglist ();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -371,7 +371,7 @@ main (argc, argv, envp)
|
||||||
sigemptyset (&fatal_signal_set);
|
sigemptyset (&fatal_signal_set);
|
||||||
#define ADD_SIG(sig) sigaddset (&fatal_signal_set, sig)
|
#define ADD_SIG(sig) sigaddset (&fatal_signal_set, sig)
|
||||||
#else
|
#else
|
||||||
#ifndef SIGSETMASK_MISSING
|
#ifdef HAVE_SIGSETMASK
|
||||||
fatal_signal_mask = 0;
|
fatal_signal_mask = 0;
|
||||||
#define ADD_SIG(sig) fatal_signal_mask |= sigmask (sig)
|
#define ADD_SIG(sig) fatal_signal_mask |= sigmask (sig)
|
||||||
#else
|
#else
|
||||||
|
@ -404,7 +404,7 @@ main (argc, argv, envp)
|
||||||
|
|
||||||
/* Make sure stdout is line-buffered. */
|
/* Make sure stdout is line-buffered. */
|
||||||
|
|
||||||
#ifndef SETLINEBUF_MISSING
|
#ifdef HAVE_SETLINEBUF
|
||||||
setlinebuf (stdout);
|
setlinebuf (stdout);
|
||||||
#else
|
#else
|
||||||
#ifndef SETVBUF_REVERSED
|
#ifndef SETVBUF_REVERSED
|
||||||
|
@ -437,7 +437,7 @@ main (argc, argv, envp)
|
||||||
|
|
||||||
if (getcwd (current_directory, GET_PATH_MAX) == 0)
|
if (getcwd (current_directory, GET_PATH_MAX) == 0)
|
||||||
{
|
{
|
||||||
#ifndef GETCWD_MISSING
|
#ifdef HAVE_GETCWD
|
||||||
perror_with_name ("getcwd: ", "");
|
perror_with_name ("getcwd: ", "");
|
||||||
#else
|
#else
|
||||||
error ("getwd: %s", current_directory);
|
error ("getwd: %s", current_directory);
|
||||||
|
@ -1487,7 +1487,7 @@ log_working_directory (entering)
|
||||||
|
|
||||||
if (getcwd (pwdbuf, GET_PATH_MAX) == 0)
|
if (getcwd (pwdbuf, GET_PATH_MAX) == 0)
|
||||||
{
|
{
|
||||||
#ifndef GETCWD_MISSING
|
#ifdef HAVE_GETCWD
|
||||||
perror_with_name ("getcwd: ", "");
|
perror_with_name ("getcwd: ", "");
|
||||||
#else
|
#else
|
||||||
error ("getwd: %s", pwdbuf);
|
error ("getwd: %s", pwdbuf);
|
||||||
|
|
Loading…
Reference in a new issue