I have found a possible bug in the new libraries in Slackware 3.0.
Namely, the following program, without WORK_AROUND defined, works
improperly. It should exibit the same behavior irregardless of the
definition of WORK_AROUND, and infact did act this way until I upgraded
to Slackware 3.0:
#include <dirent.h>
#include <sys/wait.h>
#include <stdio.h>
#include <signal.h>
#include <termios.h>
main()
{
FILE *tty;
char ljb;
if((tty = fopen(ctermid(0),"rb+")) == NULL)
return -1;
fprintf(tty,"Hit control-L to exit.\n");
while(ljb != EOF && ljb != '\f')
{
ljb = getc(tty);
#ifndef WORK_AROUND
fprintf(tty,"%d\n",ljb);
#else
printf("%d\n",ljb);
#endif
}
close(tty);
}
--
- Any opinions expressed in this message are strictly my own opinions -
I use Linux at home. For more information, look at http://www.linux.org