4 |
* |
* |
5 |
* Copyright (C) 2003 Manuel Novoa III <mjn3@codepoet.org> |
* Copyright (C) 2003 Manuel Novoa III <mjn3@codepoet.org> |
6 |
* |
* |
7 |
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details. |
* Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 |
*/ |
*/ |
9 |
|
|
10 |
/* A number of applets need to open a file for reading, where the filename |
/* A number of applets need to open a file for reading, where the filename |
46 |
|
|
47 |
return fd; |
return fd; |
48 |
} |
} |
49 |
|
|
50 |
|
int FAST_FUNC xopen_stdin(const char *filename) |
51 |
|
{ |
52 |
|
int fd = open_or_warn_stdin(filename); |
53 |
|
if (fd >= 0) |
54 |
|
return fd; |
55 |
|
xfunc_die(); /* We already output an error message. */ |
56 |
|
} |