Finding source code for mktime()

Finding source code for mktime()

Post by David Kemp » Sat, 17 Apr 1999 04:00:00



Hello,

There may be a better newsgroup for this question; if so, please let me
know what it is.  I am not a regular Linux newsgroup follower.

I am looking for the source code to the ANSI C library routine mktime().
[It does not necessarily have to be the Linux version of this routine, but
since I have access to a Linux installation I thought that would be the
easiest to find.]  I did not find it in the linux-kernel source tree, nor
in the source for gcc, and I'm at a loss on where else to look.

Since much of the source seems to be stored in RPM format, it is not easily
searchable with the "find" command.

My specific question is where I might find the source to mktime().  A more
generic question would be how to find source code for a given routine on a
Linux installation.

The machine I am using is running Red Hat Linux release 5.1.

Thanks in advance.

--Dave

 
 
 

Finding source code for mktime()

Post by dave madde » Sun, 18 Apr 1999 04:00:00


 =>I am looking for the source code to the ANSI C library routine mktime().
 =>...
 =>A more
 =>generic question would be how to find source code for a given routine on a
 =>Linux installation.

It's in the C library sources.  Look for an RPM with "libc" and "src"
in the name somewhere.  (There are at least two versions of the
library, an older one -- libc5 -- and the one used in newer
distributions, glibc.)

d.
--
header address is anti-spamified.  use caution when replying by

omits the hostname.

 
 
 

Finding source code for mktime()

Post by fred smi » Sun, 18 Apr 1999 04:00:00


: Hello,

: I am looking for the source code to the ANSI C library routine mktime().
: [It does not necessarily have to be the Linux version of this routine, but
: since I have access to a Linux installation I thought that would be the
: easiest to find.]  I did not find it in the linux-kernel source tree, nor
: in the source for gcc, and I'm at a loss on where else to look.

I'd expect to find it in the libc sources.

Fred
--

                         For the wages of sin is death,
            but the gift of God is eternal life in Christ Jesus our Lord
------------------------------ Romans 6:23 (niv) ------------------------------