+char *get_name_idx(char *, int);
+int set_name_idx(char *, size_t, char *, int);
+
+extern char client_sockaddr_str[]; /* used with --client option */
+
+extern struct fio_option fio_options[FIO_MAX_OPTS];
+
+extern int __fio_option_is_set(struct thread_options *, unsigned int off);
+
+#define fio_option_is_set(__td, name) \
+({ \
+ const unsigned int off = td_var_offset(name); \
+ int __r = __fio_option_is_set((__td), off); \
+ if (__r == -1) { \
+ dprint(FD_PARSE, "option %s/%u not found in map\n", \
+ __fio_stringify(name), off); \
+ __r = 0; \
+ } \
+ __r; \
+})
+
+extern void fio_option_mark_set(struct thread_options *, struct fio_option *);