Lines Matching refs:pathbuf
134 char pathbuf[IFNAMSIZ + sizeof("/bridge/bridge_id") + 8]; in show_bridge() local
141 sfx = pathbuf + sprintf(pathbuf, "%.16s/bridge/", name); in show_bridge()
143 sfx = pathbuf + sprintf(pathbuf, "%.*s/bridge/", (int)IFNAMSIZ, name); in show_bridge()
146 if (read_file(pathbuf) < 0) in show_bridge()
154 read_file(pathbuf); in show_bridge()
165 ifaces = opendir(pathbuf); in show_bridge()
187 char pathbuf[IFNAMSIZ + sizeof("/bridge/bridge_id") + 32]; in write_uint() local
191 sprintf(pathbuf, "%.16s/%s", name, leaf); in write_uint()
193 sprintf(pathbuf, "%.*s/%s", (int)IFNAMSIZ, name, leaf); in write_uint()
195 fd = xopen(pathbuf, O_WRONLY); in write_uint()
226 char pathbuf[IFNAMSIZ + sizeof("/brforward") + 8]; in read_bridge_forward_db() local
233 sprintf(pathbuf, "%.16s/brforward", name); in read_bridge_forward_db()
235 sprintf(pathbuf, "%.*s/brforward", (int)IFNAMSIZ, name); in read_bridge_forward_db()
237 fd = open(pathbuf, O_RDONLY); in read_bridge_forward_db()
323 char pathbuf[IFNAMSIZ + sizeof("/brport/forward_delay_timer") + 8]; in show_bridge_port() local
327 sfx = pathbuf + sprintf(pathbuf, "%.16s/brport/", name); in show_bridge_port()
329 sfx = pathbuf + sprintf(pathbuf, "%.*s/brport/", (int)IFNAMSIZ, name); in show_bridge_port()
333 read_file(pathbuf); in show_bridge_port()
337 read_file(pathbuf); in show_bridge_port()
341 read_file(pathbuf); in show_bridge_port()
345 read_file(pathbuf); in show_bridge_port()
349 read_file(pathbuf); in show_bridge_port()
353 read_file(pathbuf); in show_bridge_port()
357 read_file(pathbuf); in show_bridge_port()
361 read_file(pathbuf); in show_bridge_port()
365 read_file(pathbuf); in show_bridge_port()
369 read_file(pathbuf); in show_bridge_port()
373 read_file(pathbuf); in show_bridge_port()
379 read_file(pathbuf); in show_bridge_port()
384 read_file(pathbuf); in show_bridge_port()
389 read_file(pathbuf); in show_bridge_port()
398 char pathbuf[IFNAMSIZ + sizeof("/bridge/topology_change_timer") + 8]; in show_bridge_stp() local
402 sfx = pathbuf + sprintf(pathbuf, "%.16s/bridge/", name); in show_bridge_stp()
404 sfx = pathbuf + sprintf(pathbuf, "%.*s/bridge/", (int)IFNAMSIZ, name); in show_bridge_stp()
408 if (read_file(pathbuf) < 0) in show_bridge_stp()
415 read_file(pathbuf); in show_bridge_stp()
419 read_file(pathbuf); in show_bridge_stp()
423 read_file(pathbuf); in show_bridge_stp()
427 read_file(pathbuf); in show_bridge_stp()
432 read_file(pathbuf); in show_bridge_stp()
437 read_file(pathbuf); in show_bridge_stp()
442 read_file(pathbuf); in show_bridge_stp()
446 read_file(pathbuf); in show_bridge_stp()
450 read_file(pathbuf); in show_bridge_stp()
454 read_file(pathbuf); in show_bridge_stp()
458 read_file(pathbuf); in show_bridge_stp()
464 read_file(pathbuf); in show_bridge_stp()
469 read_file(pathbuf); in show_bridge_stp()
480 ifaces = opendir(pathbuf); in show_bridge_stp()