summaryrefslogtreecommitdiffstats
path: root/tdeio/tdeio/posixacladdons.h
diff options
context:
space:
mode:
Diffstat (limited to 'tdeio/tdeio/posixacladdons.h')
-rw-r--r--tdeio/tdeio/posixacladdons.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/tdeio/tdeio/posixacladdons.h b/tdeio/tdeio/posixacladdons.h
new file mode 100644
index 000000000..45c4af245
--- /dev/null
+++ b/tdeio/tdeio/posixacladdons.h
@@ -0,0 +1,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__