Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/makefs convert from strsuftoull() (from ../../bin/d...



details:   https://anonhg.NetBSD.org/src/rev/5e5f4eb13a3c
branches:  trunk
changeset: 539911:5e5f4eb13a3c
user:      lukem <lukem%NetBSD.org@localhost>
date:      Fri Nov 29 13:06:32 2002 +0000

description:
convert from strsuftoull() (from ../../bin/dd) to strsuftoll(3) in libc

diffstat:

 usr.sbin/makefs/Makefile |   4 ++--
 usr.sbin/makefs/makefs.c |  25 ++++++++++++-------------
 2 files changed, 14 insertions(+), 15 deletions(-)

diffs (122 lines):

diff -r ff5a4c3cbfbb -r 5e5f4eb13a3c usr.sbin/makefs/Makefile
--- a/usr.sbin/makefs/Makefile  Fri Nov 29 13:00:22 2002 +0000
+++ b/usr.sbin/makefs/Makefile  Fri Nov 29 13:06:32 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.9 2002/09/18 03:54:33 lukem Exp $
+#      $NetBSD: Makefile,v 1.10 2002/11/29 13:06:32 lukem Exp $
 #
 
 .include <bsd.own.mk>
@@ -6,7 +6,7 @@
 PROG=  makefs
 SRCS=  makefs.c walk.c \
        ffs.c mkfs.c buf.c \
-       getid.c misc.c spec.c pack_dev.c stat_flags.c strsuftoull.c \
+       getid.c misc.c spec.c pack_dev.c stat_flags.c \
        ffs_alloc.c ffs_balloc.c ffs_bswap.c ffs_subr.c ffs_tables.c ufs_bmap.c 
 MAN=   makefs.8
 
diff -r ff5a4c3cbfbb -r 5e5f4eb13a3c usr.sbin/makefs/makefs.c
--- a/usr.sbin/makefs/makefs.c  Fri Nov 29 13:00:22 2002 +0000
+++ b/usr.sbin/makefs/makefs.c  Fri Nov 29 13:06:32 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: makefs.c,v 1.13 2002/01/31 22:44:02 tv Exp $   */
+/*     $NetBSD: makefs.c,v 1.14 2002/11/29 13:06:33 lukem Exp $        */
 
 /*
  * Copyright (c) 2001-2002 Wasabi Systems, Inc.
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(__lint)
-__RCSID("$NetBSD: makefs.c,v 1.13 2002/01/31 22:44:02 tv Exp $");
+__RCSID("$NetBSD: makefs.c,v 1.14 2002/11/29 13:06:33 lukem Exp $");
 #endif /* !__lint */
 
 #include <assert.h>
@@ -51,7 +51,6 @@
 
 #include "makefs.h"
 #include "mtree.h"
-#include "strsuftoull.h"
 
 /*
  * list of supported file systems and dispatch functions
@@ -144,18 +143,18 @@
                        if (optarg[len] == '%') {
                                optarg[len] = '\0';
                                fsoptions.freeblockpc =
-                                   strsuftoull("free block percentage",
+                                   strsuftoll("free block percentage",
                                        optarg, 0, 99);
                        } else {
                                fsoptions.freeblocks =
-                                   strsuftoull("free blocks",
+                                   strsuftoll("free blocks",
                                        optarg, 0, LLONG_MAX);
                        }
                        break;
 
                case 'd':
                        debug =
-                           (int)strsuftoull("debug mask", optarg, 0, UINT_MAX);
+                           (int)strsuftoll("debug mask", optarg, 0, UINT_MAX);
                        break;
 
                case 'f':
@@ -163,11 +162,11 @@
                        if (optarg[len] == '%') {
                                optarg[len] = '\0';
                                fsoptions.freefilepc =
-                                   strsuftoull("free file percentage",
+                                   strsuftoll("free file percentage",
                                        optarg, 0, 99);
                        } else {
                                fsoptions.freefiles =
-                                   strsuftoull("free files",
+                                   strsuftoll("free files",
                                        optarg, 0, LLONG_MAX);
                        }
                        break;
@@ -178,7 +177,7 @@
 
                case 'M':
                        fsoptions.minsize =
-                           strsuftoull("minimum size", optarg, 1LL, LLONG_MAX);
+                           strsuftoll("minimum size", optarg, 1LL, LLONG_MAX);
                        break;
 
                case 'N':
@@ -190,7 +189,7 @@
 
                case 'm':
                        fsoptions.maxsize =
-                           strsuftoull("maximum size", optarg, 1LL, LLONG_MAX);
+                           strsuftoll("maximum size", optarg, 1LL, LLONG_MAX);
                        break;
                        
                case 'o':
@@ -208,12 +207,12 @@
 
                case 's':
                        fsoptions.minsize = fsoptions.maxsize =
-                           strsuftoull("size", optarg, 1LL, LLONG_MAX);
+                           strsuftoll("size", optarg, 1LL, LLONG_MAX);
                        break;
 
                case 'S':
                        fsoptions.sectorsize =
-                           (int)strsuftoull("sector size", optarg,
+                           (int)strsuftoll("sector size", optarg,
                                1LL, INT_MAX);
                        break;
 
@@ -276,7 +275,7 @@
        for (i = 0; options[i].name != NULL; i++) {
                if (strcmp(options[i].name, var) != 0)
                        continue;
-               *options[i].value = (int)strsuftoull(options[i].desc, val,
+               *options[i].value = (int)strsuftoll(options[i].desc, val,
                    options[i].minimum, options[i].maximum);
                return (1);
        }



Home | Main Index | Thread Index | Old Index