Mail Archives: djgpp/1997/01/21/22:28:14
Hello,
when applying the `access' function to DOS device files like `prn'
or `lpt1', it returns "not writeable":
/* test.c */
#include <stdio.h>
#include <unistd.h>
int main ( void )
{
printf ( "%d\n", access ( "prn", W_OK ) ); /* yields -1 */
return 0;
} /* main */
Is this intended, or is it a bug in the C library (or in my
configuration)? It causes that you cannot print at all with
GNU Pascal because GPC's run time library always calls "access"
before opening a file.
Thanks in advance,
Peter
e-mail: peter DOT gerwinski AT uni-essen DOT de
home address: D\"usseldorfer Str. 35, 45145 Essen, Germany
WWW: http://agnes.dida.physik.uni-essen.de/~peter/
- Raw text -