extern const struct xlat addrfams[];
extern const struct xlat struct_user_offsets[];
extern const struct xlat open_access_modes[];
+extern const struct xlat whence_codes[];
/* Format of syscall return values */
#define RVAL_DECIMAL 000 /* decimal format */
};
#endif
-static const struct xlat whence[] = {
- { SEEK_SET, "SEEK_SET" },
- { SEEK_CUR, "SEEK_CUR" },
- { SEEK_END, "SEEK_END" },
- { 0, NULL },
-};
-
static const struct xlat perf_event_open_flags[] = {
#ifdef PERF_FLAG_FD_NO_GROUP
{ PERF_FLAG_FD_NO_GROUP, "PERF_FLAG_FD_NO_GROUP" },
tprints("{type=");
printxval(lockfcmds, fl.l_type, "F_???");
tprints(", whence=");
- printxval(whence, fl.l_whence, "SEEK_???");
+ printxval(whence_codes, fl.l_whence, "SEEK_???");
tprintf(", start=%ld, len=%ld", fl.l_start, fl.l_len);
if (getlk)
tprintf(", pid=%lu}", (unsigned long) fl.l_pid);
tprints("{type=");
printxval(lockfcmds, fl.l_type, "F_???");
tprints(", whence=");
- printxval(whence, fl.l_whence, "SEEK_???");
+ printxval(whence_codes, fl.l_whence, "SEEK_???");
tprintf(", start=%lld, len=%lld", (long long) fl.l_start, (long long) fl.l_len);
if (getlk)
tprintf(", pid=%lu}", (unsigned long) fl.l_pid);
return RVAL_OCTAL;
}
-static const struct xlat whence_codes[] = {
+const struct xlat whence_codes[] = {
{ SEEK_SET, "SEEK_SET" },
{ SEEK_CUR, "SEEK_CUR" },
{ SEEK_END, "SEEK_END" },
+#ifdef SEEK_DATA
+ { SEEK_DATA, "SEEK_DATA" },
+#endif
+#ifdef SEEK_HOLE
+ { SEEK_HOLE, "SEEK_HOLE" },
+#endif
{ 0, NULL },
};