2002-06-04 12:06:22

by Kjeld Borch Egevang

[permalink] [raw]
Subject: sys_time() not working on 64-bit processor

I'm currently running on a 64-bit version of Linux on a MIPS processor
(int == 32 bit, long == 64 bit). I noticed that the time() system call did
not work.

Is there any reason why sys_time() (and sys_stime()) in kernel/time.c is
defined with an int pointer?



/Kjeld


2002-06-04 15:36:39

by Maciej W. Rozycki

[permalink] [raw]
Subject: Re: sys_time() not working on 64-bit processor

On Tue, 4 Jun 2002, Kjeld Borch Egevang wrote:

> I'm currently running on a 64-bit version of Linux on a MIPS processor
> (int == 32 bit, long == 64 bit). I noticed that the time() system call did
> not work.
>
> Is there any reason why sys_time() (and sys_stime()) in kernel/time.c is
> defined with an int pointer?

The syscalls are obsolete and do not even attempt to work on 64-bit
systems. It's all explained there.

--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: [email protected], PGP key available +