提交 2085378a 编写于 作者: R Rich Felker

move stdio locking MAYBE_WAITERS definition to stdio_impl.h

don't repeat definition in two places.
上级 b36c37f6
......@@ -94,6 +94,8 @@ hidden void __register_locked_file(FILE *, struct __pthread *);
hidden void __unlist_locked_file(FILE *);
hidden void __do_orphaned_stdio_locks(void);
#define MAYBE_WAITERS 0x40000000
hidden void __getopt_msg(const char *, const char *, const char *, size_t);
#define feof(f) ((f)->flags & F_EOF)
......
#include "stdio_impl.h"
#include "pthread_impl.h"
#define MAYBE_WAITERS 0x40000000
int __lockfile(FILE *f)
{
int owner = f->lock, tid = __pthread_self()->tid;
......
......@@ -2,8 +2,6 @@
#include "pthread_impl.h"
#include <limits.h>
#define MAYBE_WAITERS 0x40000000
void __do_orphaned_stdio_locks()
{
FILE *f;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册