06b7c7ffe2
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
15 lines
369 B
C
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
|