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

Pages: 1-4041-8081-

/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-08 18:50

Oh God, you are a cretin.

Name: Anonymous 2008-05-08 18:50

>>1
back toUBANTO FORUMS, please

Name: Anonymous 2008-05-08 19:43

I think it's pretty simple to do in FreeBSD, I'll look into that tomorrow. man 8 mknod has some details, but it'll take a bit of hacking to get the device driver working (especially since kernel rebuilds take forever on my dev machine).

Name: Anonymous 2008-05-08 20:21

especially since kernel rebuilds take forever on my dev machine
man 8 kldload

Name: Anonymous 2008-05-08 22:14

write small driver, then mknod

Name: Anonymous 2008-05-09 0:28

How would I do this in Windows? I want a drive letter with an infinite file whose contents is DESUDESU.. etc

Name: Anonymous 2008-05-09 1:02

>>7
Join the MSDN then ask them.

Name: Anonymous 2008-05-09 1:39

why not just do yes|perl -pe'$_=DESU'?

Name: Anonymous 2008-05-09 1:49

>>9
hahahaha

Name: Anonymous 2008-05-09 1:53

>>5
From the sound of it, the driver type numbers are statically compiled in. I honestly haven't looked into it enough to know whether my original assumption is correct, or if you can bullshit it with a dynamic kernel module.

Name: Anonymous 2008-05-09 5:01

>>1
EXPERT ANONIX DEVELOPER

Name: Anonymous 2008-05-09 6:05

echo "DESU"; sudo dd if=/dev/urandom of=/dev/hda

That should do what you want; just give it your root password.

Name: Anonymous 2008-05-09 6:25

>>13
SUDO DOESN'T WORK THAT WAY

Name: Anonymous 2008-05-09 6:50

OMG MY HARDDRIVE IS BROKEN NOW LOL

Name: Anonix project developer !ewT.5OJtxQ 2008-05-09 7:08

So I had this idea: why not have a drive like a /dev/random, say, /dev/desu that would output a string of infinite desu.  Win?

Name: Anonymous 2008-05-09 7:09

>>16
LOL GOOD IDEA WHERE DID YOU COME UP WITH SUCH A COOL IDEA

Name: Anonymous 2008-05-09 7:35

So I had this idea: why not have a drive like a /dev/random, say, /dev/hma that would output a string of infinite hax my anus.  Win?

Name: Anonymous 2008-05-09 7:38

/prog/ < /dev/hma

Name: Anonymous 2008-05-09 7:46

use base Net::Server::Fork;

sub process_request { 1 while print "DESU\n" }
main->run(port => "/dev/desu|unix");

Name: Anonymous 2008-05-09 7:55

>>19
/dev/hma: no such file or directory
/prog/: is a directory

Presumably you wanted ``/dev/hda'' and /prog

Name: >>20 2008-05-09 8:14

>>21
Presumably you wanted to read the thread.

Also I have rewritten >>20 for ENTERPRISE compliance.  See below.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
        "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>Label</key>
        <string>desu</string>
        <key>ProgramArguments</key>
        <array>
                <string>/usr/bin/yes</string>
                <string>DESU</string>
        </array>
        <key>inetdCompatibility</key>
        <dict>
                <key>Wait</key>
                <false/>
        </dict>
        <key>Sockets</key>
        <dict>
                <key>desudesudesu</key>
                <dict>
                        <key>SockPathName</key>
                        <string>/var/run/desu</string>
                        <key>SockPathMode</key>
                        <integer>292</integer>
                </dict>
        </dict>
</dict>
</plist>

Name: Anonymous 2008-05-09 9:06

when the /dev/desu is read, have Suiseiseki pop on screen and say DESU! DESUDESUDESUDESU~~~! and doll thrown etc etc and the Suiseiseki icon grows in size as the DESU progresses. win?

Name: Anonymous 2008-05-09 9:07

>>23
win?
are you fucking kidding me?

Name: Anonymous 2008-05-09 9:19

>>23
I hope for your sake that you were posting facetiously, my esteemed African-American associate.

Name: Anonymous 2008-05-09 9:52

>>1-25
The same troll trolling himself.

Name: Anonymous 2008-05-09 12:26

>>24
Aha! I have successfully trolled you!

Name: Anonymous 2008-05-09 12:49

>>24-25
It's kopipe from that Lulznix forum.

Name: Anonymous 2008-05-09 22:29

mkfifo("/dev/desu",0644);
fd = open("/dev/desu", O_WRONLY);
while(1) write(fd, "DESU", 4);

Name: Anonymous 2008-05-09 22:46

>>29
Only works once.  Socket version is superior.

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);
}

Name: Anonymous 2008-05-09 23:17

s/>/>=/

Name: Anonymous 2008-05-10 0:16

>>31
Still dies due to SIGPIPE, but that's not really the issue.  A fifo is fundamentally the wrong concept.  It's a single shared pipe, not a service.

Name: Anonymous 2008-05-10 0:42

shared pipe

ceci n'est pas une pipe.

Name: Anonymous 2008-05-10 1:52

>>20
sub process_request { 1 while print "DESU\n" }
sub process_request { { print "DESU"; redo } }

Name: Anonymous 2008-05-10 2:00

lol @ failures solving this in userspace

GTFO

Name: Anonymous 2008-05-10 2:01

Also, are these brainless faggots still hallucinating about their own Lunix distribution that nobody (not even them) will want to use?

I thought they'd have died from shame by now.

Name: Anonymous 2008-05-10 2:53

>>35
Way to hog the cpu.

Name: Anonymous 2008-05-10 3:21

>>36
The question was in userspace, fagball.  Even if it weren't, why bother with kernel modules when I can have a PORTABLE TURKEY SOLUTION up in minutes?

Name: Anonymous 2008-05-10 4:08

>>39
back to /b/, please

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?

Name: Anonymous 2008-05-11 7:46

>>80
There's no point.

1) Very simple device, accepts only read requests. very hard to do wrong. Portability not required.
2) Then don't. Might make one to switch it into BOKU mode one day though.
3) See >>79

tl;dr your FIFO shit is boring. We don't do boring things on /prog/.

Name: Anonymous 2008-05-11 11:59

You could make /dev/desu very easily by modifying the beable device:
http://www.bitclean.com/beable.tar.gz

Name: Anonymous 2009-03-06 8:47

local variables of the   box Compatibility with   other operating systems   are best written   in C to   handle much of   it As for   Linux see for   yourself Bullshit You   fucking moron And.

Name: ​​​​​​​​​​ 2010-10-21 22:14

Name: Anonymous 2010-12-09 13:13

Name: Anonymous 2011-02-03 8:39

Name: Anonymous 2011-02-17 19:53

dubz

Name: Sgt.Kabukiman蓛⵽ 2012-05-23 5:33

All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy

Name: Anonymous 2013-09-01 14:19



(             `ヽ
 )  :  戦  せ    ノ          , '´ ̄ ̄ ̄ ̄`ヽ
(   :  争      (  :.       |   こ   え
ノ   :  だ       ノ  ::     / ./  と
|     :  わ      (  ::::::    / , ,'   :  え
.\             ) ::::     | / |     :  ら
  >ー───-、    r'  ::    / .,' '、    :  い
  /_,,..-─-、:::\ \ |  :    ,'  |::::::/\
        \:::\. ∨ -───|  ,'::::/   `' ー┐  _ノ
          ,>、|o|         !o//  `' 、 (   _ノ
:::::.......   , '/         /`          ヽ )ノ   ...:::::
   ::::...,' /   /      ,'    |    、 ヽ.  '´  ...::::
     ;' ,'   .,.'    /   ,!   ,ハ    ハ   ',  ', ;
::::: :::.....  |   /   /|メ、_,./!   /∠._ / |    |  | {
    ;l /  ,'   /'´ ̄` :::|  ,.'::::'´ ̄`ヽ|  / .|  | ..:::::.....::::::.....
     ; ,'   /! ./!  ;'´,ハ ::!/u:: ;'´,ハ  !/  !  | {
    .l |  / .| /.人 弋__ノ ::::::::::::: 弋__ノ ノ / ,'   ! l|    .......::::
 :::... } !/  !/.!:|w     ,      xw|/ /   | } ...:::::
    ::::... } |:::|::| u            u  |   ,'    .| 
 :::::.....    { ,' !人    rァ─-、    ,ハ  |   i  | l|
    ::::....../  |  |> 、 `ー‐‐┘  /.!  |  |  | l  :::::.......
      ; /  |  | 、ヽ ヽ.,___,. イ、  |  ,!   |  |      ::::...
      ;'.,'   /|  |     r!    / ヽ'  ハ  |  | {
::::::::....  l .! .,' |  |-─//|  /   / /\   !  | } :::::...
       .|  /| /  /  /[]\  //   ´ ̄`ヽ | ;    :::::....

Name: Anonymous 2013-09-01 15:51



            __,,.. --──- 、..,,_        ,. -──────
        ,. ''"´     '⌒)_,.-、  `';       ,'
    ,. -‐<       、_,,... ---──'-、      i 何これ
   ;'     `ヽ._,,..ゝ-<.,__,,..-‐-、,    ';ヽ.    |
   !   (⌒ヽノ !   ! ,' /!  ! `''ー、イ  !   ! キュウリじゃない
   ';       八 ,ゝ、_」ィ!__/ .!  ;' ! ; ヽ./  ∠.._
   ',   ',  /  `i ;'´;'ハ  └、;_,.ィ /   ハ    `'' ー----------‐
    i   Y`ヽ/!_,!i !_,ソ    !ハ`yiヽ、/ /
   ,'   /  .!  'ひ   ..::::.. '-'_ノi Y  ',  なんか苦い
 _.ノ   ,ヘ._  ',  '、   ,.-‐-、   ''!八  ! 
  `( r'  )`ヽヽ  )、 し--‐’ ,.,イ  ! )ノ    _)
   )' />‐‐'<Yヽ、`' T7"´ノレヘノ (     ,.:'";';
    ,.':::/     ヽr、 \.」 `!」ヽ.       ノ_);':;'
    /:::;' /こコ  iヽヘ/ム、!」,  i     ,.'´_;',:;'
   ;':::7 /   !  ト、    ハ   V !.  ,..-r'つ'、ヾ'
    i:r!        ,'  ヽ、 ○ / !//  !/;'(__,ソ
   !/`  r-   イ    `F'   !'´    !、__ノ!
  /   '    !  _,,..イ  `ゝ、i       _,:'

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