File:  [Qemu by Fabrice Bellard] / qemu / qemu-xattr.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 19:16:47 2018 UTC (3 years, 1 month ago) by root
Branches: qemu, MAIN
CVS tags: qemu1101, qemu1001, HEAD
qemu 1.0.1

    1: /*
    2:  * Host xattr.h abstraction
    3:  *
    4:  * Copyright 2011 Red Hat Inc. and/or its affiliates
    5:  *
    6:  * Authors:
    7:  *  Avi Kivity <avi@redhat.com>
    8:  *
    9:  * This work is licensed under the terms of the GNU GPL, version 2, or any
   10:  * later version.  See the COPYING file in the top-level directory.
   11:  *
   12:  */
   13: #ifndef QEMU_XATTR_H
   14: #define QEMU_XATTR_H
   15: 
   16: /*
   17:  * Modern distributions (e.g. Fedora 15, have no libattr.so, place attr.h
   18:  * in /usr/include/sys, and don't have ENOATTR.
   19:  */
   20: 
   21: #include "config-host.h"
   22: 
   23: #ifdef CONFIG_LIBATTR
   24: #  include <attr/xattr.h>
   25: #else
   26: #  define ENOATTR ENODATA
   27: #  include <sys/xattr.h>
   28: #endif
   29: 
   30: #endif

unix.superglobalmegacorp.com