components/samba/samba/Solaris/include/samfs/lib.h
branchs11u3-sru
changeset 7067 776b367d2e46
parent 7051 b5ccd506d4ab
child 7068 568b699564d4
equal deleted inserted replaced
7051:b5ccd506d4ab 7067:776b367d2e46
     1 /*
       
     2  * lib.h - SAM-FS API library functions.
       
     3  *
       
     4  * Definitions for SAM-FS API library functions.
       
     5  *
       
     6  */
       
     7 
       
     8 /*
       
     9  *    SAM-QFS_notice_begin
       
    10  *
       
    11  * CDDL HEADER START
       
    12  *
       
    13  * The contents of this file are subject to the terms of the
       
    14  * Common Development and Distribution License (the "License").
       
    15  * You may not use this file except in compliance with the License.
       
    16  *
       
    17  * You can obtain a copy of the license at pkg/OPENSOLARIS.LICENSE
       
    18  * or http://www.opensolaris.org/os/licensing.
       
    19  * See the License for the specific language governing permissions
       
    20  * and limitations under the License.
       
    21  *
       
    22  * When distributing Covered Code, include this CDDL HEADER in each
       
    23  * file and include the License file at pkg/OPENSOLARIS.LICENSE.
       
    24  * If applicable, add the following below this CDDL HEADER, with the
       
    25  * fields enclosed by brackets "[]" replaced with your own identifying
       
    26  * information: Portions Copyright [yyyy] [name of copyright owner]
       
    27  *
       
    28  * CDDL HEADER END
       
    29  */
       
    30 /*
       
    31  * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
       
    32  *
       
    33  *    SAM-QFS_notice_end
       
    34  */
       
    35 #ifndef	SAMLIB_H
       
    36 #define	SAMLIB_H
       
    37 
       
    38 #ifdef sun
       
    39 #pragma ident "$Revision: 1.19 $"
       
    40 #endif
       
    41 
       
    42 #ifdef linux
       
    43 #include <sam/linux_types.h>	/* uint_t */
       
    44 #endif /* linux */
       
    45 
       
    46 #ifdef  __cplusplus
       
    47 extern "C" {
       
    48 #endif
       
    49 
       
    50 int sam_archive(const char *name, const char *opns);
       
    51 int sam_unarchive(const char *name, int num_opts, ...);
       
    52 int sam_rearch(const char *name, int num_opts, ...);
       
    53 int sam_unrearch(const char *name, int num_opts, ...);
       
    54 int sam_exarchive(const char *name, int num_opts, ...);
       
    55 int sam_damage(const char *name, int num_opts, ...);
       
    56 int sam_undamage(const char *name, int num_opts, ...);
       
    57 char *sam_attrtoa(int attr, char *string);
       
    58 int sam_cancelstage(const char *name);
       
    59 char *sam_devstr(uint_t p);
       
    60 int sam_release(const char *name, const char *opns);
       
    61 int sam_ssum(const char *name, const char *opns);
       
    62 int sam_stage(const char *name, const char *opns);
       
    63 int sam_setfa(const char *name, const char *opns);
       
    64 int sam_segment(const char *name, const char *opns);
       
    65 int sam_advise(const int fildes, const char *opns);
       
    66 
       
    67 #ifdef  __cplusplus
       
    68 }
       
    69 #endif
       
    70 
       
    71 #endif /* SAMLIB_H */