File: ptest.c

package info (click to toggle)
pipexec 2.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 356 kB
  • sloc: ansic: 1,194; sh: 74; makefile: 20
file content (14 lines) | stat: -rw-r--r-- 219 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <unistd.h>

int main() {
   size_t r;
   while(1) {
      r=write(1, "ptest out\n", 10);
      char buf[10];
      r=read(0, buf, 10);
      r=write(3, buf, 10);
      sleep(1);
   }
   (void)r;
   return 0;
}