acl_delete.c revision 108410
1254721Semaste/*- 2254721Semaste * Copyright (c) 1999, 2000, 2001, 2002 Robert N. M. Watson 3254721Semaste * All rights reserved. 4254721Semaste * 5254721Semaste * This software was developed by Robert Watson for the TrustedBSD Project. 6254721Semaste * 7254721Semaste * Redistribution and use in source and binary forms, with or without 8254721Semaste * modification, are permitted provided that the following conditions 9254721Semaste * are met: 10254721Semaste * 1. Redistributions of source code must retain the above copyright 11254721Semaste * notice, this list of conditions and the following disclaimer. 12254721Semaste * 2. Redistributions in binary form must reproduce the above copyright 13254721Semaste * notice, this list of conditions and the following disclaimer in the 14254721Semaste * documentation and/or other materials provided with the distribution. 15254721Semaste * 16254721Semaste * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 17254721Semaste * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18254721Semaste * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19254721Semaste * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 20288943Sdim * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21254721Semaste * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22254721Semaste * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23276479Sdim * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24254721Semaste * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25258884Semaste * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26254721Semaste * SUCH DAMAGE. 27254721Semaste */ 28254721Semaste/* 29254721Semaste * acl_delete_def_file -- remove a default acl from a file 30258054Semaste */ 31254721Semaste 32254721Semaste#include <sys/cdefs.h> 33254721Semaste__FBSDID("$FreeBSD: head/lib/libc/posix1e/acl_delete.c 108410 2002-12-29 20:47:05Z rwatson $"); 34254721Semaste 35258054Semaste#include <sys/types.h> 36258054Semaste#include "namespace.h" 37258054Semaste#include <sys/acl.h> 38258054Semaste#include "un-namespace.h" 39258054Semaste#include <sys/errno.h> 40258054Semaste 41258054Semasteint 42258054Semasteacl_delete_def_file(const char *path_p) 43258054Semaste{ 44258054Semaste 45258054Semaste return (__acl_delete_file(path_p, ACL_TYPE_DEFAULT)); 46258054Semaste} 47258054Semaste 48258054Semasteint 49258054Semasteacl_delete_def_link_np(const char *path_p) 50258054Semaste{ 51258054Semaste 52258054Semaste return (__acl_delete_link(path_p, ACL_TYPE_DEFAULT)); 53258054Semaste} 54258054Semaste 55258054Semasteint 56258054Semasteacl_delete_file_np(const char *path_p, acl_type_t type) 57258054Semaste{ 58258054Semaste 59258054Semaste return (__acl_delete_file(path_p, type)); 60258054Semaste} 61258054Semaste 62258054Semasteint 63254721Semasteacl_delete_link_np(const char *path_p, acl_type_t type) 64258054Semaste{ 65258054Semaste 66258054Semaste return (__acl_delete_link(path_p, type)); 67276479Sdim} 68276479Sdim 69276479Sdim 70276479Sdimint 71276479Sdimacl_delete_fd_np(int filedes, acl_type_t type) 72258054Semaste{ 73276479Sdim 74276479Sdim return (___acl_delete_fd(filedes, type)); 75276479Sdim} 76258054Semaste