Debian Codegraph @

templates/man3/if_nameindex.3.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:27+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "if_nameindex"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-08"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr ""
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr ""
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid ""
50 "if_nameindex, if_freenameindex - get network interface names and indexes"
51 msgstr ""
52
53 #. type: SH
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 #, no-wrap
57 msgid "LIBRARY"
58 msgstr ""
59
60 #. type: Plain text
61 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
62 #: opensuse-leap-16-1 opensuse-tumbleweed
63 msgid "Standard C library (I<libc>,\\ I<-lc>)"
64 msgstr ""
65
66 #. type: SH
67 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
68 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
69 #, no-wrap
70 msgid "SYNOPSIS"
71 msgstr ""
72
73 #. type: Plain text
74 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
75 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
76 #, no-wrap
77 msgid "B<#include E<lt>net/if.hE<gt>>\n"
78 msgstr ""
79
80 #. type: Plain text
81 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
82 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
83 #, no-wrap
84 msgid ""
85 "B<struct if_nameindex *if_nameindex(>I<void>B<);>\n"
86 "B<void if_freenameindex(struct if_nameindex *>I<ptr>B<);>\n"
87 msgstr ""
88
89 #. type: SH
90 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
91 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
92 #, no-wrap
93 msgid "DESCRIPTION"
94 msgstr ""
95
96 #. type: Plain text
97 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
98 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
99 msgid ""
100 "The B<if_nameindex>() function returns an array of I<if_nameindex> "
101 "structures, each containing information about one of the network interfaces "
102 "on the local system. The I<if_nameindex> structure contains at least the "
103 "following entries:"
104 msgstr ""
105
106 #. type: Plain text
107 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
108 #: opensuse-tumbleweed
109 #, no-wrap
110 msgid ""
111 "unsigned int if_index; /* Index of interface (1, 2, ...) */\n"
112 "char *if_name; /* Null-terminated name (\"eth0\", etc.) */\n"
113 msgstr ""
114
115 #. type: Plain text
116 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
117 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
118 msgid ""
119 "The I<if_index> field contains the interface index. The I<if_name> field "
120 "points to the null-terminated interface name. The end of the array is "
121 "indicated by entry with I<if_index> set to zero and I<if_name> set to NULL."
122 msgstr ""
123
124 #. type: Plain text
125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
127 msgid ""
128 "The data structure returned by B<if_nameindex>() is dynamically allocated "
129 "and should be freed using B<if_freenameindex>() when no longer needed."
130 msgstr ""
131
132 #. type: SH
133 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
134 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
135 #, no-wrap
136 msgid "RETURN VALUE"
137 msgstr ""
138
139 #. type: Plain text
140 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
141 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
142 msgid ""
143 "On success, B<if_nameindex>() returns pointer to the array; on error, NULL "
144 "is returned, and I<errno> is set to indicate the error."
145 msgstr ""
146
147 #. type: SH
148 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
149 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
150 #, no-wrap
151 msgid "ERRORS"
152 msgstr ""
153
154 #. type: Plain text
155 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
156 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
157 msgid "B<if_nameindex>() may fail and set I<errno> if:"
158 msgstr ""
159
160 #. type: TP
161 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
162 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
163 #, no-wrap
164 msgid "B<ENOBUFS>"
165 msgstr ""
166
167 #. type: Plain text
168 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
169 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
170 msgid "Insufficient resources available."
171 msgstr ""
172
173 #. type: Plain text
174 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
175 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
176 msgid ""
177 "B<if_nameindex>() may also fail for any of the errors specified for "
178 "B<socket>(2), B<bind>(2), B<ioctl>(2), B<getsockname>(2), B<recvmsg>(2), "
179 "B<sendto>(2), or B<malloc>(3)."
180 msgstr ""
181
182 #. type: SH
183 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
184 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
185 #, no-wrap
186 msgid "ATTRIBUTES"
187 msgstr ""
188
189 #. type: Plain text
190 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
191 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
192 msgid ""
193 "For an explanation of the terms used in this section, see B<attributes>(7)."
194 msgstr ""
195
196 #. type: tbl table
197 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
198 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
199 #, no-wrap
200 msgid "Interface"
201 msgstr ""
202
203 #. type: tbl table
204 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
205 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
206 #, no-wrap
207 msgid "Attribute"
208 msgstr ""
209
210 #. type: tbl table
211 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
212 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
213 #, no-wrap
214 msgid "Value"
215 msgstr ""
216
217 #. type: tbl table
218 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
219 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
220 #, no-wrap
221 msgid ".na\n"
222 msgstr ""
223
224 #. type: tbl table
225 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
226 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
227 #, no-wrap
228 msgid ".nh\n"
229 msgstr ""
230
231 #. type: tbl table
232 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
233 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
234 #, no-wrap
235 msgid ""
236 "B<if_nameindex>(),\n"
237 "B<if_freenameindex>()"
238 msgstr ""
239
240 #. type: tbl table
241 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
242 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
243 #, no-wrap
244 msgid "Thread safety"
245 msgstr ""
246
247 #. type: tbl table
248 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
249 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
250 #, no-wrap
251 msgid "MT-Safe"
252 msgstr ""
253
254 #. type: SH
255 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
256 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
257 #, no-wrap
258 msgid "STANDARDS"
259 msgstr ""
260
261 #. type: Plain text
262 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
263 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
264 msgid "POSIX.1-2008, RFC\\ 3493."
265 msgstr ""
266
267 #. type: SH
268 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
269 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
270 #, no-wrap
271 msgid "HISTORY"
272 msgstr ""
273
274 #. type: Plain text
275 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
276 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
277 msgid "glibc 2.1. POSIX.1-2001. BSDi."
278 msgstr ""
279
280 #. type: Plain text
281 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
282 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
283 msgid ""
284 "Before glibc 2.3.4, the implementation supported only interfaces with IPv4 "
285 "addresses. Support of interfaces that don't have IPv4 addresses is "
286 "available only on kernels that support netlink."
287 msgstr ""
288
289 #. type: SH
290 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
291 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
292 #, no-wrap
293 msgid "EXAMPLES"
294 msgstr ""
295
296 #. type: Plain text
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 msgid ""
300 "The program below demonstrates the use of the functions described on this "
301 "page. An example of the output this program might produce is the following:"
302 msgstr ""
303
304 #. type: Plain text
305 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
306 #: opensuse-tumbleweed
307 #, no-wrap
308 msgid ""
309 "$B< ./a.out>;\n"
310 "1: lo\n"
311 "2: wlan0\n"
312 "3: em1\n"
313 msgstr ""
314
315 #. type: SS
316 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
317 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
318 #, no-wrap
319 msgid "Program source"
320 msgstr ""
321
322 #. type: Plain text
323 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
324 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
325 #, no-wrap
326 msgid ""
327 "#include E<lt>net/if.hE<gt>\n"
328 "#include E<lt>stdio.hE<gt>\n"
329 "#include E<lt>stdlib.hE<gt>\n"
330 "#include E<lt>unistd.hE<gt>\n"
331 "\\&\n"
332 "int\n"
333 "main(void)\n"
334 "{\n"
335 " struct if_nameindex *if_ni, *i;\n"
336 "\\&\n"
337 " if_ni = if_nameindex();\n"
338 " if (if_ni == NULL) {\n"
339 " perror(\"if_nameindex\");\n"
340 " exit(EXIT_FAILURE);\n"
341 " }\n"
342 "\\&\n"
343 " for (i = if_ni; !(i-E<gt>if_index == 0 && i-E<gt>if_name == NULL); i++)\n"
344 " printf(\"%u: %s\\[rs]n\", i-E<gt>if_index, i-E<gt>if_name);\n"
345 "\\&\n"
346 " if_freenameindex(if_ni);\n"
347 "\\&\n"
348 " exit(EXIT_SUCCESS);\n"
349 "}\n"
350 msgstr ""
351
352 #. SRC END
353 #. type: SH
354 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
355 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
356 #, no-wrap
357 msgid "SEE ALSO"
358 msgstr ""
359
360 #. type: Plain text
361 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
362 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
363 msgid ""
364 "B<getsockopt>(2), B<setsockopt>(2), B<getifaddrs>(3), B<if_indextoname>(3), "
365 "B<if_nametoindex>(3), B<ifconfig>(8)"
366 msgstr ""
367
368 #. type: TH
369 #: debian-trixie
370 #, no-wrap
371 msgid "2024-06-15"
372 msgstr ""
373
374 #. type: TH
375 #: debian-trixie
376 #, no-wrap
377 msgid "Linux man-pages 6.9.1"
378 msgstr ""
379
380 #. type: Plain text
381 #: debian-trixie
382 msgid "Standard C library (I<libc>, I<-lc>)"
383 msgstr ""
384
385 #. type: Plain text
386 #: debian-trixie fedora-44 fedora-rawhide
387 #, no-wrap
388 msgid ""
389 "unsigned int if_index; /* Index of interface (1, 2, ...) */\n"
390 "char *if_name; /* Null-terminated name (\"eth0\", etc.) */\n"
391 msgstr ""
392
393 #. type: Plain text
394 #: debian-trixie fedora-44 fedora-rawhide
395 #, no-wrap
396 msgid ""
397 "$ B<./a.out>I<\n"
398 "1: lo\n"
399 "2: wlan0\n"
400 "3: em1>\n"
401 msgstr ""
402
403 #. type: TH
404 #: fedora-44 fedora-rawhide
405 #, no-wrap
406 msgid "2024-07-23"
407 msgstr ""
408
409 #. type: TH
410 #: fedora-44 fedora-rawhide
411 #, no-wrap
412 msgid "Linux man-pages 6.13"
413 msgstr ""
414
415 #. type: TH
416 #: mageia-cauldron
417 #, no-wrap
418 msgid "Linux man-pages 6.17"
419 msgstr ""
420
421 #. type: TH
422 #: opensuse-leap-16-1 opensuse-tumbleweed
423 #, no-wrap
424 msgid "Linux man-pages (unreleased)"
425 msgstr ""