Revision f3ff649d
b/slirp/misc.c | ||
---|---|---|
227 | 227 |
#else |
228 | 228 |
|
229 | 229 |
int |
230 |
openpty(amaster, aslave) |
|
231 |
int *amaster, *aslave;
|
|
230 |
slirp_openpty(amaster, aslave)
|
|
231 |
int *amaster, *aslave;
|
|
232 | 232 |
{ |
233 | 233 |
register int master, slave; |
234 | 234 |
|
... | ... | |
328 | 328 |
DEBUG_ARG("do_pty = %lx", (long)do_pty); |
329 | 329 |
|
330 | 330 |
if (do_pty == 2) { |
331 |
if (openpty(&master, &s) == -1) { |
|
331 |
if (slirp_openpty(&master, &s) == -1) {
|
|
332 | 332 |
lprint("Error: openpty failed: %s\n", strerror(errno)); |
333 | 333 |
return 0; |
334 | 334 |
} |
... | ... | |
881 | 881 |
return 0; |
882 | 882 |
} |
883 | 883 |
#else |
884 |
if (openpty(&fd0[0], &fd0[1]) == -1) { |
|
884 |
if (slirp_openpty(&fd0[0], &fd0[1]) == -1) {
|
|
885 | 885 |
close(fd[0]); |
886 | 886 |
close(fd[1]); |
887 | 887 |
lprint("Error: openpty failed: %s\n", strerror(errno)); |
b/slirp/misc.h | ||
---|---|---|
73 | 73 |
inline void slirp_insque _P((void *, void *)); |
74 | 74 |
inline void slirp_remque _P((void *)); |
75 | 75 |
int add_exec _P((struct ex_list **, int, char *, int, int)); |
76 |
int openpty _P((int *, int *)); |
|
76 |
int slirp_openpty _P((int *, int *));
|
|
77 | 77 |
int fork_exec _P((struct socket *, char *, int)); |
78 | 78 |
void snooze_hup _P((int)); |
79 | 79 |
void snooze _P((void)); |
Also available in: Unified diff