diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2012-07-10 10:28:06 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2012-07-10 10:28:06 +0000 |
commit | 560acbab9b3d8c1ff4bc993ab6023f4a32c0ef6b (patch) | |
tree | af6a512e6d453708f7bb81e8f3e542ff24bb405a /usr.bin/cu/cu.h | |
parent | d15653d1ce4d3c5d5abff60a2f12a3994bbce29d (diff) |
Once we've set up termios, lines need to be \r\n terminated, and we need
to reset termios before exiting. So add custom versions of err(),
errx(), warn(), warnx() to handle this.
Diffstat (limited to 'usr.bin/cu/cu.h')
-rw-r--r-- | usr.bin/cu/cu.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/usr.bin/cu/cu.h b/usr.bin/cu/cu.h index ef7f888a235..e51e6efe25f 100644 --- a/usr.bin/cu/cu.h +++ b/usr.bin/cu/cu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cu.h,v 1.2 2012/07/10 08:16:27 nicm Exp $ */ +/* $OpenBSD: cu.h,v 1.3 2012/07/10 10:28:05 nicm Exp $ */ /* * Copyright (c) 2012 Nicholas Marriott <nicm@openbsd.org> @@ -35,4 +35,14 @@ char *tilde_expand(const char *); /* input.c */ const char *get_input(const char *); +/* error.c */ +void cu_warn(const char *, ...) + __attribute__ ((format (printf, 1, 2))); +void cu_warnx(const char *, ...) + __attribute__ ((format (printf, 1, 2))); +void cu_err(int, const char *, ...) + __attribute__ ((format (printf, 2, 3))); +void cu_errx(int, const char *, ...) + __attribute__ ((format (printf, 2, 3))); + #endif |