blob: 64d30f1ed2aa1041ed420c64250de2c34a43b581 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include "nonstd/FILE.h"
static FILE *__common_fopen(struct __fopen_options *opt)
{
FILE *f = NULL;
if (__libc.stdio.nopen < FOPEN_MAX) {
f = __libc.stdio.files + __libc.stdio.nopen;
__libc.stdio.nopen++;
}
f->fd = opt->fd;
return f;
}
|