Mercurial > emacs
comparison src/sysdep.c @ 103711:531520bb5152
* 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.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Fri, 03 Jul 2009 13:46:39 +0000 |
parents | 316f9e26e9c7 |
children | 41169068dcab |
comparison
equal
deleted
inserted
replaced
103710:fc048c702693 | 103711:531520bb5152 |
---|---|
621 int pgrp = EMACS_GETPGRP (0); | 621 int pgrp = EMACS_GETPGRP (0); |
622 EMACS_KILLPG (pgrp, SIGTSTP); | 622 EMACS_KILLPG (pgrp, SIGTSTP); |
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 |
641 /* Fork a subshell. */ | 634 /* Fork a subshell. */ |
642 | 635 |
2780 */ | 2773 */ |
2781 | 2774 |
2782 /* | 2775 /* |
2783 * Make a directory. | 2776 * Make a directory. |
2784 */ | 2777 */ |
2785 #ifdef MKDIR_PROTOTYPE | |
2786 MKDIR_PROTOTYPE | |
2787 #else | |
2788 int | 2778 int |
2789 mkdir (dpath, dmode) | 2779 mkdir (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; |
2796 | 2785 |
2797 if (stat (dpath, &statbuf) == 0) | 2786 if (stat (dpath, &statbuf) == 0) |
3209 that. */ | 3198 that. */ |
3210 proclist = Fnreverse (proclist); | 3199 proclist = Fnreverse (proclist); |
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 |
3218 Lisp_Object | 3207 Lisp_Object |
3219 list_system_processes () | 3208 list_system_processes () |
3220 { | 3209 { |
3752 | 3741 |
3753 UNGCPRO; | 3742 UNGCPRO; |
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 |
3761 Lisp_Object | 3750 Lisp_Object |
3762 system_process_attributes (Lisp_Object pid) | 3751 system_process_attributes (Lisp_Object pid) |
3763 { | 3752 { |