Print this page
12306 XPG4v2 slave pty behaviour should generally be disabled
Reviewed by: Robert Mustacchi <rm@fingolfin.org>
Change-ID: I7ccd399c22866f34dd20c6bb9d28e77ba4e24c67


 144 #define ISCHR(A)        ((A.st_mode & S_IFMT) == S_IFCHR)
 145 #define ISDIR(A)        ((A.st_mode & S_IFMT) == S_IFDIR)
 146 #define ISFIFO(A)       ((A.st_mode & S_IFMT) == S_IFIFO)
 147 #define ISREG(A)        ((A.st_mode & S_IFMT) == S_IFREG)
 148 
 149 #define PUTM()  if (xcode >= 0) puts(gettext(msgtab[xcode]))
 150 #define UNGETC(c)       (peekc = c)
 151 #define FNSIZE  PATH_MAX
 152 #define LBSIZE  LINE_MAX
 153 
 154 /* size of substitution replacement pattern buffer */
 155 #define RHSIZE  (LINE_MAX*2)
 156 
 157 #define KSIZE   8
 158 
 159 #define READ    0
 160 #define WRITE   1
 161 
 162 extern  char    *optarg;        /* Value of argument */
 163 extern  int     optind;         /* Indicator of argument */
 164 extern  int __xpg4;     /* defined in xpg4.c; 0 if not xpg4-compiled program */
 165 
 166 struct  Fspec   {
 167         char    Ftabs[22];
 168         char    Fdel;
 169         unsigned char   Flim;
 170         char    Fmov;
 171         char    Ffill;
 172 };
 173 static struct  Fspec   fss;
 174 
 175 static char     *fsp;
 176 static int      fsprtn;
 177 static char     line[70];
 178 static char     *linp = line;
 179 static int      sig;
 180 static int      Xqt = 0;
 181 static int      lastc;
 182 static char     savedfile[FNSIZE];
 183 static char     file[FNSIZE];
 184 static char     funny[FNSIZE];




 144 #define ISCHR(A)        ((A.st_mode & S_IFMT) == S_IFCHR)
 145 #define ISDIR(A)        ((A.st_mode & S_IFMT) == S_IFDIR)
 146 #define ISFIFO(A)       ((A.st_mode & S_IFMT) == S_IFIFO)
 147 #define ISREG(A)        ((A.st_mode & S_IFMT) == S_IFREG)
 148 
 149 #define PUTM()  if (xcode >= 0) puts(gettext(msgtab[xcode]))
 150 #define UNGETC(c)       (peekc = c)
 151 #define FNSIZE  PATH_MAX
 152 #define LBSIZE  LINE_MAX
 153 
 154 /* size of substitution replacement pattern buffer */
 155 #define RHSIZE  (LINE_MAX*2)
 156 
 157 #define KSIZE   8
 158 
 159 #define READ    0
 160 #define WRITE   1
 161 
 162 extern  char    *optarg;        /* Value of argument */
 163 extern  int     optind;         /* Indicator of argument */

 164 
 165 struct  Fspec   {
 166         char    Ftabs[22];
 167         char    Fdel;
 168         unsigned char   Flim;
 169         char    Fmov;
 170         char    Ffill;
 171 };
 172 static struct  Fspec   fss;
 173 
 174 static char     *fsp;
 175 static int      fsprtn;
 176 static char     line[70];
 177 static char     *linp = line;
 178 static int      sig;
 179 static int      Xqt = 0;
 180 static int      lastc;
 181 static char     savedfile[FNSIZE];
 182 static char     file[FNSIZE];
 183 static char     funny[FNSIZE];