Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
4d7c105e
Commit
4d7c105e
authored
Jul 19, 1992
by
Richard M. Stallman
Browse files
*** empty log message ***
parent
b9c7647e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
23 deletions
+6
-23
src/process.c
src/process.c
+6
-23
No files found.
src/process.c
View file @
4d7c105e
...
...
@@ -405,18 +405,13 @@ allocate_pty ()
{
#ifdef PTY_NAME_SPRINTF
PTY_NAME_SPRINTF
#else
#ifdef HPUX
sprintf
(
pty_name
,
"/dev/ptym/pty%c%x"
,
c
,
i
);
#else
#ifdef RTU
sprintf
(
pty_name
,
"/dev/pty%x"
,
i
);
#else
sprintf
(
pty_name
,
"/dev/pty%c%x"
,
c
,
i
);
#endif
/* not RTU */
#endif
/* not HPUX */
#endif
/* no PTY_NAME_SPRINTF */
#ifdef PTY_OPEN
PTY_OPEN
;
#else
/* no PTY_OPEN */
#ifdef IRIS
/* Unusual IRIS code */
*
ptyv
=
open
(
"/dev/ptc"
,
O_RDWR
|
O_NDELAY
,
0
);
...
...
@@ -424,7 +419,7 @@ allocate_pty ()
return
-
1
;
if
(
fstat
(
fd
,
&
stb
)
<
0
)
return
-
1
;
#else
#else
/* not IRIS */
if
(
stat
(
pty_name
,
&
stb
)
<
0
)
{
failed_count
++
;
...
...
@@ -438,7 +433,8 @@ allocate_pty ()
#else
fd
=
open
(
pty_name
,
O_RDWR
|
O_NDELAY
,
0
);
#endif
#endif
/* IRIS */
#endif
/* not IRIS */
#endif
/* no PTY_OPEN */
if
(
fd
>=
0
)
{
...
...
@@ -446,21 +442,8 @@ allocate_pty ()
this avoids a nasty yet stupid bug in rlogins */
#ifdef PTY_TTY_NAME_SPRINTF
PTY_TTY_NAME_SPRINTF
#else
/* TODO: In version 19, make these special cases use the macro above. */
#ifdef HPUX
sprintf
(
pty_name
,
"/dev/pty/tty%c%x"
,
c
,
i
);
#else
#ifdef RTU
sprintf
(
pty_name
,
"/dev/ttyp%x"
,
i
);
#else
#ifdef IRIS
sprintf
(
pty_name
,
"/dev/ttyq%d"
,
minor
(
stb
.
st_rdev
));
#else
sprintf
(
pty_name
,
"/dev/tty%c%x"
,
c
,
i
);
#endif
/* not IRIS */
#endif
/* not RTU */
#endif
/* not HPUX */
#endif
/* no PTY_TTY_NAME_SPRINTF */
#ifndef UNIPLUS
if
(
access
(
pty_name
,
6
)
!=
0
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment