X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fliblustre%2Ftests%2Ftest_common.h;h=5949a42c8a74b1546e632127e0dcedc40b508e27;hb=113303973ec9f8484eb2355a1a6ef3c4c7fd6a56;hp=c3687b9edd9a3e73274f114b03fa668ff53e7eef;hpb=090c677210ee2946d99c71412e4ff762bb300f4f;p=fs%2Flustre-release.git diff --git a/lustre/liblustre/tests/test_common.h b/lustre/liblustre/tests/test_common.h index c3687b9..5949a42 100644 --- a/lustre/liblustre/tests/test_common.h +++ b/lustre/liblustre/tests/test_common.h @@ -8,6 +8,8 @@ extern int exit_on_err; +#include /* for utimbuf */ + void t_touch(const char *path); void t_create(const char *path); void t_link(const char *src, const char *dst); @@ -21,6 +23,8 @@ void t_chmod(const char *path, const char *format, ...); void t_rename(const char *oldpath, const char *newpath); int t_open_readonly(const char *path); int t_open(const char *path); +int t_chdir(const char *path); +int t_utime(const char *path, const struct utimbuf *buf); int t_opendir(const char *path); void t_close(int fd); int t_check_stat(const char *name, struct stat *buf); @@ -29,5 +33,8 @@ void t_echo_create(const char *path, const char *str); void t_grep(const char *path, char *str); void t_grep_v(const char *path, char *str); void t_ls(int fd, char *buf, int size); +int t_fcntl(int fd, int cmd, ...); + +char *safe_strncpy(char *dst, char *src, int max_size); #endif