X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=Documentation%2Fhpet.txt;h=4e7cc8d3359b9a839ed941d5dbad01598869c306;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=584ebc2770b54a5270c7991459a7b8f9e77ebc77;hpb=db216c3d5e4c040e557a50f8f5d35d5c415e8c1c;p=linux-2.6.git diff --git a/Documentation/hpet.txt b/Documentation/hpet.txt index 584ebc277..4e7cc8d33 100644 --- a/Documentation/hpet.txt +++ b/Documentation/hpet.txt @@ -103,7 +103,7 @@ hpet_open_close(int argc, const char **argv) return; } - fd = open(argv[0], O_RDWR); + fd = open(argv[0], O_RDONLY); if (fd < 0) fprintf(stderr, "hpet_open_close: open failed\n"); else @@ -136,7 +136,7 @@ hpet_poll(int argc, const char **argv) freq = atoi(argv[1]); iterations = atoi(argv[2]); - fd = open(argv[0], O_RDWR); + fd = open(argv[0], O_RDONLY); if (fd < 0) { fprintf(stderr, "hpet_poll: open of %s failed\n", argv[0]); @@ -230,7 +230,7 @@ hpet_fasync(int argc, const char **argv) goto out; } - fd = open(argv[0], O_RDWR); + fd = open(argv[0], O_RDONLY); if (fd < 0) { fprintf(stderr, "hpet_fasync: failed to open %s\n", argv[0]);