summaryrefslogtreecommitdiffstats
path: root/tdeio/tdeio/posixacladdons.h
blob: 45c4af245f57f2c7db2667671b5890a8cd765ecb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/***************************************************************************
 *   Copyright (C) 2005 by Markus Brueffer <markus@brueffer.de>            *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Library General Public License as       *
 *   published by  the Free Software Foundation; either version 2 of the   *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.             *
 ***************************************************************************/

#ifndef __posixacladdons_h__
#define __posixacladdons_h__

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <tqglobal.h>

#if defined(USE_POSIX_ACL) && !defined(HAVE_NON_POSIX_ACL_EXTENSIIONS)

#ifdef Q_OS_FREEBSD
#include <sys/types.h>
#endif

#include <sys/acl.h>

#ifdef Q_OS_FREEBSD
#define acl_get_perm acl_get_perm_np
#endif

int acl_cmp(acl_t acl1, acl_t acl2);
acl_t acl_from_mode(mode_t mode);
int acl_equiv_mode(acl_t acl, mode_t *mode_p);

#endif // USE_POSIX_ACL

#endif // __posixacladdons_h__