#include <errno.h>
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>

int
main ()
{
  for (;;)
    {
      char buf[4096];
      ssize_t count = read (STDIN_FILENO, buf, sizeof (buf));
      if (count == 0)
        break;
      if (count < 0)
        {
#ifdef EINTR
          if (errno != EINTR)
#endif
            break;
        }
      if (count > 0)
        fwrite (buf, 1, count, stdout);
    }
  return 0;
}