aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDan Nicolaescu2009-07-03 13:46:39 +0000
committerDan Nicolaescu2009-07-03 13:46:39 +0000
commitf8d231047c0267243b13b1d04c982970a8adb8b0 (patch)
tree20da2866bc71df8e6818cf823858ed757a21f07b /src
parentf2d6b714696d8c82c17927d3af415c147b412006 (diff)
downloademacs-f8d231047c0267243b13b1d04c982970a8adb8b0.tar.gz
emacs-f8d231047c0267243b13b1d04c982970a8adb8b0.zip
* sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
(mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused. * callproc.c (child_setup): Use #else instead of a separate #ifdef. * term.c (init_tty): Remove spurious #ifdef.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog7
-rw-r--r--src/callproc.c6
-rw-r--r--src/sysdep.c19
-rw-r--r--src/term.c2
4 files changed, 13 insertions, 21 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index ad7bf8a544b..add7356b7ee 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,12 @@
12009-07-03 Dan Nicolaescu <dann@ics.uci.edu> 12009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
2 2
3 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
4 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
5
6 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
7
8 * term.c (init_tty): Remove spurious #ifdef.
9
3 * m/mips.h: Mention this file is also used for netbsd. 10 * m/mips.h: Mention this file is also used for netbsd.
4 * m/pmax.h: Remove file. 11 * m/pmax.h: Remove file.
5 12
diff --git a/src/callproc.c b/src/callproc.c
index cab30475d63..54d270b57ef 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -1127,16 +1127,14 @@ child_setup (in, out, err, new_argv, set_pgrp, current_dir)
1127 at least check. */ 1127 at least check. */
1128 if (chdir (temp) < 0) 1128 if (chdir (temp) < 0)
1129 _exit (errno); 1129 _exit (errno);
1130#endif 1130#else /* DOS_NT */
1131
1132#ifdef DOS_NT
1133 /* Get past the drive letter, so that d:/ is left alone. */ 1131 /* Get past the drive letter, so that d:/ is left alone. */
1134 if (i > 2 && IS_DEVICE_SEP (temp[1]) && IS_DIRECTORY_SEP (temp[2])) 1132 if (i > 2 && IS_DEVICE_SEP (temp[1]) && IS_DIRECTORY_SEP (temp[2]))
1135 { 1133 {
1136 temp += 2; 1134 temp += 2;
1137 i -= 2; 1135 i -= 2;
1138 } 1136 }
1139#endif 1137#endif /* DOS_NT */
1140 1138
1141 /* Strip trailing slashes for PWD, but leave "/" and "//" alone. */ 1139 /* Strip trailing slashes for PWD, but leave "/" and "//" alone. */
1142 while (i > 2 && IS_DIRECTORY_SEP (temp[i - 1])) 1140 while (i > 2 && IS_DIRECTORY_SEP (temp[i - 1]))
diff --git a/src/sysdep.c b/src/sysdep.c
index 028e6e40957..210ad37fee9 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -623,18 +623,11 @@ sys_suspend ()
623 } 623 }
624 624
625#else /* No SIGTSTP */ 625#else /* No SIGTSTP */
626#ifdef USG_JOBCTRL /* If you don't know what this is don't mess with it */
627 ptrace (0, 0, 0, 0); /* set for ptrace - caught by csh */
628 kill (getpid (), SIGQUIT);
629
630#else /* No SIGTSTP or USG_JOBCTRL */
631
632/* On a system where suspending is not implemented, 626/* On a system where suspending is not implemented,
633 instead fork a subshell and let it talk directly to the terminal 627 instead fork a subshell and let it talk directly to the terminal
634 while we wait. */ 628 while we wait. */
635 sys_subshell (); 629 sys_subshell ();
636 630
637#endif /* no USG_JOBCTRL */
638#endif /* no SIGTSTP */ 631#endif /* no SIGTSTP */
639} 632}
640 633
@@ -2782,14 +2775,10 @@ set_file_times (filename, atime, mtime)
2782/* 2775/*
2783 * Make a directory. 2776 * Make a directory.
2784 */ 2777 */
2785#ifdef MKDIR_PROTOTYPE
2786MKDIR_PROTOTYPE
2787#else
2788int 2778int
2789mkdir (dpath, dmode) 2779mkdir (dpath, dmode)
2790 char *dpath; 2780 char *dpath;
2791 int dmode; 2781 int dmode;
2792#endif
2793{ 2782{
2794 int cpid, status, fd; 2783 int cpid, status, fd;
2795 struct stat statbuf; 2784 struct stat statbuf;
@@ -3211,8 +3200,8 @@ list_system_processes ()
3211 return proclist; 3200 return proclist;
3212} 3201}
3213 3202
3214/* The WINDOWSNT implementation is on w32.c. 3203/* The WINDOWSNT implementation is in w32.c.
3215 The MSDOS implementation is on dosfns.c. */ 3204 The MSDOS implementation is in dosfns.c. */
3216#elif !defined (WINDOWSNT) && !defined (MSDOS) 3205#elif !defined (WINDOWSNT) && !defined (MSDOS)
3217 3206
3218Lisp_Object 3207Lisp_Object
@@ -3754,8 +3743,8 @@ system_process_attributes (Lisp_Object pid)
3754 return attrs; 3743 return attrs;
3755} 3744}
3756 3745
3757/* The WINDOWSNT implementation is on w32.c. 3746/* The WINDOWSNT implementation is in w32.c.
3758 The MSDOS implementation is on dosfns.c. */ 3747 The MSDOS implementation is in dosfns.c. */
3759#elif !defined (WINDOWSNT) && !defined (MSDOS) 3748#elif !defined (WINDOWSNT) && !defined (MSDOS)
3760 3749
3761Lisp_Object 3750Lisp_Object
diff --git a/src/term.c b/src/term.c
index 5176214b136..0d0095785e3 100644
--- a/src/term.c
+++ b/src/term.c
@@ -3464,9 +3464,7 @@ init_tty (char *name, char *terminal_type, int must_succeed)
3464 3464
3465 tty->type = xstrdup (terminal_type); 3465 tty->type = xstrdup (terminal_type);
3466 3466
3467#ifdef subprocesses
3468 add_keyboard_wait_descriptor (fileno (tty->input)); 3467 add_keyboard_wait_descriptor (fileno (tty->input));
3469#endif
3470 3468
3471#endif /* !DOS_NT */ 3469#endif /* !DOS_NT */
3472 3470