ftrylockfile.c 270 字节
Newer Older
C
c00346986 已提交
1 2 3 4 5 6 7 8 9 10 11
#include "stdio_impl.h"
#include "pthread_impl.h"
#include <limits.h>

void __unlist_locked_file(FILE *f)
{
	if (f->lockcount) {
		if (f->next_locked) f->next_locked->prev_locked = f->prev_locked;
		if (f->prev_locked) f->prev_locked->next_locked = f->next_locked;
	}
}