1: /* sys/stdio.h 2: 3: Copyright 2004 Red Hat, Inc. 4: 5: This file is part of Cygwin. 6: 7: This software is a copyrighted work licensed under the terms of the 8: Cygwin license. Please consult the file "CYGWIN_LICENSE" for 9: details. */ 10: 11: #ifndef _SYS_STDIO_H_ 12: #define _SYS_STDIO_H_ 13: 14: #include <sys/lock.h> 15: 16: #if !defined(__SINGLE_THREAD__) 17: # if !defined(_flockfile) 18: # define _flockfile(fp) __cygwin_lock_lock ((_LOCK_T *)&(fp)->_lock) 19: # endif 20: # if !defined(_ftrylockfile) 21: # define _ftrylockfile(fp) __cygwin_lock_trylock ((_LOCK_T *)&(fp)->_lock) 22: # endif 23: # if !defined(_funlockfile) 24: # define _funlockfile(fp) __cygwin_lock_unlock ((_LOCK_T *)&(fp)->_lock) 25: # endif 26: #endif 27: 28: #endif 29: