Module Name:    src
Committed By:   christos
Date:           Sun Nov 29 15:32:46 UTC 2015

Modified Files:
        src/sbin/gpt: Makefile gpt.h
Removed Files:
        src/sbin/gpt: drvctl.c

Log Message:
Remove getdisksize support; we either have the ioctls (current/-7) or we
don't (non-netbsd-current/7+tools).


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sbin/gpt/Makefile
cvs rdiff -u -r1.1 -r0 src/sbin/gpt/drvctl.c
cvs rdiff -u -r1.20 -r1.21 src/sbin/gpt/gpt.h

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

Modified files:

Index: src/sbin/gpt/Makefile
diff -u src/sbin/gpt/Makefile:1.14 src/sbin/gpt/Makefile:1.15
--- src/sbin/gpt/Makefile:1.14	Mon Nov  2 21:19:24 2015
+++ src/sbin/gpt/Makefile	Sun Nov 29 10:32:46 2015
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2015/11/03 02:19:24 jnemeth Exp $
+# $NetBSD: Makefile,v 1.15 2015/11/29 15:32:46 christos Exp $
 # $FreeBSD: src/sbin/gpt/Makefile,v 1.7 2005/09/01 02:49:20 marcel Exp $
 
 PROG=	gpt
@@ -11,16 +11,6 @@ MAN=	gpt.8
 SRCS+= backup.c restore.c
 LDADD+=	-lprop -lutil
 DPADD+= ${LIBPROP} ${LIBUTIL}
-
-.if ${USE_DRVCTL:Uno} == "yes"
-CPPFLAGS+=-DUSE_DRVCTL
-SRCS+=drvctl.c
-.else
-.PATH: ${.CURDIR}/../fsck
-CPPFLAGS+=-I${.CURDIR}/../fsck
-SRCS+=partutil.c
-.endif
 .endif
 
-
 .include <bsd.prog.mk>

Index: src/sbin/gpt/gpt.h
diff -u src/sbin/gpt/gpt.h:1.20 src/sbin/gpt/gpt.h:1.21
--- src/sbin/gpt/gpt.h:1.20	Sat Nov 28 19:14:46 2015
+++ src/sbin/gpt/gpt.h	Sun Nov 29 10:32:46 2015
@@ -96,16 +96,4 @@ int	cmd_show(int, char *[]);
 int	cmd_type(int, char *[]);
 int	cmd_unset(int, char *[]);
 
-#ifndef HAVE_NBTOOL_CONFIG_H
-# ifdef USE_DRVCTL
-int	getdisksize(const char *, u_int *, off_t *);
-# else
-#  include "partutil.h"
-# endif
-#else
-# define getdisksize(a, b, c) 0
-#endif
-
-#define GPT_FORCE 1
-
 #endif /* _GPT_H_ */

Reply via email to