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=921b46d7310987115db79f769faa2c55a63f359e;hpb=914feba5d54f979cd5d7e69c349c3d01f630042a;p=ossec-hids.git diff --git a/src/headers/file_op.h b/src/headers/file_op.h index 921b46d..9dc3045 100755 --- a/src/headers/file_op.h +++ b/src/headers/file_op.h @@ -1,11 +1,12 @@ -/* @(#) $Id: file_op.h,v 1.14 2009/06/24 17:06:26 dcid Exp $ */ +/* @(#) $Id: ./src/headers/file_op.h, 2011/09/08 dcid Exp $ + */ /* Copyright (C) 2009 Trend Micro Inc. * All rights reserved. * * This program is a free software; you can redistribute it * and/or modify it under the terms of the GNU General Public - * License (version 3) as published by the FSF - Free Software + * License (version 2) as published by the FSF - Free Software * Foundation */ @@ -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