Module Name:    src
Committed By:   christos
Date:           Mon Sep 29 21:05:11 UTC 2014

Modified Files:
        src/tools/gpt: Makefile
Added Files:
        src/tools/gpt: opendisk.h

Log Message:
add opendisk


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tools/gpt/Makefile
cvs rdiff -u -r0 -r1.1 src/tools/gpt/opendisk.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tools/gpt/Makefile
diff -u src/tools/gpt/Makefile:1.1 src/tools/gpt/Makefile:1.2
--- src/tools/gpt/Makefile:1.1	Mon Sep 29 16:29:44 2014
+++ src/tools/gpt/Makefile	Mon Sep 29 17:05:11 2014
@@ -1,9 +1,12 @@
-#	$NetBSD: Makefile,v 1.1 2014/09/29 20:29:44 christos Exp $
+#	$NetBSD: Makefile,v 1.2 2014/09/29 21:05:11 christos Exp $
 
 HOSTPROGNAME=	nbgpt
 HOST_SRCDIR=	sbin/gpt
+HOST_CPPFLAGS+=	-I${.CURDIR}
+HOST_SRCS+= opendisk.c
 
 NOMAN=	# defined
+.PATH.c: ${.CURDIR}/../../lib/libutil
 
 .include "${.CURDIR}/../Makefile.nbincludes"
 .include "${.CURDIR}/../Makefile.host"

Added files:

Index: src/tools/gpt/opendisk.h
diff -u /dev/null src/tools/gpt/opendisk.h:1.1
--- /dev/null	Mon Sep 29 17:05:11 2014
+++ src/tools/gpt/opendisk.h	Mon Sep 29 17:05:11 2014
@@ -0,0 +1,5 @@
+int opendisk(const char *, int, char *, size_t, int);
+#define getrawpartition()	3
+#ifndef _PATH_DEV
+#define _PATH_DEV	"/dev/"
+#endif

Reply via email to