Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: good times(2|3); pre-compiled updates
@ 1996-03-06 16:38 David Mosberger-Tang
  1996-03-07 11:40 ` Re: good times(2|3) Fred Roy
  0 siblings, 1 reply; 2+ messages in thread
From: David Mosberger-Tang @ 1996-03-06 16:38 UTC (permalink / raw)


>>>>> On Wed, 06 Mar 1996 15:48:00 +0100, froy@gr.osf.org said:

  Fred> pre-compiled updates: I think that it would be a great benefit
  Fred> (for BLADE_0.3 users? if I am not the last) to have archived
  Fred> on the net, in usual compressed-tar format, pre-compiled
  Fred> versions of the updates you make in Linux/alpha commands and
  Fred> libraries (along with source and/or patch files). You used to
  Fred> do that before, and you still do it for kernel updates; of
  Fred> course it would be (time-, at least) expensive, so it's up to
  Fred> you.

I do that for non-trivial things.  sysklogd, for example, is trivial.
Recompiling it on any system will be about just as fast as downloading
the binary.  Besides, BLADE_0.3 doesn't follow the FSSTND whereas Red
Hat does, so the location of log and lock files will be different.
Also, since the Red Hat folks (Erik, notably) do such a great job at
putting together binary distributions, I also think there is less need
for me to do so myself (I'd rather spend time doing new stuff).  I
don't see why you wouldn't want to use the Red Hat binary packages
even if you run BLADE0.3, it's a simple matter of:

	rpm2cpio RPM-file | cpio --extract --verbose --make-dir

once you have the rpm utilities installed (a matter of 10 minutes).
Of course, due to different fs layout conventions, you might need to
add a few symlinks to make BLADE FSSTND compatible, but that you'd
have to do even with my binary distributions.

  Fred> PS (times()): Was it a missing 's' in the library sources
  Fred> you're working on ? I think so, because (at least with
  Fred> BLADE_0.3 libs) times() and time() return the same value!

I'm not sure what you mean.  My current sources look OK and I know
they work in GNU libc, but maybe I'm missing something since I haven't
actually tried the new times() in libc-0.4x.

  Fred> PPS(pre-compiled updates): Could you tell me if there are
  Fred> known incompatibilities beetween the BLADE_0.3 kernel+system
  Fred> header files and the axp-libc.40 (.39, .38, .37, ...) you've
  Fred> put on AZStarNet ?  Sorry to insist, but I think it would be
  Fred> stupid to just `try and see' if you know (even approximately)
  Fred> the answer... Thanks.

I don't *know* of any incompatibilities but it wouldn't surprise me if
there were some.  I'm sorry, but I never had BLADE installed on any on
my systems.

	--david

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Re: good times(2|3)...
  1996-03-06 16:38 good times(2|3); pre-compiled updates David Mosberger-Tang
@ 1996-03-07 11:40 ` Fred Roy
  0 siblings, 0 replies; 2+ messages in thread
From: Fred Roy @ 1996-03-07 11:40 UTC (permalink / raw)


Fred> PS (times()): Was it a missing 's' in the library sources
    Fred> you're working on ? I think so, because (at least with
    Fred> BLADE_0.3 libs) times() and time() return the same value!

  David> I'm not sure what you mean.  My current sources look OK and
  David> I know they work in GNU libc, but maybe I'm missing something
  David> since I haven't actually tried the new times() in libc-0.4x.

Ok, my english was somehow strange; let's retry in C:
/* --- */
#include <sys/types.h>

#include <time.h>
#include <sys/times.h>

#include <unistd.h>
#include <stdio.h>
main() {
        time_t  my_t;
        struct tms my_tms;
        long rt, rts;

        rt= (long)time(&my_t);
        rts= (long)times(&my_tms);
        printf("time()  returned %ld\n", (long)rt);
        printf("times() returned %ld\n", (long)rts);
        if ( rts == rt || rts == (rt + 1) )
                printf("!\n");
        else
                printf("I prefer that\n");

        /* misc. */
        printf("\n");
        printf("current time:        %ld\n",(long)my_t);  
        printf("current times: utime=%ld stime=%ld\n",
                        (long)my_tms.tms_utime,
                        (long)my_tms.tms_stime);
}
/* --- */

What I get with my (unmodifed) Linux/Alpha/BLADE_0.3 [unmodified:
e.g. without no updates of libraries] is:
time()  returned 826217813
times() returned 826217813
!

current time:        826217813
current times: utime=0 stime=4

What I get with my Slackware Linux/i486 is:
time()  returned 826196909
times() returned 553681879
I prefer that

current time:        826196909
current times: utime=0 stime=2

What do you prefer? (take of course this ubiquitous? question as you please!)
fred

PS: it's just for fun... I had very few problems with Linux/Alpha libs and
system headers: you've done a great job.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-03-07 11:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-03-06 16:38 good times(2|3); pre-compiled updates David Mosberger-Tang
1996-03-07 11:40 ` Re: good times(2|3) Fred Roy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox