/* sharefile.c -- open files just once.
- Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2008, 2009, 2010, 2011 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
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-
+/* config.h always comes first. */
#include <config.h>
+/* system headers. */
+#include <assert.h>
#include <errno.h>
-#include <string.h>
#include <stdlib.h>
-#include <assert.h>
-#include <sys/types.h>
+#include <string.h>
#include <sys/stat.h>
+#include <sys/types.h>
-#include "stdio-safer.h"
+/* gnulib headers. */
+#include "cloexec.h"
#include "hash.h"
+#include "stdio-safer.h"
+
+/* find headers. */
#include "sharefile.h"
-#include "cloexec.h"
#include "defs.h"