github.com/google/syzkaller@v0.0.0-20240517125934-c0f1611a36d6/sys/freebsd/extattr.txt (about)

     1  # Copyright 2020 syzkaller project authors. All rights reserved.
     2  # Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
     3  
     4  include <sys/types.h>
     5  include <sys/extattr.h>
     6  
     7  extattr_get_fd(fd fd, attrnamespace flags[attrnamespace_flags], attrname ptr[in, string], data buffer[out], nbytes len[data])
     8  extattr_set_fd(fd fd, attrnamespace flags[attrnamespace_flags], attrname ptr[in, string], data buffer[in], nbytes len[data])
     9  extattr_delete_fd(fd fd, attrnamespace flags[attrnamespace_flags], attrname ptr[in, string])
    10  extattr_list_fd(fd fd, attrnamespace flags[attrnamespace_flags], data buffer[out], nbytes len[data])
    11  extattr_get_file(file ptr[in, filename], attrnamespace flags[attrnamespace_flags], attrname ptr[in, string], data buffer[out], nbytes len[data])
    12  extattr_set_file(file ptr[in, filename], attrnamespace flags[attrnamespace_flags], attrname ptr[in, string], data buffer[in], nbytes len[data])
    13  extattr_delete_file(file ptr[in, filename], attrnamespace flags[attrnamespace_flags], attrname ptr[in, string])
    14  extattr_list_file(file ptr[in, filename], attrnamespace flags[attrnamespace_flags], data buffer[out], nbytes len[data])
    15  extattr_get_link(file ptr[in, filename], attrnamespace flags[attrnamespace_flags], attrname ptr[in, string], data buffer[out], nbytes len[data])
    16  extattr_set_link(file ptr[in, filename], attrnamespace flags[attrnamespace_flags], attrname ptr[in, string], data buffer[in], nbytes len[data])
    17  extattr_delete_link(file ptr[in, filename], attrnamespace flags[attrnamespace_flags], attrname ptr[in, string])
    18  extattr_list_link(file ptr[in, filename], attrnamespace flags[attrnamespace_flags], data buffer[out], nbytes len[data])
    19  
    20  attrnamespace_flags = EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM