X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Fheaders%2Ffile_op.h;fp=src%2Fheaders%2Ffile_op.h;h=9dc3045ae86fea1d924eb59b4bc02787b31726ac;hb=789cbc8e52da68eba3517b920ef22e000cf3c9fd;hp=7b07c4a98cf097a03f64aaa1700573d3c02fa7ab;hpb=ef70704f0b31b59bb719b884d6a99cb9e3e2044a;p=ossec-hids.git diff --git a/src/headers/file_op.h b/src/headers/file_op.h index 7b07c4a..9dc3045 100755 --- a/src/headers/file_op.h +++ b/src/headers/file_op.h @@ -48,6 +48,15 @@ void goDaemonLight(); /* not really a file operation, but returns the uname */ char *getuname(); +/* Return basename of path */ +char *basename_ex(char *path) __attribute__((nonnull)); + +/* Rename file or directory */ +int rename_ex(const char *source, const char *destination) __attribute__((nonnull)); + +/* Create temporary file */ +int mkstemp_ex(char *tmp_path) __attribute__((nonnull)); + /* Checks for vista. */ #ifdef WIN32