/* sys/close.c (emx+gcc) -- Copyright (c) 1992-1996 by Eberhard Mattes */

#include <os2emx.h>
#include <emx/syscalls.h>
#include "syscalls.h"

int __close (int handle)
{
  ULONG rc;

  rc = DosClose (handle);
  if (rc == 0)
    return 0;
  else
    {
      _sys_set_errno (rc);
      return -1;
    }
}
