/third_party/libnl/lib/route/ |
D | act.c | 31 struct rtnl_act * rtnl_act_next(struct rtnl_act *act) in rtnl_act_next() argument 33 if (act == NULL) { in rtnl_act_next() 37 return act->a_next; in rtnl_act_next() 63 int rtnl_act_remove(struct rtnl_act **head, struct rtnl_act *act) in rtnl_act_remove() argument 68 if (a == act) in rtnl_act_remove() 79 static int rtnl_act_fill_one(struct nl_msg *msg, struct rtnl_act *act, int order) in rtnl_act_fill_one() argument 81 struct rtnl_tc *tc = TC_CAST(act); in rtnl_act_fill_one() 116 int rtnl_act_fill(struct nl_msg *msg, int attrtype, struct rtnl_act *act) in rtnl_act_fill() argument 118 struct rtnl_act *p_act = act; in rtnl_act_fill() 137 static int rtnl_act_msg_build(struct rtnl_act *act, int type, int flags, in rtnl_act_msg_build() argument [all …]
|
/third_party/libnl/include/netlink/route/act/ |
D | vlan.h | 23 extern int rtnl_vlan_set_mode(struct rtnl_act *act, int mode); 24 extern int rtnl_vlan_get_mode(struct rtnl_act *act, int *out_mode); 25 extern int rtnl_vlan_set_action(struct rtnl_act *act, int action); 26 extern int rtnl_vlan_get_action(struct rtnl_act *act, int *out_action); 27 extern int rtnl_vlan_set_protocol(struct rtnl_act *act, uint16_t protocol); 28 extern int rtnl_vlan_get_protocol(struct rtnl_act *act, uint16_t *out_protocol); 29 extern int rtnl_vlan_set_vlan_id(struct rtnl_act *act, uint16_t vid); 30 extern int rtnl_vlan_get_vlan_id(struct rtnl_act *act, uint16_t *out_vid); 31 extern int rtnl_vlan_set_vlan_prio(struct rtnl_act *act, uint8_t prio); 32 extern int rtnl_vlan_get_vlan_prio(struct rtnl_act *act, uint8_t *out_prio);
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/ |
D | 8-19.c | 39 struct sigaction act; in main() local 41 act.sa_handler = SIGUSR1_handler; in main() 42 act.sa_flags = 0; in main() 43 sigemptyset(&act.sa_mask); in main() 44 sigaddset(&act.sa_mask, SIGUSR2); in main() 46 if (sigaction(SIGUSR1, &act, 0) == -1) { in main() 52 act.sa_handler = SIGUSR2_handler; in main() 53 act.sa_flags = 0; in main() 54 sigemptyset(&act.sa_mask); in main() 56 if (sigaction(SIGUSR2, &act, 0) == -1) { in main()
|
D | 8-5.c | 41 struct sigaction act; in main() local 43 act.sa_handler = SIGCONT_handler; in main() 44 act.sa_flags = 0; in main() 45 sigemptyset(&act.sa_mask); in main() 46 sigaddset(&act.sa_mask, SIGCHLD); in main() 47 if (sigaction(SIGCONT, &act, 0) == -1) { in main() 53 act.sa_handler = SIGCHLD_handler; in main() 54 act.sa_flags = 0; in main() 55 sigemptyset(&act.sa_mask); in main() 56 if (sigaction(SIGCHLD, &act, 0) == -1) { in main()
|
D | 8-11.c | 41 struct sigaction act; in main() local 43 act.sa_handler = SIGQUIT_handler; in main() 44 act.sa_flags = 0; in main() 45 sigemptyset(&act.sa_mask); in main() 46 sigaddset(&act.sa_mask, SIGPIPE); in main() 47 if (sigaction(SIGQUIT, &act, 0) == -1) { in main() 53 act.sa_handler = SIGPIPE_handler; in main() 54 act.sa_flags = 0; in main() 55 sigemptyset(&act.sa_mask); in main() 56 if (sigaction(SIGPIPE, &act, 0) == -1) { in main()
|
D | 8-1.c | 41 struct sigaction act; in main() local 43 act.sa_handler = SIGABRT_handler; in main() 44 act.sa_flags = 0; in main() 45 sigemptyset(&act.sa_mask); in main() 46 sigaddset(&act.sa_mask, SIGXFSZ); in main() 47 if (sigaction(SIGABRT, &act, 0) == -1) { in main() 53 act.sa_handler = SIGXFSZ_handler; in main() 54 act.sa_flags = 0; in main() 55 sigemptyset(&act.sa_mask); in main() 56 if (sigaction(SIGXFSZ, &act, 0) == -1) { in main()
|
D | 8-4.c | 41 struct sigaction act; in main() local 43 act.sa_handler = SIGCHLD_handler; in main() 44 act.sa_flags = 0; in main() 45 sigemptyset(&act.sa_mask); in main() 46 sigaddset(&act.sa_mask, SIGBUS); in main() 47 if (sigaction(SIGCHLD, &act, 0) == -1) { in main() 53 act.sa_handler = SIGBUS_handler; in main() 54 act.sa_flags = 0; in main() 55 sigemptyset(&act.sa_mask); in main() 56 if (sigaction(SIGBUS, &act, 0) == -1) { in main()
|
D | 8-22.c | 41 struct sigaction act; in main() local 43 act.sa_handler = SIGTRAP_handler; in main() 44 act.sa_flags = 0; in main() 45 sigemptyset(&act.sa_mask); in main() 46 sigaddset(&act.sa_mask, SIGSYS); in main() 47 if (sigaction(SIGTRAP, &act, 0) == -1) { in main() 53 act.sa_handler = SIGSYS_handler; in main() 54 act.sa_flags = 0; in main() 55 sigemptyset(&act.sa_mask); in main() 56 if (sigaction(SIGSYS, &act, 0) == -1) { in main()
|
D | 8-18.c | 41 struct sigaction act; in main() local 43 act.sa_handler = SIGUSR2_handler; in main() 44 act.sa_flags = 0; in main() 45 sigemptyset(&act.sa_mask); in main() 46 sigaddset(&act.sa_mask, SIGUSR1); in main() 47 if (sigaction(SIGUSR2, &act, 0) == -1) { in main() 53 act.sa_handler = SIGUSR1_handler; in main() 54 act.sa_flags = 0; in main() 55 sigemptyset(&act.sa_mask); in main() 56 if (sigaction(SIGUSR1, &act, 0) == -1) { in main()
|
D | 8-8.c | 41 struct sigaction act; in main() local 43 act.sa_handler = SIGILL_handler; in main() 44 act.sa_flags = 0; in main() 45 sigemptyset(&act.sa_mask); in main() 46 sigaddset(&act.sa_mask, SIGHUP); in main() 47 if (sigaction(SIGILL, &act, 0) == -1) { in main() 53 act.sa_handler = SIGHUP_handler; in main() 54 act.sa_flags = 0; in main() 55 sigemptyset(&act.sa_mask); in main() 56 if (sigaction(SIGHUP, &act, 0) == -1) { in main()
|
D | 8-9.c | 41 struct sigaction act; in main() local 43 act.sa_handler = SIGINT_handler; in main() 44 act.sa_flags = 0; in main() 45 sigemptyset(&act.sa_mask); in main() 46 sigaddset(&act.sa_mask, SIGILL); in main() 47 if (sigaction(SIGINT, &act, 0) == -1) { in main() 53 act.sa_handler = SIGILL_handler; in main() 54 act.sa_flags = 0; in main() 55 sigemptyset(&act.sa_mask); in main() 56 if (sigaction(SIGILL, &act, 0) == -1) { in main()
|
D | 8-20.c | 41 struct sigaction act; in main() local 43 act.sa_handler = SIGPROF_handler; in main() 44 act.sa_flags = 0; in main() 45 sigemptyset(&act.sa_mask); in main() 46 sigaddset(&act.sa_mask, SIGUSR2); in main() 47 if (sigaction(SIGPROF, &act, 0) == -1) { in main() 53 act.sa_handler = SIGUSR2_handler; in main() 54 act.sa_flags = 0; in main() 55 sigemptyset(&act.sa_mask); in main() 56 if (sigaction(SIGUSR2, &act, 0) == -1) { in main()
|
D | 8-12.c | 41 struct sigaction act; in main() local 43 act.sa_handler = SIGSEGV_handler; in main() 44 act.sa_flags = 0; in main() 45 sigemptyset(&act.sa_mask); in main() 46 sigaddset(&act.sa_mask, SIGQUIT); in main() 47 if (sigaction(SIGSEGV, &act, 0) == -1) { in main() 53 act.sa_handler = SIGQUIT_handler; in main() 54 act.sa_flags = 0; in main() 55 sigemptyset(&act.sa_mask); in main() 56 if (sigaction(SIGQUIT, &act, 0) == -1) { in main()
|
D | 8-13.c | 41 struct sigaction act; in main() local 43 act.sa_handler = SIGTERM_handler; in main() 44 act.sa_flags = 0; in main() 45 sigemptyset(&act.sa_mask); in main() 46 sigaddset(&act.sa_mask, SIGSEGV); in main() 47 if (sigaction(SIGTERM, &act, 0) == -1) { in main() 53 act.sa_handler = SIGSEGV_handler; in main() 54 act.sa_flags = 0; in main() 55 sigemptyset(&act.sa_mask); in main() 56 if (sigaction(SIGSEGV, &act, 0) == -1) { in main()
|
D | 8-16.c | 41 struct sigaction act; in main() local 43 act.sa_handler = SIGTTOU_handler; in main() 44 act.sa_flags = 0; in main() 45 sigemptyset(&act.sa_mask); in main() 46 sigaddset(&act.sa_mask, SIGTTIN); in main() 47 if (sigaction(SIGTTOU, &act, 0) == -1) { in main() 53 act.sa_handler = SIGTTIN_handler; in main() 54 act.sa_flags = 0; in main() 55 sigemptyset(&act.sa_mask); in main() 56 if (sigaction(SIGTTIN, &act, 0) == -1) { in main()
|
D | 8-14.c | 41 struct sigaction act; in main() local 43 act.sa_handler = SIGTSTP_handler; in main() 44 act.sa_flags = 0; in main() 45 sigemptyset(&act.sa_mask); in main() 46 sigaddset(&act.sa_mask, SIGTERM); in main() 47 if (sigaction(SIGTSTP, &act, 0) == -1) { in main() 53 act.sa_handler = SIGTERM_handler; in main() 54 act.sa_flags = 0; in main() 55 sigemptyset(&act.sa_mask); in main() 56 if (sigaction(SIGTERM, &act, 0) == -1) { in main()
|
D | 8-15.c | 41 struct sigaction act; in main() local 43 act.sa_handler = SIGTTIN_handler; in main() 44 act.sa_flags = 0; in main() 45 sigemptyset(&act.sa_mask); in main() 46 sigaddset(&act.sa_mask, SIGTSTP); in main() 47 if (sigaction(SIGTTIN, &act, 0) == -1) { in main() 53 act.sa_handler = SIGTSTP_handler; in main() 54 act.sa_flags = 0; in main() 55 sigemptyset(&act.sa_mask); in main() 56 if (sigaction(SIGTSTP, &act, 0) == -1) { in main()
|
D | 8-26.c | 41 struct sigaction act; in main() local 43 act.sa_handler = SIGXFSZ_handler; in main() 44 act.sa_flags = 0; in main() 45 sigemptyset(&act.sa_mask); in main() 46 sigaddset(&act.sa_mask, SIGXCPU); in main() 47 if (sigaction(SIGXFSZ, &act, 0) == -1) { in main() 53 act.sa_handler = SIGXCPU_handler; in main() 54 act.sa_flags = 0; in main() 55 sigemptyset(&act.sa_mask); in main() 56 if (sigaction(SIGXCPU, &act, 0) == -1) { in main()
|
D | 8-7.c | 41 struct sigaction act; in main() local 43 act.sa_handler = SIGHUP_handler; in main() 44 act.sa_flags = 0; in main() 45 sigemptyset(&act.sa_mask); in main() 46 sigaddset(&act.sa_mask, SIGFPE); in main() 47 if (sigaction(SIGHUP, &act, 0) == -1) { in main() 53 act.sa_handler = SIGFPE_handler; in main() 54 act.sa_flags = 0; in main() 55 sigemptyset(&act.sa_mask); in main() 56 if (sigaction(SIGFPE, &act, 0) == -1) { in main()
|
D | 8-10.c | 41 struct sigaction act; in main() local 43 act.sa_handler = SIGPIPE_handler; in main() 44 act.sa_flags = 0; in main() 45 sigemptyset(&act.sa_mask); in main() 46 sigaddset(&act.sa_mask, SIGINT); in main() 47 if (sigaction(SIGPIPE, &act, 0) == -1) { in main() 53 act.sa_handler = SIGINT_handler; in main() 54 act.sa_flags = 0; in main() 55 sigemptyset(&act.sa_mask); in main() 56 if (sigaction(SIGINT, &act, 0) == -1) { in main()
|
D | 8-6.c | 41 struct sigaction act; in main() local 43 act.sa_handler = SIGFPE_handler; in main() 44 act.sa_flags = 0; in main() 45 sigemptyset(&act.sa_mask); in main() 46 sigaddset(&act.sa_mask, SIGCONT); in main() 47 if (sigaction(SIGFPE, &act, 0) == -1) { in main() 53 act.sa_handler = SIGCONT_handler; in main() 54 act.sa_flags = 0; in main() 55 sigemptyset(&act.sa_mask); in main() 56 if (sigaction(SIGCONT, &act, 0) == -1) { in main()
|
D | 8-24.c | 41 struct sigaction act; in main() local 43 act.sa_handler = SIGVTALRM_handler; in main() 44 act.sa_flags = 0; in main() 45 sigemptyset(&act.sa_mask); in main() 46 sigaddset(&act.sa_mask, SIGURG); in main() 47 if (sigaction(SIGVTALRM, &act, 0) == -1) { in main() 53 act.sa_handler = SIGURG_handler; in main() 54 act.sa_flags = 0; in main() 55 sigemptyset(&act.sa_mask); in main() 56 if (sigaction(SIGURG, &act, 0) == -1) { in main()
|
D | 8-21.c | 41 struct sigaction act; in main() local 43 act.sa_handler = SIGSYS_handler; in main() 44 act.sa_flags = 0; in main() 45 sigemptyset(&act.sa_mask); in main() 46 sigaddset(&act.sa_mask, SIGPROF); in main() 47 if (sigaction(SIGSYS, &act, 0) == -1) { in main() 53 act.sa_handler = SIGPROF_handler; in main() 54 act.sa_flags = 0; in main() 55 sigemptyset(&act.sa_mask); in main() 56 if (sigaction(SIGPROF, &act, 0) == -1) { in main()
|
D | 8-23.c | 41 struct sigaction act; in main() local 43 act.sa_handler = SIGURG_handler; in main() 44 act.sa_flags = 0; in main() 45 sigemptyset(&act.sa_mask); in main() 46 sigaddset(&act.sa_mask, SIGTRAP); in main() 47 if (sigaction(SIGURG, &act, 0) == -1) { in main() 53 act.sa_handler = SIGTRAP_handler; in main() 54 act.sa_flags = 0; in main() 55 sigemptyset(&act.sa_mask); in main() 56 if (sigaction(SIGTRAP, &act, 0) == -1) { in main()
|
D | 8-17.c | 41 struct sigaction act; in main() local 43 act.sa_handler = SIGUSR1_handler; in main() 44 act.sa_flags = 0; in main() 45 sigemptyset(&act.sa_mask); in main() 46 sigaddset(&act.sa_mask, SIGTTOU); in main() 47 if (sigaction(SIGUSR1, &act, 0) == -1) { in main() 53 act.sa_handler = SIGTTOU_handler; in main() 54 act.sa_flags = 0; in main() 55 sigemptyset(&act.sa_mask); in main() 56 if (sigaction(SIGTTOU, &act, 0) == -1) { in main()
|