* 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; 3+ 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] 3+ 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; 3+ 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] 3+ messages in thread
* good times(2|3); pre-compiled updates
@ 1996-03-06 14:48 froy
0 siblings, 0 replies; 3+ messages in thread
From: froy @ 1996-03-06 14:48 UTC (permalink / raw)
[was: [Re:]* time(1) incorrect[(Re)], times(3) strange; clock_t == long]
David> It [times()] has the same (erroneous) behavior. [i.e. on RedHat
David> Linux/Alpha 2.1 than on the good old BLADE_0.3]
David> I ran across this while working on GNU libc and it's fixed in my
David> sources now, but I was hoping on not having to do another
David> libc-4.6.27-based release. If you can't wait to have this fixed,
David> let me know and I'll see about it.
times():
I've tracked what was interesting for me while porting GNU time-1.6
to Linux/Alpha (actually to BLADE_0.3). So there is no
emergency for me to get a new libc incorporating your fix.
pre-compiled updates:
I think that it would be a great benefit (for BLADE_0.3
users? if I am not the last) to have archived on the net,
in usual compressed-tar format, pre-compiled versions of the updates
you make in Linux/alpha commands and libraries (along with source and/or
patch files). You used to do that before, and you still do it for
kernel updates; of course it would be (time-, at least) expensive,
so it's up to you.
fred
PS (times()): Was it a missing 's' in the library sources you're working
on ? I think so, because (at least with BLADE_0.3 libs) times() and time()
return the same value!
PPS(pre-compiled updates): Could you tell me if there are known
incompatibilities beetween the BLADE_0.3 kernel+system header
files and the axp-libc.40 (.39, .38, .37, ...) you've put on AZStarNet ?
Sorry to insist, but I think it would be stupid to just `try and see'
if you know (even approximately) the answer... Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1996-03-07 11:40 UTC | newest]
Thread overview: 3+ 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
-- strict thread matches above, loose matches on Subject: below --
1996-03-06 14:48 good times(2|3); pre-compiled updates froy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox