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-10 4:15

>>40
your an idiot

Name: Anonymous 2008-05-10 4:20

>>38
that's what nice is for.

Name: Anonymous 2008-05-10 4:34

>>41
what about my [i]an idiot[i]?

Name: Anonymous 2008-05-10 4:36

>>39
The question was in userspace, fagball.
How so, you gigantic homosexualist? Because OP suggested a possible solution that sucks balls? He just said he wants a desu device, you can safely ignore the rest because he doesn't have a clue what he's talking aboout anyway.

Even if it weren't, why bother with kernel modules when I can have a PORTABLE TURKEY SOLUTION up in minutes?
Because you could have a Tarportuble Kurtey Solution that doesn't suck and actually works in a few minutes instead.

Also, kernel space is cooler. And this whole thing is just about the PENIS anyway.

Name: Anonymous 2008-05-10 5:13

>>42
*/5 * * * * nice -20 yes > /dev/null

>>44
>>41

Name: Anonymous 2008-05-10 5:28

>>43
You're BBCode failure is spectacular.

Name: Anonymous 2008-05-10 6:11

Why not call it both :S

Install Version: lulznix
Live CD: lulzix

???

Name: Anonymous 2008-05-10 6:12

Use GNU/HURD.

Name: Anonymous 2008-05-10 6:24

>>46
I am BBCode failure is spectacular?

Name: Anonymous 2008-05-10 6:50

Ergo your wrong bitch

Name: Anonymous 2008-05-10 6:52

Name: Anonymous 2008-05-10 8:31

>>48
It's actually very trivial to do >>1's program in Hurd.  A desu translator that does nothing but return a string of desu.

Name: Anonymous 2008-05-10 8:33

>>52
Good to know useless crap can be done easily in Hurd while useful things are virtually nonexistant.

Name: Anonymous 2008-05-10 8:38

>>53
Just like the world's leading purely fictional language Haskell rofl xD.

Name: Anonymous 2008-05-10 8:39

>>53
There isn't any non-trivial program in existance that will write itself to fit user requirements. Even Haskell programs do not write themselves - they always require a programmer. The same is true for Hurd. The Hurd needs more programmerse.

Name: Anonymous 2008-05-10 9:31

>>33
Ok, this version is tested. Production quality code!
#!/bin/sh
mkfifo -m644 /dev/desu
while true; do ( while true; do printf DESU; done ) > /dev/desu; done

Name: Anonymous 2008-05-10 9:33

The Hurd needs more programmerse.
$ cvs -q diff -D 2008-01-01 | diffstat
 init/ChangeLog                               |    4 ++
 init/init.c                                  |    2 -
 libpthread/ChangeLog                         |   10 +++++++
 libpthread/include/libc-symbols.h            |    1
 libpthread/sysdeps/l4/hurd/i386/pt-setup.c   |    6 ++--
 libpthread/sysdeps/mach/hurd/i386/pt-setup.c |    6 ++--
 libshouldbeinlibc/ChangeLog                  |   11 ++++++++
 libshouldbeinlibc/idvec-verify.c             |    2 -
 libshouldbeinlibc/ugids-argp.c               |   37 +++++++++++++++++++++------
 libstore/ChangeLog                           |    4 ++
 libstore/nbd.c                               |    2 -
 usermux/ChangeLog                            |    6 ++++
 usermux/mux.c                                |    8 ++++-
 13 files changed, 82 insertions(+), 17 deletions(-)


LOL WUT

Name: Anonymous 2008-05-10 9:38

>>56
Still splits the stream among concurrent clients.

Name: Anonymous 2008-05-10 10:01

This is very easy to do in ObscurOS, where you just plug a StringGenerator subclassed with DESU into a DeviceMapper.

Name: Anonymous 2008-05-10 10:19

>>58
Seems to only be a problem if a client doesn't request a multiple of 4 bytes, and even then it's non-critical. If it causes real problems for you though, you can report it in the Bugzilla. Please attach your Xorg.conf, and output of dmesg, stat /dev/desu, and dpkg -l. Thanks for helping!

Name: Anonymous 2008-05-10 15:16

>>60
My coreutils distribution does not include ``stat,'' good Sir.  I emply the desktop-ready Lulznix distribution created by Cudder, which is powered by the highly regarded anoncoreutils project.

Name: Anonymous 2008-05-10 15:26

#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>

int main(){
 int s_local, s_remote, len;
 struct sockaddr local, remote;
 s_local = socket(PF_LOCAL, SOCK_STREAM, 0);
 local.sa_family = AF_UNIX;
 strcpy(local.sa_data, "/dev/desu");
 unlink(local.sa_data);
 len = sizeof(local);
 bind(s_local, &local, len);
 listen(s_local, 5);
 for(;;){
  s_remote = accept(s_local, &remote, &len);
  if(!fork()) for(;;) send(s_remote, "DESU", 4, 0);
 }
 return 0;
}

Name: Anonymous 2008-05-10 17:21

>>62
better:
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>

int main(){
 int p = fork();
 if(!p){
  int s_local, s_remote, len;
  struct sockaddr local, remote;
  s_local = socket(PF_LOCAL, SOCK_STREAM, 0);
  local.sa_family = AF_UNIX;
  strcpy(local.sa_data, "/dev/desu");
  unlink(local.sa_data);
  len = sizeof(local);
  bind(s_local, &local, len);
  listen(s_local, 5);
  void clean_up(){
   shutdown(s_local, SHUT_RDWR);
   unlink(local.sa_data);
  }
  atexit(&clean_up);
  signal(SIGCHLD, SIG_IGN);
  signal(SIGHUP, SIG_IGN);
  signal(SIGINT, &exit);
  signal(SIGKILL, &exit);
  signal(SIGTERM, &exit);
  for(;;){
   s_remote = accept(s_local, &remote, &len);
   if(!fork()) for(;;) send(s_remote, "DESU", 4, 0);
  }
 }
 printf("%d\n", p);
 return 0;
}

Name: Anonymous 2008-05-10 20:01

Oh shit. Why the fuck do we like the idea of creating a shitty device?

Name: Anonymous 2008-05-10 20:18

>>64
It's a fundamental building block of the lulznix core.

Name: Anonymous 2008-05-10 20:19

>>63
``better''?
What the [b][i]fuck[/di][/b] are you talking about?

Name: Anonymous 2008-05-10 20:21

>>66
Dammit, virginity lost.

Name: Anonymous 2008-05-10 23:21

>>66
better in that it doesn't leave the socket lying around if it's killed.

Name: Anonymous 2008-05-11 1:43

>>65
We don't approve of "lulznix", get the fuck out.

Name: Anonymous 2008-05-11 1:44

>>62
>>63
HERRO FAGGOT WE DON'T NEED A DESU DAEMON, WE NEED A DESU DEVICE

Name: Anonymous 2008-05-11 2:52

>>70
THANKS FOR YOU'RE INPUT, WE'LL GET RIGHT ON THAT

Name: Anonymous 2008-05-11 4:10

I must make a Snow Crash reference here.

Name: Anonymous 2008-05-11 5:38

>>70
what would be the difference?

Name: Anonymous 2008-05-11 6:19

>>73
One's gay and tries to hard making a stupid fifo faggotry work in an unelegant way.

Name: Anonymous 2008-05-11 6:19

>>73
Kernel mode vs user mode

Name: Anonymous 2008-05-11 6:33

>>74
Fifo is faggotry, but making it work right is trivial.  I refer you to my first post, >>20.  You can even do it without leaving an extra process around, à la >>22.  The only real differences between a character device and a socket are 1) devices require potentially-dangerous always-resident unportable kernel code, 2) devices support custom ioctls, which we don't use, and 3) devices require fewer context switches, making them desirable for heavily-used services, which this is unlikely to be.

Name: Anonymous 2008-05-11 6:41

>>76
You go girl! Also, you should probably write to Linux Turdballs about implementing /dev/zero and possibly others in userspace, since userspace is teh awesome.

Name: Anonymous 2008-05-11 6:43

PS: character device for the win, at least that thing only produces DESUs when it's asked to.

Name: Anonymous 2008-05-11 6:45

>>76
3) devices require fewer context switches, making them desirable  for heavily-used services, which this is unlikely to be.
This service is unlikely to be of any use at all, which means we shouldn't implement it. But since we do, we might at least do it right.

Name: Anonymous 2008-05-11 7:03

>>77
Missing the point is some kind of sport for you, isn't it?

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