Deleted Added
full compact
1/*-
2 * Copyright (c) 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Christos Zoulas of Cornell University.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

81read__fixio(fd, e)
82 int fd, e;
83{
84 switch (e) {
85 case -1: /* Make sure that the code is reachable */
86
87#ifdef EWOULDBLOCK
88 case EWOULDBLOCK:
89# define TRY_AGAIN
90#endif /* EWOULDBLOCK */
91
92#if defined(POSIX) && defined(EAGAIN)
93# if defined(EWOULDBLOCK) && EWOULDBLOCK != EAGAIN
94 case EAGAIN:
95# define TRY_AGAIN
96# endif /* EWOULDBLOCK && EWOULDBLOCK != EAGAIN */
97#endif /* POSIX && EAGAIN */
98
99 e = 0;
100#ifdef TRY_AGAIN
101# if defined(F_SETFL) && defined(O_NDELAY)
102 if ((e = fcntl(fd, F_GETFL, 0)) == -1)
103 return -1;

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

374 /* use any return value */
375 switch (retval) {
376 case CC_CURSOR:
377 el->el_state.argument = 1;
378 el->el_state.doingarg = 0;
379 re_refresh_cursor(el);
380 break;
381
382 case CC_REFRESH:
383 el->el_state.argument = 1;
384 el->el_state.doingarg = 0;
385 re_refresh(el);
386 break;
387
388 case CC_NORM: /* normal char */
389 el->el_state.argument = 1;

--- 48 unchanged lines hidden ---