diff options
Diffstat (limited to 'usr/src')
| -rw-r--r-- | usr/src/cmd/getconf/Makefile | 1 | ||||
| -rw-r--r-- | usr/src/cmd/getconf/getconf.c | 10 | ||||
| -rw-r--r-- | usr/src/man/man1/getconf.1 | 10 |
3 files changed, 15 insertions, 6 deletions
diff --git a/usr/src/cmd/getconf/Makefile b/usr/src/cmd/getconf/Makefile index ed93052eec..cd001490d8 100644 --- a/usr/src/cmd/getconf/Makefile +++ b/usr/src/cmd/getconf/Makefile @@ -37,7 +37,6 @@ include ../Makefile.cmd XPG4EXOBJS += values-xpg4.o CFLAGS += $(CCVERBOSE) -CERRWARN += -_gcc=-Wno-parentheses # XPG4 $(XPG4) := CFLAGS += -D_XOPEN_SOURCE -I$(SRC)/lib/libc/inc diff --git a/usr/src/cmd/getconf/getconf.c b/usr/src/cmd/getconf/getconf.c index bf5ac5437c..fe2dceb76b 100644 --- a/usr/src/cmd/getconf/getconf.c +++ b/usr/src/cmd/getconf/getconf.c @@ -221,6 +221,8 @@ static struct sctab { /* Large File Summit name (UNIX 98) */ _PC_FILESIZEBITS, "FILESIZEBITS", PATHCONF, NOFLAGS, + _PC_XATTR_ENABLED, "XATTR_ENABLED", PATHCONF, NOFLAGS, + _PC_XATTR_EXISTS, "XATTR_EXISTS", PATHCONF, NOFLAGS, /* UNIX 03 Additions */ @@ -234,6 +236,11 @@ static struct sctab { _PC_2_SYMLINKS, "POSIX2_SYMLINKS", PATHCONF, NOFLAGS, _PC_SYMLINK_MAX, "SYMLINK_MAX", PATHCONF, NOFLAGS, + _PC_ACL_ENABLED, "ACL_ENABLED", PATHCONF, NOFLAGS, + _PC_MIN_HOLE_SIZE, "MIN_HOLE_SIZE", PATHCONF, NOFLAGS, + _PC_SATTR_ENABLED, "SATTR_ENABLED", PATHCONF, NOFLAGS, + _PC_SATTR_EXISTS, "SATTR_EXISTS", PATHCONF, NOFLAGS, + /* UNIX 08 additions */ _PC_TIMESTAMP_RESOLUTION, "_POSIX_TIMESTAMP_RESOLUTION", @@ -826,7 +833,7 @@ getconf(struct sctab *scp, int argc, char *name, char *file) return (usage()); errno = 0; len = confstr((int)scp->value, NULL, (size_t)0); - if (len == 0) + if (len == 0) { if (errno == EINVAL) { (void) fprintf(stderr, gettext(INVAL_ARG), name); @@ -836,6 +843,7 @@ getconf(struct sctab *scp, int argc, char *name, char *file) (void) printf("undefined\n"); return (0); } + } /* * allocate space to store result of constr() into */ diff --git a/usr/src/man/man1/getconf.1 b/usr/src/man/man1/getconf.1 index ea38de392d..89b0451bd3 100644 --- a/usr/src/man/man1/getconf.1 +++ b/usr/src/man/man1/getconf.1 @@ -10,7 +10,7 @@ .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. .\" See the License for the specific language governing permissions and limitations under the License. When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with .\" the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] -.TH GETCONF 1 "Jan 16, 2013" +.TH GETCONF 1 "Sep 27, 2013" .SH NAME getconf \- get configuration values .SH SYNOPSIS @@ -408,9 +408,11 @@ supported: .TS l l l l l l . -LINK_MAX NAME_MAX _POSIX_CHOWN_RESTRICTED -MAX_CANON PATH_MAX _POSIX_NO_TRUNC -MAX_INPUT PIPE_BUF _POSIX_VDISABLE +ACL_ENABLED NAME_MAX XATTR_ENABLED +LINK_MAX PATH_MAX XATTR_EXISTS +MAX_CANON PIPE_BUF _POSIX_CHOWN_RESTRICTED +MAX_INPUT SATTR_ENABLED _POSIX_NO_TRUNC +MIN_HOLE_SIZE SATTR_EXISTS _POSIX_VDISABLE .TE .sp |
