rewind to 10 Feb 2006.
This commit is contained in:
26
etc.c
26
etc.c
@@ -1,8 +1,6 @@
|
||||
/* $Id: etc.c,v 1.79 2006/04/05 14:18:54 inu Exp $ */
|
||||
/* $Id: etc.c,v 1.80 2006/04/07 13:21:11 inu Exp $ */
|
||||
#include "fm.h"
|
||||
#ifndef __MINGW32_VERSION
|
||||
#include <pwd.h>
|
||||
#endif
|
||||
#include "myctype.h"
|
||||
#include "html.h"
|
||||
#include "local.h"
|
||||
@@ -1312,13 +1310,9 @@ romanAlphabet(int n)
|
||||
static void
|
||||
reset_signals(void)
|
||||
{
|
||||
#ifdef SIGHUP
|
||||
mySignal(SIGHUP, SIG_DFL); /* terminate process */
|
||||
#endif
|
||||
mySignal(SIGINT, SIG_DFL); /* terminate process */
|
||||
#ifdef SIGQUIT
|
||||
mySignal(SIGQUIT, SIG_DFL); /* terminate process */
|
||||
#endif
|
||||
mySignal(SIGTERM, SIG_DFL); /* terminate process */
|
||||
mySignal(SIGILL, SIG_DFL); /* create core image */
|
||||
mySignal(SIGIOT, SIG_DFL); /* create core image */
|
||||
@@ -1361,10 +1355,8 @@ setup_child(int child, int i, int f)
|
||||
{
|
||||
reset_signals();
|
||||
mySignal(SIGINT, SIG_IGN);
|
||||
#ifndef __MINGW32_VERSION
|
||||
if (!child)
|
||||
SETPGRP();
|
||||
#endif /* __MINGW32_VERSION */
|
||||
close_tty();
|
||||
close_all_fds_except(i, f);
|
||||
QuietMessage = TRUE;
|
||||
@@ -1372,7 +1364,6 @@ setup_child(int child, int i, int f)
|
||||
TrapSignal = FALSE;
|
||||
}
|
||||
|
||||
#ifndef __MINGW32_VERSION
|
||||
pid_t
|
||||
open_pipe_rw(FILE ** fr, FILE ** fw)
|
||||
{
|
||||
@@ -1430,7 +1421,6 @@ open_pipe_rw(FILE ** fr, FILE ** fw)
|
||||
err0:
|
||||
return (pid_t) - 1;
|
||||
}
|
||||
#endif /* __MINGW32_VERSION */
|
||||
|
||||
void
|
||||
myExec(char *command)
|
||||
@@ -1443,7 +1433,6 @@ myExec(char *command)
|
||||
void
|
||||
mySystem(char *command, int background)
|
||||
{
|
||||
#ifndef __MINGW32_VERSION
|
||||
if (background) {
|
||||
#ifndef __EMX__
|
||||
flush_tty();
|
||||
@@ -1458,7 +1447,6 @@ mySystem(char *command, int background)
|
||||
#endif
|
||||
}
|
||||
else
|
||||
#endif /* __MINGW32_VERSION */
|
||||
system(command);
|
||||
}
|
||||
|
||||
@@ -1528,13 +1516,6 @@ myEditor(char *cmd, char *file, int line)
|
||||
return tmp;
|
||||
}
|
||||
|
||||
#ifdef __MINGW32_VERSION
|
||||
char *
|
||||
expandName(char *name)
|
||||
{
|
||||
return getenv("HOME");
|
||||
}
|
||||
#else
|
||||
char *
|
||||
expandName(char *name)
|
||||
{
|
||||
@@ -1578,7 +1559,6 @@ expandName(char *name)
|
||||
rest:
|
||||
return name;
|
||||
}
|
||||
#endif
|
||||
|
||||
char *
|
||||
file_to_url(char *file)
|
||||
@@ -1918,11 +1898,7 @@ mymktime(char *timestr)
|
||||
#ifdef INET6
|
||||
#include <sys/socket.h>
|
||||
#endif /* INET6 */
|
||||
#ifndef __MINGW32_VERSION
|
||||
#include <netdb.h>
|
||||
#else
|
||||
#include <winsock.h>
|
||||
#endif
|
||||
char *
|
||||
FQDN(char *host)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user