int utimes(const char *pathname, const struct timeval tv[2]) { static int (*real_utimes)(const char *pathname, const struct timeval tv[2]) = NULL; const char *p; int ret; GET_PATH(utimes); if (p) { ret = real_utimes(p, tv); PUT_PATH(-1); } return real_utimes(pathname, tv); }
int utimes(const char *name, const struct timeval *tvp) { if (smbw_path(name)) { return smbw_utimes(name, tvp); } return real_utimes(name, tvp); }
/* * Copyright (c) 2010 Wind River Systems; see * guts/COPYRIGHT for information. * * static int * wrap_utimes(const char *path, const struct timeval *times) { * int rc = -1; */ rc = real_utimes(path, times); /* return rc; * } */