> [SIOCSIFADDR] is a thing, although it targets a socket on the interface, not the interface itself.
If we're cheating by using file descriptors instead of files, then you could go all the way and used AF_NETLINK sockets, they allow you even to set routing or firewall. That's kind of not the point.