X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fwin32%2Ffunctions%2F_PDCLIB%2F_PDCLIB_close.c;fp=platform%2Fwin32%2Ffunctions%2F_PDCLIB%2F_PDCLIB_close.c;h=0000000000000000000000000000000000000000;hb=c5d49235e09fbd58416f10dec2799e61cf3431c8;hp=7fc10a3ce89424a72258b7ef535bc6a26ab1df37;hpb=4c7c56442f6b3e08c17594dd4e8095fca3aec9cf;p=pdclib diff --git a/platform/win32/functions/_PDCLIB/_PDCLIB_close.c b/platform/win32/functions/_PDCLIB/_PDCLIB_close.c deleted file mode 100644 index 7fc10a3..0000000 --- a/platform/win32/functions/_PDCLIB/_PDCLIB_close.c +++ /dev/null @@ -1,39 +0,0 @@ -/* $Id$ */ - -/* _PDCLIB_close( _PDCLIB_fd_t fd ) - - This file is part of the Public Domain C Library (PDCLib). - Permission is granted to use, modify, and / or redistribute at will. -*/ - -/* This is a stub example implementation of _PDCLIB_close() -*/ - -#include - -#ifndef REGTEST -#include <_PDCLIB_glue.h> -#include -#include - -void _PDCLIB_w32errno(void); -int _PDCLIB_close( HANDLE fd ) -{ - if(CloseHandle((HANDLE) fd)) - return 0; - _PDCLIB_w32errno(); - return 1; -} - -#endif - -#ifdef TEST -#include <_PDCLIB_test.h> - -int main( void ) -{ - /* No testdriver; tested in driver for _PDCLIB_open(). */ - return TEST_RESULTS; -} - -#endif