acl_delete.c revision 92986
113901Salanb/*-
213901Salanb * Copyright (c) 1999, 2000, 2001 Robert N. M. Watson
313901Salanb * All rights reserved.
413901Salanb *
513901Salanb * Redistribution and use in source and binary forms, with or without
613901Salanb * modification, are permitted provided that the following conditions
713901Salanb * are met:
813901Salanb * 1. Redistributions of source code must retain the above copyright
913901Salanb *    notice, this list of conditions and the following disclaimer.
1013901Salanb * 2. Redistributions in binary form must reproduce the above copyright
1113901Salanb *    notice, this list of conditions and the following disclaimer in the
1213901Salanb *    documentation and/or other materials provided with the distribution.
1313901Salanb *
1413901Salanb * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1513901Salanb * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1613901Salanb * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1713901Salanb * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1813901Salanb * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1913901Salanb * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2013901Salanb * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2113901Salanb * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2213901Salanb * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2313901Salanb * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2413901Salanb * SUCH DAMAGE.
2513901Salanb */
2613901Salanb/*
2713901Salanb * acl_delete_def_file -- remove a default acl from a file
2813901Salanb */
2913901Salanb
3013901Salanb#include <sys/cdefs.h>
3113901Salanb__FBSDID("$FreeBSD: head/lib/libc/posix1e/acl_delete.c 92986 2002-03-22 21:53:29Z obrien $");
3213901Salanb
3313901Salanb#include <sys/types.h>
3413901Salanb#include "namespace.h"
3513901Salanb#include <sys/acl.h>
3613901Salanb#include "un-namespace.h"
3713901Salanb#include <sys/errno.h>
3813901Salanb
39int
40acl_delete_def_file(const char *path_p)
41{
42
43	return (__acl_delete_file(path_p, ACL_TYPE_DEFAULT));
44}
45
46
47int
48acl_delete_file_np(const char *path_p, acl_type_t type)
49{
50
51	return (__acl_delete_file(path_p, type));
52}
53
54
55int
56acl_delete_fd_np(int filedes, acl_type_t type)
57{
58
59	return (___acl_delete_fd(filedes, type));
60}
61