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# ifndef TRY_AGAIN 90# define TRY_AGAIN 91# endif |
92#endif /* EWOULDBLOCK */ 93 94#if defined(POSIX) && defined(EAGAIN) 95# if defined(EWOULDBLOCK) && EWOULDBLOCK != EAGAIN 96 case EAGAIN: |
97# ifndef TRY_AGAIN 98# define TRY_AGAIN 99# endif |
100# endif /* EWOULDBLOCK && EWOULDBLOCK != EAGAIN */ 101#endif /* POSIX && EAGAIN */ 102 103 e = 0; 104#ifdef TRY_AGAIN 105# if defined(F_SETFL) && defined(O_NDELAY) 106 if ((e = fcntl(fd, F_GETFL, 0)) == -1) 107 return -1; --- 270 unchanged lines hidden (view full) --- 378 /* use any return value */ 379 switch (retval) { 380 case CC_CURSOR: 381 el->el_state.argument = 1; 382 el->el_state.doingarg = 0; 383 re_refresh_cursor(el); 384 break; 385 |
386 case CC_REDISPLAY: 387 re_clear_lines(el); 388 re_clear_display(el); 389 /* FALLTHROUGH */ 390 |
391 case CC_REFRESH: 392 el->el_state.argument = 1; 393 el->el_state.doingarg = 0; 394 re_refresh(el); 395 break; 396 397 case CC_NORM: /* normal char */ 398 el->el_state.argument = 1; --- 48 unchanged lines hidden --- |