* [PATCH] Doc: fix simple watchdog daemon to build cleanly
@ 2006-04-05 3:17 Randy.Dunlap
0 siblings, 0 replies; only message in thread
From: Randy.Dunlap @ 2006-04-05 3:17 UTC (permalink / raw)
To: lkml; +Cc: wingel, wim, akpm
From: Randy Dunlap <rdunlap@xenotime.net>
Fix the simple watchdog daemon program in Doc/watchdog/watchdog-api.txt
to build cleanly.
Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
---
Documentation/watchdog/watchdog-api.txt | 3 +++
1 files changed, 3 insertions(+)
--- linux-2617-rc1-docsrc.orig/Documentation/watchdog/watchdog-api.txt
+++ linux-2617-rc1-docsrc/Documentation/watchdog/watchdog-api.txt
@@ -36,6 +36,9 @@ timeout or margin. The simplest way to
some data to the device. So a very simple watchdog daemon would look
like this:
+#include <stdlib.h>
+#include <fcntl.h>
+
int main(int argc, const char *argv[]) {
int fd=open("/dev/watchdog",O_WRONLY);
if (fd==-1) {
---
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-04-05 3:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-05 3:17 [PATCH] Doc: fix simple watchdog daemon to build cleanly Randy.Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®