[BACK]Return to cu.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / cu

Annotation of src/usr.bin/cu/cu.h, Revision 1.8

1.8     ! deraadt     1: /* $OpenBSD: cu.h,v 1.7 2015/10/05 23:15:31 nicm Exp $ */
1.1       nicm        2:
                      3: /*
                      4:  * Copyright (c) 2012 Nicholas Marriott <nicm@openbsd.org>
                      5:  *
                      6:  * Permission to use, copy, modify, and distribute this software for any
                      7:  * purpose with or without fee is hereby granted, provided that the above
                      8:  * copyright notice and this permission notice appear in all copies.
                      9:  *
                     10:  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
                     11:  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
                     12:  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
                     13:  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
                     14:  * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
                     15:  * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
                     16:  * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
                     17:  */
                     18:
                     19: #ifndef CU_H
                     20: #define CU_H
                     21:
                     22: /* command.c */
                     23: void                            do_command(char);
                     24:
                     25: /* cu.c */
1.8     ! deraadt    26: extern int                      restricted;
1.6       nicm       27: extern FILE                    *record_file;
1.4       nicm       28: extern struct termios           saved_tio;
1.1       nicm       29: extern int                      line_fd;
                     30: extern struct bufferevent      *line_ev;
1.7       nicm       31: void                            set_blocking(int, int);
1.2       nicm       32: int                             set_line(int);
1.1       nicm       33: void                            set_termios(void);
                     34: void                            restore_termios(void);
                     35: char                           *tilde_expand(const char *);
                     36:
                     37: /* input.c */
                     38: const char                     *get_input(const char *);
1.3       nicm       39:
                     40: /* error.c */
                     41: void                            cu_warn(const char *, ...)
                     42:                                     __attribute__ ((format (printf, 1, 2)));
                     43: void                            cu_warnx(const char *, ...)
                     44:                                     __attribute__ ((format (printf, 1, 2)));
                     45: void                            cu_err(int, const char *, ...)
                     46:                                     __attribute__ ((format (printf, 2, 3)));
                     47: void                            cu_errx(int, const char *, ...)
                     48:                                     __attribute__ ((format (printf, 2, 3)));
1.4       nicm       49:
                     50: /* xmodem.c */
                     51: void                            xmodem_send(const char *);
1.1       nicm       52:
                     53: #endif