libbsd: Move lutimes to bsd compat
* Rework be149e8ccf since lutimes isn't posix
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright 2016-2017 Haiku, Inc. All Rights Reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef _BSD_SYS_TIME_H_
|
||||
#define _BSD_SYS_TIME_H_
|
||||
|
||||
|
||||
#include_next <sys/time.h>
|
||||
|
||||
|
||||
#ifdef _BSD_SOURCE
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
int lutimes(const char *path, const struct timeval times[2]);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* _BSD_SYS_TIME_H_ */
|
||||
@@ -44,7 +44,6 @@ extern int setitimer(int which, const struct itimerval *value, struct itimerval
|
||||
extern int gettimeofday(struct timeval *tv, void *tz);
|
||||
|
||||
extern int utimes(const char *path, const struct timeval times[2]);
|
||||
extern int lutimes(const char *path, const struct timeval times[2]);
|
||||
/* legacy */
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user