summaryrefslogtreecommitdiffstats
path: root/contrib/gcclibs/libcpp/init.c
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2013-12-18 12:50:43 +0000
committerglebius <glebius@FreeBSD.org>2013-12-18 12:50:43 +0000
commitdebfab1c9f126af12f1aed0265b0f930b81705f9 (patch)
treebadc044d2cd2d26fa6a0f9b57c0c1344fa8a340d /contrib/gcclibs/libcpp/init.c
parent619f31a7c87608f78296d3d61701e1eb75f14052 (diff)
downloadFreeBSD-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
OpenPOWER on IntegriCloud