blob: d15d6387783da88700723f8d104b1818cf7476d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include <__stdio.h>
#include <errno.h>
#include <stdio.h>
int fileno_unlocked(struct __FILE *stream)
{
if (stream->fd < 0) {
errno = EBADF;
return -1;
}
return stream->fd;
}
|