Mercurial > hg > xemacs-beta
comparison src/process-unix.c @ 278:90d73dddcdc4 r21-0b37
Import from CVS: tag r21-0b37
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:31:29 +0200 |
parents | ca9a9ec9c1c1 |
children | c42ec1d1cded |
comparison
equal
deleted
inserted
replaced
277:cfdf3ff11843 | 278:90d73dddcdc4 |
---|---|
202 is left in the variable pty_name. */ | 202 is left in the variable pty_name. */ |
203 | 203 |
204 static int | 204 static int |
205 allocate_pty (void) | 205 allocate_pty (void) |
206 { | 206 { |
207 #ifndef PTY_OPEN | |
207 struct stat stb; | 208 struct stat stb; |
208 int c, i; | |
209 int fd; | |
210 | 209 |
211 /* Some systems name their pseudoterminals so that there are gaps in | 210 /* Some systems name their pseudoterminals so that there are gaps in |
212 the usual sequence - for example, on HP9000/S700 systems, there | 211 the usual sequence - for example, on HP9000/S700 systems, there |
213 are no pseudoterminals with names ending in 'f'. So we wait for | 212 are no pseudoterminals with names ending in 'f'. So we wait for |
214 three failures in a row before deciding that we've reached the | 213 three failures in a row before deciding that we've reached the |
215 end of the ptys. */ | 214 end of the ptys. */ |
216 int failed_count = 0; | 215 int failed_count = 0; |
216 #endif | |
217 int i; | |
218 int fd; | |
219 int c; | |
217 | 220 |
218 #ifdef PTY_ITERATION | 221 #ifdef PTY_ITERATION |
219 PTY_ITERATION | 222 PTY_ITERATION |
220 #else | 223 #else |
221 for (c = FIRST_PTY_LETTER; c <= 'z'; c++) | 224 for (c = FIRST_PTY_LETTER; c <= 'z'; c++) |