]> pd.if.org Git - pdclib/blobdiff - internals/_PDCLIB_glue.h
remove() implemented directly without glue trampoline.
[pdclib] / internals / _PDCLIB_glue.h
index 3c5872bcbeab7744d215b9b765d78e9cc72ab684..48727f86503ca69bc101dcb1c902bb958dacbaae 100644 (file)
@@ -1,15 +1,13 @@
-/* $Id$ */
-
 /* OS glue functions declaration <_PDCLIB_glue.h>
 
    This file is part of the Public Domain C Library (PDCLib).
    Permission is granted to use, modify, and / or redistribute at will.
 */
 
-#ifndef _PDCLIB_INT_H
-#define _PDCLIB_INT_H _PDCLIB_INT_H
-#include <_PDCLIB_int.h>
-#endif
+#ifndef _PDCLIB_GLUE_H
+#define _PDCLIB_GLUE_H _PDCLIB_GLUE_H
+
+#include "_PDCLIB_int.h"
 
 /* -------------------------------------------------------------------------- */
 /* OS "glue", part 2                                                          */
@@ -35,7 +33,7 @@ void * _PDCLIB_allocpages( int n );
 
 /* stdio.h */
 
-/* A system call that opens a file identified by name in a given mode. Return 
+/* A system call that opens a file identified by name in a given mode. Return
    a file descriptor uniquely identifying that file.
    (The mode is the return value of the _PDCLIB_filemode() function.)
 */
@@ -63,11 +61,6 @@ _PDCLIB_int64_t _PDCLIB_seek( struct _PDCLIB_file_t * stream, _PDCLIB_int64_t of
 */
 int _PDCLIB_close( _PDCLIB_fd_t fd );
 
-/* A system call that removes a file identified by name. Return zero on success,
-   non-zero otherwise.
-*/
-int _PDCLIB_remove( const char * filename );
-
 /* A system call that renames a file from given old name to given new name.
    Return zero on success, non-zero otherwise. In case of failure, the file
    must still be accessible by old name. Any handling of open files etc. is
@@ -75,3 +68,4 @@ int _PDCLIB_remove( const char * filename );
 */
 int _PDCLIB_rename( const char * old, const char * new );
 
+#endif