2004-03-27 05:17:07 +08:00
|
|
|
/* sys/stdio.h
|
|
|
|
|
2005-07-08 16:24:13 +08:00
|
|
|
Copyright 2004, 2005 Red Hat, Inc.
|
2004-03-27 05:17:07 +08:00
|
|
|
|
|
|
|
This file is part of Cygwin.
|
|
|
|
|
|
|
|
This software is a copyrighted work licensed under the terms of the
|
|
|
|
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
|
|
|
|
details. */
|
|
|
|
|
|
|
|
#ifndef _SYS_STDIO_H_
|
|
|
|
#define _SYS_STDIO_H_
|
|
|
|
|
2005-07-09 16:22:39 +08:00
|
|
|
#include <sys/cdefs.h>
|
2004-03-27 05:17:07 +08:00
|
|
|
#include <sys/lock.h>
|
|
|
|
|
|
|
|
#if !defined(__SINGLE_THREAD__)
|
|
|
|
# if !defined(_flockfile)
|
|
|
|
# define _flockfile(fp) __cygwin_lock_lock ((_LOCK_T *)&(fp)->_lock)
|
|
|
|
# endif
|
2004-05-18 00:06:02 +08:00
|
|
|
# if !defined(_ftrylockfile)
|
|
|
|
# define _ftrylockfile(fp) __cygwin_lock_trylock ((_LOCK_T *)&(fp)->_lock)
|
|
|
|
# endif
|
2004-03-27 05:17:07 +08:00
|
|
|
# if !defined(_funlockfile)
|
|
|
|
# define _funlockfile(fp) __cygwin_lock_unlock ((_LOCK_T *)&(fp)->_lock)
|
|
|
|
# endif
|
|
|
|
#endif
|
2005-05-02 11:50:11 +08:00
|
|
|
|
2005-07-09 16:22:39 +08:00
|
|
|
__BEGIN_DECLS
|
|
|
|
|
|
|
|
ssize_t _EXFUN(getline, (char **, size_t *, FILE *));
|
|
|
|
ssize_t _EXFUN(getdelim, (char **, size_t *, int, FILE *));
|
|
|
|
|
|
|
|
__END_DECLS
|
2005-07-08 16:24:13 +08:00
|
|
|
|
2004-03-27 05:17:07 +08:00
|
|
|
#endif
|