main.h (396665e8320987ff43b20a62a6a1cdae57aa1cc1) | main.h (9cbe1f581d17baff7e93936feb041c90b29eb6a8) |
---|---|
1/* 2 * Copyright (C) 2017 Netronome Systems, Inc. 3 * 4 * This software is dual licensed under the GNU General License Version 2, 5 * June 1991 as shown in the file COPYING in the top-level directory of this 6 * source tree or the BSD 2-Clause License provided below. You have the 7 * option to license this software under the complete terms of either license. 8 * --- 53 unchanged lines hidden (view full) --- 62 BPF_OBJ_UNKNOWN, 63 BPF_OBJ_PROG, 64 BPF_OBJ_MAP, 65}; 66 67extern const char *bin_name; 68 69bool is_prefix(const char *pfx, const char *str); | 1/* 2 * Copyright (C) 2017 Netronome Systems, Inc. 3 * 4 * This software is dual licensed under the GNU General License Version 2, 5 * June 1991 as shown in the file COPYING in the top-level directory of this 6 * source tree or the BSD 2-Clause License provided below. You have the 7 * option to license this software under the complete terms of either license. 8 * --- 53 unchanged lines hidden (view full) --- 62 BPF_OBJ_UNKNOWN, 63 BPF_OBJ_PROG, 64 BPF_OBJ_MAP, 65}; 66 67extern const char *bin_name; 68 69bool is_prefix(const char *pfx, const char *str); |
70void print_hex(void *arg, unsigned int n, const char *sep); | 70void fprint_hex(FILE *f, void *arg, unsigned int n, const char *sep); |
71void usage(void) __attribute__((noreturn)); 72 73struct cmd { 74 const char *cmd; 75 int (*func)(int argc, char **argv); 76}; 77 78int cmd_select(const struct cmd *cmds, int argc, char **argv, --- 16 unchanged lines hidden --- | 71void usage(void) __attribute__((noreturn)); 72 73struct cmd { 74 const char *cmd; 75 int (*func)(int argc, char **argv); 76}; 77 78int cmd_select(const struct cmd *cmds, int argc, char **argv, --- 16 unchanged lines hidden --- |