view lib/mkdir-p.h @ 7733:9d60f39f35c1

* MODULES.html.sh: New module wctype. * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files. * lib/fnmatch.c: Don't bother to include <wchar.h> before <wctype.h>, since the new wctype module should fix this. * lib/quotearg.c: Include <wctype.h> unconditionally, since the wctype module should arrange for it. * lib/regex_internal.h: Likewise. * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint, since the wctype module should handle this now. * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h. * modules/fnmatch (Depends-on): Add wctype. * modules/quotearg (Depends-on): Likewise. * modules/regex (Depends-on): Likewise.
author Paul Eggert <eggert@cs.ucla.edu>
date Fri, 22 Dec 2006 00:21:54 +0000
parents 77a75e20049c
children bbbbbf4cd1c5
line wrap: on
line source

/* mkdir-p.h -- Ensure that a directory and its parents exist.

   Copyright (C) 1994, 1995, 1996, 1997, 2000, 2003, 2004, 2005, 2006
   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
   the Free Software Foundation; either version 2, 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.  */

/* Written by Paul Eggert, David MacKenzie, and Jim Meyering.  */

#include <stdbool.h>
#include <sys/types.h>

struct savewd;
bool make_dir_parents (char *dir,
		       struct savewd *wd,
		       int (*make_ancestor) (char const *, char const *,
					     void *),
		       void *options,
		       mode_t mode,
		       void (*announce) (char const *, void *),
		       mode_t mode_bits,
		       uid_t owner,
		       gid_t group,
		       bool preserve_existing);