Changeset 2287 for trunk/src/kash/show.c


Ignore:
Timestamp:
Feb 25, 2009, 6:40:29 AM (16 years ago)
Author:
bird
Message:

kash: windows build fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/show.c

    r2280 r2287  
    433433                fd = shfile_open(&psh->fdtab, s, O_APPEND | O_RDWR | O_CREAT, 0600);
    434434                if (fd != -1) {
    435                         int fd2 = fcntl(fd, F_DUPFD, 199);
     435                        int fd2 = shfile_fcntl(&psh->fdtab, fd, F_DUPFD, 199);
    436436                        if (fd2 == -1)
    437                                 fd2 = fcntl(fd, F_DUPFD, 99);
     437                                fd2 = shfile_fcntl(&psh->fdtab, fd, F_DUPFD, 99);
    438438                        if (fd2 == -1)
    439                                 fd2 = fcntl(fd, F_DUPFD, 49);
     439                                fd2 = shfile_fcntl(&psh->fdtab, fd, F_DUPFD, 49);
    440440                        if (fd2 == -1)
    441                                 fd2 = fcntl(fd, F_DUPFD, 18);
     441                                fd2 = shfile_fcntl(&psh->fdtab, fd, F_DUPFD, 18);
    442442                        if (fd2 == -1)
    443                                 fd2 = fcntl(fd, F_DUPFD, 10);
     443                                fd2 = shfile_fcntl(&psh->fdtab, fd, F_DUPFD, 10);
    444444                        if (fd2 != -1) {
    445445                                close(fd);
     
    453453                }
    454454        }
    455         setvbuf(tracefile, (char *)NULL, _IOLBF, 0); //setlinebuf(tracefile);
     455        setvbuf(tracefile, (char *)NULL, _IOLBF, 1024);
    456456        fputs("\nTracing started.\n", tracefile);
    457457}
Note: See TracChangeset for help on using the changeset viewer.