acl_delete.c revision 56055
1132718Skan/*- 2132718Skan * Copyright (c) 1999 Robert N. M. Watson 390075Sobrien * All rights reserved. 490075Sobrien * 590075Sobrien * Redistribution and use in source and binary forms, with or without 690075Sobrien * modification, are permitted provided that the following conditions 790075Sobrien * are met: 890075Sobrien * 1. Redistributions of source code must retain the above copyright 990075Sobrien * notice, this list of conditions and the following disclaimer. 1090075Sobrien * 2. Redistributions in binary form must reproduce the above copyright 1190075Sobrien * notice, this list of conditions and the following disclaimer in the 1290075Sobrien * documentation and/or other materials provided with the distribution. 1390075Sobrien * 1490075Sobrien * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1590075Sobrien * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1690075Sobrien * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1790075Sobrien * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1890075Sobrien * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1990075Sobrien * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2090075Sobrien * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2190075Sobrien * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2290075Sobrien * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2390075Sobrien * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2490075Sobrien * SUCH DAMAGE. 2590075Sobrien * 2690075Sobrien * $FreeBSD: head/lib/libc/posix1e/acl_delete.c 56055 2000-01-15 19:44:27Z rwatson $ 2790075Sobrien */ 2890075Sobrien/* 2990075Sobrien * acl_delete_def_file -- remove a default acl from a file 3090075Sobrien */ 3190075Sobrien 3290075Sobrien#include <sys/types.h> 3390075Sobrien#include <sys/acl.h> 3490075Sobrien#include <sys/errno.h> 3590075Sobrien 36117395Skanint 37117395Skanacl_delete_def_fd(int filedes) 38117395Skan{ 39132718Skan 40132718Skan return (acl_syscall_delete_fd(filedes, ACL_TYPE_DEFAULT)); 4190075Sobrien} 42132718Skan 4390075Sobrien 44132718Skanint 45132718Skanacl_delete_default_file(const char *path_p) 4690075Sobrien{ 47 48 return (acl_syscall_delete_file(path_p, ACL_TYPE_DEFAULT)); 49} 50 51 52int 53acl_delete_file(const char *path_p, acl_type_t type) 54{ 55 56 return (acl_syscall_delete_file(path_p, type)); 57} 58 59 60int 61acl_delete_fd(int filedes, acl_type_t type) 62{ 63 64 return (acl_syscall_delete_fd(filedes, type)); 65} 66