Ignore:
Timestamp:
Oct 30, 2017, 6:49:42 PM (8 years ago)
Author:
bird
Message:

mscfakes.c,cat.c: msc_write: Do the console optimizations. Make the ENOSPC workaround more reliable (looks like _write may actually return a count that is higher than the input, or something else to that effect is going tits up). Fixed a bug if we ever should write more than 1GB in one go, it would've spun forever.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/kmkbuiltin/cat.c

    r2900 r3117  
    8181
    8282
    83 #ifdef KBUILD_OS_WINDOWS
    84 /* This is a trick to seriuosly speed up console output windows. */
    85 # undef write
    86 # define write maybe_con_write
    87 extern ssize_t maybe_con_write(int, void const *, size_t);
    88 #endif
    89 
    90 
    9183int bflag, eflag, nflag, sflag, tflag, vflag;
    9284/*int rval;*/
Note: See TracChangeset for help on using the changeset viewer.