> From: [email protected] (=?utf-8?Q?J=C3=A9r=C3=A9mie_Courr=C3=A8ges-Anglas?=) > Date: Fri, 03 Apr 2015 18:02:37 +0100 > > A few months ago, I spotted warnings in a port, related to the decl of > one of those functions not being reachable. > > This went in a bulk (still a few months ago, thanks to landry@) with no > fallout. > > Does this look fine?
ok kettenis@ > Index: stat.h > =================================================================== > RCS file: /cvs/src/sys/sys/stat.h,v > retrieving revision 1.27 > diff -u -p -p -u -r1.27 stat.h > --- stat.h 8 Dec 2014 20:56:11 -0000 1.27 > +++ stat.h 14 Dec 2014 23:20:16 -0000 > @@ -198,6 +198,10 @@ int mkdir(const char *, mode_t); > int mkfifo(const char *, mode_t); > int stat(const char *, struct stat *); > mode_t umask(mode_t); > +#if __BSD_VISIBLE || __XPG_VISIBLE >= 420 || __POSIX_VISIBLE >= 200112L > +int fchmod(int, mode_t); > +int lstat(const char *, struct stat *); > +#endif > #if __POSIX_VISIBLE >= 200809 > int fchmodat(int, const char *, mode_t, int); > int fstatat(int, const char *, struct stat *, int); > @@ -211,8 +215,6 @@ int futimens(int, const struct timespec > int chflags(const char *, unsigned int); > int chflagsat(int, const char *, unsigned int, int); > int fchflags(int, unsigned int); > -int fchmod(int, mode_t); > -int lstat(const char *, struct stat *); > int isfdtype(int, int); > #endif > __END_DECLS > > > -- > jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE > >
