Re: What is the system call for time?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 20Dec2020 22:26, ToddAndMargo <ToddAndMargo@xxxxxxxx> wrote:
>>>This is my fault for not being clear enough.
>>>I can't use a "C" (time.h) library for what
>>>I am doing.
>>>
>>>What I need is a call to something inside
>>>      /usr/lib64/libxxxx.so.x
>>>
>>>And I do not know which one will give me the
>>>time.

Aha.

Well, the "date" command loooks up the time. What libraries does it 
access?

    [~]borg*> ldd /bin/date
    linux-vdso.so.1 (0x00007fffc3b5b000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f1976012000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f197622f000)

So that's where the libc library .so lives.

I was going to suggest the "nm" command, which should access the symbol 
tables of object files (including executables and library files). But it 
doesn't work on my Linux box here.

Cheers,
Cameron Simpson <cs@xxxxxxxxxx>
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux