posix: fix the duplicate macro definitions
the macro 'PATH_SET_TIMESPEC_OR_TIMEVAL' is defined in posix.h, which seems to be good place for it updates: bz#1193929 Change-Id: I521a2a6efeb26891c24637a5f06b1d90c00b1135 Signed-off-by: Amar Tumballi <amarts@redhat.com>
This commit is contained in:
parent
3d6ba0d1d4
commit
cfecc7b3df
@ -96,13 +96,9 @@ extern char *marker_xattrs[];
|
||||
#if HAVE_UTIMENSAT
|
||||
#define SET_TIMESPEC_NSEC_OR_TIMEVAL_USEC(tv, nanosecs) \
|
||||
tv.tv_nsec = nanosecs
|
||||
#define PATH_SET_TIMESPEC_OR_TIMEVAL(path, tv) \
|
||||
(sys_utimensat (AT_FDCWD, path, tv, AT_SYMLINK_NOFOLLOW))
|
||||
#else
|
||||
#define SET_TIMESPEC_NSEC_OR_TIMEVAL_USEC(tv, nanosecs) \
|
||||
tv.tv_usec = nanosecs / 1000
|
||||
#define PATH_SET_TIMESPEC_OR_TIMEVAL(path, tv) \
|
||||
(lutimes (path, tv))
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -97,13 +97,9 @@ extern char *marker_xattrs[];
|
||||
#if HAVE_UTIMENSAT
|
||||
#define SET_TIMESPEC_NSEC_OR_TIMEVAL_USEC(tv, nanosecs) \
|
||||
tv.tv_nsec = nanosecs
|
||||
#define PATH_SET_TIMESPEC_OR_TIMEVAL(path, tv) \
|
||||
(sys_utimensat (AT_FDCWD, path, tv, AT_SYMLINK_NOFOLLOW))
|
||||
#else
|
||||
#define SET_TIMESPEC_NSEC_OR_TIMEVAL_USEC(tv, nanosecs) \
|
||||
tv.tv_usec = nanosecs / 1000
|
||||
#define PATH_SET_TIMESPEC_OR_TIMEVAL(path, tv) \
|
||||
(lutimes (path, tv))
|
||||
#endif
|
||||
|
||||
static char *disallow_removexattrs[] = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user