* changing system time
@ 2003-08-05 1:28 Joshua Hudson
2003-08-05 7:51 ` Maciej Hrebien
0 siblings, 1 reply; 4+ messages in thread
From: Joshua Hudson @ 2003-08-05 1:28 UTC (permalink / raw)
To: linux-assembly
I have almost completed modifying date to permit changing the date.
I'm not quite sure how to use the sys_settime system call.
[edi] referrs to the number of seconds since the epoc in LOCAL time.
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: changing system time
2003-08-05 1:28 changing system time Joshua Hudson
@ 2003-08-05 7:51 ` Maciej Hrebien
2003-08-06 1:49 ` changing system time - 'struct' implementation in asm Slack Traq
0 siblings, 1 reply; 4+ messages in thread
From: Maciej Hrebien @ 2003-08-05 7:51 UTC (permalink / raw)
To: linux-assembly
Joshua Hudson wrote:
>
> I have almost completed modifying date to permit changing the date.
> I'm not quite sure how to use the sys_settime system call.
> [edi] referrs to the number of seconds since the epoc in LOCAL time.
I think you are talking about sys_settimeofday, right? If so, it gets 2
ptrs as args: ebx - timeval struct, ecx - timezone struct. Or sys_stime?
it gets only one arg, in ebx & it measures in seconds from 0:0:0 __GMT__
01.01.1970.
--
Maciej Hrebien
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: changing system time - 'struct' implementation in asm
2003-08-05 7:51 ` Maciej Hrebien
@ 2003-08-06 1:49 ` Slack Traq
2003-08-06 7:53 ` Maciej Hrebien
0 siblings, 1 reply; 4+ messages in thread
From: Slack Traq @ 2003-08-06 1:49 UTC (permalink / raw)
To: linux-assembly
--- Maciej Hrebien <m_hrebien@wp.pl> wrote:
> Joshua Hudson wrote:
> >
> > I have almost completed modifying date to permit
> changing the date.
> > I'm not quite sure how to use the sys_settime
> system call.
> > [edi] referrs to the number of seconds since the
> epoc in LOCAL time.
>
> I think you are talking about sys_settimeofday,
> right? If so, it gets 2
> ptrs as args: ebx - timeval struct, ecx - timezone
> struct. Or sys_stime?
> it gets only one arg, in ebx & it measures in
> seconds from 0:0:0 __GMT__
> 01.01.1970.
>
> --
> Maciej Hrebien
>
How do you make a struct in assembly????
Thanks,
Slack
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: changing system time - 'struct' implementation in asm
2003-08-06 1:49 ` changing system time - 'struct' implementation in asm Slack Traq
@ 2003-08-06 7:53 ` Maciej Hrebien
0 siblings, 0 replies; 4+ messages in thread
From: Maciej Hrebien @ 2003-08-06 7:53 UTC (permalink / raw)
To: linux-assembly
Slack Traq wrote:
>
> How do you make a struct in assembly????
<gas in .data or .bss>
timv: .long 0 # tv_sec
.long 0 # tv_usec
<gas locally on stack>
# ...
pushl $0 # tv_usec
pushl $0 # tv_sec
# ...
$timv or %esp points to your timeval struct. If you want timv to be not
local, write .globl/.global timv.
--
Maciej Hrebien
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-08-06 7:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-05 1:28 changing system time Joshua Hudson
2003-08-05 7:51 ` Maciej Hrebien
2003-08-06 1:49 ` changing system time - 'struct' implementation in asm Slack Traq
2003-08-06 7:53 ` Maciej Hrebien
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.