Back to index

glibc  2.9
Defines | Functions
stdio_ext.h File Reference
#include <stdio-common/stdio_ext.h>

Go to the source code of this file.

Defines

#define __fsetlocking(fp, type)

Functions

int __fsetlocking_internal (FILE *__fp, int __type) attribute_hidden

Define Documentation

#define __fsetlocking (   fp,
  type 
)
Value:
({ int __result = ((fp->_flags & _IO_USER_LOCK)                \
                   ? FSETLOCKING_BYCALLER : FSETLOCKING_INTERNAL);    \
                                                               \
     if (type != FSETLOCKING_QUERY)                                   \
       {                                                       \
        fp->_flags &= ~_IO_USER_LOCK;                                 \
        if (type == FSETLOCKING_BYCALLER)                      \
          fp->_flags |= _IO_USER_LOCK;                                \
       }                                                       \
                                                               \
     __result;                                                        \
  })

Definition at line 7 of file stdio_ext.h.


Function Documentation

int __fsetlocking_internal ( FILE __fp,
int  __type 
)