Return to file.c CVS log | Up to [local] / src / usr.bin / grep |
version 1.5, 2003/12/29 21:20:55 | version 1.6, 2005/02/02 06:17:17 | ||
---|---|---|---|
|
|
||
{ | { | ||
file_t *f; | file_t *f; | ||
if (fd == 0) | if (fd == STDIN_FILENO) | ||
snprintf(fname, sizeof fname, "(standard input)"); | snprintf(fname, sizeof fname, "(standard input)"); | ||
else | else | ||
snprintf(fname, sizeof fname, "(fd %d)", fd); | snprintf(fname, sizeof fname, "(fd %d)", fd); |