Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/makefs support 1234 and 4321 as valid byte-order ar...



details:   https://anonhg.NetBSD.org/src/rev/7ef6f15b551b
branches:  trunk
changeset: 544066:7ef6f15b551b
user:      lukem <lukem%NetBSD.org@localhost>
date:      Mon Mar 10 10:02:58 2003 +0000

description:
support 1234 and 4321 as valid byte-order arguments for -B

diffstat:

 usr.sbin/makefs/makefs.8 |  8 +++++---
 usr.sbin/makefs/makefs.c |  8 +++++---
 2 files changed, 10 insertions(+), 6 deletions(-)

diffs (70 lines):

diff -r 511d4af1c789 -r 7ef6f15b551b usr.sbin/makefs/makefs.8
--- a/usr.sbin/makefs/makefs.8  Mon Mar 10 09:55:10 2003 +0000
+++ b/usr.sbin/makefs/makefs.8  Mon Mar 10 10:02:58 2003 +0000
@@ -1,6 +1,6 @@
-.\"    $NetBSD: makefs.8,v 1.8 2003/02/25 10:36:13 wiz Exp $
+.\"    $NetBSD: makefs.8,v 1.9 2003/03/10 10:02:58 lukem Exp $
 .\"
-.\" Copyright (c) 2001-2002 Wasabi Systems, Inc.
+.\" Copyright (c) 2001-2003 Wasabi Systems, Inc.
 .\" All rights reserved.
 .\"
 .\" Written by Luke Mewburn for Wasabi Systems, Inc.
@@ -33,7 +33,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd February 8, 2002
+.Dd March 10, 2002
 .Dt MAKEFS 8
 .Os
 .Sh NAME
@@ -113,10 +113,12 @@
 Set the byte order of the image to
 .Ar byte-order .
 Valid byte orders are
+.Ql 4321 ,
 .Ql big
 or
 .Ql be
 for big endian, and
+.Ql 1234 ,
 .Ql little
 or
 .Ql le
diff -r 511d4af1c789 -r 7ef6f15b551b usr.sbin/makefs/makefs.c
--- a/usr.sbin/makefs/makefs.c  Mon Mar 10 09:55:10 2003 +0000
+++ b/usr.sbin/makefs/makefs.c  Mon Mar 10 10:02:58 2003 +0000
@@ -1,7 +1,7 @@
-/*     $NetBSD: makefs.c,v 1.14 2002/11/29 13:06:33 lukem Exp $        */
+/*     $NetBSD: makefs.c,v 1.15 2003/03/10 10:02:58 lukem Exp $        */
 
 /*
- * Copyright (c) 2001-2002 Wasabi Systems, Inc.
+ * Copyright (c) 2001-2003 Wasabi Systems, Inc.
  * All rights reserved.
  *
  * Written by Luke Mewburn for Wasabi Systems, Inc.
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(__lint)
-__RCSID("$NetBSD: makefs.c,v 1.14 2002/11/29 13:06:33 lukem Exp $");
+__RCSID("$NetBSD: makefs.c,v 1.15 2003/03/10 10:02:58 lukem Exp $");
 #endif /* !__lint */
 
 #include <assert.h>
@@ -123,11 +123,13 @@
 
                case 'B':
                        if (strcmp(optarg, "be") == 0 ||
+                           strcmp(optarg, "4321") == 0 ||
                            strcmp(optarg, "big") == 0) {
 #if BYTE_ORDER == LITTLE_ENDIAN
                                fsoptions.needswap = 1;
 #endif
                        } else if (strcmp(optarg, "le") == 0 ||
+                           strcmp(optarg, "1234") == 0 ||
                            strcmp(optarg, "little") == 0) {
 #if BYTE_ORDER == BIG_ENDIAN
                                fsoptions.needswap = 1;



Home | Main Index | Thread Index | Old Index