From 0cb8a5d49a6fe832b0bf640d1b6e0a2361f0d56c Mon Sep 17 00:00:00 2001 From: Stathis Kamperis Date: Mon, 13 Aug 2007 07:49:43 +0300 Subject: [PATCH] Add description regarding disklabel.c and readwd.c programs --- fileops/disklabel.c | 13 ++++++++++++- fileops/readwd.c | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/fileops/disklabel.c b/fileops/disklabel.c index ea20809..c8a3df4 100644 --- a/fileops/disklabel.c +++ b/fileops/disklabel.c @@ -1,5 +1,16 @@ /* compile with: - gcc disklabel.c -o disklabel -Wall -W -Wextra -ansi -pedantic */ + gcc disklabel.c -o disklabel -Wall -W -Wextra -ansi -pedantic + + Each disk on a system may contain a disk label which provides + detailed information about the geometry of the disk and the + partitions into which the disk is divided. + + A copy of the in-core label for a disk can be obtained with the + DIOCGDINFO ioctl(2); this works with a file descriptor for a block or + character (``raw'') device for any partition of the disk. + + For more information consult disklabel(5) man page. +*/ #include #include diff --git a/fileops/readwd.c b/fileops/readwd.c index cceb453..04dda49 100644 --- a/fileops/readwd.c +++ b/fileops/readwd.c @@ -1,4 +1,4 @@ -/* WARNING: I got spontaneous hangups with the following code in NetBSD 4.99.20 +/* WARNING: I got spontaneous hangups with the following code in NetBSD 4.99.20 compile with: gcc readwd.c -o readwd -Wall -W -Wextra -ansi -pedantic */ -- 2.11.4.GIT