File: stat.h

package info (click to toggle)
zlibc 0.9k-4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 624 kB
  • ctags: 461
  • sloc: ansic: 3,073; sh: 3,023; csh: 128; makefile: 58; sed: 4
file content (21 lines) | stat: -rw-r--r-- 596 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/**
 * Stat wrappers for zlibc's own usage, i.e. when zlibc itself wants
 * to probe existence or attributes of a file, rather than just
 * proxying a request from an application
 */
static inline int ___zlibc_testexistence(__const char *name) {
  struct stat buf;
#ifdef HAVE___XSTAT
  return zlib_real_lxstat(_STAT_VER, name, &buf);
#else
  return zlib_real_lstat(file_name, &buf);
#endif
}

static inline int ___zlibc_nativestat(__const char *name, struct stat *buf) {
#ifdef HAVE___XSTAT
  return zlib_real_xstat(_STAT_VER, name, buf);
#else
  return zlib_real_stat(file_name, buf);
#endif
}