diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2009-08-12 18:22:38 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2009-08-12 18:22:38 +0000 |
commit | 12387ab6f77d6ae4fa3d8fdc1756d416a27197dd (patch) | |
tree | 36dafe73c5a032c70c5a02b3be651175ffc268b3 /newlib/libc/include | |
parent | a73a3f438bd75c84ab2f6eb2a27a9b5064b7af9c (diff) | |
download | newlib-12387ab6f77d6ae4fa3d8fdc1756d416a27197dd.zip newlib-12387ab6f77d6ae4fa3d8fdc1756d416a27197dd.tar.gz newlib-12387ab6f77d6ae4fa3d8fdc1756d416a27197dd.tar.bz2 |
2009=08-12 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/mktemp.c (_gettemp): Do not call _mkdir_r unless
HAVE_MKDIR is defined.
2009-08-12 Hans-Peter Nilsson <hp@axis.com>
* libc/include/reent.h: Add prototype and definition of _mkdir_r.
* libc/reent/Makefile.am (GENERAL_SOURCES): Add mkdirr.c.
(CHEWOUT_FILES): Add mkdirr.def.
* libc/reent/Makefile.in: Regenerate.
* libc/reent/mkdirr.c: New file.
Diffstat (limited to 'newlib/libc/include')
-rw-r--r-- | newlib/libc/include/reent.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/include/reent.h b/newlib/libc/include/reent.h index 50b0b57..4617c0d 100644 --- a/newlib/libc/include/reent.h +++ b/newlib/libc/include/reent.h @@ -116,6 +116,7 @@ struct timezone; #define _kill_r(__reent, __pid, __signal) kill(__pid, __signal) #define _link_r(__reent, __oldpath, __newpath) link(__oldpath, __newpath) #define _lseek_r(__reent, __fdes, __off, __w) lseek(__fdes, __off, __w) +#define _mkdir_r(__reent, __path, __m) mkdir(__path, __m) #define _open_r(__reent, __path, __flag, __m) open(__path, __flag, __m) #define _read_r(__reent, __fd, __buff, __cnt) read(__fd, __buff, __cnt) #define _rename_r(__reent, __old, __new) rename(__old, __new) @@ -146,6 +147,7 @@ extern int _isatty_r _PARAMS ((struct _reent *, int)); extern int _kill_r _PARAMS ((struct _reent *, int, int)); extern int _link_r _PARAMS ((struct _reent *, const char *, const char *)); extern _off_t _lseek_r _PARAMS ((struct _reent *, int, _off_t, int)); +extern int _mkdir_r _PARAMS ((struct _reent *, const char *, int)); extern int _open_r _PARAMS ((struct _reent *, const char *, int, int)); extern _ssize_t _read_r _PARAMS ((struct _reent *, int, void *, size_t)); extern int _rename_r _PARAMS ((struct _reent *, const char *, const char *)); |