X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=internals%2F_PDCLIB_glue.h;h=48727f86503ca69bc101dcb1c902bb958dacbaae;hb=73345afc634a9859f7d3764b2e026b42c9b9269e;hp=3c5872bcbeab7744d215b9b765d78e9cc72ab684;hpb=393020b6e48719d27699dea6b29e53025bbd5123;p=pdclib diff --git a/internals/_PDCLIB_glue.h b/internals/_PDCLIB_glue.h index 3c5872b..48727f8 100644 --- a/internals/_PDCLIB_glue.h +++ b/internals/_PDCLIB_glue.h @@ -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