kio
posixacladdons.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 * Copyright (C) 2005 by Markus Brueffer <markus@brueffer.de> * 00003 * * 00004 * This program is free software; you can redistribute it and/or modify * 00005 * it under the terms of the GNU Library General Public License as * 00006 * published by the Free Software Foundation; either version 2 of the * 00007 * License, or (at your option) any later version. * 00008 * * 00009 * This program is distributed in the hope that it will be useful, * 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00012 * GNU General Public License for more details. * 00013 * * 00014 * You should have received a copy of the GNU General Public License * 00015 * along with this program; if not, write to the * 00016 * Free Software Foundation, Inc., * 00017 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * 00018 ***************************************************************************/ 00019 00020 #ifndef __posixacladdons_h__ 00021 #define __posixacladdons_h__ 00022 00023 #ifdef HAVE_CONFIG_H 00024 #include <config.h> 00025 #endif 00026 00027 #include <qglobal.h> 00028 00029 #if defined(USE_POSIX_ACL) && !defined(HAVE_NON_POSIX_ACL_EXTENSIIONS) 00030 00031 #ifdef Q_OS_FREEBSD 00032 #include <sys/types.h> 00033 #endif 00034 00035 #include <sys/acl.h> 00036 00037 #ifdef Q_OS_FREEBSD 00038 #define acl_get_perm acl_get_perm_np 00039 #endif 00040 00041 int acl_cmp(acl_t acl1, acl_t acl2); 00042 acl_t acl_from_mode(mode_t mode); 00043 int acl_equiv_mode(acl_t acl, mode_t *mode_p); 00044 00045 #endif // USE_POSIX_ACL 00046 00047 #endif // __posixacladdons_h__