summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/sys/tty.h
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/sys/sys/tty.h')
-rw-r--r--freebsd/sys/sys/tty.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/freebsd/sys/sys/tty.h b/freebsd/sys/sys/tty.h
index 00cf4e6c..4d082667 100644
--- a/freebsd/sys/sys/tty.h
+++ b/freebsd/sys/sys/tty.h
@@ -171,8 +171,11 @@ void tty_rel_gone(struct tty *tp);
#define tty_getlock(tp) ((tp)->t_mtx)
/* Device node creation. */
-void tty_makedev(struct tty *tp, struct ucred *cred, const char *fmt, ...)
- __printflike(3, 4);
+int tty_makedevf(struct tty *tp, struct ucred *cred, int flags,
+ const char *fmt, ...) __printflike(4, 5);
+#define TTYMK_CLONING 0x1
+#define tty_makedev(tp, cred, fmt, ...) \
+ (void )tty_makedevf((tp), (cred), 0, (fmt), ## __VA_ARGS__)
#define tty_makealias(tp,fmt,...) \
make_dev_alias((tp)->t_dev, fmt, ## __VA_ARGS__)