diff options
| author | Roger A. Faulkner <Roger.Faulkner@Oracle.COM> | 2010-08-12 14:55:22 -0700 |
|---|---|---|
| committer | Roger A. Faulkner <Roger.Faulkner@Oracle.COM> | 2010-08-12 14:55:22 -0700 |
| commit | 23a1ccea6aac035f084a7a4cdc968687d1b02daf (patch) | |
| tree | 6ed5e310ce6dd96f997b0c0f9735805d513d898a /usr/src/cmd/format | |
| parent | 29c3196fe2acc65721d8b9b5ea708d3a87facde0 (diff) | |
| download | illumos-joyent-23a1ccea6aac035f084a7a4cdc968687d1b02daf.tar.gz | |
PSARC 2010/299 GNU/Linux/BSD compatibility functions
6960818 add get_nprocs(), getline(), strdupa(), strndup() to libc
6901783 strndup would be nice
6824404 libc should provide ffsl() & ffsll()
6793969 RFE: Add|stpcpy|to libc
6735446 Want a __progname symbol for BSD-style source compatibility
6421095 Solaris should provide strcasestr
6275498 Provide string compare functions wcscasecmp,wcsncasecmp in solaris like linux
--HG--
rename : usr/src/lib/libc/port/gen/strcasecmp.c => usr/src/lib/libc/port/gen/ascii_strcasecmp.c
rename : usr/src/lib/libc/port/gen/strncasecmp.c => usr/src/lib/libc/port/gen/ascii_strncasecmp.c
rename : usr/src/lib/libc/sparc/gen/strcasecmp.s => usr/src/lib/libc/sparc/gen/ascii_strcasecmp.s
rename : usr/src/lib/libc/sparcv9/gen/strcasecmp.s => usr/src/lib/libc/sparcv9/gen/ascii_strcasecmp.s
Diffstat (limited to 'usr/src/cmd/format')
| -rw-r--r-- | usr/src/cmd/format/label.c | 18 | ||||
| -rw-r--r-- | usr/src/cmd/format/modify_partition.c | 9 | ||||
| -rw-r--r-- | usr/src/cmd/format/partition.c | 8 |
3 files changed, 17 insertions, 18 deletions
diff --git a/usr/src/cmd/format/label.c b/usr/src/cmd/format/label.c index 4740baebb2..3da51d9cc7 100644 --- a/usr/src/cmd/format/label.c +++ b/usr/src/cmd/format/label.c @@ -18,22 +18,15 @@ * * CDDL HEADER END */ + /* - * Copyright 2009 Sun Microsystems, Inc. All rights reserved. - * Use is subject to license terms. + * Copyright (c) 1991, 2010, Oracle and/or its affiliates. All rights reserved. */ /* * This file contains the code relating to label manipulation. */ -#include "global.h" -#include "label.h" -#include "misc.h" -#include "main.h" -#include "partition.h" -#include "ctlr_scsi.h" -#include "checkdev.h" #include <string.h> #include <stdlib.h> #include <memory.h> @@ -43,6 +36,13 @@ #include <sys/uuid.h> #include <errno.h> #include <devid.h> +#include "global.h" +#include "label.h" +#include "misc.h" +#include "main.h" +#include "partition.h" +#include "ctlr_scsi.h" +#include "checkdev.h" #if defined(_FIRMWARE_NEEDS_FDISK) #include <sys/dktp/fdisk.h> diff --git a/usr/src/cmd/format/modify_partition.c b/usr/src/cmd/format/modify_partition.c index b2bc580e69..02fee8c67b 100644 --- a/usr/src/cmd/format/modify_partition.c +++ b/usr/src/cmd/format/modify_partition.c @@ -18,14 +18,16 @@ * * CDDL HEADER END */ + /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved. - * Use is subject to license terms. + * Copyright (c) 1991, 2010, Oracle and/or its affiliates. All rights reserved. */ /* * This file contains functions to implement the partition menu commands. */ +#include <stdlib.h> +#include <string.h> #include "global.h" #include "partition.h" #include "menu_partition.h" @@ -36,9 +38,6 @@ #include "label.h" #include "auto_sense.h" -#include <stdlib.h> -#include <string.h> - #ifdef __STDC__ /* Function prototypes for ANSI C Compilers */ diff --git a/usr/src/cmd/format/partition.c b/usr/src/cmd/format/partition.c index 11ae4488a1..3d06272904 100644 --- a/usr/src/cmd/format/partition.c +++ b/usr/src/cmd/format/partition.c @@ -18,21 +18,21 @@ * * CDDL HEADER END */ + /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved. - * Use is subject to license terms. + * Copyright (c) 1991, 2010, Oracle and/or its affiliates. All rights reserved. */ /* * This file contains functions that operate on partition tables. */ +#include <string.h> +#include <stdlib.h> #include "global.h" #include "partition.h" #include "misc.h" #include "menu_command.h" #include "menu_partition.h" -#include <string.h> -#include <stdlib.h> /* |
