Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

/dev/desu

Name: Anonymous 2008-05-08 18:41

i would like to have /dev/desu on leenux, an "infinite" file that only outputs DESUDESUDESUDESUDESU etc. pp.

is it possible to create that via mkfifo ?

Name: Anonymous 2008-05-09 23:15

This better? Yes, I'm too lazy to test it.
mkfifo("/dev/desu",0644);
while(1) {
  int fd = open("/dev/desu", O_WRONLY);
  while(write(fd, "DESU", 4) > 0);
  close(fd);
}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List