On 25 Jul 2005, at 01:04, Peter Memishian wrote:
an excellent question -- and to add insult to injury, attempting to
execute them is far from pretty:

  $ /lib/libc.so
  usage: ld.so.1 [-e option,...] dynamic-object [object args,...]
  Killed
  $ /lib/libnsl.so
  Illegal Instruction (core dumped)

cc'ing rod, as he will probably know the history here.

Try executing libc on a linux box:

[EMAIL PROTECTED] lib]$ ./libc.so.6
GNU C Library stable release version 2.3.5, by Roland McGrath et al.
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.4.3 20050227 (Red Hat 3.4.3-22).
Compiled on a Linux 2.4.20 system on 2005-04-07.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        linuxthreads-0.10 by Xavier Leroy
        The C stubs add-on version 2.1.2.
        BIND-8.2.3-T5B
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
        Glibc-2.0 compatibility add-on by Cristian Gafton
        GNU Libidn by Simon Josefsson
        libthread_db work sponsored by Alpha Processor Inc
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.

Far more interesting than a plain old usage message :-) Other libraries aren't quite so verbose but I think the idea of some sort of message saying what a library does is quite a cool one.

  Paul

--
Paul Durrant

Attachment: PGP.sig
Description: This is a digitally signed message part

_______________________________________________
opensolaris-code mailing list
[email protected]
https://opensolaris.org:444/mailman/listinfo/opensolaris-code

Reply via email to