Blame include/stdio_ext.h

Packit 6c4009
#ifndef	_STDIO_EXT_H
Packit 6c4009
#include <stdio-common/stdio_ext.h>
Packit 6c4009
Packit 6c4009
# ifndef _ISOMAC
Packit 6c4009
Packit 6c4009
libc_hidden_proto (__fsetlocking)
Packit 6c4009
Packit 6c4009
#define __fsetlocking(fp, type) \
Packit 6c4009
  ({ int __result = ((fp->_flags & _IO_USER_LOCK)			\
Packit 6c4009
		     ? FSETLOCKING_BYCALLER : FSETLOCKING_INTERNAL);	\
Packit 6c4009
									\
Packit 6c4009
     if (type != FSETLOCKING_QUERY)					\
Packit 6c4009
       {								\
Packit 6c4009
	 fp->_flags &= ~_IO_USER_LOCK;					\
Packit 6c4009
	 if (type == FSETLOCKING_BYCALLER)				\
Packit 6c4009
	   fp->_flags |= _IO_USER_LOCK;					\
Packit 6c4009
       }								\
Packit 6c4009
									\
Packit 6c4009
     __result;								\
Packit 6c4009
  })
Packit 6c4009
Packit 6c4009
# endif /* !_ISOMAC */
Packit 6c4009
#endif /* stdio_ext.h */