xref: /aosp_15_r20/bionic/libc/kernel/uapi/linux/nfs_idmap.h (revision 8d67ca893c1523eb926b9080dbe4e2ffd2a27ba1)
1 /*
2  * This file is auto-generated. Modifications will be lost.
3  *
4  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5  * for more information.
6  */
7 #ifndef _UAPINFS_IDMAP_H
8 #define _UAPINFS_IDMAP_H
9 #include <linux/types.h>
10 #define IDMAP_NAMESZ 128
11 #define IDMAP_TYPE_USER 0
12 #define IDMAP_TYPE_GROUP 1
13 #define IDMAP_CONV_IDTONAME 0
14 #define IDMAP_CONV_NAMETOID 1
15 #define IDMAP_STATUS_INVALIDMSG 0x01
16 #define IDMAP_STATUS_AGAIN 0x02
17 #define IDMAP_STATUS_LOOKUPFAIL 0x04
18 #define IDMAP_STATUS_SUCCESS 0x08
19 struct idmap_msg {
20   __u8 im_type;
21   __u8 im_conv;
22   char im_name[IDMAP_NAMESZ];
23   __u32 im_id;
24   __u8 im_status;
25 };
26 #endif
27