makepath.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /* makepath.c -- Ensure that a directory path exists.
  2. Copyright (C) 1994, 1995, 1996, 1997, 2000, 2003 Free Software
  3. Foundation, Inc.
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2, or (at your option)
  7. any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software Foundation,
  14. Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
  15. /* Written by David MacKenzie <djm@gnu.ai.mit.edu> and Jim Meyering. */
  16. #include <sys/types.h>
  17. int make_path (const char *_argpath,
  18. int _mode,
  19. int _parent_mode,
  20. uid_t _owner,
  21. gid_t _group,
  22. int _preserve_existing,
  23. const char *_verbose_fmt_string);
  24. int make_dir (const char *dir,
  25. const char *dirpath,
  26. mode_t mode,
  27. int *created_dir_p);