diff options
author | glebius <glebius@FreeBSD.org> | 2013-12-18 12:50:43 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2013-12-18 12:50:43 +0000 |
commit | debfab1c9f126af12f1aed0265b0f930b81705f9 (patch) | |
tree | badc044d2cd2d26fa6a0f9b57c0c1344fa8a340d /contrib/gcclibs/libcpp/init.c | |
parent | 619f31a7c87608f78296d3d61701e1eb75f14052 (diff) | |
download | FreeBSD-src-debfab1c9f126af12f1aed0265b0f930b81705f9.zip FreeBSD-src-debfab1c9f126af12f1aed0265b0f930b81705f9.tar.gz |
- Rename tty_makedev() into tty_makedevf() and make it capable
to fail and return error.
- Use make_dev_p() in tty_makedevf() instead of make_dev_cred().
- Always pass MAKEDEV_CHECKNAME flag.
- Optionally pass MAKEDEV_REF flag.
- Provide macro for compatibility with old API.
This fixes races with simultaneous creation and desctruction of
ttys, and makes it possible to call tty_makedevf() from device
cloners.
A race in tty_watermarks() still exist, since the latter drops
lock for M_WAITOK allocation. This will be addressed in separate
commit.
Reviewed by: kib
Sponsored by: Nginx, Inc.
Diffstat (limited to 'contrib/gcclibs/libcpp/init.c')
0 files changed, 0 insertions, 0 deletions