Posted to tcl by ee at Wed Mar 10 16:24:30 GMT 2010view pretty

/* FILE: exp_int.h */
void    expDiagLogPtrStrStr _ANSI_ARGS_((char *,char *,char *));
/********************************************************************/

/* FILE: exp_pty.c */
void
expDiagLogPtrStrStr(fmt,str1,str2)
     char *fmt;
     char *str1, *str2;
{
  static char buf[1000];
  sprintf(buf,fmt,str1,str2);
  (*expDiagLogPtrVal)(buf);
}
/********************************************************************/

/* FILE: pty_termios.c */
int
exp_getptyslave( int ttycopy, int ttyinit, CONST char *stty_args)
{
        int slave, slave2;
        char buf[10240];
	/* elided stuff */
        if (ioctl(slave, I_PUSH, "ptem")) {
                expDiagLogPtrStrStr("ioctl(%d,I_PUSH,\"ptem\") = %s\n",slave,expErrnoMsg(errno));
        }
	/* elided more stuff */
        return(slave);
}
/********************************************************************/