LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-22-2010, 02:43 AM   #1
raghu437
LQ Newbie
 
Registered: Feb 2010
Posts: 6

Rep: Reputation: 0
Read and write the HW clock


hi..
how to read and write i.e setting of hardware clock through c program on linux
 
Old 02-22-2010, 02:45 AM   #2
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by raghu437 View Post
hi..
how to read and write i.e setting of hardware clock through c program on linux
Hi,

since this has nothing to do with the problem dealt with in this thread you should start a new thread for your specific problem.
 
Old 02-22-2010, 02:48 AM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by crts View Post
Hi,

since this has nothing to do with the problem dealt with in this thread you should start a new thread for your specific problem.
and it has been reported with a message to this effect.
 
Old 02-22-2010, 06:20 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
and now--as if by magic--it is moved.

If I'm not mistaken, you can call the BASH "date" command (or any other BASH command) from C----Something like a "system" call?
 
Old 02-22-2010, 08:28 AM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Code:
c@CW8:~$ apropos clock | grep '(2)'
adjtimex []          (2)  - tune kernel clock
alarm []             (2)  - set an alarm clock for delivery of a signal
clock_getres []      (2)  - clock and time functions
clock_gettime []     (2)  - clock and time functions
clock_nanosleep []   (2)  - high-resolution sleep with specifiable clock
clock_settime []     (2)  - clock and time functions
clock_gettime and clock_settime look promising.
 
Old 03-18-2010, 02:38 AM   #6
raghu437
LQ Newbie
 
Registered: Feb 2010
Posts: 6

Original Poster
Rep: Reputation: 0
hi friends,
how can i add <allegro.h> header file. im using fedora 12.
thnx
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I have: Root has Read-Write, user has read only for the boot filesystem? xmrkite Linux - Software 6 10-16-2008 04:31 AM
root unable to write on drive mounted with read/write perrmission aquash2000 Linux - Server 5 07-19-2008 12:20 PM
Read/write locks using semaphores with write priority arunka Programming 1 06-28-2007 07:04 PM
Why can I not write to a SAMBA share when read/write is enabled? eric m Linux - General 4 08-21-2006 09:22 PM
Open office read only, K-write read/write mode lwtvh Linux - Newbie 1 07-19-2003 11:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration