Message-ID: <399A5B78.45A5EBAD@softhome.net> Date: Wed, 16 Aug 2000 11:14:32 +0200 From: Laurynas Biveinis X-Mailer: Mozilla 4.74 [en] (Win98; U) X-Accept-Language: lt,en MIME-Version: 1.0 To: DJGPP Workers Subject: Patch: adding stub for basename() Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com It will be used for open(). Any comments? Laurynas Index: djgpp/include/libc/stubs.h =================================================================== RCS file: /cvs/djgpp/djgpp/include/libc/stubs.h,v retrieving revision 1.4 diff -u -r1.4 stubs.h --- stubs.h 2000/08/14 18:22:25 1.4 +++ stubs.h 2000/08/16 09:13:32 @@ -33,6 +33,7 @@ /* DJGPP functions (for compiling POSIX or ANSI functions) */ +#define basename __basename #define crlf2nl __crlf2nl #define dosmemget __dosmemget #define dosmemput __dosmemput Index: djgpp/src/libc/compat/unistd/basename.c =================================================================== RCS file: /cvs/djgpp/djgpp/src/libc/compat/unistd/basename.c,v retrieving revision 1.1 diff -u -r1.1 basename.c --- basename.c 1998/06/28 21:53:24 1.1 +++ basename.c 2000/08/16 09:13:38 @@ -1,5 +1,7 @@ +/* Copyright (C) 2000 DJ Delorie, see COPYING.DJ for details */ /* Copyright (C) 1998 DJ Delorie, see COPYING.DJ for details */ /* Copyright (C) 1997 DJ Delorie, see COPYING.DJ for details */ +#include #include #include