Lines Matching +defs:term +defs:h
28 #include <sys/types.h>
29 #include <sys/disk.h>
30 #include <sys/ioctl.h>
31 #include <sys/stat.h>
32 #include <dirent.h>
33 #include <dlfcn.h>
34 #include <err.h>
35 #include <errno.h>
36 #include <fcntl.h>
37 #include <getopt.h>
38 #include <inttypes.h>
39 #include <libgen.h>
40 #include <limits.h>
41 #include <stdbool.h>
42 #include <stdio.h>
43 #include <stdlib.h>
44 #include <string.h>
45 #include <termios.h>
46 #include <unistd.h>
48 #include <userboot.h>
53 struct termios term, oldterm;
271 test_close(void *arg, void *h)
273 struct test_file *tf = h;
285 test_isdir(void *arg, void *h)
287 struct test_file *tf = h;
293 test_read(void *arg, void *h, void *dst, size_t size, size_t *resid_return)
295 struct test_file *tf = h;
308 test_readdir(void *arg, void *h, uint32_t *fileno_return, uint8_t *type_return,
311 struct test_file *tf = h;
335 test_seek(void *arg, void *h, uint64_t offset, int whence)
337 struct test_file *tf = h;
347 test_stat(void *arg, void *h, struct stat *stp)
349 struct test_file *tf = h;
566 printf("usage: [-b <userboot shared object>] [-d <disk image path>] [-h <host filesystem path>\n");
573 void *h;
581 while ((opt = getopt(argc, argv, "wb:d:h:")) != -1) {
596 case 'h':
609 h = dlopen(userboot_obj, RTLD_LOCAL);
610 if (!h) {
614 func = dlsym(h, "loader_main");
623 tcgetattr(0, &term);
624 oldterm = term;
625 term.c_iflag &= ~(ICRNL);
626 term.c_lflag &= ~(ICANON|ECHO);
627 tcsetattr(0, TCSAFLUSH, &term);