flat assembler
Message board for the users of flat assembler.

Index > Heap > I am done with Linux Assembly!

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
system error



Joined: 01 Sep 2013
Posts: 671
system error
Now tell me which one of this statement is TRUE regarding call to syscall's sys_nanosleep

Code:
A. EAX=162
B. EAX=35
C. RTFM! Any C manual! :D    
Post 18 Nov 2014, 17:47
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3502
Location: Bulgaria
JohnFound
system error wrote:
Now tell me which one of this statement is TRUE regarding call to syscall's sys_nanosleep

Code:
A. EAX=162
B. EAX=35
C. RTFM! Any C manual! :D    


And why I posted this link to LSCR? Evil or Very Mad Read it!

sys_nanosleep = 162 and it always was 162.

There is another function: sys_ftime = 35 and...
Quote:
This system call is not yet implemented and will always return -ENOSYS.


So, don't read C manuals! Read LSCR.

_________________
Tox ID: 48C0321ADDB2FE5F644BB5E3D58B0D58C35E5BCBC81D7CD333633FEDF1047914A534256478D9
Post 18 Nov 2014, 18:13
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
system error



Joined: 01 Sep 2013
Posts: 671
system error
Razz
Post 19 Nov 2014, 01:32
View user's profile Send private message Reply with quote
system error



Joined: 01 Sep 2013
Posts: 671
system error
John, here's another reference;

http://blog.rchapman.org/post/36801038863/linux-system-call-table-for-x86-64

Seeeee, its RAX=35 for sys_nanosleep. hehehe Laughing
Post 19 Nov 2014, 01:45
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3502
Location: Bulgaria
JohnFound
You asked about EAX.
Post 19 Nov 2014, 04:49
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
system error



Joined: 01 Sep 2013
Posts: 671
system error
Laughing
Post 20 Nov 2014, 22:52
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.