LinuxQuestions.org
Review your favorite Linux distribution.
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, 03: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, 03:45 AM   #2
crts
Senior Member
 
Registered: Jan 2010
Posts: 1,606

Rep: Reputation: 448Reputation: 448Reputation: 448Reputation: 448Reputation: 448
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, 03:48 AM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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, 07:20 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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, 09:28 AM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
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, 03: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 05:31 AM
root unable to write on drive mounted with read/write perrmission aquash2000 Linux - Server 5 07-19-2008 01:20 PM
Read/write locks using semaphores with write priority arunka Programming 1 06-28-2007 08:04 PM
Why can I not write to a SAMBA share when read/write is enabled? eric m Linux - General 4 08-21-2006 10:22 PM
Open office read only, K-write read/write mode lwtvh Linux - Newbie 1 07-19-2003 12:33 PM


All times are GMT -5. The time now is 10:40 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration