Debian Codegraph @

ifconfig/system/qnx.c

raw
1 /* qnx.c -- QNX specific code for ifconfig
2 Copyright (C) 2001-2026 Free Software Foundation, Inc.
3
4 This file is part of GNU Inetutils.
5
6 GNU Inetutils is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or (at
9 your option) any later version.
10
11 GNU Inetutils is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see `http://www.gnu.org/licenses/'. */
18
19 /* Written by Marcus Brinkmann. */
20
21 #include <config.h>
22 #include <stdio.h>
23 #include <errno.h>
24
25 #include <unistd.h>
26
27 #if STDC_HEADERS
28 # include <stdlib.h>
29 #endif
30
31 #include <sys/ioctl.h>
32 #include <net/if.h>
33
34 #include "../ifconfig.h"
35
36
37 /* Output format stuff. */
38
39 const char *system_default_format = "unix";
40
41
42 /* Argument parsing stuff. */
43
44 const char *system_help;
45
46 struct argp_child system_argp_child;
47
48 int
49 system_parse_opt (struct ifconfig **ifp, char option, char *optarg)
50 {
51 return 0;
52 }
53
54 int
55 system_parse_opt_rest (struct ifconfig **ifp, int argc, char *argv[])
56 {
57 return 0;
58 }
59
60 int
61 system_preconfigure (int sfd MAYBE_UNUSED, struct ifreq *ifr MAYBE_UNUSED)
62 {
63 return 0;
64 }
65
66 int
67 system_configure (int sfd, struct ifreq *ifr, struct system_ifconfig *ifs)
68 {
69 return 0;
70 }
71
72
73
74 /* System hooks. */
75
76 struct if_nameindex *(*system_if_nameindex) (void) = if_nameindex;