Deleted Added
sdiff udiff text old ( 37141 ) new ( 37192 )
full compact
1/*-
2 * Copyright (c) 1997 Brian Somers <brian@Awfulhak.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $Id: server.c,v 1.21 1998/06/24 19:33:36 brian Exp $
27 */
28
29#include <sys/types.h>
30#include <sys/socket.h>
31#include <netinet/in.h>
32#include <arpa/inet.h>
33#include <sys/un.h>
34
35#include <errno.h>
36#include <stdio.h>
37#include <string.h>
38#include <sys/stat.h>
39#include <termios.h>
40#include <unistd.h>
41
42#include "log.h"
43#include "descriptor.h"
44#include "server.h"
45#include "id.h"
46#include "prompt.h"
47
48static int
49server_UpdateSet(struct descriptor *d, fd_set *r, fd_set *w, fd_set *e, int *n)
50{
51 struct server *s = descriptor2server(d);
52 struct prompt *p;
53 int sets;
54

--- 227 unchanged lines hidden ---