I want to study how its GFileInfo components works.
Best Answer
Where did you get libgio.so? On most Linux distributions, there's an automatic way of retrieving the source code of a package.
For example, on Debian, Ubuntu and derived distributions, run dpkg -S to see what package libgio.so belongs to, then apt-get source to get the source code of that package. Example ($ represents my shell prompt; on my system, the gio library is in a file called libgio-2.0.so):
Uptime is part of the 'procps' package, the upstream source is at http://procps.sourceforge.net/ (Not a fedora user, so not sure where to find their .src.rpm).
To answer the question you didn't ask, however; take a look in /proc/uptime
The first number is seconds since boot. You should be able to turn that into something usable fairly easily :)
glibc stands for GNU C Library. It is a C standard library implementation. It's not a part of the compiler, because you might have different implementations of it (like Microsoft C run-time for example) as well as different compilers (like clang).
Best Answer
Where did you get
libgio.so
? On most Linux distributions, there's an automatic way of retrieving the source code of a package.For example, on Debian, Ubuntu and derived distributions, run
dpkg -S
to see what packagelibgio.so
belongs to, thenapt-get source
to get the source code of that package. Example ($
represents my shell prompt; on my system, the gio library is in a file calledlibgio-2.0.so
):