ctime(); is a libc function. So it is normal, that you can us it in module. try => do_gettimeofday(); regards, Christophe Karthik M (k_mohanas@yahoo.com) wrote: > hi, > > I am trying to print the access time from the inode > structure from within a kernel module. > > The return type is time_t which is inturn a unsigned > integer. I am trying to print this number is the > format of : > > "Day Month date time year" > > The function which does this is in > /usr/include/time.h. The name of the funtion is > ctime() but I will not be able to acess it from the > module. > > Is there any other funtion that has a similar > funtionality which i can call from the module. > > TIA > > Karthik ______________________________________________________________________________ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/