1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-25 11:37:56 +00:00
freebsd/bin/echo
Diomidis Spinellis 91b7d6dc58 - Check and report write(2) errors.
- Issue a single writev(2) call instead of multiple write(2)s.
  This change improves the inefficiencies introduced when echo
  went on an stdio diet.

The following figures are for echoing 1000 arguments.
original stdio-based echo:
        0.01 real         0.01 user         0.00 sys
before:
        0.05 real         0.00 user         0.04 sys
after:
        0.01 real         0.00 user         0.00 sys
2003-10-11 20:34:43 +00:00
..
echo.1 Note that -n and \c are implementation-defined as per TC1 to POSIX 2001. 2003-05-08 17:47:28 +00:00
echo.c - Check and report write(2) errors. 2003-10-11 20:34:43 +00:00
Makefile