Eneboo - Documentación para desarrolladores
src/posprinter/lpr/lpd/extern.h
Ir a la documentación de este archivo.
00001 /*      $OpenBSD: extern.h,v 1.6 2003/06/02 23:36:53 millert Exp $      */
00002 
00003 /*
00004  * Copyright (c) 1989, 1993
00005  *      The Regents of the University of California.  All rights reserved.
00006  *
00007  * Redistribution and use in source and binary forms, with or without
00008  * modification, are permitted provided that the following conditions
00009  * are met:
00010  * 1. Redistributions of source code must retain the above copyright
00011  *    notice, this list of conditions and the following disclaimer.
00012  * 2. Redistributions in binary form must reproduce the above copyright
00013  *    notice, this list of conditions and the following disclaimer in the
00014  *    documentation and/or other materials provided with the distribution.
00015  * 3. Neither the name of the University nor the names of its contributors
00016  *    may be used to endorse or promote products derived from this software
00017  *    without specific prior written permission.
00018  *
00019  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
00020  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00021  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00022  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
00023  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00024  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
00025  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
00026  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
00027  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
00028  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00029  * SUCH DAMAGE.
00030  *
00031  *      @(#)extern.h    8.1 (Berkeley) 6/6/93
00032  */
00033 
00034 #include <sys/cdefs.h>
00035 #include <sys/ioctl.h>
00036 #include <termios.h>
00037 
00038 /*
00039  * from stty.h
00040  */
00041 struct info {
00042         int fd;                                 /* file descriptor */
00043         int ldisc;                              /* line discipline */  
00044         int off;                                /* turn off */
00045         int set;                                /* need set */
00046         int wset;                               /* need window set */
00047         char *arg;                              /* argument */
00048         struct termios t;                       /* terminal info */  
00049         struct winsize win;                     /* window info */
00050 }; 
00051 
00052 int        ksearch(char ***, struct info *);
00053 int        msearch(char ***, struct info *);
00054 void       printjob(void);
00055 void       recvjob(void);
00056 void       sttyclearflags(struct termios *tp, int flags);
00057 void       sttysetflags(struct termios *tp, int flags);
00058 void       sttyclearlflags(struct termios *tp, int flags);
00059 void       sttysetlflags(struct termios *tp, int flags);
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'