summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/putchar.c
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2008-08-13 15:41:21 +0000
committered <ed@FreeBSD.org>2008-08-13 15:41:21 +0000
commitc392c350356d4e10651d40ed2906f1c9f50d789e (patch)
tree1e922da37e301531803c58fc0415966f29b6a5bd /lib/libc/stdio/putchar.c
parent1a091133592a52542225ae632b0ecdfa2b068da7 (diff)
downloadFreeBSD-src-c392c350356d4e10651d40ed2906f1c9f50d789e.zip
FreeBSD-src-c392c350356d4e10651d40ed2906f1c9f50d789e.tar.gz
Change bpf(4) to use the cdevpriv API.
Right now the bpf(4) driver uses the cloning API to generate /dev/bpf%u. When an application such as tcpdump needs a BPF, it opens /dev/bpf0, /dev/bpf1, etc. until it opens the first available device node. We used this approach, because our devfs implementation didn't allow per-descriptor data. Now that we can, make it use devfs_get_cdevpriv() to obtain the private data. To remain compatible with the existing implementation, add a symlink from /dev/bpf0 to /dev/bpf. I've already changed libpcap to compile with HAVE_CLONING_BPF, which makes it use /dev/bpf. There may be other applications in the base system (dhclient) that use the loop to obtain a valid bpf. Discussed on: src-committers Approved by: csjp
Diffstat (limited to 'lib/libc/stdio/putchar.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud