From 266d2c4d3456b39c1a989c9808499865bf6b1364 Mon Sep 17 00:00:00 2001 From: Giacomo Tesio Date: Mon, 26 Nov 2018 03:04:32 +0100 Subject: [PATCH] jehanne: ansification + upstream update --- config.sub | 2 +- newlib/libc/sys/jehanne/sys/stat.h | 42 +++++++++++++++--------------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/config.sub b/config.sub index fe6229780..190cff566 100755 --- a/config.sub +++ b/config.sub @@ -1376,7 +1376,7 @@ case $os in | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \ | skyos* | haiku* | rdos* | toppers* | drops* | es* \ | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \ - | midnightbsd* | -jehanne*) + | midnightbsd* | jehanne* ) # Remember, each alternative MUST END IN *, to match a version number. ;; qnx*) diff --git a/newlib/libc/sys/jehanne/sys/stat.h b/newlib/libc/sys/jehanne/sys/stat.h index 817190511..a7e05b4f4 100644 --- a/newlib/libc/sys/jehanne/sys/stat.h +++ b/newlib/libc/sys/jehanne/sys/stat.h @@ -144,38 +144,38 @@ struct stat #define UTIME_OMIT -1L #endif -int _EXFUN(chmod,( const char *__path, mode_t __mode )); -int _EXFUN(fchmod,(int __fd, mode_t __mode)); -int _EXFUN(fstat,( int __fd, struct stat *__sbuf )); -int _EXFUN(mkdir,( const char *_path, mode_t __mode )); -int _EXFUN(mkfifo,( const char *__path, mode_t __mode )); -int _EXFUN(stat,( const char *__restrict __path, struct stat *__restrict __sbuf )); -mode_t _EXFUN(umask,( mode_t __mask )); +int chmod(const char *__path, mode_t __mode); +int fchmod(int __fd, mode_t __mode); +int fstat(int __fd, struct stat *__sbuf); +int mkdir(const char *_path, mode_t __mode); +int mkfifo(const char *__path, mode_t __mode); +int stat(const char *__restrict __path, struct stat *__restrict __sbuf); +mode_t umask(mode_t __mask); -int _EXFUN(lstat,( const char *__restrict __path, struct stat *__restrict __buf )); -int _EXFUN(mknod,( const char *__path, mode_t __mode, dev_t __dev )); +int lstat(const char *__restrict __path, struct stat *__restrict __buf); +int mknod(const char *__path, mode_t __mode, dev_t __dev); -int _EXFUN(fchmodat, (int, const char *, mode_t, int)); -int _EXFUN(fstatat, (int, const char *__restrict , struct stat *__restrict, int)); -int _EXFUN(mkdirat, (int, const char *, mode_t)); -int _EXFUN(mkfifoat, (int, const char *, mode_t)); -int _EXFUN(mknodat, (int, const char *, mode_t, dev_t)); -int _EXFUN(utimensat, (int, const char *, const struct timespec *, int)); +int fchmodat(int, const char *, mode_t, int); +int fstatat(int, const char *__restrict , struct stat *__restrict, int); +int mkdirat(int, const char *, mode_t); +int mkfifoat(int, const char *, mode_t); +int mknodat(int, const char *, mode_t, dev_t); +int utimensat(int, const char *, const struct timespec *, int); #if __POSIX_VISIBLE >= 200809 && !defined(__INSIDE_CYGWIN__) -int _EXFUN(futimens, (int, const struct timespec *)); +int futimens(int, const struct timespec *); #endif /* Provide prototypes for most of the _ names that are provided in newlib for some compilers. */ #ifdef _COMPILING_NEWLIB -int _EXFUN(_fstat,( int __fd, struct stat *__sbuf )); -int _EXFUN(_stat,( const char *__restrict __path, struct stat *__restrict __sbuf )); -int _EXFUN(_mkdir,( const char *_path, mode_t __mode )); +int _fstat(int __fd, struct stat *__sbuf); +int _stat(const char *__restrict __path, struct stat *__restrict __sbuf); +int _mkdir(const char *_path, mode_t __mode); #ifdef __LARGE64_FILES struct stat64; -int _EXFUN(_stat64,( const char *__restrict __path, struct stat64 *__restrict __sbuf )); -int _EXFUN(_fstat64,( int __fd, struct stat64 *__sbuf )); +int _stat64(const char *__restrict __path, struct stat64 *__restrict __sbuf); +int _fstat64(int __fd, struct stat64 *__sbuf); #endif #endif