Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tools/gpt add opendisk
details: https://anonhg.NetBSD.org/src/rev/d8cec931e975
branches: trunk
changeset: 332584:d8cec931e975
user: christos <christos%NetBSD.org@localhost>
date: Mon Sep 29 21:05:11 2014 +0000
description:
add opendisk
diffstat:
tools/gpt/Makefile | 5 ++++-
tools/gpt/opendisk.h | 5 +++++
2 files changed, 9 insertions(+), 1 deletions(-)
diffs (26 lines):
diff -r 6379f659f5b0 -r d8cec931e975 tools/gpt/Makefile
--- a/tools/gpt/Makefile Mon Sep 29 21:04:52 2014 +0000
+++ b/tools/gpt/Makefile Mon Sep 29 21:05:11 2014 +0000
@@ -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"
diff -r 6379f659f5b0 -r d8cec931e975 tools/gpt/opendisk.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/gpt/opendisk.h Mon Sep 29 21:05:11 2014 +0000
@@ -0,0 +1,5 @@
+int opendisk(const char *, int, char *, size_t, int);
+#define getrawpartition() 3
+#ifndef _PATH_DEV
+#define _PATH_DEV "/dev/"
+#endif
Home |
Main Index |
Thread Index |
Old Index