Author Topic: Is there a ftell syscall?  (Read 1875 times)

0 Members and 1 Guest are viewing this topic.

Offline lkj

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +58/-1
    • View Profile
Is there a ftell syscall?
« on: January 15, 2012, 01:22:11 pm »
Am I right that there's no ftell syscall in ndless2?
If yes, is there one that we know but that is only not built in in ndless? Or what can I do instead of using ftell to get a similar result?

Offline lkj

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +58/-1
    • View Profile
Re: Is there a ftell syscall?
« Reply #1 on: January 15, 2012, 02:21:45 pm »
I've read a bit and saw that bsl said he found ftell in os 1.7, why was it never included in the ndless syscalls? Is it somehow buggy?

Offline bsl

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 157
  • Rating: +14/-0
    • View Profile
Re: Is there a ftell syscall?
« Reply #2 on: January 15, 2012, 03:02:27 pm »
Prpbably because not very many people where using it.
It is included in Ndless 3.1
Here they are, you will have to make a custom syscall.

0X102F6A70  os_ncas2.0.1
0X102F7A40  os_ncas2.1.0

0X102F7340  0s_cas2.0.1
0X102F8310  0s_cas2.1.0

Offline lkj

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +58/-1
    • View Profile
Re: Is there a ftell syscall?
« Reply #3 on: January 15, 2012, 03:52:24 pm »
What is the correct first argument to SYSCALL_CUSTOM (i. e. the order of the addresses) in Ndless2?

Offline lkj

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +58/-1
    • View Profile
Re: Is there a ftell syscall?
« Reply #4 on: January 15, 2012, 04:24:00 pm »
It seems to be ncas2.0.1, cas2.0.1, ncas2.1.0, cas2.1.0...