diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2005-02-22 22:45:41 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2005-02-22 22:45:41 +0300 |
commit | 24e8fc6872a3bceb43575edde8f221d8838186bb (patch) | |
tree | ee6b56010f738d1afe2d33e31b8fe61f8fb482c2 /winsup/cygwin/include | |
parent | 156d93af29db3ec1205dcff62401b63620d1a8dd (diff) |
* cygwin.din (basename): Export.
(dirname): Export.
* path.cc (basename): New function.
(dirname): New function.
* include/libgen.h: New file.
* include/cygwin/version.h: Bump API minor version.
Diffstat (limited to 'winsup/cygwin/include')
-rw-r--r-- | winsup/cygwin/include/cygwin/version.h | 3 | ||||
-rw-r--r-- | winsup/cygwin/include/libgen.h | 23 |
2 files changed, 25 insertions, 1 deletions
diff --git a/winsup/cygwin/include/cygwin/version.h b/winsup/cygwin/include/cygwin/version.h index cb1294f0a..fac4ea2ea 100644 --- a/winsup/cygwin/include/cygwin/version.h +++ b/winsup/cygwin/include/cygwin/version.h @@ -247,12 +247,13 @@ details. */ 117: Export utmpx functions, Return utmp * from pututent. 118: Export getpriority, setpriority. 119: Export fdatasync. + 120: Export basename, dirname. */ /* Note that we forgot to bump the api for ualarm, strtoll, strtoull */ #define CYGWIN_VERSION_API_MAJOR 0 -#define CYGWIN_VERSION_API_MINOR 119 +#define CYGWIN_VERSION_API_MINOR 120 /* There is also a compatibity version number associated with the shared memory regions. It is incremented when incompatible diff --git a/winsup/cygwin/include/libgen.h b/winsup/cygwin/include/libgen.h new file mode 100644 index 000000000..f5c24a8cc --- /dev/null +++ b/winsup/cygwin/include/libgen.h @@ -0,0 +1,23 @@ +/* libgen.h + + Copyright 2005 Red Hat, Inc. + +This file is part of Cygwin. + +This software is a copyrighted work licensed under the terms of the +Cygwin license. Please consult the file "CYGWIN_LICENSE" for +details. */ + +#ifndef _LIBGEN_H +#define _LIBGEN_H + +#include <sys/cdefs.h> + +__BEGIN_DECLS + +extern char *basename (char *path); +extern char *dirname (char *path); + +__END_DECLS + +#endif /* _LIBGEN_H */ |