Changeset 9c3b406b in rtems


Ignore:
Timestamp:
May 19, 1998, 11:34:04 AM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
7139415
Parents:
3ac8e59c
Message:

Addition of tcdrain() from Eric Norum.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/libcsupport/src/newlibc.c

    r3ac8e59c r9c3b406b  
    6565extern void _reclaim_reent(struct _reent *);
    6666
     67#include <stdio.h>
     68
    6769void
    6870libc_wrapup(void)
     
    8789        _REENT = &libc_global_reent;
    8890    }
     91   
     92    /*
     93     * Try to drain output buffers.
     94     *
     95     * Should this be changed to do *all* file streams?
     96     *  _fwalk (_REENT, fclose);
     97     */
     98    fclose (stdin);
     99    fclose (stdout);
     100    fclose (stderr);
    89101}
    90102
  • c/src/lib/libc/newlibc.c

    r3ac8e59c r9c3b406b  
    6565extern void _reclaim_reent(struct _reent *);
    6666
     67#include <stdio.h>
     68
    6769void
    6870libc_wrapup(void)
     
    8789        _REENT = &libc_global_reent;
    8890    }
     91   
     92    /*
     93     * Try to drain output buffers.
     94     *
     95     * Should this be changed to do *all* file streams?
     96     *  _fwalk (_REENT, fclose);
     97     */
     98    fclose (stdin);
     99    fclose (stdout);
     100    fclose (stderr);
    89101}
    90102
  • c/src/lib/libc/tcattr.c

    r3ac8e59c r9c3b406b  
    3838}
    3939
     40int
     41tcdrain(int fd)
     42{
     43        return __rtems_ioctl(fd,RTEMS_IO_TCDRAIN,0);
     44}
     45
    4046#endif
  • cpukit/libcsupport/src/newlibc.c

    r3ac8e59c r9c3b406b  
    6565extern void _reclaim_reent(struct _reent *);
    6666
     67#include <stdio.h>
     68
    6769void
    6870libc_wrapup(void)
     
    8789        _REENT = &libc_global_reent;
    8890    }
     91   
     92    /*
     93     * Try to drain output buffers.
     94     *
     95     * Should this be changed to do *all* file streams?
     96     *  _fwalk (_REENT, fclose);
     97     */
     98    fclose (stdin);
     99    fclose (stdout);
     100    fclose (stderr);
    89101}
    90102
Note: See TracChangeset for help on using the changeset viewer.