Back to index

glibc  2.9
pty-private.h
Go to the documentation of this file.
00001 /* Internal defenitions and declarations for pseudo terminal functions.
00002    Copyright (C) 1998, 1999 Free Software Foundation, Inc.
00003    This file is part of the GNU C Library.
00004    Contributed by Zack Weinberg <zack@rabi.phys.columbia.edu>, 1998.
00005 
00006    The GNU C Library is free software; you can redistribute it and/or
00007    modify it under the terms of the GNU Lesser General Public
00008    License as published by the Free Software Foundation; either
00009    version 2.1 of the License, or (at your option) any later version.
00010 
00011    The GNU C Library is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014    Lesser General Public License for more details.
00015 
00016    You should have received a copy of the GNU Lesser General Public
00017    License along with the GNU C Library; if not, write to the Free
00018    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00019    02111-1307 USA.  */
00020 
00021 #ifndef _PTY_PRIVATE_H
00022 #define _PTY_PRIVATE_H 1
00023 
00024 /* The group slave pseudo terminals belong to.  */
00025 #define TTY_GROUP "tty"
00026 
00027 /* The file descriptor connected to the master pseudo terminal.  */
00028 #define PTY_FILENO 3
00029 
00030 /* Path to the helper program that implements `grantpt' in user space.  */
00031 #define _PATH_PT_CHOWN LIBEXECDIR "/pt_chown"
00032 
00033 /* Test whether given TTY is really a Unix98 pseudo terminal.  */
00034 /* #define unix98_pseudo_p(Dev) ... */
00035 
00036 /* Exit codes for the helper program.  */
00037 enum  /* failure modes */
00038 {
00039   FAIL_EBADF = 1,
00040   FAIL_EINVAL,
00041   FAIL_EACCES,
00042   FAIL_EXEC
00043 };
00044 
00045 #endif /* pty-private.h  */