haiku/headers/private/drivers/tty.h
Ingo Weinhold 06b7c7ffe2 * Set reasonable terminal flag defaults. This makes telnetd fully usable
again.
* Publish /dev/ptmx. Opening it will open a fresh pty master. In
  principle /dev/pt/ is obsolete now, but I guess we keep it around for
  compatibility with BeOS. Though there shouldn't be many applications
  opening a pty, that we might be interested in...
* New ioctls B_IOCTL_GET_TTY_INDEX (returns the tty index) and
  B_IOCTL_GRANT_TTY (grants tty slave access rights).



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25133 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-04-24 21:26:35 +00:00

15 lines
369 B
C

/*
* Copyright 2008, Ingo Weinhold, ingo_weinhold@gmx.de. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _DRIVERS_TTY_H
#define _DRIVERS_TTY_H
#include <termios.h>
#define B_IOCTL_GET_TTY_INDEX (TCGETA + 32) /* param is int32* */
#define B_IOCTL_GRANT_TTY (TCGETA + 33) /* no param (cf. grantpt()) */
#endif // _DRIVERS_TTY_H