30 #include <sys/types.h>
89 return S_ISBLK (mode);
99 return S_ISCHR (mode);
109 return S_ISDIR (mode);
119 return S_ISFIFO (mode);
129 return S_ISLNK (mode);
139 return S_ISREG (mode);
149 return S_ISSOCK (mode);
162 return std::string (buf);
173 return fs ? fs.
is_newer (time) : -1;
188 #if defined (__WIN32__)
191 && full_file_name.length () != 1
192 && ! (full_file_name.length () == 3 && full_file_name[1] ==
':'))
193 full_file_name.resize (full_file_name.length () - 1);
196 const char *cname = full_file_name.c_str ();
201 ?
stat (cname, &buf) : gnulib::lstat (cname, &buf);
206 errmsg = gnulib::strerror (errno);
221 #if defined (HAVE_STRUCT_STAT_ST_RDEV)
225 #if defined (HAVE_STRUCT_STAT_ST_BLKSIZE)
229 #if defined (HAVE_STRUCT_STAT_ST_BLOCKS)
248 int status = gnulib::fstat (
fid, &buf);
253 errmsg = gnulib::strerror (errno);
268 #if defined (HAVE_STRUCT_STAT_ST_RDEV)
272 #if defined (HAVE_STRUCT_STAT_ST_BLKSIZE)
276 #if defined (HAVE_STRUCT_STAT_ST_BLOCKS)