aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorStefan Monnier2011-03-21 12:42:16 -0400
committerStefan Monnier2011-03-21 12:42:16 -0400
commitcafdcef32d55cbb44389d7e322e7f973cbb72dfd (patch)
tree7ee0c41ea8a589650ce6f4311fb10e61a63807b9 /src/process.c
parenta08a25d7aaf251aa18f2ef747be53734bc55cae9 (diff)
parent4e05e67e4cd0bc1b0a4ef3176a4d0d91c6b3738e (diff)
downloademacs-cafdcef32d55cbb44389d7e322e7f973cbb72dfd.tar.gz
emacs-cafdcef32d55cbb44389d7e322e7f973cbb72dfd.zip
Merge from trunk
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/src/process.c b/src/process.c
index 210287a85f1..c9b420ab2ae 100644
--- a/src/process.c
+++ b/src/process.c
@@ -162,12 +162,6 @@ extern Lisp_Object QCfilter;
162/* Define first descriptor number available for subprocesses. */ 162/* Define first descriptor number available for subprocesses. */
163#define FIRST_PROC_DESC 3 163#define FIRST_PROC_DESC 3
164 164
165extern const char *get_operating_system_release (void);
166
167/* From sysdep.c or w32.c */
168extern int serial_open (char *port);
169extern void serial_configure (struct Lisp_Process *p, Lisp_Object contact);
170
171#ifndef HAVE_H_ERRNO 165#ifndef HAVE_H_ERRNO
172extern int h_errno; 166extern int h_errno;
173#endif 167#endif
@@ -499,7 +493,7 @@ status_message (struct Lisp_Process *p)
499 string = (code_convert_string_norecord 493 string = (code_convert_string_norecord
500 (string, Vlocale_coding_system, 0)); 494 (string, Vlocale_coding_system, 0));
501 c1 = STRING_CHAR (SDATA (string)); 495 c1 = STRING_CHAR (SDATA (string));
502 c2 = DOWNCASE (c1); 496 c2 = downcase (c1);
503 if (c1 != c2) 497 if (c1 != c2)
504 Faset (string, make_number (0), make_number (c2)); 498 Faset (string, make_number (0), make_number (c2));
505 } 499 }
@@ -541,17 +535,16 @@ static char pty_name[24];
541static int 535static int
542allocate_pty (void) 536allocate_pty (void)
543{ 537{
544 register int c, i;
545 int fd; 538 int fd;
546 539
547#ifdef PTY_ITERATION 540#ifdef PTY_ITERATION
548 PTY_ITERATION 541 PTY_ITERATION
549#else 542#else
543 register int c, i;
550 for (c = FIRST_PTY_LETTER; c <= 'z'; c++) 544 for (c = FIRST_PTY_LETTER; c <= 'z'; c++)
551 for (i = 0; i < 16; i++) 545 for (i = 0; i < 16; i++)
552#endif 546#endif
553 { 547 {
554 struct stat stb; /* Used in some PTY_OPEN. */
555#ifdef PTY_NAME_SPRINTF 548#ifdef PTY_NAME_SPRINTF
556 PTY_NAME_SPRINTF 549 PTY_NAME_SPRINTF
557#else 550#else
@@ -568,6 +561,7 @@ allocate_pty (void)
568 three failures in a row before deciding that we've reached the 561 three failures in a row before deciding that we've reached the
569 end of the ptys. */ 562 end of the ptys. */
570 int failed_count = 0; 563 int failed_count = 0;
564 struct stat stb;
571 565
572 if (stat (pty_name, &stb) < 0) 566 if (stat (pty_name, &stb) < 0)
573 { 567 {
@@ -2730,7 +2724,8 @@ usage: (serial-process-configure &rest ARGS) */)
2730} 2724}
2731 2725
2732/* Used by make-serial-process to recover from errors. */ 2726/* Used by make-serial-process to recover from errors. */
2733Lisp_Object make_serial_process_unwind (Lisp_Object proc) 2727static Lisp_Object
2728make_serial_process_unwind (Lisp_Object proc)
2734{ 2729{
2735 if (!PROCESSP (proc)) 2730 if (!PROCESSP (proc))
2736 abort (); 2731 abort ();
@@ -5482,7 +5477,7 @@ read_process_output (Lisp_Object proc, register int channel)
5482jmp_buf send_process_frame; 5477jmp_buf send_process_frame;
5483Lisp_Object process_sent_to; 5478Lisp_Object process_sent_to;
5484 5479
5485SIGTYPE 5480static SIGTYPE
5486send_process_trap (int ignore) 5481send_process_trap (int ignore)
5487{ 5482{
5488 SIGNAL_THREAD_CHECK (SIGPIPE); 5483 SIGNAL_THREAD_CHECK (SIGPIPE);
@@ -6391,7 +6386,7 @@ process has been transmitted to the serial port. */)
6391 indirectly; if it does, that is a bug */ 6386 indirectly; if it does, that is a bug */
6392 6387
6393#ifdef SIGCHLD 6388#ifdef SIGCHLD
6394SIGTYPE 6389static SIGTYPE
6395sigchld_handler (int signo) 6390sigchld_handler (int signo)
6396{ 6391{
6397 int old_errno = errno; 6392 int old_errno = errno;