Slashdot Mirror


LSB & Posix Conflicts

An anonymous reader writes "The OpenGroup has published a detailed list of the conflicts between the Linux Standards Base and Posix ? that is accessible through their website. "

13 of 354 comments (clear)

  1. UNIX standards base by Anonymous Coward · · Score: 2, Funny

    Perhaps we should just have a UNIX Standards BASE or USB.... oh wait..

  2. Re:POSIX LSB by Anonymous Coward · · Score: 2, Funny

    Ahem. That's GNU/GNU/Linux, GNU/Posix, GNU/LSB, and GNU/Linux GNU/Distros. And the first word should be IMHGNU/O. So there. :-P

    -- rms

  3. Goldilinux and the three bears... by Black+Parrot · · Score: 5, Funny


    SCO: "Too similar"
    TOG: "Too different"
    LSB: "Just right!"

    --
    Sheesh, evil *and* a jerk. -- Jade
  4. gets() by Genghis+Troll · · Score: 4, Funny

    107 The LSB has deprecated the gets() function, whereas it is a first
    108 class function in ISO/IEC 9945 and ISO/IEC 9899.


    Won't somebody think of the script kiddies!
    1. Re:gets() by Surak · · Score: 2, Funny

      No programmer in their right mind uses the I/O POSIX functions without checking the user input. Too bad there are still very common buffer overflows, format strings and heap overflows found in (more or less major) projects.

      I do, but then again, I'm working on a project that requires Windows compatibility. ;)

  5. Affected C functions by Rosco+P.+Coltrane · · Score: 5, Funny

    099 2.1.2 gethostbyname [...]
    102 2.1.3 getopt [...]
    106 2.1.4 gets [...]
    109 2.1.5 getservbyname [...]
    112 2.1.6 getservent [...]
    115 2.1.7 ioctl [...]
    120 2.1.8 iswctype [...]
    123 2.1.9 kill [...]
    133 2.1.10 nice [...]
    139 2.1.11 opterr, optind, optopt [...]
    142 2.1.12 strptime

    Pfff, we're saved. printf("Hello world\n") will still work on all platforms. Isn't it the standard portability test after all?

    --
    "A door is what a dog is perpetually on the wrong side of" - Ogden Nash
    1. Re:Affected C functions by AJWM · · Score: 2, Funny
      Good God, it's 380KB zipped.

      Yeah, but check the description page to see why:

      "Yes, this really is the classic program that prints "Hello, world!" when you run it. Unlike the elementary version often presented in books like K&R, GNU hello processes its argument list to modify its behavior, supports internationalization, and includes a mail reader."
      (emphasis added).

      Who was it that said something about every program tending to add features until it includes a mail reader?

      --
      -- Alastair
  6. Well by Anonymous Coward · · Score: 2, Funny

    It seems that Posix has some updating to do.

  7. My hello program. by Black+Parrot · · Score: 2, Funny


    > GNU has helpfully published a version of "Hello, World!" that uses autoconf

    Why make things so complicated!

    # Makefile for "Hello World" program.
    #
    hello:
    @echo "Hello, World!"
    --
    Sheesh, evil *and* a jerk. -- Jade
  8. It's times like this I feel smug... by James+A.+A.+Joyce · · Score: 2, Funny

    ...because I only ever program in raw ANSI C89. You can't beat it for portability. There's only, like, 100 functions.

    Of course, there's no hope for me writing something as simple as id or whoami, but still, I can just laugh when people bitch about standards. :-)

  9. Re: Why does the Open Group care? by EvilTwinSkippy · · Score: 2, Funny
    Yes, but the question is subtler. Does GNU mean:
    • GNU Not Unix! (Take that)
    • GNU Not Unix? (Say What?)
    • GNU Not Unix!? (Now you tell me.)
    • GNU Not Unix. (We came, we saw, we implemented.)

    (With apologies to the old "Dude" skit.)

    --
    "Learning is not compulsory... neither is survival."
    --Dr.W.Edwards Deming
  10. what I do by martin-boundary · · Score: 3, Funny
    Right on! What I usually do when I use gets is this:

    char buf[10];
    char dummy[10];

    fgets(dummy, 10, stdin);
    n = strlen(dummy);
    ungetc('\n', stdin);
    for(i = n - 1; i >= 0; i++) {
    ungetc(dummy[i], stdin);
    }

    gets(buf);

    I'll admit it's a bit tedious, but it helps prevent gets overflows.

  11. Re:That is the STUPIDEST solution I have ever seen by dakoda · · Score: 2, Funny

    only on slashdot would a post about how to do something right get modded as flamebait...