Mercurial > hg > xemacs-beta
comparison src/process-unix.c @ 2286:04bc9d2f42c7
[xemacs-hg @ 2004-09-20 19:18:55 by james]
Mark all unused parameters as unused. Also eliminate some unneeded local
variables.
author | james |
---|---|
date | Mon, 20 Sep 2004 19:20:08 +0000 |
parents | 61855263cb07 |
children | ecf1ebac70d8 |
comparison
equal
deleted
inserted
replaced
2285:914c5afaac33 | 2286:04bc9d2f42c7 |
---|---|
94 /**********************************************************************/ | 94 /**********************************************************************/ |
95 /* Static helper routines */ | 95 /* Static helper routines */ |
96 /**********************************************************************/ | 96 /**********************************************************************/ |
97 | 97 |
98 static SIGTYPE | 98 static SIGTYPE |
99 close_safely_handler (int signo) | 99 close_safely_handler (int SIG_ARG_MAYBE_UNUSED (signo)) |
100 { | 100 { |
101 EMACS_REESTABLISH_SIGNAL (signo, close_safely_handler); | 101 EMACS_REESTABLISH_SIGNAL (signo, close_safely_handler); |
102 SIGRETURN; | 102 SIGRETURN; |
103 } | 103 } |
104 | 104 |
125 /* Close all descriptors currently in use for communication | 125 /* Close all descriptors currently in use for communication |
126 with subprocess. This is used in a newly-forked subprocess | 126 with subprocess. This is used in a newly-forked subprocess |
127 to get rid of irrelevant descriptors. */ | 127 to get rid of irrelevant descriptors. */ |
128 | 128 |
129 static int | 129 static int |
130 close_process_descs_mapfun (const void *key, void *contents, void *arg) | 130 close_process_descs_mapfun (const void *UNUSED (key), void *contents, |
131 void *UNUSED (arg)) | |
131 { | 132 { |
132 Lisp_Object proc = VOID_TO_LISP (contents); | 133 Lisp_Object proc = VOID_TO_LISP (contents); |
133 USID vaffan, culo; | 134 USID vaffan, culo; |
134 | 135 |
135 event_stream_delete_io_streams (XPROCESS (proc)->pipe_instream, | 136 event_stream_delete_io_streams (XPROCESS (proc)->pipe_instream, |
514 return 1; | 515 return 1; |
515 } | 516 } |
516 #endif /* !USE_GETADDRINFO */ | 517 #endif /* !USE_GETADDRINFO */ |
517 | 518 |
518 static void | 519 static void |
519 set_socket_nonblocking_maybe (int fd, int port, const char *proto) | 520 set_socket_nonblocking_maybe (int fd, |
521 #ifdef PROCESS_IO_BLOCKING | |
522 int port, const char *proto | |
523 #else | |
524 int UNUSED (port), const char *UNUSED (proto) | |
525 #endif | |
526 ) | |
520 { | 527 { |
521 #ifdef PROCESS_IO_BLOCKING | 528 #ifdef PROCESS_IO_BLOCKING |
522 Lisp_Object tail; | 529 Lisp_Object tail; |
523 | 530 |
524 for (tail = network_stream_blocking_port_list; CONSP (tail); tail = XCDR (tail)) | 531 for (tail = network_stream_blocking_port_list; CONSP (tail); tail = XCDR (tail)) |
694 the first time, and so we don't have to reestablish the signal handler | 701 the first time, and so we don't have to reestablish the signal handler |
695 in the handler below. On SYS V Release 4, we don't get this weirdo | 702 in the handler below. On SYS V Release 4, we don't get this weirdo |
696 behavior when we use sigaction(), which we do use.) */ | 703 behavior when we use sigaction(), which we do use.) */ |
697 | 704 |
698 static SIGTYPE | 705 static SIGTYPE |
699 sigchld_handler (int signo) | 706 sigchld_handler (int SIG_ARG_MAYBE_UNUSED (signo)) |
700 { | 707 { |
701 #ifdef OBNOXIOUS_SYSV_SIGCLD_BEHAVIOR | 708 #ifdef OBNOXIOUS_SYSV_SIGCLD_BEHAVIOR |
702 int old_errno = errno; | 709 int old_errno = errno; |
703 | 710 |
704 sigchld_happened++; | 711 sigchld_happened++; |
834 * handles are generally represented by void* type, but are | 841 * handles are generally represented by void* type, but are |
835 * of type int (file descriptors) for UNIX. | 842 * of type int (file descriptors) for UNIX. |
836 */ | 843 */ |
837 | 844 |
838 static void | 845 static void |
839 unix_init_process_io_handles (Lisp_Process *p, void *in, void *out, void *err, | 846 unix_init_process_io_handles (Lisp_Process *p, void *in, void *UNUSED (out), |
840 int flags) | 847 void *err, int UNUSED (flags)) |
841 { | 848 { |
842 UNIX_DATA(p)->infd = (int) in; | 849 UNIX_DATA(p)->infd = (int) in; |
843 UNIX_DATA(p)->errfd = (int) err; | 850 UNIX_DATA(p)->errfd = (int) err; |
844 } | 851 } |
845 | 852 |