From a962fe3f59df95b60112817ca87d0ab2a9f9b5f6 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 23 May 2008 00:14:21 +0200 Subject: [PATCH] Move some declarations from acl.h to acl-internal.h. --- ChangeLog | 7 +++++++ lib/acl-internal.h | 11 ++++++++++- lib/acl.h | 10 +--------- 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1c11e4a75..9bbd1e9cf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2008-05-22 Bruno Haible + * lib/acl.h: Don't include . + (GETACLCNT): Move fallback to lib/acl-internal.h. + * lib/acl-internal.h: Include here. + (GETACLCNT): New macro fallback, moved here from lib/acl.h. + +2008-05-22 Bruno Haible + Split off copy_acl function to separate file. * lib/copy-acl.c: New file, extracted from lib/acl.c. * lib/acl.c (copy_acl): Moved function to separate file. diff --git a/lib/acl-internal.h b/lib/acl-internal.h index 36b9cedca..c23d6f4e1 100644 --- a/lib/acl-internal.h +++ b/lib/acl-internal.h @@ -1,6 +1,6 @@ /* Internal implementation of access control lists. - Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 2002-2003, 2005-2008 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -22,6 +22,15 @@ #include #include +/* All systems define the ACL related API in . */ +#if HAVE_SYS_ACL_H +# include +#endif +#if defined HAVE_ACL && ! defined GETACLCNT && defined ACL_CNT +# define GETACLCNT ACL_CNT +#endif + +/* On Linux, additional ACL related API is available in . */ #ifdef HAVE_ACL_LIBACL_H # include #endif diff --git a/lib/acl.h b/lib/acl.h index 00cc60d90..fcb00f5ae 100644 --- a/lib/acl.h +++ b/lib/acl.h @@ -1,6 +1,6 @@ /* acl.c - access control lists - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2008 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,14 +18,6 @@ Written by Paul Eggert. */ #include - -#if HAVE_SYS_ACL_H -# include -#endif -#if defined HAVE_ACL && ! defined GETACLCNT && defined ACL_CNT -# define GETACLCNT ACL_CNT -#endif - #include int file_has_acl (char const *, struct stat const *); -- 2.11.0