X-Git-Url: http://ftp.carnet.hr/pub/carnet-debian/scm?a=blobdiff_plain;f=src%2Fheaders%2Ffile_op.h;h=9dc3045ae86fea1d924eb59b4bc02787b31726ac;hb=789cbc8e52da68eba3517b920ef22e000cf3c9fd;hp=7d03cf1febdd0ea5fc47a6a4f9fea351feea03bb;hpb=301048b51990573e58a30dc4a5bb4ec285cad554;p=ossec-hids.git diff --git a/src/headers/file_op.h b/src/headers/file_op.h index 7d03cf1..9dc3045 100755 --- a/src/headers/file_op.h +++ b/src/headers/file_op.h @@ -1,4 +1,5 @@ -/* @(#) $Id$ */ +/* @(#) $Id: ./src/headers/file_op.h, 2011/09/08 dcid Exp $ + */ /* Copyright (C) 2009 Trend Micro Inc. * All rights reserved. @@ -47,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