diff options
author | damien <damien> | 2000-04-16 01:18:38 +0000 |
---|---|---|
committer | damien <damien> | 2000-04-16 01:18:38 +0000 |
commit | 8c2a627228e29d2cfa293c521df7b9c9bf6b4361 (patch) | |
tree | 4060aa5e88cf0146576068a8cccbb944915009a0 /pty.c | |
parent | b7f20d5d82bfab6c5bf198a8d2d44c207bdf9287 (diff) | |
download | openssh-8c2a627228e29d2cfa293c521df7b9c9bf6b4361.tar.gz |
- OpenBSD CVS updates.
[ssh.1 ssh.c]
- ssh -2
[auth.c channels.c clientloop.c packet.c packet.h serverloop.c]
[session.c sshconnect.c]
- check payload for (illegal) extra data
[ALL]
- whitespace cleanup
Diffstat (limited to 'pty.c')
-rw-r--r-- | pty.c | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -1,20 +1,20 @@ /* - * + * * pty.c - * + * * Author: Tatu Ylonen <ylo@cs.hut.fi> - * + * * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland * All rights reserved - * + * * Created: Fri Mar 17 04:37:25 1995 ylo - * + * * Allocating a pseudo-terminal, and making it the controlling tty. - * + * */ #include "includes.h" -RCSID("$Id: pty.c,v 1.17 2000/03/17 12:58:59 damien Exp $"); +RCSID("$Id: pty.c,v 1.18 2000/04/16 01:18:44 damien Exp $"); #ifdef HAVE_UTIL_H # include <util.h> @@ -46,7 +46,7 @@ RCSID("$Id: pty.c,v 1.17 2000/03/17 12:58:59 damien Exp $"); * returned (the buffer must be able to hold at least 64 characters). */ -int +int pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, int namebuflen) { #if defined(HAVE_OPENPTY) || defined(BSD4_4) @@ -186,7 +186,7 @@ pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, int namebuflen) /* Releases the tty. Its ownership is returned to root, and permissions to 0666. */ -void +void pty_release(const char *ttyname) { if (chown(ttyname, (uid_t) 0, (gid_t) 0) < 0) @@ -197,7 +197,7 @@ pty_release(const char *ttyname) /* Makes the tty the processes controlling tty and sets it to sane modes. */ -void +void pty_make_controlling_tty(int *ttyfd, const char *ttyname) { int fd; @@ -250,7 +250,7 @@ pty_make_controlling_tty(int *ttyfd, const char *ttyname) /* Changes the window size associated with the pty. */ -void +void pty_change_window_size(int ptyfd, int row, int col, int xpixel, int ypixel) { |