blob: d73c84220fb2129025b74de809c70d3761e33564 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "dietstdio.h"
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <stdlib.h>
#include <pthread.h>
#include <errno.h>
extern int __stdio_atexit;
extern FILE* __stdio_init_file_nothreads(int fd,int closeonerror);
FILE* __stdio_init_file(int fd,int closeonerror) {
FILE *tmp=__stdio_init_file_nothreads(fd,closeonerror);
if (tmp) pthread_mutex_init(&tmp->m,0);
return tmp;
}
|