diff options
| author | Dan Nicolaescu | 2010-10-01 06:04:07 -0700 |
|---|---|---|
| committer | Dan Nicolaescu | 2010-10-01 06:04:07 -0700 |
| commit | 9bf58201c27ba54cd9fe279979fd89814d62ed96 (patch) | |
| tree | 9227dca532df10f3e39f69e2d411c4d5b943f9d8 /src | |
| parent | aecb42aa494ca9edb75bb700a807bd9eeed82dca (diff) | |
| download | emacs-9bf58201c27ba54cd9fe279979fd89814d62ed96.tar.gz emacs-9bf58201c27ba54cd9fe279979fd89814d62ed96.zip | |
Small process.c cleanups.
* src/process.c: Move #include <pty.h> earlier.
(SIGCHLD): Remove conditional definition, syssignal.h defines it.
(pty_name): Move definition later.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/process.c | 22 |
2 files changed, 11 insertions, 15 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 753d262417a..007abc4b343 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2010-10-01 Dan Nicolaescu <dann@ics.uci.edu> | 1 | 2010-10-01 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 2 | ||
| 3 | * process.c: Move #include <pty.h> earlier. | ||
| 4 | (SIGCHLD): Remove conditional definition, syssignal.h defines it. | ||
| 5 | (pty_name): Move definition later. | ||
| 6 | |||
| 3 | * nsselect.m (syms_of_nsselect): | 7 | * nsselect.m (syms_of_nsselect): |
| 4 | * nsmenu.m (syms_of_nsmenu): | 8 | * nsmenu.m (syms_of_nsmenu): |
| 5 | * nsfns.m (syms_of_nsfns): | 9 | * nsfns.m (syms_of_nsfns): |
diff --git a/src/process.c b/src/process.c index a698e56fe39..c78404910af 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -82,6 +82,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 82 | #include <util.h> | 82 | #include <util.h> |
| 83 | #endif | 83 | #endif |
| 84 | 84 | ||
| 85 | #ifdef HAVE_PTY_H | ||
| 86 | #include <pty.h> | ||
| 87 | #endif | ||
| 88 | |||
| 85 | #endif /* subprocesses */ | 89 | #endif /* subprocesses */ |
| 86 | 90 | ||
| 87 | #include "lisp.h" | 91 | #include "lisp.h" |
| @@ -171,13 +175,6 @@ extern Lisp_Object QCfilter; | |||
| 171 | /* Define first descriptor number available for subprocesses. */ | 175 | /* Define first descriptor number available for subprocesses. */ |
| 172 | #define FIRST_PROC_DESC 3 | 176 | #define FIRST_PROC_DESC 3 |
| 173 | 177 | ||
| 174 | /* Define SIGCHLD as an alias for SIGCLD. There are many conditionals | ||
| 175 | testing SIGCHLD. */ | ||
| 176 | |||
| 177 | #if !defined (SIGCHLD) && defined (SIGCLD) | ||
| 178 | #define SIGCHLD SIGCLD | ||
| 179 | #endif /* SIGCLD */ | ||
| 180 | |||
| 181 | extern const char *get_operating_system_release (void); | 178 | extern const char *get_operating_system_release (void); |
| 182 | 179 | ||
| 183 | /* From sysdep.c or w32.c */ | 180 | /* From sysdep.c or w32.c */ |
| @@ -356,14 +353,6 @@ struct sockaddr_and_len { | |||
| 356 | /* Maximum number of bytes to send to a pty without an eof. */ | 353 | /* Maximum number of bytes to send to a pty without an eof. */ |
| 357 | static int pty_max_bytes; | 354 | static int pty_max_bytes; |
| 358 | 355 | ||
| 359 | #ifdef HAVE_PTYS | ||
| 360 | #ifdef HAVE_PTY_H | ||
| 361 | #include <pty.h> | ||
| 362 | #endif | ||
| 363 | /* The file name of the pty opened by allocate_pty. */ | ||
| 364 | |||
| 365 | static char pty_name[24]; | ||
| 366 | #endif | ||
| 367 | 356 | ||
| 368 | 357 | ||
| 369 | struct fd_callback_data | 358 | struct fd_callback_data |
| @@ -563,6 +552,9 @@ status_message (struct Lisp_Process *p) | |||
| 563 | 552 | ||
| 564 | #ifdef HAVE_PTYS | 553 | #ifdef HAVE_PTYS |
| 565 | 554 | ||
| 555 | /* The file name of the pty opened by allocate_pty. */ | ||
| 556 | static char pty_name[24]; | ||
| 557 | |||
| 566 | /* Open an available pty, returning a file descriptor. | 558 | /* Open an available pty, returning a file descriptor. |
| 567 | Return -1 on failure. | 559 | Return -1 on failure. |
| 568 | The file name of the terminal corresponding to the pty | 560 | The file name of the terminal corresponding to the pty |