dlls/msvcrt/file.c
/* INTERNAL: Allocate an fd slot from a Win32 HANDLE */
Allocate an fd slot from a Win32 HANDLE
Allocate an fd slot from a Win32 HANDLE
static int msvcrt_alloc_fd(HANDLE hand, int flag)
{
  int ret;
  LOCK_FILES();
  TRACE(":handle (%p) allocating fd (%d)\n",hand,MSVCRT_fdstart);
  ret = msvcrt_set_fd(hand, flag, MSVCRT_fdstart);
  UNLOCK_FILES();
  return ret;
}
static int msvcrt_alloc_fd ( HANDLE hand , int flag ) { int ret ; LOCK_FILES ( ) ; TRACE ( " \n " , hand , MSVCRT_fdstart ) ; ret = msvcrt_set_fd ( hand , flag , MSVCRT_fdstart ) ; UNLOCK_FILES ( ) ; return ret ; }
INTERNAL: Allocate an fd slot from a Win32 HANDLE
INTERNAL : Allocate an fd slot from a Win32 HANDLE