diff options
-rw-r--r-- | lib9p/tests/test_compile.c | 1620 | ||||
-rwxr-xr-x | lib9p/tests/test_compile.c.gen | 2 |
2 files changed, 799 insertions, 823 deletions
diff --git a/lib9p/tests/test_compile.c b/lib9p/tests/test_compile.c index f91793e..03a63a4 100644 --- a/lib9p/tests/test_compile.c +++ b/lib9p/tests/test_compile.c @@ -3,89 +3,26 @@ #include <lib9p/core.h> int main(void) { [[gnu::unused]] uint64_t x; -#ifdef LIB9P_TAG_NOTAG - x = LIB9P_TAG_NOTAG; -#endif -#ifdef LIB9P_FID_NOFID - x = LIB9P_FID_NOFID; +#ifdef LIB9P_B4_FALSE + x = LIB9P_B4_FALSE; #endif -#ifdef LIB9P_DM_DIR - x = LIB9P_DM_DIR; +#ifdef LIB9P_B4_TRUE + x = LIB9P_B4_TRUE; #endif #ifdef LIB9P_DM_APPEND x = LIB9P_DM_APPEND; #endif -#ifdef LIB9P_DM_EXCL - x = LIB9P_DM_EXCL; -#endif -#ifdef _LIB9P_DM_PLAN9_MOUNT - x = _LIB9P_DM_PLAN9_MOUNT; -#endif #ifdef LIB9P_DM_AUTH x = LIB9P_DM_AUTH; #endif -#ifdef LIB9P_DM_TMP - x = LIB9P_DM_TMP; -#endif -#ifdef _LIB9P_DM_UNUSED_25 - x = _LIB9P_DM_UNUSED_25; -#endif -#ifdef _LIB9P_DM_UNUSED_24 - x = _LIB9P_DM_UNUSED_24; -#endif #ifdef LIB9P_DM_DEVICE x = LIB9P_DM_DEVICE; #endif -#ifdef _LIB9P_DM_UNUSED_22 - x = _LIB9P_DM_UNUSED_22; -#endif -#ifdef LIB9P_DM_PIPE - x = LIB9P_DM_PIPE; -#endif -#ifdef LIB9P_DM_SOCKET - x = LIB9P_DM_SOCKET; -#endif -#ifdef LIB9P_DM_SETUID - x = LIB9P_DM_SETUID; -#endif -#ifdef LIB9P_DM_SETGID - x = LIB9P_DM_SETGID; -#endif -#ifdef _LIB9P_DM_UNUSED_17 - x = _LIB9P_DM_UNUSED_17; -#endif -#ifdef _LIB9P_DM_UNUSED_16 - x = _LIB9P_DM_UNUSED_16; -#endif -#ifdef _LIB9P_DM_UNUSED_15 - x = _LIB9P_DM_UNUSED_15; -#endif -#ifdef _LIB9P_DM_UNUSED_14 - x = _LIB9P_DM_UNUSED_14; -#endif -#ifdef _LIB9P_DM_UNUSED_13 - x = _LIB9P_DM_UNUSED_13; -#endif -#ifdef _LIB9P_DM_UNUSED_12 - x = _LIB9P_DM_UNUSED_12; -#endif -#ifdef _LIB9P_DM_UNUSED_11 - x = _LIB9P_DM_UNUSED_11; -#endif -#ifdef _LIB9P_DM_UNUSED_10 - x = _LIB9P_DM_UNUSED_10; -#endif -#ifdef _LIB9P_DM_UNUSED_9 - x = _LIB9P_DM_UNUSED_9; -#endif -#ifdef LIB9P_DM_OWNER_R - x = LIB9P_DM_OWNER_R; -#endif -#ifdef LIB9P_DM_OWNER_W - x = LIB9P_DM_OWNER_W; +#ifdef LIB9P_DM_DIR + x = LIB9P_DM_DIR; #endif -#ifdef LIB9P_DM_OWNER_X - x = LIB9P_DM_OWNER_X; +#ifdef LIB9P_DM_EXCL + x = LIB9P_DM_EXCL; #endif #ifdef LIB9P_DM_GROUP_R x = LIB9P_DM_GROUP_R; @@ -105,206 +42,200 @@ int main(void) { #ifdef LIB9P_DM_OTHER_X x = LIB9P_DM_OTHER_X; #endif +#ifdef LIB9P_DM_OWNER_R + x = LIB9P_DM_OWNER_R; +#endif +#ifdef LIB9P_DM_OWNER_W + x = LIB9P_DM_OWNER_W; +#endif +#ifdef LIB9P_DM_OWNER_X + x = LIB9P_DM_OWNER_X; +#endif #ifdef LIB9P_DM_PERM_MASK x = LIB9P_DM_PERM_MASK; #endif -#ifdef LIB9P_QT_DIR - x = LIB9P_QT_DIR; -#endif -#ifdef LIB9P_QT_APPEND - x = LIB9P_QT_APPEND; +#ifdef LIB9P_DM_PIPE + x = LIB9P_DM_PIPE; #endif -#ifdef LIB9P_QT_EXCL - x = LIB9P_QT_EXCL; +#ifdef LIB9P_DM_SETGID + x = LIB9P_DM_SETGID; #endif -#ifdef _LIB9P_QT_PLAN9_MOUNT - x = _LIB9P_QT_PLAN9_MOUNT; +#ifdef LIB9P_DM_SETUID + x = LIB9P_DM_SETUID; #endif -#ifdef LIB9P_QT_AUTH - x = LIB9P_QT_AUTH; +#ifdef LIB9P_DM_SOCKET + x = LIB9P_DM_SOCKET; #endif -#ifdef LIB9P_QT_TMP - x = LIB9P_QT_TMP; +#ifdef LIB9P_DM_TMP + x = LIB9P_DM_TMP; #endif -#ifdef LIB9P_QT_SYMLINK - x = LIB9P_QT_SYMLINK; +#ifdef LIB9P_DT_BLOCK_DEV + x = LIB9P_DT_BLOCK_DEV; #endif -#ifdef _LIB9P_QT_UNUSED_0 - x = _LIB9P_QT_UNUSED_0; +#ifdef LIB9P_DT_CHAR_DEV + x = LIB9P_DT_CHAR_DEV; #endif -#ifdef LIB9P_QT_FILE - x = LIB9P_QT_FILE; +#ifdef LIB9P_DT_DIRECTORY + x = LIB9P_DT_DIRECTORY; #endif -#ifdef _LIB9P_O_UNUSED_7 - x = _LIB9P_O_UNUSED_7; +#ifdef LIB9P_DT_PIPE + x = LIB9P_DT_PIPE; #endif -#ifdef LIB9P_O_RCLOSE - x = LIB9P_O_RCLOSE; +#ifdef LIB9P_DT_REGULAR + x = LIB9P_DT_REGULAR; #endif -#ifdef _LIB9P_O_RESERVED_CEXEC - x = _LIB9P_O_RESERVED_CEXEC; +#ifdef LIB9P_DT_SOCKET + x = LIB9P_DT_SOCKET; #endif -#ifdef LIB9P_O_TRUNC - x = LIB9P_O_TRUNC; +#ifdef LIB9P_DT_SYMLINK + x = LIB9P_DT_SYMLINK; #endif -#ifdef _LIB9P_O_UNUSED_3 - x = _LIB9P_O_UNUSED_3; +#ifdef LIB9P_DT_UNKNOWN + x = LIB9P_DT_UNKNOWN; #endif -#ifdef _LIB9P_O_UNUSED_2 - x = _LIB9P_O_UNUSED_2; +#ifdef LIB9P_ERRNO_L_E2BIG + x = LIB9P_ERRNO_L_E2BIG; #endif -#ifdef LIB9P_O_FLAG_MASK - x = LIB9P_O_FLAG_MASK; +#ifdef LIB9P_ERRNO_L_EACCES + x = LIB9P_ERRNO_L_EACCES; #endif -#ifdef LIB9P_O_MODE_READ - x = LIB9P_O_MODE_READ; +#ifdef LIB9P_ERRNO_L_EADDRINUSE + x = LIB9P_ERRNO_L_EADDRINUSE; #endif -#ifdef LIB9P_O_MODE_WRITE - x = LIB9P_O_MODE_WRITE; +#ifdef LIB9P_ERRNO_L_EADDRNOTAVAIL + x = LIB9P_ERRNO_L_EADDRNOTAVAIL; #endif -#ifdef LIB9P_O_MODE_RDWR - x = LIB9P_O_MODE_RDWR; +#ifdef LIB9P_ERRNO_L_EADV + x = LIB9P_ERRNO_L_EADV; #endif -#ifdef LIB9P_O_MODE_EXEC - x = LIB9P_O_MODE_EXEC; +#ifdef LIB9P_ERRNO_L_EAFNOSUPPORT + x = LIB9P_ERRNO_L_EAFNOSUPPORT; #endif -#ifdef LIB9P_O_MODE_MASK - x = LIB9P_O_MODE_MASK; +#ifdef LIB9P_ERRNO_L_EAGAIN + x = LIB9P_ERRNO_L_EAGAIN; #endif -#ifdef LIB9P_NUID_NONUID - x = LIB9P_NUID_NONUID; +#ifdef LIB9P_ERRNO_L_EALREADY + x = LIB9P_ERRNO_L_EALREADY; #endif -#ifdef LIB9P_ERRNO_NOERROR - x = LIB9P_ERRNO_NOERROR; +#ifdef LIB9P_ERRNO_L_EBADE + x = LIB9P_ERRNO_L_EBADE; #endif -#ifdef LIB9P_ERRNO_L_EPERM - x = LIB9P_ERRNO_L_EPERM; +#ifdef LIB9P_ERRNO_L_EBADF + x = LIB9P_ERRNO_L_EBADF; #endif -#ifdef LIB9P_ERRNO_L_ENOENT - x = LIB9P_ERRNO_L_ENOENT; +#ifdef LIB9P_ERRNO_L_EBADFD + x = LIB9P_ERRNO_L_EBADFD; #endif -#ifdef LIB9P_ERRNO_L_ESRCH - x = LIB9P_ERRNO_L_ESRCH; +#ifdef LIB9P_ERRNO_L_EBADMSG + x = LIB9P_ERRNO_L_EBADMSG; #endif -#ifdef LIB9P_ERRNO_L_EINTR - x = LIB9P_ERRNO_L_EINTR; +#ifdef LIB9P_ERRNO_L_EBADR + x = LIB9P_ERRNO_L_EBADR; #endif -#ifdef LIB9P_ERRNO_L_EIO - x = LIB9P_ERRNO_L_EIO; +#ifdef LIB9P_ERRNO_L_EBADRQC + x = LIB9P_ERRNO_L_EBADRQC; #endif -#ifdef LIB9P_ERRNO_L_ENXIO - x = LIB9P_ERRNO_L_ENXIO; +#ifdef LIB9P_ERRNO_L_EBADSLT + x = LIB9P_ERRNO_L_EBADSLT; #endif -#ifdef LIB9P_ERRNO_L_E2BIG - x = LIB9P_ERRNO_L_E2BIG; +#ifdef LIB9P_ERRNO_L_EBFONT + x = LIB9P_ERRNO_L_EBFONT; #endif -#ifdef LIB9P_ERRNO_L_ENOEXEC - x = LIB9P_ERRNO_L_ENOEXEC; +#ifdef LIB9P_ERRNO_L_EBUSY + x = LIB9P_ERRNO_L_EBUSY; #endif -#ifdef LIB9P_ERRNO_L_EBADF - x = LIB9P_ERRNO_L_EBADF; +#ifdef LIB9P_ERRNO_L_ECANCELED + x = LIB9P_ERRNO_L_ECANCELED; #endif #ifdef LIB9P_ERRNO_L_ECHILD x = LIB9P_ERRNO_L_ECHILD; #endif -#ifdef LIB9P_ERRNO_L_EAGAIN - x = LIB9P_ERRNO_L_EAGAIN; -#endif -#ifdef LIB9P_ERRNO_L_ENOMEM - x = LIB9P_ERRNO_L_ENOMEM; -#endif -#ifdef LIB9P_ERRNO_L_EACCES - x = LIB9P_ERRNO_L_EACCES; -#endif -#ifdef LIB9P_ERRNO_L_EFAULT - x = LIB9P_ERRNO_L_EFAULT; -#endif -#ifdef LIB9P_ERRNO_L_ENOTBLK - x = LIB9P_ERRNO_L_ENOTBLK; +#ifdef LIB9P_ERRNO_L_ECHRNG + x = LIB9P_ERRNO_L_ECHRNG; #endif -#ifdef LIB9P_ERRNO_L_EBUSY - x = LIB9P_ERRNO_L_EBUSY; +#ifdef LIB9P_ERRNO_L_ECOMM + x = LIB9P_ERRNO_L_ECOMM; #endif -#ifdef LIB9P_ERRNO_L_EEXIST - x = LIB9P_ERRNO_L_EEXIST; +#ifdef LIB9P_ERRNO_L_ECONNABORTED + x = LIB9P_ERRNO_L_ECONNABORTED; #endif -#ifdef LIB9P_ERRNO_L_EXDEV - x = LIB9P_ERRNO_L_EXDEV; +#ifdef LIB9P_ERRNO_L_ECONNREFUSED + x = LIB9P_ERRNO_L_ECONNREFUSED; #endif -#ifdef LIB9P_ERRNO_L_ENODEV - x = LIB9P_ERRNO_L_ENODEV; +#ifdef LIB9P_ERRNO_L_ECONNRESET + x = LIB9P_ERRNO_L_ECONNRESET; #endif -#ifdef LIB9P_ERRNO_L_ENOTDIR - x = LIB9P_ERRNO_L_ENOTDIR; +#ifdef LIB9P_ERRNO_L_EDEADLK + x = LIB9P_ERRNO_L_EDEADLK; #endif -#ifdef LIB9P_ERRNO_L_EISDIR - x = LIB9P_ERRNO_L_EISDIR; +#ifdef LIB9P_ERRNO_L_EDESTADDRREQ + x = LIB9P_ERRNO_L_EDESTADDRREQ; #endif -#ifdef LIB9P_ERRNO_L_EINVAL - x = LIB9P_ERRNO_L_EINVAL; +#ifdef LIB9P_ERRNO_L_EDOM + x = LIB9P_ERRNO_L_EDOM; #endif -#ifdef LIB9P_ERRNO_L_ENFILE - x = LIB9P_ERRNO_L_ENFILE; +#ifdef LIB9P_ERRNO_L_EDOTDOT + x = LIB9P_ERRNO_L_EDOTDOT; #endif -#ifdef LIB9P_ERRNO_L_EMFILE - x = LIB9P_ERRNO_L_EMFILE; +#ifdef LIB9P_ERRNO_L_EDQUOT + x = LIB9P_ERRNO_L_EDQUOT; #endif -#ifdef LIB9P_ERRNO_L_ENOTTY - x = LIB9P_ERRNO_L_ENOTTY; +#ifdef LIB9P_ERRNO_L_EEXIST + x = LIB9P_ERRNO_L_EEXIST; #endif -#ifdef LIB9P_ERRNO_L_ETXTBSY - x = LIB9P_ERRNO_L_ETXTBSY; +#ifdef LIB9P_ERRNO_L_EFAULT + x = LIB9P_ERRNO_L_EFAULT; #endif #ifdef LIB9P_ERRNO_L_EFBIG x = LIB9P_ERRNO_L_EFBIG; #endif -#ifdef LIB9P_ERRNO_L_ENOSPC - x = LIB9P_ERRNO_L_ENOSPC; +#ifdef LIB9P_ERRNO_L_EHOSTDOWN + x = LIB9P_ERRNO_L_EHOSTDOWN; #endif -#ifdef LIB9P_ERRNO_L_ESPIPE - x = LIB9P_ERRNO_L_ESPIPE; +#ifdef LIB9P_ERRNO_L_EHOSTUNREACH + x = LIB9P_ERRNO_L_EHOSTUNREACH; #endif -#ifdef LIB9P_ERRNO_L_EROFS - x = LIB9P_ERRNO_L_EROFS; +#ifdef LIB9P_ERRNO_L_EHWPOISON + x = LIB9P_ERRNO_L_EHWPOISON; #endif -#ifdef LIB9P_ERRNO_L_EMLINK - x = LIB9P_ERRNO_L_EMLINK; +#ifdef LIB9P_ERRNO_L_EIDRM + x = LIB9P_ERRNO_L_EIDRM; #endif -#ifdef LIB9P_ERRNO_L_EPIPE - x = LIB9P_ERRNO_L_EPIPE; +#ifdef LIB9P_ERRNO_L_EILSEQ + x = LIB9P_ERRNO_L_EILSEQ; #endif -#ifdef LIB9P_ERRNO_L_EDOM - x = LIB9P_ERRNO_L_EDOM; +#ifdef LIB9P_ERRNO_L_EINPROGRESS + x = LIB9P_ERRNO_L_EINPROGRESS; #endif -#ifdef LIB9P_ERRNO_L_ERANGE - x = LIB9P_ERRNO_L_ERANGE; +#ifdef LIB9P_ERRNO_L_EINTR + x = LIB9P_ERRNO_L_EINTR; #endif -#ifdef LIB9P_ERRNO_L_EDEADLK - x = LIB9P_ERRNO_L_EDEADLK; +#ifdef LIB9P_ERRNO_L_EINVAL + x = LIB9P_ERRNO_L_EINVAL; #endif -#ifdef LIB9P_ERRNO_L_ENAMETOOLONG - x = LIB9P_ERRNO_L_ENAMETOOLONG; +#ifdef LIB9P_ERRNO_L_EIO + x = LIB9P_ERRNO_L_EIO; #endif -#ifdef LIB9P_ERRNO_L_ENOLCK - x = LIB9P_ERRNO_L_ENOLCK; +#ifdef LIB9P_ERRNO_L_EISCONN + x = LIB9P_ERRNO_L_EISCONN; #endif -#ifdef LIB9P_ERRNO_L_ENOSYS - x = LIB9P_ERRNO_L_ENOSYS; +#ifdef LIB9P_ERRNO_L_EISDIR + x = LIB9P_ERRNO_L_EISDIR; #endif -#ifdef LIB9P_ERRNO_L_ENOTEMPTY - x = LIB9P_ERRNO_L_ENOTEMPTY; +#ifdef LIB9P_ERRNO_L_EISNAM + x = LIB9P_ERRNO_L_EISNAM; #endif -#ifdef LIB9P_ERRNO_L_ELOOP - x = LIB9P_ERRNO_L_ELOOP; +#ifdef LIB9P_ERRNO_L_EKEYEXPIRED + x = LIB9P_ERRNO_L_EKEYEXPIRED; #endif -#ifdef LIB9P_ERRNO_L_ENOMSG - x = LIB9P_ERRNO_L_ENOMSG; +#ifdef LIB9P_ERRNO_L_EKEYREJECTED + x = LIB9P_ERRNO_L_EKEYREJECTED; #endif -#ifdef LIB9P_ERRNO_L_EIDRM - x = LIB9P_ERRNO_L_EIDRM; +#ifdef LIB9P_ERRNO_L_EKEYREVOKED + x = LIB9P_ERRNO_L_EKEYREVOKED; #endif -#ifdef LIB9P_ERRNO_L_ECHRNG - x = LIB9P_ERRNO_L_ECHRNG; +#ifdef LIB9P_ERRNO_L_EL2HLT + x = LIB9P_ERRNO_L_EL2HLT; #endif #ifdef LIB9P_ERRNO_L_EL2NSYNC x = LIB9P_ERRNO_L_EL2NSYNC; @@ -315,962 +246,1007 @@ int main(void) { #ifdef LIB9P_ERRNO_L_EL3RST x = LIB9P_ERRNO_L_EL3RST; #endif +#ifdef LIB9P_ERRNO_L_ELIBACC + x = LIB9P_ERRNO_L_ELIBACC; +#endif +#ifdef LIB9P_ERRNO_L_ELIBBAD + x = LIB9P_ERRNO_L_ELIBBAD; +#endif +#ifdef LIB9P_ERRNO_L_ELIBEXEC + x = LIB9P_ERRNO_L_ELIBEXEC; +#endif +#ifdef LIB9P_ERRNO_L_ELIBMAX + x = LIB9P_ERRNO_L_ELIBMAX; +#endif +#ifdef LIB9P_ERRNO_L_ELIBSCN + x = LIB9P_ERRNO_L_ELIBSCN; +#endif #ifdef LIB9P_ERRNO_L_ELNRNG x = LIB9P_ERRNO_L_ELNRNG; #endif -#ifdef LIB9P_ERRNO_L_EUNATCH - x = LIB9P_ERRNO_L_EUNATCH; +#ifdef LIB9P_ERRNO_L_ELOOP + x = LIB9P_ERRNO_L_ELOOP; #endif -#ifdef LIB9P_ERRNO_L_ENOCSI - x = LIB9P_ERRNO_L_ENOCSI; +#ifdef LIB9P_ERRNO_L_EMEDIUMTYPE + x = LIB9P_ERRNO_L_EMEDIUMTYPE; #endif -#ifdef LIB9P_ERRNO_L_EL2HLT - x = LIB9P_ERRNO_L_EL2HLT; +#ifdef LIB9P_ERRNO_L_EMFILE + x = LIB9P_ERRNO_L_EMFILE; #endif -#ifdef LIB9P_ERRNO_L_EBADE - x = LIB9P_ERRNO_L_EBADE; +#ifdef LIB9P_ERRNO_L_EMLINK + x = LIB9P_ERRNO_L_EMLINK; #endif -#ifdef LIB9P_ERRNO_L_EBADR - x = LIB9P_ERRNO_L_EBADR; +#ifdef LIB9P_ERRNO_L_EMSGSIZE + x = LIB9P_ERRNO_L_EMSGSIZE; #endif -#ifdef LIB9P_ERRNO_L_EXFULL - x = LIB9P_ERRNO_L_EXFULL; +#ifdef LIB9P_ERRNO_L_EMULTIHOP + x = LIB9P_ERRNO_L_EMULTIHOP; #endif -#ifdef LIB9P_ERRNO_L_ENOANO - x = LIB9P_ERRNO_L_ENOANO; +#ifdef LIB9P_ERRNO_L_ENAMETOOLONG + x = LIB9P_ERRNO_L_ENAMETOOLONG; #endif -#ifdef LIB9P_ERRNO_L_EBADRQC - x = LIB9P_ERRNO_L_EBADRQC; +#ifdef LIB9P_ERRNO_L_ENAVAIL + x = LIB9P_ERRNO_L_ENAVAIL; #endif -#ifdef LIB9P_ERRNO_L_EBADSLT - x = LIB9P_ERRNO_L_EBADSLT; +#ifdef LIB9P_ERRNO_L_ENETDOWN + x = LIB9P_ERRNO_L_ENETDOWN; #endif -#ifdef LIB9P_ERRNO_L_EBFONT - x = LIB9P_ERRNO_L_EBFONT; +#ifdef LIB9P_ERRNO_L_ENETRESET + x = LIB9P_ERRNO_L_ENETRESET; #endif -#ifdef LIB9P_ERRNO_L_ENOSTR - x = LIB9P_ERRNO_L_ENOSTR; +#ifdef LIB9P_ERRNO_L_ENETUNREACH + x = LIB9P_ERRNO_L_ENETUNREACH; #endif -#ifdef LIB9P_ERRNO_L_ENODATA - x = LIB9P_ERRNO_L_ENODATA; +#ifdef LIB9P_ERRNO_L_ENFILE + x = LIB9P_ERRNO_L_ENFILE; #endif -#ifdef LIB9P_ERRNO_L_ETIME - x = LIB9P_ERRNO_L_ETIME; +#ifdef LIB9P_ERRNO_L_ENOANO + x = LIB9P_ERRNO_L_ENOANO; #endif -#ifdef LIB9P_ERRNO_L_ENOSR - x = LIB9P_ERRNO_L_ENOSR; +#ifdef LIB9P_ERRNO_L_ENOBUFS + x = LIB9P_ERRNO_L_ENOBUFS; #endif -#ifdef LIB9P_ERRNO_L_ENONET - x = LIB9P_ERRNO_L_ENONET; +#ifdef LIB9P_ERRNO_L_ENOCSI + x = LIB9P_ERRNO_L_ENOCSI; #endif -#ifdef LIB9P_ERRNO_L_ENOPKG - x = LIB9P_ERRNO_L_ENOPKG; +#ifdef LIB9P_ERRNO_L_ENODATA + x = LIB9P_ERRNO_L_ENODATA; #endif -#ifdef LIB9P_ERRNO_L_EREMOTE - x = LIB9P_ERRNO_L_EREMOTE; +#ifdef LIB9P_ERRNO_L_ENODEV + x = LIB9P_ERRNO_L_ENODEV; #endif -#ifdef LIB9P_ERRNO_L_ENOLINK - x = LIB9P_ERRNO_L_ENOLINK; +#ifdef LIB9P_ERRNO_L_ENOENT + x = LIB9P_ERRNO_L_ENOENT; #endif -#ifdef LIB9P_ERRNO_L_EADV - x = LIB9P_ERRNO_L_EADV; +#ifdef LIB9P_ERRNO_L_ENOEXEC + x = LIB9P_ERRNO_L_ENOEXEC; #endif -#ifdef LIB9P_ERRNO_L_ESRMNT - x = LIB9P_ERRNO_L_ESRMNT; +#ifdef LIB9P_ERRNO_L_ENOKEY + x = LIB9P_ERRNO_L_ENOKEY; #endif -#ifdef LIB9P_ERRNO_L_ECOMM - x = LIB9P_ERRNO_L_ECOMM; +#ifdef LIB9P_ERRNO_L_ENOLCK + x = LIB9P_ERRNO_L_ENOLCK; #endif -#ifdef LIB9P_ERRNO_L_EPROTO - x = LIB9P_ERRNO_L_EPROTO; +#ifdef LIB9P_ERRNO_L_ENOLINK + x = LIB9P_ERRNO_L_ENOLINK; #endif -#ifdef LIB9P_ERRNO_L_EMULTIHOP - x = LIB9P_ERRNO_L_EMULTIHOP; +#ifdef LIB9P_ERRNO_L_ENOMEDIUM + x = LIB9P_ERRNO_L_ENOMEDIUM; #endif -#ifdef LIB9P_ERRNO_L_EDOTDOT - x = LIB9P_ERRNO_L_EDOTDOT; +#ifdef LIB9P_ERRNO_L_ENOMEM + x = LIB9P_ERRNO_L_ENOMEM; #endif -#ifdef LIB9P_ERRNO_L_EBADMSG - x = LIB9P_ERRNO_L_EBADMSG; +#ifdef LIB9P_ERRNO_L_ENOMSG + x = LIB9P_ERRNO_L_ENOMSG; #endif -#ifdef LIB9P_ERRNO_L_EOVERFLOW - x = LIB9P_ERRNO_L_EOVERFLOW; +#ifdef LIB9P_ERRNO_L_ENONET + x = LIB9P_ERRNO_L_ENONET; #endif -#ifdef LIB9P_ERRNO_L_ENOTUNIQ - x = LIB9P_ERRNO_L_ENOTUNIQ; +#ifdef LIB9P_ERRNO_L_ENOPKG + x = LIB9P_ERRNO_L_ENOPKG; #endif -#ifdef LIB9P_ERRNO_L_EBADFD - x = LIB9P_ERRNO_L_EBADFD; +#ifdef LIB9P_ERRNO_L_ENOPROTOOPT + x = LIB9P_ERRNO_L_ENOPROTOOPT; #endif -#ifdef LIB9P_ERRNO_L_EREMCHG - x = LIB9P_ERRNO_L_EREMCHG; +#ifdef LIB9P_ERRNO_L_ENOSPC + x = LIB9P_ERRNO_L_ENOSPC; #endif -#ifdef LIB9P_ERRNO_L_ELIBACC - x = LIB9P_ERRNO_L_ELIBACC; +#ifdef LIB9P_ERRNO_L_ENOSR + x = LIB9P_ERRNO_L_ENOSR; #endif -#ifdef LIB9P_ERRNO_L_ELIBBAD - x = LIB9P_ERRNO_L_ELIBBAD; +#ifdef LIB9P_ERRNO_L_ENOSTR + x = LIB9P_ERRNO_L_ENOSTR; #endif -#ifdef LIB9P_ERRNO_L_ELIBSCN - x = LIB9P_ERRNO_L_ELIBSCN; +#ifdef LIB9P_ERRNO_L_ENOSYS + x = LIB9P_ERRNO_L_ENOSYS; #endif -#ifdef LIB9P_ERRNO_L_ELIBMAX - x = LIB9P_ERRNO_L_ELIBMAX; +#ifdef LIB9P_ERRNO_L_ENOTBLK + x = LIB9P_ERRNO_L_ENOTBLK; #endif -#ifdef LIB9P_ERRNO_L_ELIBEXEC - x = LIB9P_ERRNO_L_ELIBEXEC; +#ifdef LIB9P_ERRNO_L_ENOTCONN + x = LIB9P_ERRNO_L_ENOTCONN; #endif -#ifdef LIB9P_ERRNO_L_EILSEQ - x = LIB9P_ERRNO_L_EILSEQ; +#ifdef LIB9P_ERRNO_L_ENOTDIR + x = LIB9P_ERRNO_L_ENOTDIR; #endif -#ifdef LIB9P_ERRNO_L_ERESTART - x = LIB9P_ERRNO_L_ERESTART; +#ifdef LIB9P_ERRNO_L_ENOTEMPTY + x = LIB9P_ERRNO_L_ENOTEMPTY; #endif -#ifdef LIB9P_ERRNO_L_ESTRPIPE - x = LIB9P_ERRNO_L_ESTRPIPE; +#ifdef LIB9P_ERRNO_L_ENOTNAM + x = LIB9P_ERRNO_L_ENOTNAM; #endif -#ifdef LIB9P_ERRNO_L_EUSERS - x = LIB9P_ERRNO_L_EUSERS; +#ifdef LIB9P_ERRNO_L_ENOTRECOVERABLE + x = LIB9P_ERRNO_L_ENOTRECOVERABLE; #endif #ifdef LIB9P_ERRNO_L_ENOTSOCK x = LIB9P_ERRNO_L_ENOTSOCK; #endif -#ifdef LIB9P_ERRNO_L_EDESTADDRREQ - x = LIB9P_ERRNO_L_EDESTADDRREQ; +#ifdef LIB9P_ERRNO_L_ENOTTY + x = LIB9P_ERRNO_L_ENOTTY; #endif -#ifdef LIB9P_ERRNO_L_EMSGSIZE - x = LIB9P_ERRNO_L_EMSGSIZE; +#ifdef LIB9P_ERRNO_L_ENOTUNIQ + x = LIB9P_ERRNO_L_ENOTUNIQ; #endif -#ifdef LIB9P_ERRNO_L_EPROTOTYPE - x = LIB9P_ERRNO_L_EPROTOTYPE; +#ifdef LIB9P_ERRNO_L_ENXIO + x = LIB9P_ERRNO_L_ENXIO; #endif -#ifdef LIB9P_ERRNO_L_ENOPROTOOPT - x = LIB9P_ERRNO_L_ENOPROTOOPT; +#ifdef LIB9P_ERRNO_L_EOPNOTSUPP + x = LIB9P_ERRNO_L_EOPNOTSUPP; #endif -#ifdef LIB9P_ERRNO_L_EPROTONOSUPPORT - x = LIB9P_ERRNO_L_EPROTONOSUPPORT; +#ifdef LIB9P_ERRNO_L_EOVERFLOW + x = LIB9P_ERRNO_L_EOVERFLOW; #endif -#ifdef LIB9P_ERRNO_L_ESOCKTNOSUPPORT - x = LIB9P_ERRNO_L_ESOCKTNOSUPPORT; +#ifdef LIB9P_ERRNO_L_EOWNERDEAD + x = LIB9P_ERRNO_L_EOWNERDEAD; #endif -#ifdef LIB9P_ERRNO_L_EOPNOTSUPP - x = LIB9P_ERRNO_L_EOPNOTSUPP; +#ifdef LIB9P_ERRNO_L_EPERM + x = LIB9P_ERRNO_L_EPERM; #endif #ifdef LIB9P_ERRNO_L_EPFNOSUPPORT x = LIB9P_ERRNO_L_EPFNOSUPPORT; #endif -#ifdef LIB9P_ERRNO_L_EAFNOSUPPORT - x = LIB9P_ERRNO_L_EAFNOSUPPORT; +#ifdef LIB9P_ERRNO_L_EPIPE + x = LIB9P_ERRNO_L_EPIPE; #endif -#ifdef LIB9P_ERRNO_L_EADDRINUSE - x = LIB9P_ERRNO_L_EADDRINUSE; +#ifdef LIB9P_ERRNO_L_EPROTO + x = LIB9P_ERRNO_L_EPROTO; #endif -#ifdef LIB9P_ERRNO_L_EADDRNOTAVAIL - x = LIB9P_ERRNO_L_EADDRNOTAVAIL; +#ifdef LIB9P_ERRNO_L_EPROTONOSUPPORT + x = LIB9P_ERRNO_L_EPROTONOSUPPORT; #endif -#ifdef LIB9P_ERRNO_L_ENETDOWN - x = LIB9P_ERRNO_L_ENETDOWN; +#ifdef LIB9P_ERRNO_L_EPROTOTYPE + x = LIB9P_ERRNO_L_EPROTOTYPE; #endif -#ifdef LIB9P_ERRNO_L_ENETUNREACH - x = LIB9P_ERRNO_L_ENETUNREACH; +#ifdef LIB9P_ERRNO_L_ERANGE + x = LIB9P_ERRNO_L_ERANGE; #endif -#ifdef LIB9P_ERRNO_L_ENETRESET - x = LIB9P_ERRNO_L_ENETRESET; +#ifdef LIB9P_ERRNO_L_EREMCHG + x = LIB9P_ERRNO_L_EREMCHG; #endif -#ifdef LIB9P_ERRNO_L_ECONNABORTED - x = LIB9P_ERRNO_L_ECONNABORTED; +#ifdef LIB9P_ERRNO_L_EREMOTE + x = LIB9P_ERRNO_L_EREMOTE; #endif -#ifdef LIB9P_ERRNO_L_ECONNRESET - x = LIB9P_ERRNO_L_ECONNRESET; +#ifdef LIB9P_ERRNO_L_EREMOTEIO + x = LIB9P_ERRNO_L_EREMOTEIO; #endif -#ifdef LIB9P_ERRNO_L_ENOBUFS - x = LIB9P_ERRNO_L_ENOBUFS; +#ifdef LIB9P_ERRNO_L_ERESTART + x = LIB9P_ERRNO_L_ERESTART; #endif -#ifdef LIB9P_ERRNO_L_EISCONN - x = LIB9P_ERRNO_L_EISCONN; +#ifdef LIB9P_ERRNO_L_ERFKILL + x = LIB9P_ERRNO_L_ERFKILL; #endif -#ifdef LIB9P_ERRNO_L_ENOTCONN - x = LIB9P_ERRNO_L_ENOTCONN; +#ifdef LIB9P_ERRNO_L_EROFS + x = LIB9P_ERRNO_L_EROFS; #endif #ifdef LIB9P_ERRNO_L_ESHUTDOWN x = LIB9P_ERRNO_L_ESHUTDOWN; #endif -#ifdef LIB9P_ERRNO_L_ETOOMANYREFS - x = LIB9P_ERRNO_L_ETOOMANYREFS; +#ifdef LIB9P_ERRNO_L_ESOCKTNOSUPPORT + x = LIB9P_ERRNO_L_ESOCKTNOSUPPORT; #endif -#ifdef LIB9P_ERRNO_L_ETIMEDOUT - x = LIB9P_ERRNO_L_ETIMEDOUT; +#ifdef LIB9P_ERRNO_L_ESPIPE + x = LIB9P_ERRNO_L_ESPIPE; #endif -#ifdef LIB9P_ERRNO_L_ECONNREFUSED - x = LIB9P_ERRNO_L_ECONNREFUSED; +#ifdef LIB9P_ERRNO_L_ESRCH + x = LIB9P_ERRNO_L_ESRCH; #endif -#ifdef LIB9P_ERRNO_L_EHOSTDOWN - x = LIB9P_ERRNO_L_EHOSTDOWN; +#ifdef LIB9P_ERRNO_L_ESRMNT + x = LIB9P_ERRNO_L_ESRMNT; #endif -#ifdef LIB9P_ERRNO_L_EHOSTUNREACH - x = LIB9P_ERRNO_L_EHOSTUNREACH; +#ifdef LIB9P_ERRNO_L_ESTALE + x = LIB9P_ERRNO_L_ESTALE; #endif -#ifdef LIB9P_ERRNO_L_EALREADY - x = LIB9P_ERRNO_L_EALREADY; +#ifdef LIB9P_ERRNO_L_ESTRPIPE + x = LIB9P_ERRNO_L_ESTRPIPE; #endif -#ifdef LIB9P_ERRNO_L_EINPROGRESS - x = LIB9P_ERRNO_L_EINPROGRESS; +#ifdef LIB9P_ERRNO_L_ETIME + x = LIB9P_ERRNO_L_ETIME; #endif -#ifdef LIB9P_ERRNO_L_ESTALE - x = LIB9P_ERRNO_L_ESTALE; +#ifdef LIB9P_ERRNO_L_ETIMEDOUT + x = LIB9P_ERRNO_L_ETIMEDOUT; +#endif +#ifdef LIB9P_ERRNO_L_ETOOMANYREFS + x = LIB9P_ERRNO_L_ETOOMANYREFS; +#endif +#ifdef LIB9P_ERRNO_L_ETXTBSY + x = LIB9P_ERRNO_L_ETXTBSY; #endif #ifdef LIB9P_ERRNO_L_EUCLEAN x = LIB9P_ERRNO_L_EUCLEAN; #endif -#ifdef LIB9P_ERRNO_L_ENOTNAM - x = LIB9P_ERRNO_L_ENOTNAM; +#ifdef LIB9P_ERRNO_L_EUNATCH + x = LIB9P_ERRNO_L_EUNATCH; #endif -#ifdef LIB9P_ERRNO_L_ENAVAIL - x = LIB9P_ERRNO_L_ENAVAIL; +#ifdef LIB9P_ERRNO_L_EUSERS + x = LIB9P_ERRNO_L_EUSERS; #endif -#ifdef LIB9P_ERRNO_L_EISNAM - x = LIB9P_ERRNO_L_EISNAM; +#ifdef LIB9P_ERRNO_L_EXDEV + x = LIB9P_ERRNO_L_EXDEV; #endif -#ifdef LIB9P_ERRNO_L_EREMOTEIO - x = LIB9P_ERRNO_L_EREMOTEIO; +#ifdef LIB9P_ERRNO_L_EXFULL + x = LIB9P_ERRNO_L_EXFULL; #endif -#ifdef LIB9P_ERRNO_L_EDQUOT - x = LIB9P_ERRNO_L_EDQUOT; +#ifdef LIB9P_ERRNO_NOERROR + x = LIB9P_ERRNO_NOERROR; #endif -#ifdef LIB9P_ERRNO_L_ENOMEDIUM - x = LIB9P_ERRNO_L_ENOMEDIUM; +#ifdef LIB9P_FID_NOFID + x = LIB9P_FID_NOFID; #endif -#ifdef LIB9P_ERRNO_L_EMEDIUMTYPE - x = LIB9P_ERRNO_L_EMEDIUMTYPE; +#ifdef LIB9P_GETATTR_ALL + x = LIB9P_GETATTR_ALL; #endif -#ifdef LIB9P_ERRNO_L_ECANCELED - x = LIB9P_ERRNO_L_ECANCELED; +#ifdef LIB9P_GETATTR_ATIME + x = LIB9P_GETATTR_ATIME; #endif -#ifdef LIB9P_ERRNO_L_ENOKEY - x = LIB9P_ERRNO_L_ENOKEY; +#ifdef LIB9P_GETATTR_BASIC + x = LIB9P_GETATTR_BASIC; #endif -#ifdef LIB9P_ERRNO_L_EKEYEXPIRED - x = LIB9P_ERRNO_L_EKEYEXPIRED; +#ifdef LIB9P_GETATTR_BLOCKS + x = LIB9P_GETATTR_BLOCKS; #endif -#ifdef LIB9P_ERRNO_L_EKEYREVOKED - x = LIB9P_ERRNO_L_EKEYREVOKED; +#ifdef LIB9P_GETATTR_BTIME + x = LIB9P_GETATTR_BTIME; #endif -#ifdef LIB9P_ERRNO_L_EKEYREJECTED - x = LIB9P_ERRNO_L_EKEYREJECTED; +#ifdef LIB9P_GETATTR_CTIME + x = LIB9P_GETATTR_CTIME; #endif -#ifdef LIB9P_ERRNO_L_EOWNERDEAD - x = LIB9P_ERRNO_L_EOWNERDEAD; +#ifdef LIB9P_GETATTR_DATA_VERSION + x = LIB9P_GETATTR_DATA_VERSION; #endif -#ifdef LIB9P_ERRNO_L_ENOTRECOVERABLE - x = LIB9P_ERRNO_L_ENOTRECOVERABLE; +#ifdef LIB9P_GETATTR_GEN + x = LIB9P_GETATTR_GEN; #endif -#ifdef LIB9P_ERRNO_L_ERFKILL - x = LIB9P_ERRNO_L_ERFKILL; +#ifdef LIB9P_GETATTR_GID + x = LIB9P_GETATTR_GID; #endif -#ifdef LIB9P_ERRNO_L_EHWPOISON - x = LIB9P_ERRNO_L_EHWPOISON; +#ifdef LIB9P_GETATTR_INO + x = LIB9P_GETATTR_INO; #endif -#ifdef LIB9P_SUPER_MAGIC_V9FS_MAGIC - x = LIB9P_SUPER_MAGIC_V9FS_MAGIC; +#ifdef LIB9P_GETATTR_MODE + x = LIB9P_GETATTR_MODE; #endif -#ifdef _LIB9P_LO_UNUSED_31 - x = _LIB9P_LO_UNUSED_31; +#ifdef LIB9P_GETATTR_MTIME + x = LIB9P_GETATTR_MTIME; #endif -#ifdef _LIB9P_LO_UNUSED_30 - x = _LIB9P_LO_UNUSED_30; +#ifdef LIB9P_GETATTR_NLINK + x = LIB9P_GETATTR_NLINK; #endif -#ifdef _LIB9P_LO_UNUSED_29 - x = _LIB9P_LO_UNUSED_29; +#ifdef LIB9P_GETATTR_RDEV + x = LIB9P_GETATTR_RDEV; #endif -#ifdef _LIB9P_LO_UNUSED_28 - x = _LIB9P_LO_UNUSED_28; +#ifdef LIB9P_GETATTR_SIZE + x = LIB9P_GETATTR_SIZE; #endif -#ifdef _LIB9P_LO_UNUSED_27 - x = _LIB9P_LO_UNUSED_27; +#ifdef LIB9P_GETATTR_UID + x = LIB9P_GETATTR_UID; #endif -#ifdef _LIB9P_LO_UNUSED_26 - x = _LIB9P_LO_UNUSED_26; +#ifdef LIB9P_LOCK_FLAGS_BLOCK + x = LIB9P_LOCK_FLAGS_BLOCK; #endif -#ifdef _LIB9P_LO_UNUSED_25 - x = _LIB9P_LO_UNUSED_25; +#ifdef LIB9P_LOCK_FLAGS_RECLAIM + x = LIB9P_LOCK_FLAGS_RECLAIM; #endif -#ifdef _LIB9P_LO_UNUSED_24 - x = _LIB9P_LO_UNUSED_24; +#ifdef LIB9P_LOCK_STATUS_BLOCKED + x = LIB9P_LOCK_STATUS_BLOCKED; #endif -#ifdef _LIB9P_LO_UNUSED_23 - x = _LIB9P_LO_UNUSED_23; +#ifdef LIB9P_LOCK_STATUS_ERROR + x = LIB9P_LOCK_STATUS_ERROR; #endif -#ifdef _LIB9P_LO_UNUSED_22 - x = _LIB9P_LO_UNUSED_22; +#ifdef LIB9P_LOCK_STATUS_GRACE + x = LIB9P_LOCK_STATUS_GRACE; #endif -#ifdef _LIB9P_LO_UNUSED_21 - x = _LIB9P_LO_UNUSED_21; +#ifdef LIB9P_LOCK_STATUS_SUCCESS + x = LIB9P_LOCK_STATUS_SUCCESS; #endif -#ifdef LIB9P_LO_SYNC - x = LIB9P_LO_SYNC; +#ifdef LIB9P_LOCK_TYPE_RDLCK + x = LIB9P_LOCK_TYPE_RDLCK; +#endif +#ifdef LIB9P_LOCK_TYPE_UNLCK + x = LIB9P_LOCK_TYPE_UNLCK; +#endif +#ifdef LIB9P_LOCK_TYPE_WRLCK + x = LIB9P_LOCK_TYPE_WRLCK; +#endif +#ifdef LIB9P_LO_APPEND + x = LIB9P_LO_APPEND; +#endif +#ifdef LIB9P_LO_BSD_FASYNC + x = LIB9P_LO_BSD_FASYNC; #endif #ifdef LIB9P_LO_CLOEXEC x = LIB9P_LO_CLOEXEC; #endif -#ifdef LIB9P_LO_NOATIME - x = LIB9P_LO_NOATIME; +#ifdef LIB9P_LO_CREATE + x = LIB9P_LO_CREATE; #endif -#ifdef LIB9P_LO_NOFOLLOW - x = LIB9P_LO_NOFOLLOW; +#ifdef LIB9P_LO_DIRECT + x = LIB9P_LO_DIRECT; #endif #ifdef LIB9P_LO_DIRECTORY x = LIB9P_LO_DIRECTORY; #endif +#ifdef LIB9P_LO_DSYNC + x = LIB9P_LO_DSYNC; +#endif +#ifdef LIB9P_LO_EXCL + x = LIB9P_LO_EXCL; +#endif +#ifdef LIB9P_LO_FLAG_MASK + x = LIB9P_LO_FLAG_MASK; +#endif #ifdef LIB9P_LO_LARGEFILE x = LIB9P_LO_LARGEFILE; #endif -#ifdef LIB9P_LO_DIRECT - x = LIB9P_LO_DIRECT; +#ifdef LIB9P_LO_MODE_MASK + x = LIB9P_LO_MODE_MASK; #endif -#ifdef LIB9P_LO_BSD_FASYNC - x = LIB9P_LO_BSD_FASYNC; +#ifdef LIB9P_LO_MODE_NOACCESS + x = LIB9P_LO_MODE_NOACCESS; #endif -#ifdef LIB9P_LO_DSYNC - x = LIB9P_LO_DSYNC; +#ifdef LIB9P_LO_MODE_RDONLY + x = LIB9P_LO_MODE_RDONLY; #endif -#ifdef LIB9P_LO_NONBLOCK - x = LIB9P_LO_NONBLOCK; +#ifdef LIB9P_LO_MODE_RDWR + x = LIB9P_LO_MODE_RDWR; #endif -#ifdef LIB9P_LO_APPEND - x = LIB9P_LO_APPEND; +#ifdef LIB9P_LO_MODE_WRONLY + x = LIB9P_LO_MODE_WRONLY; #endif -#ifdef LIB9P_LO_TRUNC - x = LIB9P_LO_TRUNC; +#ifdef LIB9P_LO_NOATIME + x = LIB9P_LO_NOATIME; #endif #ifdef LIB9P_LO_NOCTTY x = LIB9P_LO_NOCTTY; #endif -#ifdef LIB9P_LO_EXCL - x = LIB9P_LO_EXCL; +#ifdef LIB9P_LO_NOFOLLOW + x = LIB9P_LO_NOFOLLOW; #endif -#ifdef LIB9P_LO_CREATE - x = LIB9P_LO_CREATE; +#ifdef LIB9P_LO_NONBLOCK + x = LIB9P_LO_NONBLOCK; #endif -#ifdef _LIB9P_LO_UNUSED_5 - x = _LIB9P_LO_UNUSED_5; +#ifdef LIB9P_LO_SYNC + x = LIB9P_LO_SYNC; #endif -#ifdef _LIB9P_LO_UNUSED_4 - x = _LIB9P_LO_UNUSED_4; +#ifdef LIB9P_LO_TRUNC + x = LIB9P_LO_TRUNC; #endif -#ifdef _LIB9P_LO_UNUSED_3 - x = _LIB9P_LO_UNUSED_3; +#ifdef LIB9P_MODE_FMT_BLOCK_DEV + x = LIB9P_MODE_FMT_BLOCK_DEV; #endif -#ifdef _LIB9P_LO_UNUSED_2 - x = _LIB9P_LO_UNUSED_2; +#ifdef LIB9P_MODE_FMT_CHAR_DEV + x = LIB9P_MODE_FMT_CHAR_DEV; #endif -#ifdef LIB9P_LO_FLAG_MASK - x = LIB9P_LO_FLAG_MASK; +#ifdef LIB9P_MODE_FMT_DIRECTORY + x = LIB9P_MODE_FMT_DIRECTORY; #endif -#ifdef LIB9P_LO_MODE_RDONLY - x = LIB9P_LO_MODE_RDONLY; +#ifdef LIB9P_MODE_FMT_MASK + x = LIB9P_MODE_FMT_MASK; #endif -#ifdef LIB9P_LO_MODE_WRONLY - x = LIB9P_LO_MODE_WRONLY; +#ifdef LIB9P_MODE_FMT_PIPE + x = LIB9P_MODE_FMT_PIPE; #endif -#ifdef LIB9P_LO_MODE_RDWR - x = LIB9P_LO_MODE_RDWR; +#ifdef LIB9P_MODE_FMT_REGULAR + x = LIB9P_MODE_FMT_REGULAR; #endif -#ifdef LIB9P_LO_MODE_NOACCESS - x = LIB9P_LO_MODE_NOACCESS; +#ifdef LIB9P_MODE_FMT_SOCKET + x = LIB9P_MODE_FMT_SOCKET; #endif -#ifdef LIB9P_LO_MODE_MASK - x = LIB9P_LO_MODE_MASK; +#ifdef LIB9P_MODE_FMT_SYMLINK + x = LIB9P_MODE_FMT_SYMLINK; #endif -#ifdef LIB9P_DT_UNKNOWN - x = LIB9P_DT_UNKNOWN; +#ifdef LIB9P_MODE_PERM_GROUP_R + x = LIB9P_MODE_PERM_GROUP_R; #endif -#ifdef LIB9P_DT_PIPE - x = LIB9P_DT_PIPE; +#ifdef LIB9P_MODE_PERM_GROUP_W + x = LIB9P_MODE_PERM_GROUP_W; #endif -#ifdef LIB9P_DT_CHAR_DEV - x = LIB9P_DT_CHAR_DEV; +#ifdef LIB9P_MODE_PERM_GROUP_X + x = LIB9P_MODE_PERM_GROUP_X; #endif -#ifdef LIB9P_DT_DIRECTORY - x = LIB9P_DT_DIRECTORY; +#ifdef LIB9P_MODE_PERM_MASK + x = LIB9P_MODE_PERM_MASK; #endif -#ifdef LIB9P_DT_BLOCK_DEV - x = LIB9P_DT_BLOCK_DEV; +#ifdef LIB9P_MODE_PERM_OTHER_R + x = LIB9P_MODE_PERM_OTHER_R; #endif -#ifdef LIB9P_DT_REGULAR - x = LIB9P_DT_REGULAR; +#ifdef LIB9P_MODE_PERM_OTHER_W + x = LIB9P_MODE_PERM_OTHER_W; #endif -#ifdef LIB9P_DT_SYMLINK - x = LIB9P_DT_SYMLINK; +#ifdef LIB9P_MODE_PERM_OTHER_X + x = LIB9P_MODE_PERM_OTHER_X; #endif -#ifdef LIB9P_DT_SOCKET - x = LIB9P_DT_SOCKET; +#ifdef LIB9P_MODE_PERM_OWNER_R + x = LIB9P_MODE_PERM_OWNER_R; #endif -#ifdef _LIB9P_DT_WHITEOUT - x = _LIB9P_DT_WHITEOUT; +#ifdef LIB9P_MODE_PERM_OWNER_W + x = LIB9P_MODE_PERM_OWNER_W; #endif -#ifdef _LIB9P_MODE_UNUSED_31 - x = _LIB9P_MODE_UNUSED_31; +#ifdef LIB9P_MODE_PERM_OWNER_X + x = LIB9P_MODE_PERM_OWNER_X; #endif -#ifdef _LIB9P_MODE_UNUSED_30 - x = _LIB9P_MODE_UNUSED_30; +#ifdef LIB9P_MODE_PERM_SETGROUP + x = LIB9P_MODE_PERM_SETGROUP; #endif -#ifdef _LIB9P_MODE_UNUSED_29 - x = _LIB9P_MODE_UNUSED_29; +#ifdef LIB9P_MODE_PERM_SETUSER + x = LIB9P_MODE_PERM_SETUSER; #endif -#ifdef _LIB9P_MODE_UNUSED_28 - x = _LIB9P_MODE_UNUSED_28; +#ifdef LIB9P_MODE_PERM_STICKY + x = LIB9P_MODE_PERM_STICKY; #endif -#ifdef _LIB9P_MODE_UNUSED_27 - x = _LIB9P_MODE_UNUSED_27; +#ifdef LIB9P_NUID_NONUID + x = LIB9P_NUID_NONUID; #endif -#ifdef _LIB9P_MODE_UNUSED_26 - x = _LIB9P_MODE_UNUSED_26; +#ifdef LIB9P_O_FLAG_MASK + x = LIB9P_O_FLAG_MASK; #endif -#ifdef _LIB9P_MODE_UNUSED_25 - x = _LIB9P_MODE_UNUSED_25; +#ifdef LIB9P_O_MODE_EXEC + x = LIB9P_O_MODE_EXEC; #endif -#ifdef _LIB9P_MODE_UNUSED_24 - x = _LIB9P_MODE_UNUSED_24; +#ifdef LIB9P_O_MODE_MASK + x = LIB9P_O_MODE_MASK; #endif -#ifdef _LIB9P_MODE_UNUSED_23 - x = _LIB9P_MODE_UNUSED_23; +#ifdef LIB9P_O_MODE_RDWR + x = LIB9P_O_MODE_RDWR; #endif -#ifdef _LIB9P_MODE_UNUSED_22 - x = _LIB9P_MODE_UNUSED_22; +#ifdef LIB9P_O_MODE_READ + x = LIB9P_O_MODE_READ; #endif -#ifdef _LIB9P_MODE_UNUSED_21 - x = _LIB9P_MODE_UNUSED_21; +#ifdef LIB9P_O_MODE_WRITE + x = LIB9P_O_MODE_WRITE; #endif -#ifdef _LIB9P_MODE_UNUSED_20 - x = _LIB9P_MODE_UNUSED_20; +#ifdef LIB9P_O_RCLOSE + x = LIB9P_O_RCLOSE; #endif -#ifdef _LIB9P_MODE_UNUSED_19 - x = _LIB9P_MODE_UNUSED_19; +#ifdef LIB9P_O_TRUNC + x = LIB9P_O_TRUNC; #endif -#ifdef _LIB9P_MODE_UNUSED_18 - x = _LIB9P_MODE_UNUSED_18; +#ifdef LIB9P_QT_APPEND + x = LIB9P_QT_APPEND; #endif -#ifdef _LIB9P_MODE_UNUSED_17 - x = _LIB9P_MODE_UNUSED_17; +#ifdef LIB9P_QT_AUTH + x = LIB9P_QT_AUTH; #endif -#ifdef _LIB9P_MODE_UNUSED_16 - x = _LIB9P_MODE_UNUSED_16; +#ifdef LIB9P_QT_DIR + x = LIB9P_QT_DIR; #endif -#ifdef LIB9P_MODE_PERM_SETGROUP - x = LIB9P_MODE_PERM_SETGROUP; +#ifdef LIB9P_QT_EXCL + x = LIB9P_QT_EXCL; #endif -#ifdef LIB9P_MODE_PERM_SETUSER - x = LIB9P_MODE_PERM_SETUSER; +#ifdef LIB9P_QT_FILE + x = LIB9P_QT_FILE; #endif -#ifdef LIB9P_MODE_PERM_STICKY - x = LIB9P_MODE_PERM_STICKY; +#ifdef LIB9P_QT_SYMLINK + x = LIB9P_QT_SYMLINK; #endif -#ifdef LIB9P_MODE_PERM_OWNER_R - x = LIB9P_MODE_PERM_OWNER_R; +#ifdef LIB9P_QT_TMP + x = LIB9P_QT_TMP; #endif -#ifdef LIB9P_MODE_PERM_OWNER_W - x = LIB9P_MODE_PERM_OWNER_W; +#ifdef LIB9P_RMSG_MAX_COPY + x = LIB9P_RMSG_MAX_COPY; #endif -#ifdef LIB9P_MODE_PERM_OWNER_X - x = LIB9P_MODE_PERM_OWNER_X; +#ifdef LIB9P_RMSG_MAX_IOV + x = LIB9P_RMSG_MAX_IOV; #endif -#ifdef LIB9P_MODE_PERM_GROUP_R - x = LIB9P_MODE_PERM_GROUP_R; +#ifdef LIB9P_SETATTR_ATIME + x = LIB9P_SETATTR_ATIME; #endif -#ifdef LIB9P_MODE_PERM_GROUP_W - x = LIB9P_MODE_PERM_GROUP_W; +#ifdef LIB9P_SETATTR_ATIME_SET + x = LIB9P_SETATTR_ATIME_SET; #endif -#ifdef LIB9P_MODE_PERM_GROUP_X - x = LIB9P_MODE_PERM_GROUP_X; +#ifdef LIB9P_SETATTR_CTIME + x = LIB9P_SETATTR_CTIME; #endif -#ifdef LIB9P_MODE_PERM_OTHER_R - x = LIB9P_MODE_PERM_OTHER_R; +#ifdef LIB9P_SETATTR_GID + x = LIB9P_SETATTR_GID; #endif -#ifdef LIB9P_MODE_PERM_OTHER_W - x = LIB9P_MODE_PERM_OTHER_W; +#ifdef LIB9P_SETATTR_MODE + x = LIB9P_SETATTR_MODE; #endif -#ifdef LIB9P_MODE_PERM_OTHER_X - x = LIB9P_MODE_PERM_OTHER_X; +#ifdef LIB9P_SETATTR_MTIME + x = LIB9P_SETATTR_MTIME; #endif -#ifdef LIB9P_MODE_PERM_MASK - x = LIB9P_MODE_PERM_MASK; +#ifdef LIB9P_SETATTR_MTIME_SET + x = LIB9P_SETATTR_MTIME_SET; #endif -#ifdef LIB9P_MODE_FMT_PIPE - x = LIB9P_MODE_FMT_PIPE; +#ifdef LIB9P_SETATTR_SIZE + x = LIB9P_SETATTR_SIZE; #endif -#ifdef LIB9P_MODE_FMT_CHAR_DEV - x = LIB9P_MODE_FMT_CHAR_DEV; +#ifdef LIB9P_SETATTR_UID + x = LIB9P_SETATTR_UID; #endif -#ifdef LIB9P_MODE_FMT_DIRECTORY - x = LIB9P_MODE_FMT_DIRECTORY; +#ifdef LIB9P_SUPER_MAGIC_V9FS_MAGIC + x = LIB9P_SUPER_MAGIC_V9FS_MAGIC; #endif -#ifdef LIB9P_MODE_FMT_BLOCK_DEV - x = LIB9P_MODE_FMT_BLOCK_DEV; +#ifdef LIB9P_TAG_NOTAG + x = LIB9P_TAG_NOTAG; #endif -#ifdef LIB9P_MODE_FMT_REGULAR - x = LIB9P_MODE_FMT_REGULAR; +#ifdef LIB9P_TMSG_MAX_COPY + x = LIB9P_TMSG_MAX_COPY; #endif -#ifdef LIB9P_MODE_FMT_SYMLINK - x = LIB9P_MODE_FMT_SYMLINK; +#ifdef LIB9P_TMSG_MAX_IOV + x = LIB9P_TMSG_MAX_IOV; #endif -#ifdef LIB9P_MODE_FMT_SOCKET - x = LIB9P_MODE_FMT_SOCKET; +#ifdef _LIB9P_DM_PLAN9_MOUNT + x = _LIB9P_DM_PLAN9_MOUNT; #endif -#ifdef LIB9P_MODE_FMT_MASK - x = LIB9P_MODE_FMT_MASK; +#ifdef _LIB9P_DM_UNUSED_10 + x = _LIB9P_DM_UNUSED_10; #endif -#ifdef LIB9P_B4_FALSE - x = LIB9P_B4_FALSE; +#ifdef _LIB9P_DM_UNUSED_11 + x = _LIB9P_DM_UNUSED_11; #endif -#ifdef LIB9P_B4_TRUE - x = LIB9P_B4_TRUE; +#ifdef _LIB9P_DM_UNUSED_12 + x = _LIB9P_DM_UNUSED_12; #endif -#ifdef _LIB9P_GETATTR_UNUSED_63 - x = _LIB9P_GETATTR_UNUSED_63; +#ifdef _LIB9P_DM_UNUSED_13 + x = _LIB9P_DM_UNUSED_13; #endif -#ifdef _LIB9P_GETATTR_UNUSED_62 - x = _LIB9P_GETATTR_UNUSED_62; +#ifdef _LIB9P_DM_UNUSED_14 + x = _LIB9P_DM_UNUSED_14; #endif -#ifdef _LIB9P_GETATTR_UNUSED_61 - x = _LIB9P_GETATTR_UNUSED_61; +#ifdef _LIB9P_DM_UNUSED_15 + x = _LIB9P_DM_UNUSED_15; #endif -#ifdef _LIB9P_GETATTR_UNUSED_60 - x = _LIB9P_GETATTR_UNUSED_60; +#ifdef _LIB9P_DM_UNUSED_16 + x = _LIB9P_DM_UNUSED_16; #endif -#ifdef _LIB9P_GETATTR_UNUSED_59 - x = _LIB9P_GETATTR_UNUSED_59; +#ifdef _LIB9P_DM_UNUSED_17 + x = _LIB9P_DM_UNUSED_17; #endif -#ifdef _LIB9P_GETATTR_UNUSED_58 - x = _LIB9P_GETATTR_UNUSED_58; +#ifdef _LIB9P_DM_UNUSED_22 + x = _LIB9P_DM_UNUSED_22; #endif -#ifdef _LIB9P_GETATTR_UNUSED_57 - x = _LIB9P_GETATTR_UNUSED_57; +#ifdef _LIB9P_DM_UNUSED_24 + x = _LIB9P_DM_UNUSED_24; #endif -#ifdef _LIB9P_GETATTR_UNUSED_56 - x = _LIB9P_GETATTR_UNUSED_56; +#ifdef _LIB9P_DM_UNUSED_25 + x = _LIB9P_DM_UNUSED_25; #endif -#ifdef _LIB9P_GETATTR_UNUSED_55 - x = _LIB9P_GETATTR_UNUSED_55; +#ifdef _LIB9P_DM_UNUSED_9 + x = _LIB9P_DM_UNUSED_9; #endif -#ifdef _LIB9P_GETATTR_UNUSED_54 - x = _LIB9P_GETATTR_UNUSED_54; +#ifdef _LIB9P_DT_WHITEOUT + x = _LIB9P_DT_WHITEOUT; #endif -#ifdef _LIB9P_GETATTR_UNUSED_53 - x = _LIB9P_GETATTR_UNUSED_53; +#ifdef _LIB9P_GETATTR_UNUSED_14 + x = _LIB9P_GETATTR_UNUSED_14; #endif -#ifdef _LIB9P_GETATTR_UNUSED_52 - x = _LIB9P_GETATTR_UNUSED_52; +#ifdef _LIB9P_GETATTR_UNUSED_15 + x = _LIB9P_GETATTR_UNUSED_15; #endif -#ifdef _LIB9P_GETATTR_UNUSED_51 - x = _LIB9P_GETATTR_UNUSED_51; +#ifdef _LIB9P_GETATTR_UNUSED_16 + x = _LIB9P_GETATTR_UNUSED_16; #endif -#ifdef _LIB9P_GETATTR_UNUSED_50 - x = _LIB9P_GETATTR_UNUSED_50; +#ifdef _LIB9P_GETATTR_UNUSED_17 + x = _LIB9P_GETATTR_UNUSED_17; #endif -#ifdef _LIB9P_GETATTR_UNUSED_49 - x = _LIB9P_GETATTR_UNUSED_49; +#ifdef _LIB9P_GETATTR_UNUSED_18 + x = _LIB9P_GETATTR_UNUSED_18; #endif -#ifdef _LIB9P_GETATTR_UNUSED_48 - x = _LIB9P_GETATTR_UNUSED_48; +#ifdef _LIB9P_GETATTR_UNUSED_19 + x = _LIB9P_GETATTR_UNUSED_19; #endif -#ifdef _LIB9P_GETATTR_UNUSED_47 - x = _LIB9P_GETATTR_UNUSED_47; +#ifdef _LIB9P_GETATTR_UNUSED_20 + x = _LIB9P_GETATTR_UNUSED_20; #endif -#ifdef _LIB9P_GETATTR_UNUSED_46 - x = _LIB9P_GETATTR_UNUSED_46; +#ifdef _LIB9P_GETATTR_UNUSED_21 + x = _LIB9P_GETATTR_UNUSED_21; #endif -#ifdef _LIB9P_GETATTR_UNUSED_45 - x = _LIB9P_GETATTR_UNUSED_45; +#ifdef _LIB9P_GETATTR_UNUSED_22 + x = _LIB9P_GETATTR_UNUSED_22; #endif -#ifdef _LIB9P_GETATTR_UNUSED_44 - x = _LIB9P_GETATTR_UNUSED_44; +#ifdef _LIB9P_GETATTR_UNUSED_23 + x = _LIB9P_GETATTR_UNUSED_23; #endif -#ifdef _LIB9P_GETATTR_UNUSED_43 - x = _LIB9P_GETATTR_UNUSED_43; +#ifdef _LIB9P_GETATTR_UNUSED_24 + x = _LIB9P_GETATTR_UNUSED_24; #endif -#ifdef _LIB9P_GETATTR_UNUSED_42 - x = _LIB9P_GETATTR_UNUSED_42; +#ifdef _LIB9P_GETATTR_UNUSED_25 + x = _LIB9P_GETATTR_UNUSED_25; #endif -#ifdef _LIB9P_GETATTR_UNUSED_41 - x = _LIB9P_GETATTR_UNUSED_41; +#ifdef _LIB9P_GETATTR_UNUSED_26 + x = _LIB9P_GETATTR_UNUSED_26; #endif -#ifdef _LIB9P_GETATTR_UNUSED_40 - x = _LIB9P_GETATTR_UNUSED_40; +#ifdef _LIB9P_GETATTR_UNUSED_27 + x = _LIB9P_GETATTR_UNUSED_27; #endif -#ifdef _LIB9P_GETATTR_UNUSED_39 - x = _LIB9P_GETATTR_UNUSED_39; +#ifdef _LIB9P_GETATTR_UNUSED_28 + x = _LIB9P_GETATTR_UNUSED_28; #endif -#ifdef _LIB9P_GETATTR_UNUSED_38 - x = _LIB9P_GETATTR_UNUSED_38; +#ifdef _LIB9P_GETATTR_UNUSED_29 + x = _LIB9P_GETATTR_UNUSED_29; #endif -#ifdef _LIB9P_GETATTR_UNUSED_37 - x = _LIB9P_GETATTR_UNUSED_37; +#ifdef _LIB9P_GETATTR_UNUSED_30 + x = _LIB9P_GETATTR_UNUSED_30; #endif -#ifdef _LIB9P_GETATTR_UNUSED_36 - x = _LIB9P_GETATTR_UNUSED_36; +#ifdef _LIB9P_GETATTR_UNUSED_31 + x = _LIB9P_GETATTR_UNUSED_31; #endif -#ifdef _LIB9P_GETATTR_UNUSED_35 - x = _LIB9P_GETATTR_UNUSED_35; +#ifdef _LIB9P_GETATTR_UNUSED_32 + x = _LIB9P_GETATTR_UNUSED_32; +#endif +#ifdef _LIB9P_GETATTR_UNUSED_33 + x = _LIB9P_GETATTR_UNUSED_33; #endif #ifdef _LIB9P_GETATTR_UNUSED_34 x = _LIB9P_GETATTR_UNUSED_34; #endif -#ifdef _LIB9P_GETATTR_UNUSED_33 - x = _LIB9P_GETATTR_UNUSED_33; +#ifdef _LIB9P_GETATTR_UNUSED_35 + x = _LIB9P_GETATTR_UNUSED_35; #endif -#ifdef _LIB9P_GETATTR_UNUSED_32 - x = _LIB9P_GETATTR_UNUSED_32; +#ifdef _LIB9P_GETATTR_UNUSED_36 + x = _LIB9P_GETATTR_UNUSED_36; #endif -#ifdef _LIB9P_GETATTR_UNUSED_31 - x = _LIB9P_GETATTR_UNUSED_31; +#ifdef _LIB9P_GETATTR_UNUSED_37 + x = _LIB9P_GETATTR_UNUSED_37; #endif -#ifdef _LIB9P_GETATTR_UNUSED_30 - x = _LIB9P_GETATTR_UNUSED_30; +#ifdef _LIB9P_GETATTR_UNUSED_38 + x = _LIB9P_GETATTR_UNUSED_38; #endif -#ifdef _LIB9P_GETATTR_UNUSED_29 - x = _LIB9P_GETATTR_UNUSED_29; +#ifdef _LIB9P_GETATTR_UNUSED_39 + x = _LIB9P_GETATTR_UNUSED_39; #endif -#ifdef _LIB9P_GETATTR_UNUSED_28 - x = _LIB9P_GETATTR_UNUSED_28; +#ifdef _LIB9P_GETATTR_UNUSED_40 + x = _LIB9P_GETATTR_UNUSED_40; #endif -#ifdef _LIB9P_GETATTR_UNUSED_27 - x = _LIB9P_GETATTR_UNUSED_27; +#ifdef _LIB9P_GETATTR_UNUSED_41 + x = _LIB9P_GETATTR_UNUSED_41; #endif -#ifdef _LIB9P_GETATTR_UNUSED_26 - x = _LIB9P_GETATTR_UNUSED_26; +#ifdef _LIB9P_GETATTR_UNUSED_42 + x = _LIB9P_GETATTR_UNUSED_42; #endif -#ifdef _LIB9P_GETATTR_UNUSED_25 - x = _LIB9P_GETATTR_UNUSED_25; +#ifdef _LIB9P_GETATTR_UNUSED_43 + x = _LIB9P_GETATTR_UNUSED_43; #endif -#ifdef _LIB9P_GETATTR_UNUSED_24 - x = _LIB9P_GETATTR_UNUSED_24; +#ifdef _LIB9P_GETATTR_UNUSED_44 + x = _LIB9P_GETATTR_UNUSED_44; #endif -#ifdef _LIB9P_GETATTR_UNUSED_23 - x = _LIB9P_GETATTR_UNUSED_23; +#ifdef _LIB9P_GETATTR_UNUSED_45 + x = _LIB9P_GETATTR_UNUSED_45; #endif -#ifdef _LIB9P_GETATTR_UNUSED_22 - x = _LIB9P_GETATTR_UNUSED_22; +#ifdef _LIB9P_GETATTR_UNUSED_46 + x = _LIB9P_GETATTR_UNUSED_46; #endif -#ifdef _LIB9P_GETATTR_UNUSED_21 - x = _LIB9P_GETATTR_UNUSED_21; +#ifdef _LIB9P_GETATTR_UNUSED_47 + x = _LIB9P_GETATTR_UNUSED_47; #endif -#ifdef _LIB9P_GETATTR_UNUSED_20 - x = _LIB9P_GETATTR_UNUSED_20; +#ifdef _LIB9P_GETATTR_UNUSED_48 + x = _LIB9P_GETATTR_UNUSED_48; #endif -#ifdef _LIB9P_GETATTR_UNUSED_19 - x = _LIB9P_GETATTR_UNUSED_19; +#ifdef _LIB9P_GETATTR_UNUSED_49 + x = _LIB9P_GETATTR_UNUSED_49; #endif -#ifdef _LIB9P_GETATTR_UNUSED_18 - x = _LIB9P_GETATTR_UNUSED_18; +#ifdef _LIB9P_GETATTR_UNUSED_50 + x = _LIB9P_GETATTR_UNUSED_50; #endif -#ifdef _LIB9P_GETATTR_UNUSED_17 - x = _LIB9P_GETATTR_UNUSED_17; +#ifdef _LIB9P_GETATTR_UNUSED_51 + x = _LIB9P_GETATTR_UNUSED_51; #endif -#ifdef _LIB9P_GETATTR_UNUSED_16 - x = _LIB9P_GETATTR_UNUSED_16; +#ifdef _LIB9P_GETATTR_UNUSED_52 + x = _LIB9P_GETATTR_UNUSED_52; #endif -#ifdef _LIB9P_GETATTR_UNUSED_15 - x = _LIB9P_GETATTR_UNUSED_15; +#ifdef _LIB9P_GETATTR_UNUSED_53 + x = _LIB9P_GETATTR_UNUSED_53; #endif -#ifdef _LIB9P_GETATTR_UNUSED_14 - x = _LIB9P_GETATTR_UNUSED_14; +#ifdef _LIB9P_GETATTR_UNUSED_54 + x = _LIB9P_GETATTR_UNUSED_54; #endif -#ifdef LIB9P_GETATTR_DATA_VERSION - x = LIB9P_GETATTR_DATA_VERSION; +#ifdef _LIB9P_GETATTR_UNUSED_55 + x = _LIB9P_GETATTR_UNUSED_55; #endif -#ifdef LIB9P_GETATTR_GEN - x = LIB9P_GETATTR_GEN; +#ifdef _LIB9P_GETATTR_UNUSED_56 + x = _LIB9P_GETATTR_UNUSED_56; #endif -#ifdef LIB9P_GETATTR_BTIME - x = LIB9P_GETATTR_BTIME; +#ifdef _LIB9P_GETATTR_UNUSED_57 + x = _LIB9P_GETATTR_UNUSED_57; #endif -#ifdef LIB9P_GETATTR_BLOCKS - x = LIB9P_GETATTR_BLOCKS; +#ifdef _LIB9P_GETATTR_UNUSED_58 + x = _LIB9P_GETATTR_UNUSED_58; #endif -#ifdef LIB9P_GETATTR_SIZE - x = LIB9P_GETATTR_SIZE; +#ifdef _LIB9P_GETATTR_UNUSED_59 + x = _LIB9P_GETATTR_UNUSED_59; #endif -#ifdef LIB9P_GETATTR_INO - x = LIB9P_GETATTR_INO; +#ifdef _LIB9P_GETATTR_UNUSED_60 + x = _LIB9P_GETATTR_UNUSED_60; #endif -#ifdef LIB9P_GETATTR_CTIME - x = LIB9P_GETATTR_CTIME; +#ifdef _LIB9P_GETATTR_UNUSED_61 + x = _LIB9P_GETATTR_UNUSED_61; #endif -#ifdef LIB9P_GETATTR_MTIME - x = LIB9P_GETATTR_MTIME; +#ifdef _LIB9P_GETATTR_UNUSED_62 + x = _LIB9P_GETATTR_UNUSED_62; #endif -#ifdef LIB9P_GETATTR_ATIME - x = LIB9P_GETATTR_ATIME; +#ifdef _LIB9P_GETATTR_UNUSED_63 + x = _LIB9P_GETATTR_UNUSED_63; #endif -#ifdef LIB9P_GETATTR_RDEV - x = LIB9P_GETATTR_RDEV; +#ifdef _LIB9P_LOCK_FLAGS_UNUSED_10 + x = _LIB9P_LOCK_FLAGS_UNUSED_10; #endif -#ifdef LIB9P_GETATTR_GID - x = LIB9P_GETATTR_GID; +#ifdef _LIB9P_LOCK_FLAGS_UNUSED_11 + x = _LIB9P_LOCK_FLAGS_UNUSED_11; #endif -#ifdef LIB9P_GETATTR_UID - x = LIB9P_GETATTR_UID; +#ifdef _LIB9P_LOCK_FLAGS_UNUSED_12 + x = _LIB9P_LOCK_FLAGS_UNUSED_12; #endif -#ifdef LIB9P_GETATTR_NLINK - x = LIB9P_GETATTR_NLINK; +#ifdef _LIB9P_LOCK_FLAGS_UNUSED_13 + x = _LIB9P_LOCK_FLAGS_UNUSED_13; #endif -#ifdef LIB9P_GETATTR_MODE - x = LIB9P_GETATTR_MODE; +#ifdef _LIB9P_LOCK_FLAGS_UNUSED_14 + x = _LIB9P_LOCK_FLAGS_UNUSED_14; #endif -#ifdef LIB9P_GETATTR_BASIC - x = LIB9P_GETATTR_BASIC; +#ifdef _LIB9P_LOCK_FLAGS_UNUSED_15 + x = _LIB9P_LOCK_FLAGS_UNUSED_15; #endif -#ifdef LIB9P_GETATTR_ALL - x = LIB9P_GETATTR_ALL; +#ifdef _LIB9P_LOCK_FLAGS_UNUSED_16 + x = _LIB9P_LOCK_FLAGS_UNUSED_16; #endif -#ifdef _LIB9P_SETATTR_UNUSED_31 - x = _LIB9P_SETATTR_UNUSED_31; +#ifdef _LIB9P_LOCK_FLAGS_UNUSED_17 + x = _LIB9P_LOCK_FLAGS_UNUSED_17; #endif -#ifdef _LIB9P_SETATTR_UNUSED_30 - x = _LIB9P_SETATTR_UNUSED_30; +#ifdef _LIB9P_LOCK_FLAGS_UNUSED_18 + x = _LIB9P_LOCK_FLAGS_UNUSED_18; #endif -#ifdef _LIB9P_SETATTR_UNUSED_29 - x = _LIB9P_SETATTR_UNUSED_29; +#ifdef _LIB9P_LOCK_FLAGS_UNUSED_19 + x = _LIB9P_LOCK_FLAGS_UNUSED_19; #endif -#ifdef _LIB9P_SETATTR_UNUSED_28 - x = _LIB9P_SETATTR_UNUSED_28; +#ifdef _LIB9P_LOCK_FLAGS_UNUSED_2 + x = _LIB9P_LOCK_FLAGS_UNUSED_2; #endif -#ifdef _LIB9P_SETATTR_UNUSED_27 - x = _LIB9P_SETATTR_UNUSED_27; +#ifdef _LIB9P_LOCK_FLAGS_UNUSED_20 + x = _LIB9P_LOCK_FLAGS_UNUSED_20; #endif -#ifdef _LIB9P_SETATTR_UNUSED_26 - x = _LIB9P_SETATTR_UNUSED_26; +#ifdef _LIB9P_LOCK_FLAGS_UNUSED_21 + x = _LIB9P_LOCK_FLAGS_UNUSED_21; #endif -#ifdef _LIB9P_SETATTR_UNUSED_25 - x = _LIB9P_SETATTR_UNUSED_25; +#ifdef _LIB9P_LOCK_FLAGS_UNUSED_22 + x = _LIB9P_LOCK_FLAGS_UNUSED_22; #endif -#ifdef _LIB9P_SETATTR_UNUSED_24 - x = _LIB9P_SETATTR_UNUSED_24; +#ifdef _LIB9P_LOCK_FLAGS_UNUSED_23 + x = _LIB9P_LOCK_FLAGS_UNUSED_23; #endif -#ifdef _LIB9P_SETATTR_UNUSED_23 - x = _LIB9P_SETATTR_UNUSED_23; +#ifdef _LIB9P_LOCK_FLAGS_UNUSED_24 + x = _LIB9P_LOCK_FLAGS_UNUSED_24; #endif -#ifdef _LIB9P_SETATTR_UNUSED_22 - x = _LIB9P_SETATTR_UNUSED_22; +#ifdef _LIB9P_LOCK_FLAGS_UNUSED_25 + x = _LIB9P_LOCK_FLAGS_UNUSED_25; #endif -#ifdef _LIB9P_SETATTR_UNUSED_21 - x = _LIB9P_SETATTR_UNUSED_21; +#ifdef _LIB9P_LOCK_FLAGS_UNUSED_26 + x = _LIB9P_LOCK_FLAGS_UNUSED_26; #endif -#ifdef _LIB9P_SETATTR_UNUSED_20 - x = _LIB9P_SETATTR_UNUSED_20; +#ifdef _LIB9P_LOCK_FLAGS_UNUSED_27 + x = _LIB9P_LOCK_FLAGS_UNUSED_27; #endif -#ifdef _LIB9P_SETATTR_UNUSED_19 - x = _LIB9P_SETATTR_UNUSED_19; +#ifdef _LIB9P_LOCK_FLAGS_UNUSED_28 + x = _LIB9P_LOCK_FLAGS_UNUSED_28; #endif -#ifdef _LIB9P_SETATTR_UNUSED_18 - x = _LIB9P_SETATTR_UNUSED_18; +#ifdef _LIB9P_LOCK_FLAGS_UNUSED_29 + x = _LIB9P_LOCK_FLAGS_UNUSED_29; #endif -#ifdef _LIB9P_SETATTR_UNUSED_17 - x = _LIB9P_SETATTR_UNUSED_17; +#ifdef _LIB9P_LOCK_FLAGS_UNUSED_3 + x = _LIB9P_LOCK_FLAGS_UNUSED_3; #endif -#ifdef _LIB9P_SETATTR_UNUSED_16 - x = _LIB9P_SETATTR_UNUSED_16; +#ifdef _LIB9P_LOCK_FLAGS_UNUSED_30 + x = _LIB9P_LOCK_FLAGS_UNUSED_30; #endif -#ifdef _LIB9P_SETATTR_UNUSED_15 - x = _LIB9P_SETATTR_UNUSED_15; +#ifdef _LIB9P_LOCK_FLAGS_UNUSED_31 + x = _LIB9P_LOCK_FLAGS_UNUSED_31; #endif -#ifdef _LIB9P_SETATTR_UNUSED_14 - x = _LIB9P_SETATTR_UNUSED_14; +#ifdef _LIB9P_LOCK_FLAGS_UNUSED_4 + x = _LIB9P_LOCK_FLAGS_UNUSED_4; #endif -#ifdef _LIB9P_SETATTR_UNUSED_13 - x = _LIB9P_SETATTR_UNUSED_13; +#ifdef _LIB9P_LOCK_FLAGS_UNUSED_5 + x = _LIB9P_LOCK_FLAGS_UNUSED_5; #endif -#ifdef _LIB9P_SETATTR_UNUSED_12 - x = _LIB9P_SETATTR_UNUSED_12; +#ifdef _LIB9P_LOCK_FLAGS_UNUSED_6 + x = _LIB9P_LOCK_FLAGS_UNUSED_6; #endif -#ifdef _LIB9P_SETATTR_UNUSED_11 - x = _LIB9P_SETATTR_UNUSED_11; +#ifdef _LIB9P_LOCK_FLAGS_UNUSED_7 + x = _LIB9P_LOCK_FLAGS_UNUSED_7; #endif -#ifdef _LIB9P_SETATTR_UNUSED_10 - x = _LIB9P_SETATTR_UNUSED_10; +#ifdef _LIB9P_LOCK_FLAGS_UNUSED_8 + x = _LIB9P_LOCK_FLAGS_UNUSED_8; #endif -#ifdef _LIB9P_SETATTR_UNUSED_9 - x = _LIB9P_SETATTR_UNUSED_9; +#ifdef _LIB9P_LOCK_FLAGS_UNUSED_9 + x = _LIB9P_LOCK_FLAGS_UNUSED_9; #endif -#ifdef LIB9P_SETATTR_MTIME_SET - x = LIB9P_SETATTR_MTIME_SET; +#ifdef _LIB9P_LO_UNUSED_2 + x = _LIB9P_LO_UNUSED_2; #endif -#ifdef LIB9P_SETATTR_ATIME_SET - x = LIB9P_SETATTR_ATIME_SET; +#ifdef _LIB9P_LO_UNUSED_21 + x = _LIB9P_LO_UNUSED_21; #endif -#ifdef LIB9P_SETATTR_CTIME - x = LIB9P_SETATTR_CTIME; +#ifdef _LIB9P_LO_UNUSED_22 + x = _LIB9P_LO_UNUSED_22; #endif -#ifdef LIB9P_SETATTR_MTIME - x = LIB9P_SETATTR_MTIME; +#ifdef _LIB9P_LO_UNUSED_23 + x = _LIB9P_LO_UNUSED_23; #endif -#ifdef LIB9P_SETATTR_ATIME - x = LIB9P_SETATTR_ATIME; +#ifdef _LIB9P_LO_UNUSED_24 + x = _LIB9P_LO_UNUSED_24; #endif -#ifdef LIB9P_SETATTR_SIZE - x = LIB9P_SETATTR_SIZE; +#ifdef _LIB9P_LO_UNUSED_25 + x = _LIB9P_LO_UNUSED_25; #endif -#ifdef LIB9P_SETATTR_GID - x = LIB9P_SETATTR_GID; +#ifdef _LIB9P_LO_UNUSED_26 + x = _LIB9P_LO_UNUSED_26; #endif -#ifdef LIB9P_SETATTR_UID - x = LIB9P_SETATTR_UID; +#ifdef _LIB9P_LO_UNUSED_27 + x = _LIB9P_LO_UNUSED_27; #endif -#ifdef LIB9P_SETATTR_MODE - x = LIB9P_SETATTR_MODE; +#ifdef _LIB9P_LO_UNUSED_28 + x = _LIB9P_LO_UNUSED_28; #endif -#ifdef LIB9P_LOCK_TYPE_RDLCK - x = LIB9P_LOCK_TYPE_RDLCK; +#ifdef _LIB9P_LO_UNUSED_29 + x = _LIB9P_LO_UNUSED_29; #endif -#ifdef LIB9P_LOCK_TYPE_WRLCK - x = LIB9P_LOCK_TYPE_WRLCK; +#ifdef _LIB9P_LO_UNUSED_3 + x = _LIB9P_LO_UNUSED_3; #endif -#ifdef LIB9P_LOCK_TYPE_UNLCK - x = LIB9P_LOCK_TYPE_UNLCK; +#ifdef _LIB9P_LO_UNUSED_30 + x = _LIB9P_LO_UNUSED_30; #endif -#ifdef _LIB9P_LOCK_FLAGS_UNUSED_31 - x = _LIB9P_LOCK_FLAGS_UNUSED_31; +#ifdef _LIB9P_LO_UNUSED_31 + x = _LIB9P_LO_UNUSED_31; #endif -#ifdef _LIB9P_LOCK_FLAGS_UNUSED_30 - x = _LIB9P_LOCK_FLAGS_UNUSED_30; +#ifdef _LIB9P_LO_UNUSED_4 + x = _LIB9P_LO_UNUSED_4; #endif -#ifdef _LIB9P_LOCK_FLAGS_UNUSED_29 - x = _LIB9P_LOCK_FLAGS_UNUSED_29; +#ifdef _LIB9P_LO_UNUSED_5 + x = _LIB9P_LO_UNUSED_5; #endif -#ifdef _LIB9P_LOCK_FLAGS_UNUSED_28 - x = _LIB9P_LOCK_FLAGS_UNUSED_28; +#ifdef _LIB9P_MODE_UNUSED_16 + x = _LIB9P_MODE_UNUSED_16; #endif -#ifdef _LIB9P_LOCK_FLAGS_UNUSED_27 - x = _LIB9P_LOCK_FLAGS_UNUSED_27; +#ifdef _LIB9P_MODE_UNUSED_17 + x = _LIB9P_MODE_UNUSED_17; #endif -#ifdef _LIB9P_LOCK_FLAGS_UNUSED_26 - x = _LIB9P_LOCK_FLAGS_UNUSED_26; +#ifdef _LIB9P_MODE_UNUSED_18 + x = _LIB9P_MODE_UNUSED_18; #endif -#ifdef _LIB9P_LOCK_FLAGS_UNUSED_25 - x = _LIB9P_LOCK_FLAGS_UNUSED_25; +#ifdef _LIB9P_MODE_UNUSED_19 + x = _LIB9P_MODE_UNUSED_19; #endif -#ifdef _LIB9P_LOCK_FLAGS_UNUSED_24 - x = _LIB9P_LOCK_FLAGS_UNUSED_24; +#ifdef _LIB9P_MODE_UNUSED_20 + x = _LIB9P_MODE_UNUSED_20; #endif -#ifdef _LIB9P_LOCK_FLAGS_UNUSED_23 - x = _LIB9P_LOCK_FLAGS_UNUSED_23; +#ifdef _LIB9P_MODE_UNUSED_21 + x = _LIB9P_MODE_UNUSED_21; #endif -#ifdef _LIB9P_LOCK_FLAGS_UNUSED_22 - x = _LIB9P_LOCK_FLAGS_UNUSED_22; +#ifdef _LIB9P_MODE_UNUSED_22 + x = _LIB9P_MODE_UNUSED_22; #endif -#ifdef _LIB9P_LOCK_FLAGS_UNUSED_21 - x = _LIB9P_LOCK_FLAGS_UNUSED_21; +#ifdef _LIB9P_MODE_UNUSED_23 + x = _LIB9P_MODE_UNUSED_23; #endif -#ifdef _LIB9P_LOCK_FLAGS_UNUSED_20 - x = _LIB9P_LOCK_FLAGS_UNUSED_20; +#ifdef _LIB9P_MODE_UNUSED_24 + x = _LIB9P_MODE_UNUSED_24; #endif -#ifdef _LIB9P_LOCK_FLAGS_UNUSED_19 - x = _LIB9P_LOCK_FLAGS_UNUSED_19; +#ifdef _LIB9P_MODE_UNUSED_25 + x = _LIB9P_MODE_UNUSED_25; #endif -#ifdef _LIB9P_LOCK_FLAGS_UNUSED_18 - x = _LIB9P_LOCK_FLAGS_UNUSED_18; +#ifdef _LIB9P_MODE_UNUSED_26 + x = _LIB9P_MODE_UNUSED_26; #endif -#ifdef _LIB9P_LOCK_FLAGS_UNUSED_17 - x = _LIB9P_LOCK_FLAGS_UNUSED_17; +#ifdef _LIB9P_MODE_UNUSED_27 + x = _LIB9P_MODE_UNUSED_27; #endif -#ifdef _LIB9P_LOCK_FLAGS_UNUSED_16 - x = _LIB9P_LOCK_FLAGS_UNUSED_16; +#ifdef _LIB9P_MODE_UNUSED_28 + x = _LIB9P_MODE_UNUSED_28; #endif -#ifdef _LIB9P_LOCK_FLAGS_UNUSED_15 - x = _LIB9P_LOCK_FLAGS_UNUSED_15; +#ifdef _LIB9P_MODE_UNUSED_29 + x = _LIB9P_MODE_UNUSED_29; #endif -#ifdef _LIB9P_LOCK_FLAGS_UNUSED_14 - x = _LIB9P_LOCK_FLAGS_UNUSED_14; +#ifdef _LIB9P_MODE_UNUSED_30 + x = _LIB9P_MODE_UNUSED_30; #endif -#ifdef _LIB9P_LOCK_FLAGS_UNUSED_13 - x = _LIB9P_LOCK_FLAGS_UNUSED_13; +#ifdef _LIB9P_MODE_UNUSED_31 + x = _LIB9P_MODE_UNUSED_31; #endif -#ifdef _LIB9P_LOCK_FLAGS_UNUSED_12 - x = _LIB9P_LOCK_FLAGS_UNUSED_12; +#ifdef _LIB9P_O_RESERVED_CEXEC + x = _LIB9P_O_RESERVED_CEXEC; #endif -#ifdef _LIB9P_LOCK_FLAGS_UNUSED_11 - x = _LIB9P_LOCK_FLAGS_UNUSED_11; +#ifdef _LIB9P_O_UNUSED_2 + x = _LIB9P_O_UNUSED_2; #endif -#ifdef _LIB9P_LOCK_FLAGS_UNUSED_10 - x = _LIB9P_LOCK_FLAGS_UNUSED_10; +#ifdef _LIB9P_O_UNUSED_3 + x = _LIB9P_O_UNUSED_3; #endif -#ifdef _LIB9P_LOCK_FLAGS_UNUSED_9 - x = _LIB9P_LOCK_FLAGS_UNUSED_9; +#ifdef _LIB9P_O_UNUSED_7 + x = _LIB9P_O_UNUSED_7; #endif -#ifdef _LIB9P_LOCK_FLAGS_UNUSED_8 - x = _LIB9P_LOCK_FLAGS_UNUSED_8; +#ifdef _LIB9P_QT_PLAN9_MOUNT + x = _LIB9P_QT_PLAN9_MOUNT; #endif -#ifdef _LIB9P_LOCK_FLAGS_UNUSED_7 - x = _LIB9P_LOCK_FLAGS_UNUSED_7; +#ifdef _LIB9P_QT_UNUSED_0 + x = _LIB9P_QT_UNUSED_0; #endif -#ifdef _LIB9P_LOCK_FLAGS_UNUSED_6 - x = _LIB9P_LOCK_FLAGS_UNUSED_6; +#ifdef _LIB9P_SETATTR_UNUSED_10 + x = _LIB9P_SETATTR_UNUSED_10; #endif -#ifdef _LIB9P_LOCK_FLAGS_UNUSED_5 - x = _LIB9P_LOCK_FLAGS_UNUSED_5; +#ifdef _LIB9P_SETATTR_UNUSED_11 + x = _LIB9P_SETATTR_UNUSED_11; #endif -#ifdef _LIB9P_LOCK_FLAGS_UNUSED_4 - x = _LIB9P_LOCK_FLAGS_UNUSED_4; +#ifdef _LIB9P_SETATTR_UNUSED_12 + x = _LIB9P_SETATTR_UNUSED_12; #endif -#ifdef _LIB9P_LOCK_FLAGS_UNUSED_3 - x = _LIB9P_LOCK_FLAGS_UNUSED_3; +#ifdef _LIB9P_SETATTR_UNUSED_13 + x = _LIB9P_SETATTR_UNUSED_13; #endif -#ifdef _LIB9P_LOCK_FLAGS_UNUSED_2 - x = _LIB9P_LOCK_FLAGS_UNUSED_2; +#ifdef _LIB9P_SETATTR_UNUSED_14 + x = _LIB9P_SETATTR_UNUSED_14; #endif -#ifdef LIB9P_LOCK_FLAGS_RECLAIM - x = LIB9P_LOCK_FLAGS_RECLAIM; +#ifdef _LIB9P_SETATTR_UNUSED_15 + x = _LIB9P_SETATTR_UNUSED_15; #endif -#ifdef LIB9P_LOCK_FLAGS_BLOCK - x = LIB9P_LOCK_FLAGS_BLOCK; +#ifdef _LIB9P_SETATTR_UNUSED_16 + x = _LIB9P_SETATTR_UNUSED_16; #endif -#ifdef LIB9P_LOCK_STATUS_SUCCESS - x = LIB9P_LOCK_STATUS_SUCCESS; +#ifdef _LIB9P_SETATTR_UNUSED_17 + x = _LIB9P_SETATTR_UNUSED_17; #endif -#ifdef LIB9P_LOCK_STATUS_BLOCKED - x = LIB9P_LOCK_STATUS_BLOCKED; +#ifdef _LIB9P_SETATTR_UNUSED_18 + x = _LIB9P_SETATTR_UNUSED_18; #endif -#ifdef LIB9P_LOCK_STATUS_ERROR - x = LIB9P_LOCK_STATUS_ERROR; +#ifdef _LIB9P_SETATTR_UNUSED_19 + x = _LIB9P_SETATTR_UNUSED_19; #endif -#ifdef LIB9P_LOCK_STATUS_GRACE - x = LIB9P_LOCK_STATUS_GRACE; +#ifdef _LIB9P_SETATTR_UNUSED_20 + x = _LIB9P_SETATTR_UNUSED_20; #endif -#ifdef LIB9P_TMSG_MAX_IOV - x = LIB9P_TMSG_MAX_IOV; +#ifdef _LIB9P_SETATTR_UNUSED_21 + x = _LIB9P_SETATTR_UNUSED_21; #endif -#ifdef LIB9P_TMSG_MAX_IOV - x = LIB9P_TMSG_MAX_IOV; +#ifdef _LIB9P_SETATTR_UNUSED_22 + x = _LIB9P_SETATTR_UNUSED_22; #endif -#ifdef LIB9P_TMSG_MAX_COPY - x = LIB9P_TMSG_MAX_COPY; +#ifdef _LIB9P_SETATTR_UNUSED_23 + x = _LIB9P_SETATTR_UNUSED_23; #endif -#ifdef LIB9P_TMSG_MAX_COPY - x = LIB9P_TMSG_MAX_COPY; +#ifdef _LIB9P_SETATTR_UNUSED_24 + x = _LIB9P_SETATTR_UNUSED_24; #endif -#ifdef LIB9P_TMSG_MAX_COPY - x = LIB9P_TMSG_MAX_COPY; +#ifdef _LIB9P_SETATTR_UNUSED_25 + x = _LIB9P_SETATTR_UNUSED_25; #endif -#ifdef LIB9P_TMSG_MAX_COPY - x = LIB9P_TMSG_MAX_COPY; +#ifdef _LIB9P_SETATTR_UNUSED_26 + x = _LIB9P_SETATTR_UNUSED_26; #endif -#ifdef LIB9P_TMSG_MAX_COPY - x = LIB9P_TMSG_MAX_COPY; +#ifdef _LIB9P_SETATTR_UNUSED_27 + x = _LIB9P_SETATTR_UNUSED_27; #endif -#ifdef LIB9P_TMSG_MAX_COPY - x = LIB9P_TMSG_MAX_COPY; +#ifdef _LIB9P_SETATTR_UNUSED_28 + x = _LIB9P_SETATTR_UNUSED_28; #endif -#ifdef LIB9P_RMSG_MAX_IOV - x = LIB9P_RMSG_MAX_IOV; +#ifdef _LIB9P_SETATTR_UNUSED_29 + x = _LIB9P_SETATTR_UNUSED_29; #endif -#ifdef LIB9P_RMSG_MAX_IOV - x = LIB9P_RMSG_MAX_IOV; +#ifdef _LIB9P_SETATTR_UNUSED_30 + x = _LIB9P_SETATTR_UNUSED_30; #endif -#ifdef LIB9P_RMSG_MAX_IOV - x = LIB9P_RMSG_MAX_IOV; +#ifdef _LIB9P_SETATTR_UNUSED_31 + x = _LIB9P_SETATTR_UNUSED_31; #endif -#ifdef LIB9P_RMSG_MAX_COPY - x = LIB9P_RMSG_MAX_COPY; +#ifdef _LIB9P_SETATTR_UNUSED_9 + x = _LIB9P_SETATTR_UNUSED_9; #endif return 0; } diff --git a/lib9p/tests/test_compile.c.gen b/lib9p/tests/test_compile.c.gen index 7ffbd77..eb89c54 100755 --- a/lib9p/tests/test_compile.c.gen +++ b/lib9p/tests/test_compile.c.gen @@ -13,7 +13,7 @@ outfile=$2 echo "#include <lib9p/core.h>" echo 'int main(void) {' echo ' [[gnu::unused]] uint64_t x;' - sed -nE 's/^\s*#\s*define\s*(\S[^ (]*)\s.*/#ifdef \1\n x = \1;\n#endif/p' <"$generated_h" + <"$generated_h" sed -nE 's/^\s*#\s*define\s*(\S[^ (]*)\s.*/\1/p' | LC_COLLATE=C sort -u | sed 's/.*/#ifdef &\n x = &;\n#endif/' echo ' return 0;' echo '}' } >"$outfile" |