Article View: alt.folklore.computers
Article #623219Re: Tahoe and Alpha Architectures
From: Scott Lurndal
Date: Sat, 28 Apr 2018 15:14
Date: Sat, 28 Apr 2018 15:14
48 lines
3075 bytes
3075 bytes
d...@ihatespam.msu.edu (Dennis Boone) writes:
> > \> ldd /bin/true
> > linux-vdso.so.1 (0x00007ffcc69d3000)
> > libc.so.6 => /lib64/libc.so.6 (0x00007f5648bd8000)
> > /lib64/ld-linux-x86-64.so.2 (0x00007f56491b8000)
>
> > "true" is a bash builtin so the "linux version" is NOT /bin/true.
>
>Skipping over the people that don't use bash, and the scripts that
>use /bin/true rather than the builtin, ...
>
>int
>main (int argc, char **argv)
>{
> /* Recognize --help or --version only if it's the only command-line
> argument. */
> if (argc == 2)
> {
> initialize_main (&argc, &argv);
> set_program_name (argv[0]);
> setlocale (LC_ALL, "");
> bindtextdomain (PACKAGE, LOCALEDIR);
> textdomain (PACKAGE);
>
> /* Note true(1) will return EXIT_FAILURE in the
> edge case where writes fail with GNU specific options. */
> atexit (close_stdout);
>
> if (STREQ (argv[1], "--help"))
> usage (EXIT_STATUS);
>
> if (STREQ (argv[1], "--version"))
> version_etc (stdout, PROGRAM_NAME, PACKAGE_NAME, Version, AUTHORS,
> (char *) NULL);
> }
>
> return EXIT_STATUS;
>}
not on fedora:
$ ltrace true
__libc_start_main(0x401260, 1, 0x7fff32d19f28, 0x403420, 0x403410 <unfinished ...>
exit(0 <unfinished ...>
+++ exited (status 0) +++
Note the lack of a setlocale() call.
Technical Details
Message-ID:
<%c0FC.31957$LR2.28175@fx41.iad>Path:
mbox-mo1.pugleaf.net!p41-v6ni319qtp.1!nntp.google.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!post01.iad!fx41.iad.POSTED!not-for-mailReferences:
<pbo1cs$ku4$1@dont-email.me> <aba6f057-18a5-4eb8-9dff-d3a5d1665be1@googlegroups.com> <pbot0l$6co$2@tncsrv09.home.tnetconsulting.net> <32fc945c-cfcd-4598-926f-abe202a137a4@googlegroups.com> <pbsm9u$bb9$1@dont-email.me> <bbp4ed1n658k2p7u6alhdg1rnoivrhfm8n@4ax.com> <20180427075311.a4996754bddb0b48978021c7@eircom.net> <yfmdnc653fDZrn7HnZ2dnUU7-b2dnZ2d@giganews.com> <pbvcnq$iau$1@dont-email.me> <vIudnTk13ozcaX7HnZ2dnUU7-XmdnZ2d@giganews.com>Show Full Headers
Complete Article Headers
X-Received: by 10.55.112.134 with SMTP id l128mr3609464qkc.4.1524928444904; Sat, 28 Apr 2018 08:14:04 -0700 (PDT) X-BeenThere: alt.folklore.computers@googlegroups.com Received: by 2002:a0c:dd85:: with SMTP id v5-v6ls1344665qvk.3.gmail; Sat, 28 Apr 2018 08:14:04 -0700 (PDT) X-Received: by 2002:a0c:86a8:: with SMTP id 37-v6mr3561700qvf.52.1524928444176; Sat, 28 Apr 2018 08:14:04 -0700 (PDT) MIME-Version: 1.0 Path: mbox-mo1.pugleaf.net!p41-v6ni319qtp.1!nntp.google.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!post01.iad!fx41.iad.POSTED!not-for-mail X-newsreader: xrn 9.03-beta-14-64bit Sender: scott@dragon.sl.home (Scott Lurndal) From: scott@slp53.sl.home (Scott Lurndal) Reply-To: sl...@pacbell.net Subject: Re: Tahoe and Alpha Architectures Newsgroups: alt.folklore.computers References: <pbo1cs$ku4$1@dont-email.me> <aba6f057-18a5-4eb8-9dff-d3a5d1665be1@googlegroups.com> <pbot0l$6co$2@tncsrv09.home.tnetconsulting.net> <32fc945c-cfcd-4598-926f-abe202a137a4@googlegroups.com> <pbsm9u$bb9$1@dont-email.me> <bbp4ed1n658k2p7u6alhdg1rnoivrhfm8n@4ax.com> <20180427075311.a4996754bddb0b48978021c7@eircom.net> <yfmdnc653fDZrn7HnZ2dnUU7-b2dnZ2d@giganews.com> <pbvcnq$iau$1@dont-email.me> <vIudnTk13ozcaX7HnZ2dnUU7-XmdnZ2d@giganews.com> Lines: 48 Message-ID: <%c0FC.31957$LR2.28175@fx41.iad> X-Complaints-To: ab...@usenetserver.com NNTP-Posting-Date: Sat, 28 Apr 2018 15:14:03 UTC Organization: UsenetServer - www.usenetserver.com Bytes: 2358 Date: Sat, 28 Apr 2018 15:14:03 GMT X-Received-Bytes: 2420 X-Received-Body-CRC: 2720052005 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit