summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith M Wesolowski <wesolows@foobazco.org>2013-09-16 21:46:26 +0000
committerKeith M Wesolowski <wesolows@foobazco.org>2013-09-16 21:46:39 +0000
commit653e63903b7e614dd8af673742c5faffd89a6089 (patch)
treef0fe6a36498d934021c31e5e0c44849ae3f90bc9
parent98f674c108c5547ea668eb9e8330cdf705e2e223 (diff)
parentb2940a7c18c8e650b02d80910e86914d835d04d0 (diff)
downloadillumos-joyent-653e63903b7e614dd8af673742c5faffd89a6089.tar.gz
[illumos-gate merge]
commit b2940a7c18c8e650b02d80910e86914d835d04d0 4122 do_sysfile_cmd colon-separates the module path, and then we can't parse it commit 522c768b8cd12cb4e80ed84c1eb5df0ed2fd2baa 3789 iscsid disables warnings commit 281033788b0b42de9863134d45880eab0979844e 1770 3libucb and 3ucb manpages are 6 years behind reality commit 72fb660e7d20fb0b72e43c7d5bac1acd8945077b 1601 date command should support +%N commit 98cdf45a92ada981b8c4e22ac69956b4139b1341 4023 Properly escape newlines and carriage returns in man pages commit a7fe1d5bb55904d4c79638b8778bc9dd8ed7fd7b 4078 groupadd execs getent unnecessarily 4127 dmake setup could create /etc/skel Manifest: usr/src/pkg/manifests/compatibility-ucb.mf
-rw-r--r--manifest29
-rw-r--r--usr/src/Targetdirs6
-rw-r--r--usr/src/cmd/iscsid/Makefile36
-rw-r--r--usr/src/cmd/oamuser/group/Makefile7
-rw-r--r--usr/src/cmd/oamuser/group/gid.c109
-rw-r--r--usr/src/cmd/oamuser/group/groupadd.c10
-rw-r--r--usr/src/cmd/oamuser/user/Makefile19
-rw-r--r--usr/src/cmd/oamuser/user/funcs.c6
-rw-r--r--usr/src/cmd/oamuser/user/useradd.c13
-rw-r--r--usr/src/cmd/oamuser/user/userdefs.c7
-rw-r--r--usr/src/cmd/oamuser/user/usermod.c7
-rw-r--r--usr/src/cmd/oamuser/user/val_lgrp.c6
-rw-r--r--usr/src/cmd/oamuser/user/val_lprj.c6
-rw-r--r--usr/src/lib/libcmdutils/Makefile.com3
-rw-r--r--usr/src/lib/libcmdutils/common/gid.c111
-rw-r--r--usr/src/lib/libcmdutils/common/mapfile-vers3
-rw-r--r--usr/src/lib/libcmdutils/common/uid.c (renamed from usr/src/cmd/oamuser/user/uid.c)86
-rw-r--r--usr/src/lib/libcmdutils/libcmdutils.h19
-rw-r--r--usr/src/lib/smbsrv/libsmb/Makefile.com2
-rw-r--r--usr/src/lib/smbsrv/libsmb/common/smb_lgrp.c73
-rw-r--r--usr/src/man/Makefile2
-rw-r--r--usr/src/man/man1/ar.14
-rw-r--r--usr/src/man/man1/elfwrap.14
-rw-r--r--usr/src/man/man1/file.14
-rw-r--r--usr/src/man/man1/ksh93.14
-rw-r--r--usr/src/man/man1/ld.14
-rw-r--r--usr/src/man/man1/nm.110
-rw-r--r--usr/src/man/man1/printf.118
-rw-r--r--usr/src/man/man1/sleep.14
-rw-r--r--usr/src/man/man1/sum.12
-rw-r--r--usr/src/man/man1c/uuencode.1c4
-rw-r--r--usr/src/man/man1m/fdisk.1m4
-rw-r--r--usr/src/man/man1m/id.1m4
-rw-r--r--usr/src/man/man3cpc/cpc_bind_event.3cpc8
-rw-r--r--usr/src/man/man3libucb/Makefile31
-rw-r--r--usr/src/man/man3libucb/libcurses.3libucb111
-rw-r--r--usr/src/man/man3libucb/libdbm.3libucb83
-rw-r--r--usr/src/man/man3libucb/librpcsoc.3libucb88
-rw-r--r--usr/src/man/man3libucb/libtermcap.3libucb78
-rw-r--r--usr/src/man/man3libucb/libucb.3libucb106
-rw-r--r--usr/src/man/man3nsl/gethostbyname.3nsl4
-rw-r--r--usr/src/man/man3papi/papiJobSubmit.3papi22
-rw-r--r--usr/src/man/man3papi/papiPrintersList.3papi4
-rw-r--r--usr/src/man/man3socket/getipnodebyname.3socket10
-rw-r--r--usr/src/man/man3tecla/gl_get_line.3tecla4
-rw-r--r--usr/src/man/man3ucb/Makefile48
-rw-r--r--usr/src/man/man3ucb/dbm.3ucb150
-rw-r--r--usr/src/man/man3ucb/flock.3ucb142
-rw-r--r--usr/src/man/man3ucb/fopen.3ucb140
-rw-r--r--usr/src/man/man3ucb/gettimeofday.3ucb99
-rw-r--r--usr/src/man/man3ucb/mctl.3ucb234
-rw-r--r--usr/src/man/man3ucb/nice.3ucb68
-rw-r--r--usr/src/man/man3ucb/nlist.3ucb55
-rw-r--r--usr/src/man/man3ucb/printf.3ucb351
-rw-r--r--usr/src/man/man3ucb/psignal.3ucb45
-rw-r--r--usr/src/man/man3ucb/rand.3ucb51
-rw-r--r--usr/src/man/man3ucb/readdir.3ucb217
-rw-r--r--usr/src/man/man3ucb/scandir.3ucb71
-rw-r--r--usr/src/man/man3ucb/setjmp.3ucb186
-rw-r--r--usr/src/man/man3ucb/sigblock.3ucb81
-rw-r--r--usr/src/man/man3ucb/siginterrupt.3ucb67
-rw-r--r--usr/src/man/man3ucb/signal.3ucb113
-rw-r--r--usr/src/man/man3ucb/sigstack.3ucb88
-rw-r--r--usr/src/man/man3ucb/sigvec.3ucb512
-rw-r--r--usr/src/man/man3ucb/sleep.3ucb73
-rw-r--r--usr/src/man/man3ucb/syscall.3ucb52
-rw-r--r--usr/src/man/man3ucb/times.3ucb62
-rw-r--r--usr/src/man/man3ucb/wait.3ucb369
-rw-r--r--usr/src/man/man5/acl.56
-rw-r--r--usr/src/man/man5/tecla.516
-rw-r--r--usr/src/man/man7d/poll.7d10
-rw-r--r--usr/src/man/man7d/tsalarm.7d4
-rw-r--r--usr/src/man/man7d/ugen.7d4
-rw-r--r--usr/src/man/man7i/agpgart_io.7i4
-rw-r--r--usr/src/pkg/manifests/compatibility-ucb.mf31
-rw-r--r--usr/src/uts/common/krtld/kobj.c2
-rw-r--r--usr/src/uts/common/os/modsysfile.c4
77 files changed, 326 insertions, 4204 deletions
diff --git a/manifest b/manifest
index 4dfe988030..f2063da24c 100644
--- a/manifest
+++ b/manifest
@@ -14798,12 +14798,6 @@ f usr/share/man/man3lib/libvolmgt.3lib 0444 root bin
f usr/share/man/man3lib/libw.3lib 0444 root bin
f usr/share/man/man3lib/libxnet.3lib 0444 root bin
f usr/share/man/man3lib/liby.3lib 0444 root bin
-d usr/share/man/man3libucb 0755 root bin
-f usr/share/man/man3libucb/libcurses.3libucb 0444 root bin
-f usr/share/man/man3libucb/libdbm.3libucb 0444 root bin
-f usr/share/man/man3libucb/librpcsoc.3libucb 0444 root bin
-f usr/share/man/man3libucb/libtermcap.3libucb 0444 root bin
-f usr/share/man/man3libucb/libucb.3libucb 0444 root bin
d usr/share/man/man3malloc 0755 root bin
f usr/share/man/man3malloc/bsdmalloc.3malloc 0444 root bin
f usr/share/man/man3malloc/malloc.3malloc 0444 root bin
@@ -15379,29 +15373,6 @@ f usr/share/man/man3tnf/tnfctl_strerror.3tnf 0444 root bin
f usr/share/man/man3tnf/tnfctl_trace_attrs_get.3tnf 0444 root bin
f usr/share/man/man3tnf/tnfctl_trace_state_set.3tnf 0444 root bin
f usr/share/man/man3tnf/tracing.3tnf 0444 root bin
-d usr/share/man/man3ucb 0755 root bin
-f usr/share/man/man3ucb/dbm.3ucb 0444 root bin
-f usr/share/man/man3ucb/flock.3ucb 0444 root bin
-f usr/share/man/man3ucb/fopen.3ucb 0444 root bin
-f usr/share/man/man3ucb/gettimeofday.3ucb 0444 root bin
-f usr/share/man/man3ucb/mctl.3ucb 0444 root bin
-f usr/share/man/man3ucb/nice.3ucb 0444 root bin
-f usr/share/man/man3ucb/nlist.3ucb 0444 root bin
-f usr/share/man/man3ucb/printf.3ucb 0444 root bin
-f usr/share/man/man3ucb/psignal.3ucb 0444 root bin
-f usr/share/man/man3ucb/rand.3ucb 0444 root bin
-f usr/share/man/man3ucb/readdir.3ucb 0444 root bin
-f usr/share/man/man3ucb/scandir.3ucb 0444 root bin
-f usr/share/man/man3ucb/setjmp.3ucb 0444 root bin
-f usr/share/man/man3ucb/sigblock.3ucb 0444 root bin
-f usr/share/man/man3ucb/siginterrupt.3ucb 0444 root bin
-f usr/share/man/man3ucb/signal.3ucb 0444 root bin
-f usr/share/man/man3ucb/sigstack.3ucb 0444 root bin
-f usr/share/man/man3ucb/sigvec.3ucb 0444 root bin
-f usr/share/man/man3ucb/sleep.3ucb 0444 root bin
-f usr/share/man/man3ucb/syscall.3ucb 0444 root bin
-f usr/share/man/man3ucb/times.3ucb 0444 root bin
-f usr/share/man/man3ucb/wait.3ucb 0444 root bin
d usr/share/man/man3uuid 0755 root bin
f usr/share/man/man3uuid/uuid_clear.3uuid 0444 root bin
d usr/share/man/man3volmgt 0755 root bin
diff --git a/usr/src/Targetdirs b/usr/src/Targetdirs
index 56421f1a5c..ea6a533700 100644
--- a/usr/src/Targetdirs
+++ b/usr/src/Targetdirs
@@ -21,9 +21,10 @@
#
# Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
# Copyright 2011, Richard Lowe
-# Copyright 2011 Nexenta Systems, Inc. All rights reserved.
# Copyright (c) 2012 by Delphix. All rights reserved.
# Copyright 2012 OmniTI Computer Consulting, Inc. All rights reserved.
+# Copyright (c) 2013 RackTop Systems.
+# Copyright 2013 Nexenta Systems, Inc. All rights reserved.
#
#
@@ -144,6 +145,7 @@ DIRS= \
/etc/saf \
/etc/sasl \
/etc/sfw \
+ /etc/skel \
/etc/svc \
/etc/svc/profile \
/etc/svc/profile/site \
@@ -359,7 +361,6 @@ DIRS= \
/usr/share/man/man3ldap \
/usr/share/man/man3lgrp \
/usr/share/man/man3lib \
- /usr/share/man/man3libucb \
/usr/share/man/man3mail \
/usr/share/man/man3malloc \
/usr/share/man/man3mp \
@@ -389,7 +390,6 @@ DIRS= \
/usr/share/man/man3tecla \
/usr/share/man/man3tnf \
/usr/share/man/man3tsol \
- /usr/share/man/man3ucb \
/usr/share/man/man3uuid \
/usr/share/man/man3volmgt \
/usr/share/man/man3xcurses \
diff --git a/usr/src/cmd/iscsid/Makefile b/usr/src/cmd/iscsid/Makefile
index 014dc9b90f..be98c88b43 100644
--- a/usr/src/cmd/iscsid/Makefile
+++ b/usr/src/cmd/iscsid/Makefile
@@ -18,51 +18,35 @@
#
# CDDL HEADER END
#
+
#
# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright 2013 Nexenta Systems, Inc. All rights reserved.
#
-#
-# cmd/iscsid/Makefile
-#
-
PROG= iscsid
MANIFEST= iscsi-initiator.xml
-SVCMETHOD= iscsi-initiator \
- iscsid
-
-PRODUCT= $(PROG)
-OBJS= iscsid.o
-SRCS= $(OBJS:%.o=./%.c)
-LLOBJS= $(OBJS:%.o=%.ll)
+SVCMETHOD= iscsi-initiator iscsid
include ../Makefile.cmd
-CCVERBOSE =
-LDLIBS += -lnsl
+CFLAGS += $(CCVERBOSE)
+LDLIBS += -lnsl
ROOTMANIFESTDIR= $(ROOTSVCNETWORKISCSI)
$(ROOTSVCNETWORKISCSI)/iscsi-initiator.xml := FILEMODE = 0444
.KEEP_STATE:
-$(PROG): $(OBJS)
- $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
- $(POST_PROCESS)
-
-LINTFLAGS += -erroff=E_FUNC_HAS_NO_RETURN_STMT
-LINTFLAGS += -erroff=E_BAD_PTR_CAST_ALIGN
+LINTFLAGS += -erroff=E_BAD_PTR_CAST_ALIGN
-.PARALLEL: $(OBJS)
+all: $(PROG)
-all: $(PROG)
+check: $(CHKMANIFEST)
clean:
- $(RM) $(PROG) $(OBJS) $(LLOBJS)
-
-lint: lint_SRCS
-install: all $(ROOTMANIFEST) $(ROOTSVCMETHOD)
+install: all $(ROOTMANIFEST) $(ROOTSVCMETHOD)
-check: $(CHKMANIFEST)
+lint: lint_PROG
include ../Makefile.targ
diff --git a/usr/src/cmd/oamuser/group/Makefile b/usr/src/cmd/oamuser/group/Makefile
index 438890f14b..8289dbda77 100644
--- a/usr/src/cmd/oamuser/group/Makefile
+++ b/usr/src/cmd/oamuser/group/Makefile
@@ -21,6 +21,8 @@
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
+# Copyright (c) 2013 RackTop Systems.
+#
# cmd/oamuser/group/Makefile
#
@@ -34,7 +36,7 @@ SBINPROG= $(GROUPADD) $(GROUPDEL) $(GROUPMOD)
PROG= $(SBINPROG)
-ADD_OBJ= groupadd.o add_group.o gid.o messages.o
+ADD_OBJ= groupadd.o add_group.o messages.o
DEL_OBJ= groupdel.o del_group.o messages.o
MOD_OBJ= groupmod.o mod_group.o messages.o
@@ -50,11 +52,10 @@ LINTFLAGS= -u
INSSBINPROG= $(SBINPROG:%=$(ROOTUSRSBIN)/%)
CPPFLAGS= -I$(HERE) -I$(LOCAL) $(CPPFLAGS.master)
-CERRWARN += -_gcc=-Wno-type-limits
FILEMODE= 0555
$(GROUPADD) := OBJS = $(ADD_OBJ)
-$(GROUPADD) := LDLIBS += $(LIBUSRGRP)
+$(GROUPADD) := LDLIBS += $(LIBUSRGRP) -lcmdutils
$(GROUPDEL) := OBJS = $(DEL_OBJ)
$(GROUPDEL) := LDLIBS += $(LIBUSRGRP)
diff --git a/usr/src/cmd/oamuser/group/gid.c b/usr/src/cmd/oamuser/group/gid.c
deleted file mode 100644
index 51f3a67242..0000000000
--- a/usr/src/cmd/oamuser/group/gid.c
+++ /dev/null
@@ -1,109 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * 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]
- *
- * CDDL HEADER END
- */
-/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
- */
-/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
-/* All Rights Reserved */
-
-
-#pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.5 */
-
-#include <sys/types.h>
-#include <stdio.h>
-#include <userdefs.h>
-
-#include <sys/param.h>
-#ifndef MAXUID
-#include <limits.h>
-#ifdef UID_MAX
-#define MAXUID UID_MAX
-#else
-#define MAXUID 60000
-#endif
-#endif
-
-/*
- * Check to see that the gid is not a reserved gid
- * -- nobody, noaccess or nogroup
- */
-static int
-isvalidgid(gid_t gid)
-{
- return (gid != 60001 && gid != 60002 && gid != 65534);
-}
-
-gid_t
-findnextgid()
-{
- FILE *fptr;
- gid_t last, next;
- gid_t gid;
-
- /*
- * Sort the used GIDs in decreasing order to return MAXUSED + 1
- */
- if ((fptr = popen("exec sh -c "
- "\"getent group|cut -f3 -d:|sort -nr|uniq \" 2>/dev/null",
- "r")) == NULL)
- return (-1);
-
- if (fscanf(fptr, "%u\n", &next) == EOF) {
- (void) pclose(fptr);
- return (DEFRID + 1);
- }
-
- /*
- * 'next' is now the highest allocated gid.
- *
- * The simplest allocation is where we just add one, and obtain
- * a valid gid. If this fails look for a hole in the gid range ..
- */
-
- last = MAXUID; /* upper limit */
- gid = -1; /* start invalid */
- do {
- if (!isvalidgid(next))
- continue;
-
- if (next <= DEFRID) {
- if (last != DEFRID + 1)
- gid = DEFRID + 1;
- break;
- }
-
- if ((gid = next + 1) != last) {
- while (!isvalidgid(gid))
- gid++;
- if (gid > 0 && gid < last)
- break;
- }
-
- gid = -1;
- last = next;
-
- } while (fscanf(fptr, "%u\n", &next) != EOF);
-
- (void) pclose(fptr);
-
- return (gid);
-}
diff --git a/usr/src/cmd/oamuser/group/groupadd.c b/usr/src/cmd/oamuser/group/groupadd.c
index 8f6b924280..a4084f7c83 100644
--- a/usr/src/cmd/oamuser/group/groupadd.c
+++ b/usr/src/cmd/oamuser/group/groupadd.c
@@ -27,10 +27,12 @@
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
-
-#pragma ident "%Z%%M% %I% %E% SMI"
+/*
+ * Copyright (c) 2013 RackTop Systems.
+ */
#include <sys/types.h>
+#include <sys/param.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
@@ -38,10 +40,10 @@
#include <userdefs.h>
#include <users.h>
#include <errno.h>
+#include <libcmdutils.h>
#include "messages.h"
extern int errmsg();
-extern gid_t findnextgid();
extern int valid_gid(), add_group();
/*
@@ -136,7 +138,7 @@ main(int argc, char *argv[])
} else {
- if ((gid = findnextgid()) < 0) {
+ if (findnextgid(DEFRID+1, MAXUID, &gid) != 0) {
errmsg(M_GID_INVALID, "default id");
exit(EX_ID_EXISTS);
}
diff --git a/usr/src/cmd/oamuser/user/Makefile b/usr/src/cmd/oamuser/user/Makefile
index 6d3266c508..9542a967f0 100644
--- a/usr/src/cmd/oamuser/user/Makefile
+++ b/usr/src/cmd/oamuser/user/Makefile
@@ -20,6 +20,7 @@
#
#
# Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2013 RackTop Systems.
#
# cmd/oamuser/user/Makefile
#
@@ -42,17 +43,17 @@ SBINPROG= $(USERADD) $(USERDEL) $(USERMOD)
PROG= $(SBINPROG)
PRODUCT= $(PROG)
-ADD_OBJ= useradd.o uid.o homedir.o \
- groups.o call_pass.o userdefs.o messages.o \
- val_lgrp.o funcs.o val_lprj.o proj.o
+ADD_OBJ= useradd.o homedir.o groups.o call_pass.o \
+ userdefs.o messages.o val_lgrp.o funcs.o \
+ val_lprj.o proj.o
DEL_OBJ= userdel.o call_pass.o rmfiles.o isbusy.o \
groups.o messages.o funcs.o proj.o
-MOD_OBJ= usermod.o uid.o movedir.o groups.o \
- rmfiles.o call_pass.o isbusy.o homedir.o \
- userdefs.o messages.o val_lgrp.o funcs.o \
- val_lprj.o proj.o
+MOD_OBJ= usermod.o movedir.o groups.o rmfiles.o \
+ call_pass.o isbusy.o homedir.o userdefs.o \
+ messages.o val_lgrp.o funcs.o val_lprj.o \
+ proj.o
OBJECTS= $(ADD_OBJ) $(DEL_OBJ) $(MOD_OBJ)
@@ -71,9 +72,6 @@ INSSKELFILE= $(SKELFILE:%=$(ROOTSKEL)/%)
CPPFLAGS= -I$(HERE) -I$(LOCAL) $(CPPFLAGS.master)
CERRWARN += -_gcc=-Wno-implicit-function-declaration
-CERRWARN += -_gcc=-Wno-type-limits
-CERRWARN += -_gcc=-Wno-uninitialized
-CERRWARN += -_gcc=-Wno-parentheses
$(INSSBINPROG) := FILEMODE = 0555
$(INSSYSADMPROG):= FILEMODE = 0500
@@ -81,6 +79,7 @@ $(INSSKELFILE) := FILEMODE = 0644
$(USERADD) := OBJS = $(ADD_OBJ)
$(USERADD) := LIBS = $(LIBUSRGRP)
+$(USERADD) := LDLIBS += -lcmdutils
$(USERDEL) := OBJS = $(DEL_OBJ)
$(USERDEL) := LIBS = $(LIBUSRGRP)
diff --git a/usr/src/cmd/oamuser/user/funcs.c b/usr/src/cmd/oamuser/user/funcs.c
index 12e9000741..93f6b458d5 100644
--- a/usr/src/cmd/oamuser/user/funcs.c
+++ b/usr/src/cmd/oamuser/user/funcs.c
@@ -20,6 +20,7 @@
*/
/*
* Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013 RackTop Systems.
*/
#include <stdio.h>
@@ -180,11 +181,12 @@ getsetdefval(const char *key, char *dflt)
int i;
for (i = 0; i < NKEYS; i++)
- if (strcmp(keys[i].key, key) == 0)
+ if (strcmp(keys[i].key, key) == 0) {
if (keys[i].newvalue != NULL)
return (keys[i].newvalue);
else
return (keys[i].newvalue = dflt);
+ }
return (NULL);
}
@@ -194,7 +196,7 @@ getusertype(char *cmdname)
static char usertype[MAX_TYPE_LENGTH];
char *cmd;
- if (cmd = strrchr(cmdname, '/'))
+ if ((cmd = strrchr(cmdname, '/')))
++cmd;
else
cmd = cmdname;
diff --git a/usr/src/cmd/oamuser/user/useradd.c b/usr/src/cmd/oamuser/user/useradd.c
index 1b42e22a27..afb3b17411 100644
--- a/usr/src/cmd/oamuser/user/useradd.c
+++ b/usr/src/cmd/oamuser/user/useradd.c
@@ -26,6 +26,9 @@
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
+/*
+ * Copyright (c) 2013 RackTop Systems.
+ */
#include <sys/types.h>
#include <sys/stat.h>
@@ -40,6 +43,7 @@
#include <project.h>
#include <unistd.h>
#include <user_attr.h>
+#include <libcmdutils.h>
#include "users.h"
#include "messages.h"
#include "userdisp.h"
@@ -82,7 +86,6 @@ extern void dispusrdef();
static void cleanup();
-extern uid_t findnextuid(void);
extern int check_perm(), valid_expire();
extern int putusrdef(), valid_uid();
extern int call_passmgmt(), edit_group(), create_home();
@@ -132,8 +135,8 @@ main(argc, argv)
int argc;
char *argv[];
{
- int ch, ret, mflag = 0, oflag = 0, Dflag = 0, **gidlist;
- projid_t **projlist;
+ int ch, ret, mflag = 0, oflag = 0, Dflag = 0, **gidlist = NULL;
+ projid_t **projlist = NULL;
char *ptr; /* loc in a str, may be set by strtol */
struct group *g_ptr;
struct project p_ptr;
@@ -425,7 +428,7 @@ char *argv[];
} else {
- if ((uid = findnextuid()) < 0) {
+ if (findnextuid(DEFRID+1, MAXUID, &uid) != 0) {
errmsg(M_INVALID, "default id", "user id");
exit(EX_ID_EXISTS);
}
@@ -634,7 +637,7 @@ char *argv[];
errmsg(M_UID_USED, uid);
exit(EX_ID_EXISTS);
} else {
- if ((uid = findnextuid()) < 0) {
+ if (findnextuid(DEFRID+1, MAXUID, &uid) != 0) {
errmsg(M_INVALID, "default id",
"user id");
exit(EX_ID_EXISTS);
diff --git a/usr/src/cmd/oamuser/user/userdefs.c b/usr/src/cmd/oamuser/user/userdefs.c
index 4487e2f16d..5845179d77 100644
--- a/usr/src/cmd/oamuser/user/userdefs.c
+++ b/usr/src/cmd/oamuser/user/userdefs.c
@@ -28,8 +28,9 @@
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
-
-#pragma ident "%Z%%M% %I% %E% SMI"
+/*
+ * Copyright (c) 2013 RackTop Systems.
+ */
/*LINTLIBRARY*/
@@ -54,7 +55,7 @@
(void) fprintf(fptr, "\n"); \
}
-#define SKIPWS(ptr) while (*ptr && *ptr == ' ' || *ptr == '\t') ptr++
+#define SKIPWS(ptr) while (*ptr && (*ptr == ' ' || *ptr == '\t')) ptr++
static char *dup_to_nl(char *);
diff --git a/usr/src/cmd/oamuser/user/usermod.c b/usr/src/cmd/oamuser/user/usermod.c
index f1d19acdb1..99f58ca7cd 100644
--- a/usr/src/cmd/oamuser/user/usermod.c
+++ b/usr/src/cmd/oamuser/user/usermod.c
@@ -26,7 +26,9 @@
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
-
+/*
+ * Copyright (c) 2013 RackTop Systems.
+ */
#include <sys/types.h>
#include <sys/stat.h>
@@ -510,12 +512,13 @@ char **argv;
}
}
- if (comment)
+ if (comment) {
/* ignore comment if comment is not changed */
if (strcmp(pstruct->pw_comment, comment))
call_pass = 1;
else
comment = NULL;
+ }
/* inactive string is a positive integer */
if (inactstr) {
diff --git a/usr/src/cmd/oamuser/user/val_lgrp.c b/usr/src/cmd/oamuser/user/val_lgrp.c
index 2ad9d38efb..160087f32a 100644
--- a/usr/src/cmd/oamuser/user/val_lgrp.c
+++ b/usr/src/cmd/oamuser/user/val_lgrp.c
@@ -26,6 +26,10 @@
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
+/*
+ * Copyright (c) 2013 RackTop Systems.
+ */
+
#include <sys/types.h>
#include <stdio.h>
@@ -60,7 +64,7 @@ valid_lgroup(char *list, gid_t gid)
grplist = malloc((ngroups_max + 1) * sizeof (gid_t));
}
- while (ptr = strtok(((i || n_invalid || dup_prim)? NULL: list), ",")) {
+ while ((ptr = strtok((i || n_invalid || dup_prim)? NULL: list, ","))) {
switch (valid_group(ptr, &g_ptr, &warning)) {
case INVALID:
diff --git a/usr/src/cmd/oamuser/user/val_lprj.c b/usr/src/cmd/oamuser/user/val_lprj.c
index 95b084e9bc..4463ac7f41 100644
--- a/usr/src/cmd/oamuser/user/val_lprj.c
+++ b/usr/src/cmd/oamuser/user/val_lprj.c
@@ -24,7 +24,9 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
+/*
+ * Copyright (c) 2013 RackTop Systems.
+ */
#include <sys/types.h>
#include <stdio.h>
@@ -55,7 +57,7 @@ valid_lproject(char *list)
if (!list || !*list)
return ((int **)NULL);
- while (ptr = strtok(((i || n_invalid) ? NULL : list), ",")) {
+ while ((ptr = strtok((i || n_invalid) ? NULL : list, ","))) {
switch (valid_project(ptr, &projent, mybuf, sizeof (mybuf),
&warning)) {
diff --git a/usr/src/lib/libcmdutils/Makefile.com b/usr/src/lib/libcmdutils/Makefile.com
index 7961146e1a..2f98fe5f25 100644
--- a/usr/src/lib/libcmdutils/Makefile.com
+++ b/usr/src/lib/libcmdutils/Makefile.com
@@ -20,11 +20,12 @@
#
#
# Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2013 RackTop Systems.
#
LIBRARY= libcmdutils.a
VERS= .1
-CMD_OBJS= avltree.o sysattrs.o writefile.o process_xattrs.o
+CMD_OBJS= avltree.o sysattrs.o writefile.o process_xattrs.o uid.o gid.o
COM_OBJS= list.o
OBJECTS= $(CMD_OBJS) $(COM_OBJS)
diff --git a/usr/src/lib/libcmdutils/common/gid.c b/usr/src/lib/libcmdutils/common/gid.c
new file mode 100644
index 0000000000..63456810ea
--- /dev/null
+++ b/usr/src/lib/libcmdutils/common/gid.c
@@ -0,0 +1,111 @@
+/*
+ * CDDL HEADER START
+ *
+ * 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]
+ *
+ * CDDL HEADER END
+ */
+/*
+ * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
+ */
+
+/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
+/* All Rights Reserved */
+
+/*
+ * Copyright (c) 2013 RackTop Systems.
+ */
+
+#include <errno.h>
+#include <sys/types.h>
+#include <stdio.h>
+#include <userdefs.h>
+#include <grp.h>
+#include <libcmdutils.h>
+
+static int findunusedgid(gid_t start, gid_t stop, gid_t *ret);
+static boolean_t isreservedgid(gid_t gid);
+
+/*
+ * Find the highest unused uid. If the highest unused gid is "stop",
+ * then attempt to find a hole in the range. Returns 0 on success.
+ */
+int
+findnextgid(gid_t start, gid_t stop, gid_t *ret)
+{
+ gid_t gid = start;
+ struct group *grp;
+ boolean_t overflow = B_FALSE;
+
+ setgrent();
+ for (grp = getgrent(); grp != NULL; grp = getgrent()) {
+ if (isreservedgid(grp->gr_gid)) /* Skip reserved IDs */
+ continue;
+ if (grp->gr_gid >= gid) {
+ if (grp->gr_gid == stop) { /* Overflow check */
+ overflow = B_TRUE;
+ break;
+ }
+ gid = grp->gr_gid + 1;
+ }
+ }
+ if (grp == NULL && errno != 0) {
+ endgrent();
+ return (-1);
+ }
+ endgrent();
+ if (overflow == B_TRUE) /* Find a hole */
+ return (findunusedgid(start, stop, ret));
+ while (isreservedgid(gid) && gid < stop) /* Skip reserved IDs */
+ gid++;
+ *ret = gid;
+ return (0);
+}
+
+/*
+ * Check to see whether the gid is a reserved gid
+ * -- nobody, noaccess or nogroup
+ */
+static boolean_t
+isreservedgid(gid_t gid)
+{
+ return (gid == 60001 || gid == 60002 || gid == 65534);
+}
+
+/*
+ * findunusedgid() attempts to return the next valid usable id between the
+ * supplied upper and lower limits. Returns 0 on success.
+ */
+static int
+findunusedgid(gid_t start, gid_t stop, gid_t *ret)
+{
+ gid_t gid;
+
+ for (gid = start; gid <= stop; gid++) {
+ if (isreservedgid(gid))
+ continue;
+ if (getgrgid(gid) == NULL) {
+ if (errno != 0)
+ return (-1);
+ break;
+ }
+ }
+ if (gid > stop)
+ return (-1);
+ *ret = gid;
+ return (0);
+}
diff --git a/usr/src/lib/libcmdutils/common/mapfile-vers b/usr/src/lib/libcmdutils/common/mapfile-vers
index 74f59e8fdb..e4c5940c31 100644
--- a/usr/src/lib/libcmdutils/common/mapfile-vers
+++ b/usr/src/lib/libcmdutils/common/mapfile-vers
@@ -20,6 +20,7 @@
#
#
# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2013 RackTop Systems.
#
#
@@ -42,6 +43,8 @@ SYMBOL_VERSION SUNWprivate_1.1 {
global:
add_tnode;
destroy_tree;
+ findnextgid;
+ findnextuid;
list_create;
list_destroy;
list_head;
diff --git a/usr/src/cmd/oamuser/user/uid.c b/usr/src/lib/libcmdutils/common/uid.c
index dea5318fc4..a5ca6c45bd 100644
--- a/usr/src/cmd/oamuser/user/uid.c
+++ b/usr/src/lib/libcmdutils/common/uid.c
@@ -27,92 +27,86 @@
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
+/*
+ * Copyright (c) 2013 RackTop Systems.
+ */
-#pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.5 */
-
+#include <errno.h>
#include <sys/types.h>
#include <stdio.h>
#include <userdefs.h>
#include <pwd.h>
+#include <libcmdutils.h>
-#include <sys/param.h>
-#ifndef MAXUID
-#include <limits.h>
-#ifdef UID_MAX
-#define MAXUID UID_MAX
-#else
-#define MAXUID 60000
-#endif
-#endif
-
-static uid_t getrangeboundid(uid_t start, uid_t stop);
-static int isreserveduid(uid_t uid);
+static int findunuseduid(uid_t start, uid_t stop, uid_t *ret);
+static boolean_t isreserveduid(uid_t uid);
/*
- * Find the highest uid currently in use and return it. If the highest unused
- * uid is MAXUID, then attempt to find a hole in the range. If there are no
- * more unused uids, then return -1.
+ * Find the highest unused uid. If the highest unused uid is "stop",
+ * then attempt to find a hole in the range. Returns 0 on success.
*/
-uid_t
-findnextuid(void)
+int
+findnextuid(uid_t start, uid_t stop, uid_t *ret)
{
- uid_t uid = DEFRID + 1;
+ uid_t uid = start;
struct passwd *pwd;
- uchar_t overflow = 0;
+ boolean_t overflow = B_FALSE;
setpwent();
for (pwd = getpwent(); pwd != NULL; pwd = getpwent()) {
if (isreserveduid(pwd->pw_uid)) /* Skip reserved IDs */
continue;
if (pwd->pw_uid >= uid) {
- if (pwd->pw_uid == MAXUID) { /* Overflow check */
- overflow = 1;
+ if (pwd->pw_uid == stop) { /* Overflow check */
+ overflow = B_TRUE;
break;
}
uid = pwd->pw_uid + 1;
- while (isreserveduid(uid) &&
- uid < MAXUID) { /* Skip reserved IDs */
- uid++;
- }
}
}
+ if (pwd == NULL && errno != 0) {
+ endpwent();
+ return (-1);
+ }
endpwent();
- if (overflow == 1) /* Find a hole */
- return (getrangeboundid(DEFRID + 1, MAXUID));
- return (uid);
+ if (overflow == B_TRUE) /* Find a hole */
+ return (findunuseduid(start, stop, ret));
+ while (isreserveduid(uid) && uid < stop) /* Skip reserved IDs */
+ uid++;
+ *ret = uid;
+ return (0);
}
/*
- * Check to see that the uid is a reserved uid
+ * Check to see whether the uid is a reserved uid
* -- nobody, noaccess or nobody4
*/
-static int
+static boolean_t
isreserveduid(uid_t uid)
{
return (uid == 60001 || uid == 60002 || uid == 65534);
}
-
/*
- * getrangeboundid() attempts to return the next valid usable id between the
- * supplied upper and lower limits. If these limits exceed the system
- * boundaries of DEFRID +1 and MAXUID (lower and upper bound respectively),
- * then they are ignored and DEFRID + 1 and MAXUID are used.
- *
- * Returns a valid uid_t between DEFRID +1 and MAXUID, -1 is returned on fail
+ * findunuseduid() attempts to return the next valid usable id between the
+ * supplied upper and lower limits. Returns 0 on success.
*/
-static uid_t
-getrangeboundid(uid_t start, uid_t stop)
+static int
+findunuseduid(uid_t start, uid_t stop, uid_t *ret)
{
- uid_t low = (start <= DEFRID) ? DEFRID + 1 : start;
- uid_t high = (stop < MAXUID) ? stop : MAXUID;
uid_t uid;
- for (uid = low; uid <= high; uid++) {
+ for (uid = start; uid <= stop; uid++) {
if (isreserveduid(uid))
continue;
- if (getpwuid(uid) == NULL)
+ if (getpwuid(uid) == NULL) {
+ if (errno != 0)
+ return (-1);
break;
+ }
}
- return ((uid > high) ? -1 : uid);
+ if (uid > stop)
+ return (-1);
+ *ret = uid;
+ return (0);
}
diff --git a/usr/src/lib/libcmdutils/libcmdutils.h b/usr/src/lib/libcmdutils/libcmdutils.h
index d1c3a0b193..c315e0fbef 100644
--- a/usr/src/lib/libcmdutils/libcmdutils.h
+++ b/usr/src/lib/libcmdutils/libcmdutils.h
@@ -22,6 +22,9 @@
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/*
+ * Copyright (c) 2013 RackTop Systems.
+ */
/*
* Declarations for the functions in libcmdutils.
@@ -30,8 +33,6 @@
#ifndef _LIBCMDUTILS_H
#define _LIBCMDUTILS_H
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* This is a private header file. Applications should not directly include
* this file.
@@ -125,6 +126,20 @@ extern int add_tnode(avl_tree_t **, dev_t, ino_t);
*/
extern void destroy_tree(avl_tree_t *);
+
+
+ /* user/group id helpers */
+
+/*
+ * Used to get the next available user id in given range.
+ */
+extern int findnextuid(uid_t, uid_t, uid_t *);
+
+/*
+ * Used to get the next available group id in given range.
+ */
+extern int findnextgid(gid_t, gid_t, gid_t *);
+
#ifdef __cplusplus
}
#endif
diff --git a/usr/src/lib/smbsrv/libsmb/Makefile.com b/usr/src/lib/smbsrv/libsmb/Makefile.com
index 4b86caeb95..dbf479e106 100644
--- a/usr/src/lib/smbsrv/libsmb/Makefile.com
+++ b/usr/src/lib/smbsrv/libsmb/Makefile.com
@@ -73,6 +73,8 @@ include ../../Makefile.lib
INCS += -I$(SRC)/common/smbsrv
+LINTCHECKFLAGS += -erroff=E_INCONS_ARG_DECL2
+
LDLIBS += $(MACH_LDLIBS)
LDLIBS += -lscf -lmd -luuid -lnsl -lpkcs11 -lsec -lsocket -lresolv
LDLIBS += -lidmap -lreparse -lnvpair -lcmdutils -lavl -lc
diff --git a/usr/src/lib/smbsrv/libsmb/common/smb_lgrp.c b/usr/src/lib/smbsrv/libsmb/common/smb_lgrp.c
index 406d7c5db0..3cab135341 100644
--- a/usr/src/lib/smbsrv/libsmb/common/smb_lgrp.c
+++ b/usr/src/lib/smbsrv/libsmb/common/smb_lgrp.c
@@ -22,6 +22,7 @@
/*
* Copyright 2011 Nexenta Systems, Inc. All rights reserved.
* Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013 RackTop Systems.
*/
#include <stdlib.h>
@@ -38,6 +39,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/param.h>
+#include <libcmdutils.h>
/*
* Local domain SID (aka machine SID) is not stored in the domain table
@@ -123,7 +125,7 @@
#define SMB_LGRP_PGRP_GRPBUFSIZ 5120
#define SMB_LGRP_PGRP_GROUP "/etc/group"
#define SMB_LGRP_PGRP_MAXGLEN 9 /* max length of group name */
-#define SMB_LGRP_PGRP_DEFRID 99 /* max reserved id */
+#define SMB_LGRP_PGRP_DEFRID 1000 /* lowest cifs created gid */
#define SMB_LGRP_PGRP_NOTUNIQUE 0
#define SMB_LGRP_PGRP_RESERVED 1
@@ -2545,70 +2547,6 @@ smb_lgrp_pgrp_valid_gname(char *group)
}
/*
- * smb_lgrp_pgrp_valid_gid
- *
- * Check to see that the gid is not a reserved gid
- * -- nobody (60001), noaccess (60002) or nogroup (65534)
- */
-static int
-smb_lgrp_pgrp_valid_gid(gid_t gid)
-{
- return (gid != 60001 && gid != 60002 && gid != 65534);
-}
-
-/*
- * smb_lgrp_pgrp_findnextgid(void)
- *
- * This method finds the next valid GID.
- * It sorts the used GIDs in decreasing order to return MAXUSED + 1.
- * It then adds one to obtain the next valid GID.
- * On failure, -1 is returned. On success, a valid GID is returned.
- */
-static int
-smb_lgrp_pgrp_findnextgid(void)
-{
- FILE *fptr;
- gid_t last, next;
- int gid;
-
- if ((fptr = popen("exec sh -c "
- "\"getent group|cut -f3 -d:|sort -nr|uniq \" 2>/dev/null",
- "r")) == NULL)
- return (-1);
-
- if (fscanf(fptr, "%u\n", &next) == EOF) {
- (void) pclose(fptr);
- return (SMB_LGRP_PGRP_DEFRID + 1);
- }
-
- last = MAXUID;
- gid = -1;
- do {
- if (!smb_lgrp_pgrp_valid_gid(next))
- continue;
-
- if (next <= SMB_LGRP_PGRP_DEFRID) {
- if (last != SMB_LGRP_PGRP_DEFRID + 1)
- gid = SMB_LGRP_PGRP_DEFRID + 1;
- break;
- }
-
- if ((gid = next + 1) != last) {
- while (!smb_lgrp_pgrp_valid_gid((gid_t)gid))
- gid++;
- if (gid > 0 && gid < last)
- break;
- }
-
- gid = -1;
- last = next;
- } while (fscanf(fptr, "%u\n", &next) != EOF);
-
- (void) pclose(fptr);
- return (gid);
-}
-
-/*
* smb_lgrp_pgrp_add
*
* Create a posix group with the given name.
@@ -2619,7 +2557,7 @@ smb_lgrp_pgrp_add(char *group)
{
FILE *etcgrp;
FILE *etctmp;
- int o_mask, gret;
+ int o_mask;
int newdone = 0;
struct stat sb;
char buf[SMB_LGRP_PGRP_GRPBUFSIZ];
@@ -2630,9 +2568,8 @@ smb_lgrp_pgrp_add(char *group)
if ((rc == SMB_LGRP_PGRP_INVALID) || (rc == SMB_LGRP_PGRP_NOTUNIQUE))
return (-1);
- if ((gret = smb_lgrp_pgrp_findnextgid()) < 0)
+ if ((findnextgid(SMB_LGRP_PGRP_DEFRID, MAXUID, &gid)) != 0)
return (-1);
- gid = gret;
if ((etcgrp = fopen(SMB_LGRP_PGRP_GROUP, "r")) == NULL)
return (-1);
diff --git a/usr/src/man/Makefile b/usr/src/man/Makefile
index 0f2d83aeb4..4435991c35 100644
--- a/usr/src/man/Makefile
+++ b/usr/src/man/Makefile
@@ -48,7 +48,6 @@ SUBDIRS= man1 \
man3ldap \
man3lgrp \
man3lib \
- man3libucb \
man3mail \
man3malloc \
man3mp \
@@ -78,7 +77,6 @@ SUBDIRS= man1 \
man3tecla \
man3tnf \
man3tsol \
- man3ucb \
man3uuid \
man3volmgt \
man3xcurses \
diff --git a/usr/src/man/man1/ar.1 b/usr/src/man/man1/ar.1
index 641f1f8ba7..70b29fff5a 100644
--- a/usr/src/man/man1/ar.1
+++ b/usr/src/man/man1/ar.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 AR 1 "Aug 24, 2009"
+.TH AR 1 "Sep 10, 2013"
.SH NAME
ar \- maintain portable archive or library
.SH SYNOPSIS
@@ -459,7 +459,7 @@ By convention, archives are suffixed with "\fB\&.a\fR".
.sp
.LP
When inserting \fBELF\fR objects into an archive file, \fBar\fR might add
-"\fB\n\fR" characters to pad these objects to an 8-byte boundary. Such padding
+"\fB\en\fR" characters to pad these objects to an 8-byte boundary. Such padding
improves the efficiency with which \fBld\fR(1) can access the archive. Only
\fBELF\fR object files are padded in this way. Other archive members are not
altered. When an object with such padding is extracted from an archive, the
diff --git a/usr/src/man/man1/elfwrap.1 b/usr/src/man/man1/elfwrap.1
index 76218bb55f..fdab71ecbc 100644
--- a/usr/src/man/man1/elfwrap.1
+++ b/usr/src/man/man1/elfwrap.1
@@ -3,7 +3,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 ELFWRAP 1 "Mar 17, 2008"
+.TH ELFWRAP 1 "Sep 10, 2013"
.SH NAME
elfwrap \- wrap data in an \fBELF\fR file
.SH SYNOPSIS
@@ -157,7 +157,7 @@ void main()
char *str, *lstr;
for (lstr = str = pstart; str < pend; str++) {
- if ((*str == '\n') && (str != (pend - 1))) {
+ if ((*str == '\en') && (str != (pend - 1))) {
(void) printf("%.*s", (++str - lstr), lstr);
lstr = str;
}
diff --git a/usr/src/man/man1/file.1 b/usr/src/man/man1/file.1
index 870fc05fe6..723d1b6063 100644
--- a/usr/src/man/man1/file.1
+++ b/usr/src/man/man1/file.1
@@ -7,7 +7,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 FILE 1 "May 15, 2006"
+.TH FILE 1 "Sep 10, 2013"
.SH NAME
file \- determine file type
.SH SYNOPSIS
@@ -231,7 +231,7 @@ The following example determine if an argument is a binary executable file:
.in +2
.nf
file "$1" | grep \(miFq executable &&
- printf "%s is executable.\n" "$1"
+ printf "%s is executable.\en" "$1"
.fi
.in -2
.sp
diff --git a/usr/src/man/man1/ksh93.1 b/usr/src/man/man1/ksh93.1
index 1b1d0f618e..880586cf07 100644
--- a/usr/src/man/man1/ksh93.1
+++ b/usr/src/man/man1/ksh93.1
@@ -2,7 +2,7 @@
.\" Copyright (c) 1982-2007 AT&T Knowledge Ventures
.\" To view license terms, see http://www.opensource.org/licenses/cpl1.0.txt
.\" Portions Copyright (c) 2009, Sun Microsystems, Inc.
-.TH KSH93 1 "Aug 11, 2009"
+.TH KSH93 1 "Sep 10, 2013"
.SH NAME
ksh93, rksh93 \- Korn Shell, a standard and restricted command and programming
language
@@ -1697,7 +1697,7 @@ zero, minutes, and seconds of the form \fIHHhMMmSS.FFs\fR. The value of \fIp\fR
determines whether or not the fraction is included.
.sp
All other characters are output without change and a trailing NEWLINE is added.
-If unset, the default value, \fB$'\nreal\t%2lR\nuser\t%2lU\nsys%2lS'\fR, is
+If unset, the default value, \fB$'\enreal\t%2lR\nuser\t%2lU\nsys%2lS'\fR, is
used. If the value is null, no timing information is displayed.
.RE
diff --git a/usr/src/man/man1/ld.1 b/usr/src/man/man1/ld.1
index be9394d829..afc6a8d1ce 100644
--- a/usr/src/man/man1/ld.1
+++ b/usr/src/man/man1/ld.1
@@ -5,7 +5,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 LD 1 "Oct 24, 2012"
+.TH LD 1 "Sep 10, 2013"
.SH NAME
ld \- link-editor for object files
.SH SYNOPSIS
@@ -1611,7 +1611,7 @@ The following is an example of a wrapper for the \fBmalloc\fR(3C) function:
void *
__wrap_malloc(size_t c)
{
- (void) printf("malloc called with %zu\n", c);
+ (void) printf("malloc called with %zu\en", c);
return (__real_malloc(c));
}
.fi
diff --git a/usr/src/man/man1/nm.1 b/usr/src/man/man1/nm.1
index ab7b537c2d..e304bd7c02 100644
--- a/usr/src/man/man1/nm.1
+++ b/usr/src/man/man1/nm.1
@@ -9,7 +9,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 NM 1 "Oct 10, 2007"
+.TH NM 1 "Sep 10, 2013"
.SH NAME
nm \- print name list of an object file
.SH SYNOPSIS
@@ -691,8 +691,8 @@ respectively:
.in +2
.nf
\fB"%s%s %s %d %d\n",\fR \fIlibrary/object name\fR, \fIname\fR\fB, type,\fR \fIvalue\fR, \e
- \fBsize "%s%s %s %o %o\n",\fR \fIlibrary/object name\fR, \fIname\fR, \e
- \fBtype,\fR \fIvalue\fR \fB, size "%s%s %s %x %x\n",\fR \fIlibrary/object name\fR, \fIname\fR, \e
+ \fBsize "%s%s %s %o %o\en",\fR \fIlibrary/object name\fR, \fIname\fR, \e
+ \fBtype,\fR \fIvalue\fR \fB, size "%s%s %s %x %x\en",\fR \fIlibrary/object name\fR, \fIname\fR, \e
\fBtype,\fR \fIvalue\fR\fB, size\fR
.fi
.in -2
@@ -752,7 +752,7 @@ If the corresponding \fIfile\fR operand does not name a library:
.sp
.in +2
.nf
-\fB"%s:\n", \fIfile\fR\fR
+\fB"%s:\en", \fIfile\fR\fR
.fi
.in -2
.sp
@@ -768,7 +768,7 @@ following symbols:
.sp
.in +2
.nf
-\fB"%s[%s]:\n", \fIfile\fR, \fIobject file\fR\fR
+\fB"%s[%s]:\en", \fIfile\fR, \fIobject file\fR\fR
.fi
.in -2
.sp
diff --git a/usr/src/man/man1/printf.1 b/usr/src/man/man1/printf.1
index 1ca18a3274..9a92650626 100644
--- a/usr/src/man/man1/printf.1
+++ b/usr/src/man/man1/printf.1
@@ -638,7 +638,7 @@ base10 rounding errors.
.sp
.in +2
.nf
-example% printf "%a\n" 2 3.1 NaN
+example% printf "%a\en" 2 3.1 NaN
.fi
.in -2
.sp
@@ -667,7 +667,7 @@ floating-point value.
.sp
.in +2
.nf
-example% x=2 ; printf "%f == %a\n" x x
+example% x=2 ; printf "%f == %a\en" x x
.fi
.in -2
.sp
@@ -693,7 +693,7 @@ The following command will print the EURO unicode symbol (code-point 0x20ac).
.sp
.in +2
.nf
-example% LC_ALL=en_US.UTF-8 printf "\u[20ac]\n"
+example% LC_ALL=en_US.UTF-8 printf "\u[20ac]\en"
.fi
.in -2
.sp
@@ -724,7 +724,7 @@ The following command will print the hexadecimal value of a given character.
.in +2
.nf
example% export LC_ALL=en_US.UTF-8
-example% printf "%x\n" "'<euro>"
+example% printf "%x\en" "'<euro>"
.fi
.in -2
.sp
@@ -751,7 +751,7 @@ produces:
.sp
.in +2
.nf
-example% printf "%d\n" "'A"
+example% printf "%d\en" "'A"
.fi
.in -2
.sp
@@ -802,7 +802,7 @@ For American usage, format could be the string:
.sp
.in +2
.nf
-"%s, %s %d, %d:%.2d\n"
+"%s, %s %d, %d:%.2d\en"
.fi
.in -2
.sp
@@ -826,7 +826,7 @@ Whereas for EU usage, format could be the string:
.sp
.in +2
.nf
-"%1$s, %3$d. %2$s, %4$d:%5$.2d\n"
+"%1$s, %3$d. %2$s, %4$d:%5$.2d\en"
.fi
.in -2
.sp
@@ -838,7 +838,7 @@ Note that the '$' characters must be properly escaped, such as
.sp
.in +2
.nf
-"%1\$s, %3\$d. %2\$s, %4\$d:%5\$.2d\n" in this case
+"%1\$s, %3\$d. %2\$s, %4\$d:%5\$.2d\en" in this case
.fi
.in -2
.sp
@@ -930,7 +930,7 @@ Using format specifiers (characters following '%') which are not listed in the
\fBprintf\fR(3C) or this manual page will result in undefined behavior.
.sp
.LP
-Using escape sequences (the character following a backslash ('\')) which are
+Using escape sequences (the character following a backslash ('\e')) which are
not listed in the \fBprintf\fR(3C) or this manual page will result in undefined
behavior.
.sp
diff --git a/usr/src/man/man1/sleep.1 b/usr/src/man/man1/sleep.1
index d5209a89e1..c5307221c5 100644
--- a/usr/src/man/man1/sleep.1
+++ b/usr/src/man/man1/sleep.1
@@ -11,7 +11,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 SLEEP 1 "Nov 20, 2007"
+.TH SLEEP 1 "Sep 10, 2013"
.SH NAME
sleep \- suspend execution for an interval
.SH SYNOPSIS
@@ -119,7 +119,7 @@ floating-point representation for the value "0.5"
.sp
.in +2
.nf
-example% printf "%a\n" 0.5
+example% printf "%a\en" 0.5
0x1.0000000000000000000000000000p-01
.fi
.in -2
diff --git a/usr/src/man/man1/sum.1 b/usr/src/man/man1/sum.1
index 01c8405f94..d637577eaf 100644
--- a/usr/src/man/man1/sum.1
+++ b/usr/src/man/man1/sum.1
@@ -252,7 +252,7 @@ separately.
.ad
.sp .6
.RS 4n
-Read files in text mode (for example, treat \r\n as \n).
+Read files in text mode (for example, treat \er\en as \en).
.RE
.sp
diff --git a/usr/src/man/man1c/uuencode.1c b/usr/src/man/man1c/uuencode.1c
index 2433e2e22c..e0f7f3f8ee 100644
--- a/usr/src/man/man1c/uuencode.1c
+++ b/usr/src/man/man1c/uuencode.1c
@@ -4,7 +4,7 @@
.\" http://www.opengroup.org/bookstore/.
.\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html.
.\" This notice shall appear on any product containing this material.
-.TH UUENCODE 1C "Aug 6, 2003"
+.TH UUENCODE 1C "Sep 10, 2013"
.SH NAME
uuencode, uudecode \- encode a binary file, or decode its encoded
representation
@@ -153,7 +153,7 @@ locale, that begins with the line:
.sp
.in +2
.nf
-begin-base64 %s %s\n, \fImode\fR, \fIdecode_pathname\fR
+begin-base64 %s %s\en, \fImode\fR, \fIdecode_pathname\fR
.fi
.in -2
.sp
diff --git a/usr/src/man/man1m/fdisk.1m b/usr/src/man/man1m/fdisk.1m
index e80673144c..a07d94b8cb 100644
--- a/usr/src/man/man1m/fdisk.1m
+++ b/usr/src/man/man1m/fdisk.1m
@@ -3,7 +3,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 FDISK 1M "Jul 2, 2009"
+.TH FDISK 1M "Sep 10, 2013"
.SH NAME
fdisk \- create or modify fixed disk partition table
.SH SYNOPSIS
@@ -593,7 +593,7 @@ Number of blocks to perform operation on (see \fB-o\fR).
.RS 4n
Set the label geometry to the content of the \fIgeom_file\fR. The
\fIgeom_file\fR contains one specification line. Each line is delimited by a
-new-line character (\fB\n\fR). If the first character of a line is an asterisk
+new-line character (\fB\en\fR). If the first character of a line is an asterisk
(*), the line is treated as a comment. Each line is composed of entries that
are position-dependent, are separated by white space, and have the following
format:
diff --git a/usr/src/man/man1m/id.1m b/usr/src/man/man1m/id.1m
index 68d422ef29..19557c8160 100644
--- a/usr/src/man/man1m/id.1m
+++ b/usr/src/man/man1m/id.1m
@@ -7,7 +7,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 ID 1M "Nov 28, 2006"
+.TH ID 1M "Sep 10, 2013"
.SH NAME
id \- return user identity
.SH SYNOPSIS
@@ -222,7 +222,7 @@ The project is reported using the format:
.in -2
.sp
-which is inserted prior to the \fB\n\fR character of the default format
+which is inserted prior to the \fB\en\fR character of the default format
described in the \fBFormats\fR section. The arguments
.sp
.in +2
diff --git a/usr/src/man/man3cpc/cpc_bind_event.3cpc b/usr/src/man/man3cpc/cpc_bind_event.3cpc
index cfc2878b25..23b372da83 100644
--- a/usr/src/man/man3cpc/cpc_bind_event.3cpc
+++ b/usr/src/man/man3cpc/cpc_bind_event.3cpc
@@ -3,7 +3,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 CPC_BIND_EVENT 3CPC "Mar 02, 2007"
+.TH CPC_BIND_EVENT 3CPC "Sep 10, 2013"
.SH NAME
cpc_bind_event, cpc_take_sample, cpc_rele \- use CPU performance counters on
lwps
@@ -184,7 +184,7 @@ for (iter = 1; iter <= 20; iter++) {
if (cpc_take_sample(&after) == -1)
break;
- (void) printf("%3d: %" PRId64 " %" PRId64 "\n", iter,
+ (void) printf("%3d: %" PRId64 " %" PRId64 "\en", iter,
after.ce_pic[0] - before.ce_pic[0],
after.ce_pic[1] - before.ce_pic[1]);
}
@@ -229,7 +229,7 @@ if (sig != SIGEMT || sip->si_code != EMT_CPCOVF) {
return;
}
-(void) printf("lwp%d - si_addr %p ucontext: %%pc %p %%sp %p\n",
+(void) printf("lwp%d - si_addr %p ucontext: %%pc %p %%sp %p\en",
_lwp_self(), (void *)sip->si_addr,
(void *)uap->uc_mcontext.gregs[PC],
(void *)uap->uc_mcontext.gregs[USP]);
@@ -237,7 +237,7 @@ if (sig != SIGEMT || sip->si_code != EMT_CPCOVF) {
if (cpc_take_sample(&sample) == -1)
error("can't sample: %s", strerror(errno));
-(void) printf("0x%" PRIx64 " 0x%" PRIx64 "\n",
+(void) printf("0x%" PRIx64 " 0x%" PRIx64 "\en",
sample.ce_pic[0], sample.ce_pic[1]);
(void) fflush(stdout);
diff --git a/usr/src/man/man3libucb/Makefile b/usr/src/man/man3libucb/Makefile
deleted file mode 100644
index 068a318331..0000000000
--- a/usr/src/man/man3libucb/Makefile
+++ /dev/null
@@ -1,31 +0,0 @@
-#
-# This file and its contents are supplied under the terms of the
-# Common Development and Distribution License ("CDDL"), version 1.0.
-# You may only use this file in accordance with the terms of version
-# 1.0 of the CDDL.
-#
-# A full copy of the text of the CDDL should have accompanied this
-# source. A copy of the CDDL is also available via the Internet
-# at http://www.illumos.org/license/CDDL.
-#
-
-#
-# Copyright 2011, Richard Lowe
-# Copyright 2013 Nexenta Systems, Inc. All rights reserved.
-#
-
-include $(SRC)/Makefile.master
-
-MANSECT= 3libucb
-
-MANFILES= libcurses.3libucb \
- libdbm.3libucb \
- librpcsoc.3libucb \
- libtermcap.3libucb \
- libucb.3libucb
-
-.KEEP_STATE:
-
-include $(SRC)/man/Makefile.man
-
-install: $(ROOTMANFILES)
diff --git a/usr/src/man/man3libucb/libcurses.3libucb b/usr/src/man/man3libucb/libcurses.3libucb
deleted file mode 100644
index 7013145cd7..0000000000
--- a/usr/src/man/man3libucb/libcurses.3libucb
+++ /dev/null
@@ -1,111 +0,0 @@
-'\" te
-.\" Copyright (c) 2002, Sun Microsystems, Inc. All Rights Reserved
-.\" 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 LIBCURSES 3LIBUCB "Nov 14, 2002"
-.SH NAME
-libcurses \- SunOS/BSD-compatible screen handling and optimization library
-.SH SYNOPSIS
-.LP
-.nf
-cc [ \fIflag\fR... ] \fB-I\fR \fB/usr/ucbinclude\fR \fIfile\fR... \fB-L\fR \fB/usr/libucb\fR \e
- \fB-R\fR \fB/usr/libucb\fR \fB-lcurses\fR [ \fIlibrary\fR... ]
-.fi
-
-.SH DESCRIPTION
-.sp
-.LP
-Functions in this library provide a terminal-independent method of updating
-character screens with reasonable optimization, compatible with SunOS/BSD.
-.SH INTERFACES
-.sp
-.LP
-The shared object \fBlibcurses.so.1\fR provides the public interfaces defined
-below. See \fBIntro\fR(3) for additional information on shared object
-interfaces.
-.sp
-
-.sp
-.TS
-l l l l
-l l l l .
-\fBAL\fR \fBAL_PARM\fR \fBAM\fR \fBBC\fR
-\fBBS\fR \fBBT\fR \fBCA\fR \fBCD\fR
-\fBCE\fR \fBCL\fR \fBCM\fR \fBCOLS\fR
-\fBCR\fR \fBCS\fR \fBDA\fR \fBDB\fR
-\fBDC\fR \fBDL\fR \fBDL_PARM\fR \fBDM\fR
-\fBDO\fR \fBDOWN_PARM\fR \fBDef_term\fR \fBED\fR
-\fBEI\fR \fBEO\fR \fBGT\fR \fBHC\fR
-\fBHO\fR \fBHZ\fR \fBIC\fR \fBIM\fR
-\fBIN\fR \fBIP\fR \fBK0\fR \fBK1\fR
-\fBK2\fR \fBK3\fR \fBK4\fR \fBK5\fR
-\fBK6\fR \fBK7\fR \fBK8\fR \fBK9\fR
-\fBKD\fR \fBKE\fR \fBKH\fR \fBKL\fR
-\fBKR\fR \fBKS\fR \fBKU\fR \fBLEFT_PARM\fR
-\fBLINES\fR \fBLL\fR \fBMA\fR \fBMI\fR
-\fBMS\fR \fBMy_term\fR \fBNC\fR \fBND\fR
-\fBNL\fR \fBNONL\fR \fBNS\fR \fBOS\fR
-\fBPC\fR \fBRC\fR \fBRIGHT_PARM\fR \fBSC\fR
-\fBSE\fR \fBSF\fR \fBSO\fR \fBSR\fR
-\fBTA\fR \fBTE\fR \fBTI\fR \fBUC\fR
-\fBUE\fR \fBUL\fR \fBUP\fR \fBUPPERCASE\fR
-\fBUP_PARM\fR \fBUS\fR \fBVB\fR \fBVE\fR
-\fBVS\fR \fBXB\fR \fBXN\fR \fBXS\fR
-\fBXT\fR \fBXX\fR \fB_echoit\fR \fB_endwin\fR
-\fB_pfast\fR \fB_rawmode\fR \fB_res_flg\fR \fB_tty\fR
-\fB_tty_ch\fR \fB_unctrl\fR \fBbox\fR \fBcurscr\fR
-\fBdelwin\fR \fBendwin\fR \fBgetcap\fR \fBgettmode\fR
-\fBidlok\fR \fBinitscr\fR \fBlongname\fR \fBmvcur\fR
-\fBmvprintw\fR \fBmvscanw\fR \fBmvwin\fR \fBmvwprintw\fR
-\fBmvwscanw\fR \fBnewwin\fR \fBnormtty\fR \fBoverlay\fR
-\fBoverwrite\fR \fBprintw\fR \fBscanw\fR \fBscroll\fR
-\fBsetterm\fR \fBstdscr\fR \fBsubwin\fR \fBtouchline\fR
-\fBtouchwin\fR \fBttytype\fR \fBwaddch\fR \fBwaddstr\fR
-\fBwclear\fR \fBwclrtobot\fR \fBwclrtoeol\fR \fBwdelch\fR
-\fBwdeleteln\fR \fBwerase\fR \fBwgetch\fR \fBwgetstr\fR
-\fBwinsch\fR \fBwinsertln\fR \fBwmove\fR \fBwprintw\fR
-\fBwrefresh\fR \fBwscanw\fR \fBwstandend\fR \fBwstandout\fR
-.TE
-
-.SH FILES
-.sp
-.ne 2
-.na
-\fB\fB/usr/libucb/libcurses.so.1\fR \fR
-.ad
-.sp .6
-.RS 4n
-shared object
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fB/usr/libucb/64/libcurses.so.1\fR \fR
-.ad
-.sp .6
-.RS 4n
-64-bit shared object
-.RE
-
-.SH ATTRIBUTES
-.sp
-.LP
-See \fBattributes\fR(5) for descriptions of the following attributes:
-.sp
-
-.sp
-.TS
-box;
-l l
-l l .
-ATTRIBUTE TYPE ATTRIBUTE VALUE
-MT-Level Unsafe
-.TE
-
-.SH SEE ALSO
-.sp
-.LP
-\fBIntro\fR(3), \fBlibcurses\fR(3LIB), \fBlibcurses\fR(3XCURSES),
-\fBattributes\fR(5)
diff --git a/usr/src/man/man3libucb/libdbm.3libucb b/usr/src/man/man3libucb/libdbm.3libucb
deleted file mode 100644
index 2946ff7f07..0000000000
--- a/usr/src/man/man3libucb/libdbm.3libucb
+++ /dev/null
@@ -1,83 +0,0 @@
-'\" te
-.\" Copyright (c) 2002, Sun Microsystems, Inc. All Rights Reserved
-.\" 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 LIBDBM 3LIBUCB "Nov 14, 2002"
-.SH NAME
-libdbm \- database subroutines library
-.SH SYNOPSIS
-.LP
-.nf
-cc [ \fIflag\fR... ] \fB-I\fR \fB/usr/ucbinclude\fR \fIfile\fR... \fB-L\fR \fB/usr/libucb\fR \e
- \fB-R\fR \fB/usr/libucb\fR \fB-ldbm\fR [ \fIlibrary\fR... ]
-.fi
-
-.SH DESCRIPTION
-.sp
-.LP
-Functions in this library maintain key/content pairs in a database. The
-functions will handle very large (a billion blocks) databases and will access a
-keyed item in one or two file system accesses.
-.SH INTERFACES
-.sp
-.LP
-The shared object \fBlibdbm.so.1\fR provides the public interfaces defined
-below. See \fBIntro\fR(3) for additional information on shared object
-interfaces.
-.sp
-
-.sp
-.TS
-l l
-l l .
-\fBbitno\fR \fBblkno\fR
-\fBdbmclose\fR \fBdbminit\fR
-\fBdbrdonly\fR \fBdelete\fR
-\fBdirbuf\fR \fBdirf\fR
-\fBfetch\fR \fBfirstkey\fR
-\fBhmask\fR \fBmaxbno\fR
-\fBnextkey\fR \fBpagbuf\fR
-\fBpagf\fR \fBstore\fR
-.TE
-
-.SH FILES
-.sp
-.ne 2
-.na
-\fB\fB/usr/libucb/libdbm.so.1\fR \fR
-.ad
-.sp .6
-.RS 4n
-shared object
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fB/usr/libucb/64/libdbm.so.1\fR \fR
-.ad
-.sp .6
-.RS 4n
-64-bit shared object
-.RE
-
-.SH ATTRIBUTES
-.sp
-.LP
-See \fBattributes\fR(5) for descriptions of the following attributes:
-.sp
-
-.sp
-.TS
-box;
-l l
-l l .
-ATTRIBUTE TYPE ATTRIBUTE VALUE
-MT-Level Unsafe
-.TE
-
-.SH SEE ALSO
-.sp
-.LP
-\fBIntro\fR(3), \fBdbm\fR(3UCB), \fBattributes\fR(5)
diff --git a/usr/src/man/man3libucb/librpcsoc.3libucb b/usr/src/man/man3libucb/librpcsoc.3libucb
deleted file mode 100644
index a4f91f77be..0000000000
--- a/usr/src/man/man3libucb/librpcsoc.3libucb
+++ /dev/null
@@ -1,88 +0,0 @@
-'\" te
-.\" Copyright (c) 2003, Sun Microsystems, Inc. All rights reserved.
-.\" 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 LIBRPCSOC 3LIBUCB "May 20, 2003"
-.SH NAME
-librpcsoc \- obsolete RPC library
-.SH SYNOPSIS
-.LP
-.nf
-cc [ \fIflag\fR... ] \fB-I\fR \fB/usr/ucbinclude\fR \fIfile\fR... \fB-L\fR \fB/usr/libucb\fR \e
- \fB-R\fR \fB/usr/libucb\fR \fB-lrpcsoc\fR [ \fIlibrary\fR... ]
-#include <\fBrpc/rpc.h\fR>
-.fi
-
-.SH DESCRIPTION
-.sp
-.LP
-Functions in this library implement socket based \fBRPC\fR calls (using socket
-calls, not \fBTLI\fR ). Applications that require this library should link it
-before \fBlibnsl\fR, which implements the same calls over \fBTLI\fR .
-.sp
-.LP
-This library is provided for compatibility only. New applications should not
-link with this library.
-.SH INTERFACES
-.sp
-.LP
-The shared object \fBlibrpcsoc.so.1\fR provides the public interfaces defined
-below. See \fBIntro\fR(3) for additional information on shared object
-interfaces.
-.sp
-
-.sp
-.TS
-l l
-l l .
-\fBclnttcp_create\fR \fBclntudp_bufcreate\fR
-\fBclntudp_create\fR \fBget_myaddress\fR
-\fBgetrpcport\fR \fBrtime\fR
-\fBsvcfd_create\fR \fBsvctcp_create\fR
-\fBsvcudp_bufcreate\fR \fBsvcudp_create\fR
-\fBsvcudp_enablecache\fR
-.TE
-
-.SH FILES
-.sp
-.ne 2
-.na
-\fB\fB/usr/ucblib/librpcsoc.so.1\fR\fR
-.ad
-.sp .6
-.RS 4n
-shared object
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fB/usr/ucblib/64/librpcsoc.so.1\fR\fR
-.ad
-.sp .6
-.RS 4n
-64-bit shared object
-.RE
-
-.SH ATTRIBUTES
-.sp
-.LP
-See \fBattributes\fR(5) for descriptions of the following attributes:
-.sp
-
-.sp
-.TS
-box;
-c | c
-l | l .
-ATTRIBUTE TYPE ATTRIBUTE VALUE
-_
-MT-Level Unsafe
-.TE
-
-.SH SEE ALSO
-.sp
-.LP
-\fBpvs\fR(1), \fBIntro\fR(3), \fBrpc_soc\fR(3NSL), \fBlibnsl\fR(3LIB),
-\fBattributes\fR(5)
diff --git a/usr/src/man/man3libucb/libtermcap.3libucb b/usr/src/man/man3libucb/libtermcap.3libucb
deleted file mode 100644
index bba26d3b42..0000000000
--- a/usr/src/man/man3libucb/libtermcap.3libucb
+++ /dev/null
@@ -1,78 +0,0 @@
-'\" te
-.\" Copyright (c) 2002, Sun Microsystems, Inc. All Rights Reserved
-.\" 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 LIBTERMCAP 3LIBUCB "Nov 14, 2002"
-.SH NAME
-libtermcap \- terminal independent operation library
-.SH SYNOPSIS
-.LP
-.nf
-cc [ \fIflag\fR... ] \fB-I\fR \fB/usr/ucbinclude\fR \fIfile\fR... \fB-L\fR \fB/usr/libucb\fR \e
- \fB-R\fR \fB/usr/libucb\fR \fB-ltermcap\fR [ \fIlibrary\fR... ]
-.fi
-
-.SH DESCRIPTION
-.sp
-.LP
-Functions in this library extract and use capabilities from the terminal
-capability database \fBterminfo\fR(4).
-.SH INTERFACES
-.sp
-.LP
-The shared object \fBlibtermcap.so.1\fR provides the public interfaces defined
-below. See \fBIntro\fR(3) for additional information on shared object
-interfaces.
-.sp
-
-.sp
-.TS
-l l l l l
-l l l l l .
-\fBBC\fR \fBPC\fR \fBUP\fR \fBospeed\fR \fBtgetent\fR
-\fBtgetflag\fR \fBtgetnum\fR \fBtgetstr\fR \fBtgoto\fR \fBtputs\fR
-.TE
-
-.SH FILES
-.sp
-.ne 2
-.na
-\fB\fB/usr/ucblib/libtermcap.so.1\fR\fR
-.ad
-.sp .6
-.RS 4n
-shared object
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fB/usr/ucblib/64/libtermcap.so.1\fR\fR
-.ad
-.sp .6
-.RS 4n
-64-bit shared object
-.RE
-
-.SH ATTRIBUTES
-.sp
-.LP
-See \fBattributes\fR(5) for descriptions of the following attributes:
-.sp
-
-.sp
-.TS
-box;
-c | c
-l | l .
-ATTRIBUTE TYPE ATTRIBUTE VALUE
-_
-MT-Level Unsafe
-.TE
-
-.SH SEE ALSO
-.sp
-.LP
-\fBIntro\fR(3), \fBcurs_termcap\fR(3CURSES), \fBterminfo\fR(4),
-\fBattributes\fR(5)
diff --git a/usr/src/man/man3libucb/libucb.3libucb b/usr/src/man/man3libucb/libucb.3libucb
deleted file mode 100644
index ca997a4cb8..0000000000
--- a/usr/src/man/man3libucb/libucb.3libucb
+++ /dev/null
@@ -1,106 +0,0 @@
-'\" te
-.\" Copyright (c) 2004, Sun Microsystems, Inc. All rights reserved.
-.\" 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 LIBUCB 3LIBUCB "Dec 14, 2004"
-.SH NAME
-libucb \- UCB source compatibility library
-.SH SYNOPSIS
-.LP
-.nf
-cc [ \fIflag\fR... ] \fB-I\fR \fB/usr/ucbinclude\fR \fIfile\fR... \fB-L\fR \fB/usr/libucb\fR \e
- \fB-R\fR \fB/usr/ucblib\fR \fB-lucb\fR [ \fIlibrary\fR... ]
-.fi
-
-.SH DESCRIPTION
-.sp
-.LP
-Functions in this library provide UCB source compatibility.
-.SH INTERFACES
-.sp
-.LP
-The shared object \fBlibucb.so.1\fR provides the public interfaces defined
-below. See \fBIntro\fR(3) for additional information on shared object
-interfaces.
-.sp
-
-.sp
-.TS
-l l l
-l l l .
-\fBalphasort\fR \fBbcmp\fR \fBbcopy\fR
-\fBbzero\fR \fBflock\fR \fBfopen\fR
-\fBfprintf\fR \fBfreopen\fR \fBfstatfs\fR
-\fBftime\fR \fBgetdtablesize\fR \fBgethostid\fR
-\fBgethostname\fR \fBgetpagesize\fR \fBgetrusage\fR
-\fBgettimeofday\fR \fBgetwd\fR \fBindex\fR
-\fBkillpg\fR \fBlongjmp\fR \fBmctl\fR
-\fBnice\fR \fBnlist\fR \fBprintf\fR
-\fBpsignal\fR \fBrand\fR \fBre_comp\fR
-\fBre_exec\fR \fBreaddir\fR \fBreboot\fR
-\fBrindex\fR \fBscandir\fR \fBsetbuffer\fR
-\fBsethostname\fR \fBsetjmp\fR \fBsetlinebuf\fR
-\fBsetpgrp\fR \fBsettimeofday\fR \fBsigblock\fR
-\fBsiginterrupt\fR \fBsignal\fR \fBsigpause\fR
-\fBsigsetmask\fR \fBsigstack\fR \fBsigvec\fR
-\fBsigvechandler\fR \fBsleep\fR \fBsprintf\fR
-\fBsrand\fR \fBstatfs\fR \fBsys_siglist\fR
-\fBtimes\fR \fBualarm\fR \fBusignal\fR
-\fBusigpause\fR \fBusleep\fR \fBvfprintf\fR
-\fBvprintf\fR \fBvsprintf\fR \fBwait3\fR
-\fBwait4\fR
-.TE
-
-.sp
-.LP
-The following interfaces are unique to the 32-bit version of this library:
-.sp
-
-.sp
-.TS
-l l l
-l l l .
-\fBalphasort64\fR \fBfopen64\fR \fBfreopen64\fR
-\fBreaddir64\fR \fBscandir64\fR
-.TE
-
-.SH FILES
-.sp
-.ne 2
-.na
-\fB\fB/usr/ucblib/libucb.so.1\fR\fR
-.ad
-.RS 30n
-shared object
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fB/usr/ucblib/64/libucb.so.1\fR\fR
-.ad
-.RS 30n
-64-bit shared object
-.RE
-
-.SH ATTRIBUTES
-.sp
-.LP
-See \fBattributes\fR(5) for descriptions of the following attributes:
-.sp
-
-.sp
-.TS
-box;
-c | c
-l | l .
-ATTRIBUTE TYPE ATTRIBUTE VALUE
-_
-MT-Level Safe with exceptions
-.TE
-
-.SH SEE ALSO
-.sp
-.LP
-\fBpvs\fR(1), \fBIntro\fR(3), \fBattributes\fR(5)
diff --git a/usr/src/man/man3nsl/gethostbyname.3nsl b/usr/src/man/man3nsl/gethostbyname.3nsl
index 0ec16a3f01..3dd90e3471 100644
--- a/usr/src/man/man3nsl/gethostbyname.3nsl
+++ b/usr/src/man/man3nsl/gethostbyname.3nsl
@@ -9,7 +9,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 GETHOSTBYNAME 3NSL "Aug 24, 2007"
+.TH GETHOSTBYNAME 3NSL "Sep 10, 2013"
.SH NAME
gethostbyname, gethostbyname_r, gethostbyaddr, gethostbyaddr_r, gethostent,
gethostent_r, sethostent, endhostent \- get network host entry
@@ -281,7 +281,7 @@ int main(int argc, const char **argv)
(void) printf("%s\t%s", inet_ntoa(in), hp\(mi>h_name);
for (q = hp->h_aliases; *q != 0; q++)
(void) printf(" %s", *q);
- (void) putchar('\n');
+ (void) putchar('\en');
}
exit (0);
}
diff --git a/usr/src/man/man3papi/papiJobSubmit.3papi b/usr/src/man/man3papi/papiJobSubmit.3papi
index 5e67ca2ab3..17ce4e7f08 100644
--- a/usr/src/man/man3papi/papiJobSubmit.3papi
+++ b/usr/src/man/man3papi/papiJobSubmit.3papi
@@ -3,7 +3,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 PAPIJOBSUBMIT 3PAPI "Jan 17, 2007"
+.TH PAPIJOBSUBMIT 3PAPI "Sep 10, 2013"
.SH NAME
papiJobSubmit, papiJobSubmitByReference, papiJobValidate, papiJobStreamOpen,
papiJobStreamWrite, papiJobStreamClose, papiJobQuery, papiJobModify,
@@ -424,7 +424,7 @@ main(int ac, char *av[])
PAPI_ENCRYPT_NEVER, NULL);
if (status != PAPI_OK) {
- printf("papiServiceCreate(%s): %s\n", svc_name ? svc_name :
+ printf("papiServiceCreate(%s): %s\en", svc_name ? svc_name :
"NULL", papiStatusString(status));
papiServiceDestroy(svc);
exit(1);
@@ -432,7 +432,7 @@ main(int ac, char *av[])
status = papiPrinterListJobs(svc, pname, NULL, 0, 0, &jobs);
if (status != PAPI_OK) {
- printf("papiPrinterListJobs(%s): %s\n", pname,
+ printf("papiPrinterListJobs(%s): %s\en", pname,
papiStatusString(status));
papiServiceDestroy(svc);
exit(1);
@@ -458,7 +458,7 @@ main(int ac, char *av[])
size) != PAPI_OK)
buffer = realloc(buffer, size += BUFSIZ);
- printf("%s-%d:\n\t%s\n", name, id, buffer);
+ printf("%s-%d:\en\t%s\en", name, id, buffer);
free(buffer);
}
}
@@ -548,7 +548,7 @@ main(int ac, char *av[])
PAPI_ENCRYPT_NEVER, NULL);
if (status != PAPI_OK) {
- printf("papiServiceCreate(%s): %s\n", svc_name ? svc_name :
+ printf("papiServiceCreate(%s): %s\en", svc_name ? svc_name :
"NULL", papiStatusString(status));
papiServiceDestroy(svc);
exit(1);
@@ -568,15 +568,15 @@ main(int ac, char *av[])
"printer-name", &name);
(void) papiAttributeListGetInteger(list, NULL,
"job-id", &id);
- while (papiAttributeListToString(list, "\n\t", buffer, size)
+ while (papiAttributeListToString(list, "\en\et", buffer, size)
!= PAPI_OK)
buffer = realloc(buffer, size += BUFSIZ);
- printf("%s-%d:\n\t%s\n", name, id, buffer);
+ printf("%s-%d:\en\et%s\n", name, id, buffer);
free(buffer);
}
} else
- printf("papiJobQuery(%s-%d): %s\n", pname, id,
+ printf("papiJobQuery(%s-%d): %s\en", pname, id,
papiStatusString(status));
papiJobFree(job);
@@ -664,7 +664,7 @@ main(int ac, char *av[])
PAPI_ENCRYPT_NEVER, NULL);
if (status != PAPI_OK) {
- printf("papiServiceCreate(%s): %s\n", svc_name ? svc_name :
+ printf("papiServiceCreate(%s): %s\en", svc_name ? svc_name :
"NULL", papiStatusString(status));
papiServiceDestroy(svc);
exit(1);
@@ -702,11 +702,11 @@ main(int ac, char *av[])
!= PAPI_OK)
buffer = realloc(buffer, size += BUFSIZ);
- printf("%s-%d:\n\t%s\n", name, id, buffer);
+ printf("%s-%d:\en\t%s\en", name, id, buffer);
free(buffer);
}
} else
- printf("papiJobStream*(%s-%d): %s\n", pname, id,
+ printf("papiJobStream*(%s-%d): %s\en", pname, id,
papiStatusString(status));
papiJobFree(job);
diff --git a/usr/src/man/man3papi/papiPrintersList.3papi b/usr/src/man/man3papi/papiPrintersList.3papi
index b63302e558..69d31be0cc 100644
--- a/usr/src/man/man3papi/papiPrintersList.3papi
+++ b/usr/src/man/man3papi/papiPrintersList.3papi
@@ -3,7 +3,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 PAPIPRINTERSLIST 3PAPI "Jan 17, 2007"
+.TH PAPIPRINTERSLIST 3PAPI "Sep 10, 2013"
.SH NAME
papiPrintersList, papiPrinterQuery, papiPrinterAdd, papiPrinterModify,
papiPrinterRemove, papiPrinterDisable, papiPrinterEnable, papiPrinterPause,
@@ -404,7 +404,7 @@ main(int ac, char *av[])
(void) papiAttributeListGetString(list, NULL,
"printer-uri-supported", &uri);
- printf("%s is %s\n", name, uri);
+ printf("%s is %s\en", name, uri);
}
}
papiPrinterListFree(printers);
diff --git a/usr/src/man/man3socket/getipnodebyname.3socket b/usr/src/man/man3socket/getipnodebyname.3socket
index 7cc3f4b408..e26d2325d1 100644
--- a/usr/src/man/man3socket/getipnodebyname.3socket
+++ b/usr/src/man/man3socket/getipnodebyname.3socket
@@ -3,7 +3,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 GETIPNODEBYNAME 3SOCKET "Aug 22, 2007"
+.TH GETIPNODEBYNAME 3SOCKET "Sep 10, 2013"
.SH NAME
getipnodebyname, getipnodebyaddr, freehostent \- get IP node entry
.SH SYNOPSIS
@@ -454,7 +454,7 @@ hostname.
char **p;
if (argc != 2) {
- (void) printf("usage: %s hostname\n", argv[0]);
+ (void) printf("usage: %s hostname\en", argv[0]);
exit (1);
}
@@ -464,9 +464,9 @@ hostname.
if (hp == NULL) {
if (error_num == TRY_AGAIN) {
printf("%s: unknown host or invalid literal address "
- "(try again later)\n", argv[1]);
+ "(try again later)\en", argv[1]);
} else {
- printf("%s: unknown host or invalid literal address\n",
+ printf("%s: unknown host or invalid literal address\en",
argv[1]);
}
exit (1);
@@ -480,7 +480,7 @@ hostname.
abuf, sizeof(abuf)), hp->h_name);
for (q = hp->h_aliases; *q != 0; q++)
(void) printf(" %s", *q);
- (void) putchar('\n');
+ (void) putchar('\en');
}
freehostent(hp);
exit (0);
diff --git a/usr/src/man/man3tecla/gl_get_line.3tecla b/usr/src/man/man3tecla/gl_get_line.3tecla
index f85a1ed7e6..e6430def13 100644
--- a/usr/src/man/man3tecla/gl_get_line.3tecla
+++ b/usr/src/man/man3tecla/gl_get_line.3tecla
@@ -25,7 +25,7 @@
.\" or other dealings in this Software without prior written authorization
.\" of the copyright holder.
.\" Portions Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
-.TH GL_GET_LINE 3TECLA "Nov 28, 2007"
+.TH GL_GET_LINE 3TECLA "Sep 10, 2013"
.SH NAME
gl_get_line, new_GetLine, del_GetLine, gl_customize_completion,
gl_change_terminal, gl_configure_getline, gl_load_history, gl_save_history,
@@ -673,7 +673,7 @@ in the call
.sp
.in +2
.nf
-gl_configure_getline(gl, "edit-mode vi \n nobeep",
+gl_configure_getline(gl, "edit-mode vi \en nobeep",
"/usr/share/myapp/teclarc", "~/.teclarc");
.fi
.in -2
diff --git a/usr/src/man/man3ucb/Makefile b/usr/src/man/man3ucb/Makefile
deleted file mode 100644
index 18211dfc03..0000000000
--- a/usr/src/man/man3ucb/Makefile
+++ /dev/null
@@ -1,48 +0,0 @@
-#
-# This file and its contents are supplied under the terms of the
-# Common Development and Distribution License ("CDDL"), version 1.0.
-# You may only use this file in accordance with the terms of version
-# 1.0 of the CDDL.
-#
-# A full copy of the text of the CDDL should have accompanied this
-# source. A copy of the CDDL is also available via the Internet
-# at http://www.illumos.org/license/CDDL.
-#
-
-#
-# Copyright 2011, Richard Lowe
-# Copyright 2013 Nexenta Systems, Inc. All rights reserved.
-#
-
-include $(SRC)/Makefile.master
-
-MANSECT= 3ucb
-
-MANFILES= dbm.3ucb \
- flock.3ucb \
- fopen.3ucb \
- gettimeofday.3ucb \
- mctl.3ucb \
- nice.3ucb \
- nlist.3ucb \
- printf.3ucb \
- psignal.3ucb \
- rand.3ucb \
- readdir.3ucb \
- scandir.3ucb \
- setjmp.3ucb \
- sigblock.3ucb \
- siginterrupt.3ucb \
- signal.3ucb \
- sigstack.3ucb \
- sigvec.3ucb \
- sleep.3ucb \
- syscall.3ucb \
- times.3ucb \
- wait.3ucb
-
-.KEEP_STATE:
-
-include $(SRC)/man/Makefile.man
-
-install: $(ROOTMANFILES)
diff --git a/usr/src/man/man3ucb/dbm.3ucb b/usr/src/man/man3ucb/dbm.3ucb
deleted file mode 100644
index b4c5e17518..0000000000
--- a/usr/src/man/man3ucb/dbm.3ucb
+++ /dev/null
@@ -1,150 +0,0 @@
-'\" te
-.\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
-.\" Copyright (c) 1980 Regents of the University of California. All rights reserved. The Berkeley software License Agreement specifies the terms and conditions for redistribution.
-.TH DBM 3UCB "Oct 30, 2007"
-.SH NAME
-dbm, dbminit, dbmclose, fetch, store, delete, firstkey, nextkey \- data base
-subroutines
-.SH SYNOPSIS
-.LP
-.nf
-\fB/usr/ucb/cc\fR [ \fIflag\fR ... ] \fIfile\fR ... \fB-ldbm\fR
-#include <dbm.h>
-
-typedef struct {
- char *dptr;
- int dsize;
- }datum;
-
-\fBint\fR \fBdbminit\fR(\fIfile\fR)
-\fBchar *\fR\fIfile\fR;
-.fi
-
-.LP
-.nf
-\fBint\fR \fBdbmclose\fR();
-.fi
-
-.LP
-.nf
-\fBdatum\fR \fBfetch\fR(\fIkey\fR)
-\fBdatum\fR \fIkey\fR;
-.fi
-
-.LP
-.nf
-\fBint\fR \fBstore\fR( \fIkey\fR, \fIdat\fR)
-\fBdatum\fR \fIkey\fR, \fIdat\fR;
-.fi
-
-.LP
-.nf
-\fBint\fR \fBdelete\fR(\fIkey\fR)
-\fBdatum\fR \fIkey\fR;
-.fi
-
-.LP
-.nf
-\fBdatum\fR \fBfirstkey\fR();
-.fi
-
-.LP
-.nf
-\fBdatum\fR \fBnextkey\fR(\fIkey\fR)
-\fBdatum\fR \fIkey\fR;
-.fi
-
-.SH DESCRIPTION
-.sp
-.LP
-The \fBdbm()\fR library has been superseded by \fBndbm\fR (see \fBndbm\fR(3C)).
-.sp
-.LP
-These functions maintain key/content pairs in a data base. The functions will
-handle very large (a billion blocks) databases and will access a keyed item in
-one or two file system accesses.
-.sp
-.LP
-\fIkey/dat\fR and their content are described by the \fBdatum\fR \fBtypedef\fR.
-A \fBdatum\fR specifies a string of \fIdsize\fR bytes pointed to by \fIdptr\fR.
-Arbitrary binary data, as well as normal ASCII strings, are allowed. The data
-base is stored in two files. One file is a directory containing a bit map and
-has \fB\&.dir\fR as its suffix. The second file contains all data and has
-\fB\&.pag\fR as its suffix.
-.sp
-.LP
-Before a database can be accessed, it must be opened by \fBdbminit()\fR. At the
-time of this call, the files \fIfile\fR\fB\&.dir\fR and \fIfile\fR\fB\&.pag\fR
-must exist. An empty database is created by creating zero-length \fB\&.dir\fR
-and \fB\&.pag\fR files.
-.sp
-.LP
-A database may be closed by calling \fBdbmclose()\fR. You must close a database
-before opening a new one.
-.sp
-.LP
-Once open, the data stored under a key is accessed by \fBfetch()\fR and data is
-placed under a key by \fBstore\fR. A key (and its associated contents) is
-deleted by \fBdelete()\fR. A linear pass through all keys in a database may be
-made, in an (apparently) random order, by use of \fBfirstkey()\fR and
-\fBnextkey()\fR. \fBfirstkey()\fR will return the first key in the database.
-With any key \fBnextkey()\fR will return the next key in the database. This
-code will traverse the data base:
-.sp
-.in +2
-.nf
-for (key = firstkey; key.dptr != NULL; key = nextkey(key))
-.fi
-.in -2
-
-.SH RETURN VALUES
-.sp
-.LP
-All functions that return an \fBint\fR indicate errors with negative values. A
-zero return indicates no error. Routines that return a \fBdatum\fR indicate
-errors with a \fINULL\fR (0) \fIdptr\fR.
-.SH SEE ALSO
-.sp
-.LP
-\fBar\fR(1), \fBcat\fR(1), \fBcp\fR(1), \fBtar\fR(1), \fBndbm\fR(3C)
-.SH NOTES
-.sp
-.LP
-Use of these interfaces should be restricted to only applications written on
-BSD platforms. Use of these interfaces with any of the system libraries or in
-multi-thread applications is unsupported.
-.sp
-.LP
-The \fB\&.pag\fR file will contain holes so that its apparent size may be
-larger than its actual content. Older versions of the UNIX operating system may
-create real file blocks for these holes when touched. These files cannot be
-copied by normal means ( \fBcp\fR(1), \fBcat\fR(1), \fBtar\fR(1), \fBar\fR(1))
-without filling in the holes.
-.sp
-.LP
-\fIdptr\fR pointers returned by these subroutines point into static storage
-that is changed by subsequent calls.
-.sp
-.LP
-The sum of the sizes of a key/content pair must not exceed the internal block
-size (currently 1024 bytes). Moreover all key/content pairs that hash together
-must fit on a single block. \fBstore\fR will return an error in the event that
-a disk block fills with inseparable data.
-.sp
-.LP
-\fBdelete()\fR does not physically reclaim file space, although it does make it
-available for reuse.
-.sp
-.LP
-The order of keys presented by \fBfirstkey()\fR and \fBnextkey()\fR depends on
-a hashing function, not on anything interesting.
-.sp
-.LP
-There are no interlocks and no reliable cache flushing; thus concurrent
-updating and reading is risky.
-.sp
-.LP
-The database files (\fIfile\fR\fB\&.dir\fR and \fIfile\fR\fB\&.pag\fR) are
-binary and are architecture-specific (for example, they depend on the
-architecture's byte order.) These files are not guaranteed to be portable
-across architectures.
diff --git a/usr/src/man/man3ucb/flock.3ucb b/usr/src/man/man3ucb/flock.3ucb
deleted file mode 100644
index 8685ce0c7e..0000000000
--- a/usr/src/man/man3ucb/flock.3ucb
+++ /dev/null
@@ -1,142 +0,0 @@
-'\" te
-.\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
-.\" Copyright (c) 1983 Regents of the University of California. All rights reserved. The Berkeley software License Agreement specifies the terms and conditions for redistribution.
-.TH FLOCK 3UCB "Oct 30, 2007"
-.SH NAME
-flock \- apply or remove an advisory lock on an open file
-.SH SYNOPSIS
-.LP
-.nf
-\fB/usr/ucb/cc\fR[ \fIflag\fR ... ] \fIfile\fR ...
-#include <sys/file.h>
-
-\fBint\fR \fBflock\fR( \fIfd\fR, \fIoperation\fR)
-
-\fBint\fR \fIfd\fR, \fIoperation\fR;
-.fi
-
-.SH DESCRIPTION
-.sp
-.LP
-\fBflock()\fR applies or removes an \fIadvisory\fR lock on the file associated
-with the file descriptor \fIfd\fR. The compatibility version of \fBflock()\fR
-has been implemented on top of \fBfcntl\fR(2) locking. It does not provide
-complete binary compatibility.
-.sp
-.LP
-Advisory locks allow cooperating processes to perform consistent operations on
-files, but do not guarantee exclusive access (that is, processes may still
-access files without using advisory locks, possibly resulting in
-inconsistencies).
-.sp
-.LP
-The locking mechanism allows two types of locks: shared locks and exclusive
-locks. More than one process may hold a shared lock for a file at any given
-time, but multiple exclusive, or both shared and exclusive, locks may not exist
-simultaneously on a file.
-.sp
-.LP
-A lock is applied by specifying an \fIoperation\fR parameter \fBLOCK_SH\fR for
-a shared lock or \fBLOCK_EX\fR for an exclusive lock. The \fIoperation\fR
-parameter may be ORed with \fBLOCK_NB\fR to make the operation non-blocking. To
-unlock an existing lock, the \fIoperation\fR should be \fBLOCK_UN.\fR
-.sp
-.LP
-Read permission is required on a file to obtain a shared lock, and write
-permission is required to obtain an exclusive lock. Locking a segment that is
-already locked by the calling process causes the old lock type to be removed
-and the new lock type to take effect.
-.sp
-.LP
-Requesting a lock on an object that is already locked normally causes the
-caller to block until the lock may be acquired. If \fBLOCK_NB\fR is included
-in \fIoperation\fR, then this will not happen; instead, the call will fail and
-the error \fBEWOULDBLOCK\fR will be returned.
-.SH RETURN VALUES
-.sp
-.LP
-\fBflock()\fR returns:
-.sp
-.ne 2
-.na
-\fB\fB0\fR\fR
-.ad
-.RS 9n
-on success.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fB\(mi1\fR\fR
-.ad
-.RS 9n
-on failure and sets \fBerrno\fR to indicate the error.
-.RE
-
-.SH ERRORS
-.sp
-.ne 2
-.na
-\fB\fBEBADF\fR\fR
-.ad
-.RS 15n
-The argument \fIfd\fR is an invalid descriptor.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBEINVAL\fR\fR
-.ad
-.RS 15n
-\fIoperation\fR is not a valid argument.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBEOPNOTSUPP\fR\fR
-.ad
-.RS 15n
-The argument \fIfd\fR refers to an object other than a file.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBEWOULDBLOCK\fR\fR
-.ad
-.RS 15n
-The file is locked and the \fBLOCK_NB\fR option was specified.
-.RE
-
-.SH SEE ALSO
-.sp
-.LP
-\fBlockd\fR(1M), \fBchmod\fR(2), \fBclose\fR(2), \fBdup\fR(2), \fBexec\fR(2),
-\fBfcntl\fR(2), \fBfork\fR(2), \fBopen\fR(2), \fBlockf\fR(3C)
-.SH NOTES
-.sp
-.LP
-Use of these interfaces should be restricted to only applications written on
-BSD platforms. Use of these interfaces with any of the system libraries or in
-multi-thread applications is unsupported.
-.sp
-.LP
-Locks are on files, not file descriptors. That is, file descriptors duplicated
-through \fBdup\fR(2) or \fBfork\fR(2) do not result in multiple instances of a
-lock, but rather multiple references to a single lock. If a process holding a
-lock on a file forks and the child explicitly unlocks the file, the parent will
-lose its lock. Locks are not inherited by a child process.
-.sp
-.LP
-Processes blocked awaiting a lock may be awakened by signals.
-.sp
-.LP
-Mandatory locking may occur, depending on the mode bits of the file. See
-\fBchmod\fR(2).
-.sp
-.LP
-Locks obtained through the \fBflock()\fR mechanism under SunOS 4.1 were known
-only within the system on which they were placed. This is no longer true.
diff --git a/usr/src/man/man3ucb/fopen.3ucb b/usr/src/man/man3ucb/fopen.3ucb
deleted file mode 100644
index cef6a501aa..0000000000
--- a/usr/src/man/man3ucb/fopen.3ucb
+++ /dev/null
@@ -1,140 +0,0 @@
-'\" te
-.\" Copyright (c) 2007 Sun Microsystems, Inc. All Rights Reserved.
-.\" 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 FOPEN 3UCB "Oct 30, 2007"
-.SH NAME
-fopen, freopen \- open a stream
-.SH SYNOPSIS
-.LP
-.nf
-\fB/usr/ucb/cc\fR [ \fIflag\fR ... ] \fIfile\fR ...
-#include <stdio.h>
-
-\fBFILE *\fR\fBfopen\fR(\fIfile\fR, \fImode\fR)
-\fBconst char *\fR\fIfile\fR, \fB*\fR\fImode\fR;
-.fi
-
-.LP
-.nf
-\fBFILE *\fR\fBfreopen\fR(\fIfile\fR, \fImode\fR, \fIiop\fR)
-\fBconst char *\fR\fIfile\fR, \fB*\fR\fImode\fR;
-\fBregister FILE *\fR\fIiop\fR;
-.fi
-
-.SH DESCRIPTION
-.sp
-.LP
-The \fBfopen()\fR function opens the file specified by \fIfile\fR and
-associates a stream with it. If the open succeeds, \fBfopen()\fR returns a
-pointer to be used to identify the stream in subsequent operations. The
-\fIfile\fR argument points to a character string that contains the name of the
-file to be opened. The \fImode\fR argument is a character string having one of
-the following values:
-.sp
-.ne 2
-.na
-\fB\fBr\fR\fR
-.ad
-.RS 6n
-open for reading
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBw\fR\fR
-.ad
-.RS 6n
-truncate or create for writing
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBa\fR\fR
-.ad
-.RS 6n
-append: open for writing at end of file, or create for writing
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBr+\fR\fR
-.ad
-.RS 6n
-open for update (reading and writing)
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBw+\fR\fR
-.ad
-.RS 6n
-truncate or create for update
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBa+\fR\fR
-.ad
-.RS 6n
-append; open or create for update at \fBEOF\fR
-.RE
-
-.sp
-.LP
-The \fBfreopen()\fR function opens the file specified by \fIfile\fR and
-associates the stream pointed to by \fIiop\fR with it. The \fImode\fR argument
-is used just as in \fBfopen()\fR. The original stream is closed, regardless of
-whether the open ultimately succeeds. If the open succeeds, \fBfreopen()\fR
-returns the original value of \fIiop\fR.
-.sp
-.LP
-The \fBfreopen()\fR function is typically used to attach the pre-opened streams
-associated with\fBstdin\fR, \fBstdout\fR, and \fBstderr\fR to other files.
-.sp
-.LP
-When a file is opened for update, both input and output can be performed on the
-resulting stream. Output cannot be directly followed by input without an
-intervening \fBfseek\fR(3C) or \fBrewind\fR(3C). Input cannot be directly
-followed by output without an intervening \fBfseek\fR(3C) or \fBrewind\fR(3C).
-An input operation that encounters \fBEOF will fail.\fR
-.SH RETURN VALUES
-.sp
-.LP
-The \fBfopen()\fR and \fBfreopen()\fR functions return a \fINULL\fR pointer on
-failure.
-.SH USAGE
-.sp
-.LP
-The \fBfopen()\fR and \fBfreopen()\fR functions have transitional interfaces
-for 64-bit file offsets. See \fBlf64\fR(5).
-.SH SEE ALSO
-.sp
-.LP
-\fBopen\fR(2), \fBfclose\fR(3C), \fBfopen\fR(3C), \fBfreopen\fR(3C),
-\fBfseek\fR(3C), \fBmalloc\fR(3C), \fBrewind\fR(3C), \fBlf64\fR(5)
-.SH NOTES
-.sp
-.LP
-Use of these functions should be restricted to applications written on BSD
-platforms. Use of these functions with any of the system libraries or in
-multithreaded applications is unsupported.
-.sp
-.LP
-To support the same number of open files as the system, \fBfopen()\fR must
-allocate additional memory for data structures using \fBmalloc\fR(3C) after 64
-files have been opened. This confuses some programs that use their own memory
-allocators.
-.sp
-.LP
-The \fBfopen()\fR and \fBfreopen()\fR functions differ from the standard I/O
-functions \fBfopen\fR(3C) and \fBfreopen\fR(3C). The standard I/O functions
-distinguish binary from text files with an additional use of '\fBb\fR' as part
-of the \fImode\fR, enabling portability of \fBfopen\fR(3C) and
-\fBfreopen\fR(3C) beyond SunOS 4.\fIx\fR systems.
diff --git a/usr/src/man/man3ucb/gettimeofday.3ucb b/usr/src/man/man3ucb/gettimeofday.3ucb
deleted file mode 100644
index c4d0c61409..0000000000
--- a/usr/src/man/man3ucb/gettimeofday.3ucb
+++ /dev/null
@@ -1,99 +0,0 @@
-'\" te
-.\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
-.\" Copyright (c) 1980 Regents of the University of California. All rights reserved. The Berkeley software License Agreement specifies the terms and conditions for redistribution.
-.TH GETTIMEOFDAY 3UCB "Oct 30, 2007"
-.SH NAME
-gettimeofday, settimeofday \- get or set the date and time
-.SH SYNOPSIS
-.LP
-.nf
-\fB/usr/ucb/cc\fR [ \fIflag\fR ... ] \fIfile\fR ...
-#include <sys/time.h>
-
-\fBint\fR \fBgettimeofday\fR(\fItp\fR, \fItzp\fR)
-\fBstruct timeval *\fR\fItzp\fR;
-\fBstruct timezone *\fR\fItzp\fR;
-.fi
-
-.LP
-.nf
-\fBint\fR \fBsettimeofday\fR(\fItp\fR, \fItzp\fR)
-\fBstruct timeval *\fR\fItzp\fR;
-\fBstruct timezone *\fR\fItzp\fR;
-.fi
-
-.SH DESCRIPTION
-.sp
-.LP
-The system's notion of the current Greenwich time is obtained with the
-\fBgettimeofday()\fR call, and set with the \fBsettimeofday()\fR call. The
-current time is expressed in elapsed seconds and microseconds since 00:00
-\fBGMT,\fR January 1, 1970 (zero hour). The resolution of the system clock is
-hardware dependent; the time may be updated continuously, or in clock ticks.
-.sp
-.in +2
-.nf
-long tv_sec; /* seconds since Jan. 1, 1970 */
-long tv_usec; /* and microseconds */
-.fi
-.in -2
-
-.sp
-.LP
-\fItp\fR points to a \fBtimeval\fR structure, which includes the following
-members:
-.sp
-.LP
-If \fItp\fR is a \fINULL\fR pointer, the current time information is not
-returned or set.
-.sp
-.LP
-\fItzp\fR is an obsolete pointer formerly used to get and set timezone
-information. \fItzp\fR is now ignored. Timezone information is now handled
-using the \fBTZ\fR environment variable; see \fBTIMEZONE\fR(4).
-.sp
-.LP
-Only the privileged user may set the time of day.
-.SH RETURN VALUES
-.sp
-.LP
-A \fB\(mi1\fR return value indicates an error occurred; in this case an error
-code is stored in the global variable \fBerrno\fR.
-.SH ERRORS
-.sp
-.LP
-The following error codes may be set in \fBerrno\fR:
-.sp
-.ne 2
-.na
-\fB\fBEINVAL\fR\fR
-.ad
-.RS 10n
-\fItp\fR specifies an invalid time.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBEPERM\fR\fR
-.ad
-.RS 10n
-A user other than the privileged user attempted to set the time.
-.RE
-
-.SH SEE ALSO
-.sp
-.LP
-\fBadjtime\fR(2), \fBctime\fR(3C), \fBgettimeofday\fR(3C), \fBTIMEZONE\fR(4)
-.SH NOTES
-.sp
-.LP
-Use of these interfaces should be restricted to only applications written on
-BSD platforms. Use of these interfaces with any of the system libraries or in
-multi-thread applications is unsupported.
-.sp
-.LP
-\fItzp\fR is ignored in SunOS 5.\fIX\fR releases.
-.sp
-.LP
-\fBtv_usec\fR is always 0.
diff --git a/usr/src/man/man3ucb/mctl.3ucb b/usr/src/man/man3ucb/mctl.3ucb
deleted file mode 100644
index eb5ce6942d..0000000000
--- a/usr/src/man/man3ucb/mctl.3ucb
+++ /dev/null
@@ -1,234 +0,0 @@
-'\" te
-.\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
-.\" 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 MCTL 3UCB "Oct 30, 2007"
-.SH NAME
-mctl \- memory management control
-.SH SYNOPSIS
-.LP
-.nf
-\fB/usr/ucb/cc\fR [ \fIflag\fR ... ] \fIfile\fR ...
-#include <sys/types.h>
-#include <sys/mman.h>
-
-\fBint\fR \fBmctl\fR(\fIaddr\fR, \fIlen\fR, \fIfunction\fR, \fIarg\fR)
-\fBcaddr_t\fR \fIaddr\fR;
-\fBsize_t\fR \fIlen\fR;
-\fBint\fR \fIfunction\fR;
-\fBint\fR \fIarg\fR;
-.fi
-
-.SH DESCRIPTION
-.sp
-.LP
-\fBmctl()\fR applies a variety of control functions over pages identified by
-the mappings established for the address range [\fIaddr, addr + len\fR). The
-function to be performed is identified by the argument \fIfunction\fR. Valid
-functions are defined in \fB<mman.h>\fR as follows:
-.sp
-.ne 2
-.na
-\fB\fBMC_LOCK\fR\fR
-.ad
-.RS 15n
-Lock the pages in the range in memory. This function is used to support
-\fBmlock()\fR. See \fBmlock\fR(3C) for semantics and usage. \fIarg\fR is
-ignored.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBMC_LOCKAS\fR\fR
-.ad
-.RS 15n
-Lock the pages in the address space in memory. This function is used to
-support \fBmlockall()\fR. See \fBmlockall\fR(3C) for semantics and usage.
-\fIaddr\fR and \fIlen\fR are ignored. \fIarg\fR is an integer built from the
-flags:
-.sp
-.ne 2
-.na
-\fB\fBMCL_CURRENT\fR\fR
-.ad
-.RS 15n
-Lock current mappings
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBMCL_FUTURE\fR\fR
-.ad
-.RS 15n
-Lock future mappings
-.RE
-
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBMC_SYNC\fR\fR
-.ad
-.RS 15n
-Synchronize the pages in the range with their backing storage. Optionally
-invalidate cache copies. This function is used to support \fBmsync()\fR. See
-\fBmsync\fR(3C) for semantics and usage. \fIarg\fR is used to represent the
-\fIflags\fR argument to \fBmsync()\fR. It is constructed from an OR of the
-following values:
-.sp
-.ne 2
-.na
-\fB\fBMS_SYNC\fR\fR
-.ad
-.RS 17n
-Synchronized write
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBMS_ASYNC\fR\fR
-.ad
-.RS 17n
-Return immediately
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBMS_INVALIDATE\fR\fR
-.ad
-.RS 17n
-Invalidate mappings
-.RE
-
-\fBMS_ASYNC\fR returns after all \fBI/O\fR operations are scheduled.
-\fBMS_SYNC\fR does not return until all \fBI/O\fR operations are complete.
-Specify exactly one of \fBMS_ASYNC\fR or \fBMS_SYNC\fR. \fBMS_INVALIDATE\fR
-invalidates all cached copies of data from memory, requiring them to be
-re-obtained from the object's permanent storage location upon the next
-reference.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBMC_UNLOCK\fR\fR
-.ad
-.RS 15n
-Unlock the pages in the range. This function is used to support
-\fBmunlock()\fR. \fIarg\fR is ignored.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBMC_UNLOCKAS\fR\fR
-.ad
-.RS 15n
-Remove address space memory lock, and locks on all current mappings. This
-function is used to support \fBmunlockall()\fR. \fIaddr\fR and \fIlen\fR must
-have the value 0. \fIarg\fR is ignored.
-.RE
-
-.SH RETURN VALUES
-.sp
-.LP
-\fBmctl()\fR returns \fB0\fR on success, \fB\(mi1\fR on failure.
-.SH ERRORS
-.sp
-.LP
-\fBmctl()\fR fails if:
-.sp
-.ne 2
-.na
-\fB\fBEAGAIN\fR\fR
-.ad
-.RS 10n
-Some or all of the memory identified by the operation could not be locked due
-to insufficient system resources.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBEBUSY\fR\fR
-.ad
-.RS 10n
-\fBMS_INVALIDATE\fR was specified and one or more of the pages is locked in
-memory.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBEINVAL\fR\fR
-.ad
-.RS 10n
-\fIaddr\fR is not a multiple of the page size as returned by
-\fBgetpagesize()\fR.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBEINVAL\fR\fR
-.ad
-.RS 10n
-\fIaddr\fR and/or \fIlen\fR do not have the value 0 when \fBMC_LOCKAS\fR or
-\fBMC_UNLOCKAS\fR are specified.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBEINVAL\fR\fR
-.ad
-.RS 10n
-\fIarg\fR is not valid for the function specified.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBEIO\fR\fR
-.ad
-.RS 10n
-An I/O error occurred while reading from or writing to the file system.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBENOMEM\fR\fR
-.ad
-.RS 10n
-Addresses in the range [\fIaddr, addr + len\fR) are invalid for the address
-space of a process, or specify one or more pages which are not mapped.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBEPERM\fR\fR
-.ad
-.RS 10n
-The process's effective user \fBID\fR is not superuser and one of \fBMC_LOCK
-MC_LOCKAS\fR, \fBMC_UNLOCK\fR, or \fBMC_UNLOCKAS\fR was specified.
-.RE
-
-.SH SEE ALSO
-.sp
-.LP
-\fBmmap\fR(2), \fBmemcntl\fR(2), \fBgetpagesize\fR(3C), \fBmlock\fR(3C),
-\fBmlockall\fR(3C), \fBmsync\fR(3C)
-.SH NOTES
-.sp
-.LP
-Use of these interfaces should be restricted to only applications written on
-BSD platforms. Use of these interfaces with any of the system libraries or in
-multi-thread applications is unsupported.
diff --git a/usr/src/man/man3ucb/nice.3ucb b/usr/src/man/man3ucb/nice.3ucb
deleted file mode 100644
index 7836414fc3..0000000000
--- a/usr/src/man/man3ucb/nice.3ucb
+++ /dev/null
@@ -1,68 +0,0 @@
-'\" te
-.\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
-.\" 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 NICE 3UCB "Oct 30, 2007"
-.SH NAME
-nice \- change priority of a process
-.SH SYNOPSIS
-.LP
-.nf
-\fB/usr/ucb/cc\fR [ \fIflag\fR ... ] \fIfile\fR ...
-#include<unistd.h>
-
-\fBint\fR \fBnice\fR(\fIincr\fR)
-\fBint\fR \fIincr\fR;
-.fi
-
-.SH DESCRIPTION
-.sp
-.LP
-The scheduling priority of the process is augmented by \fIincr\fR. Positive
-priorities get less service than normal. Priority 10 is recommended to users
-who wish to execute long-running programs without undue impact on system
-performance.
-.sp
-.LP
-Negative increments are illegal, except when specified by the privileged user.
-The priority is limited to the range \(mi20 (most urgent) to 20 (least).
-Requests for values above or below these limits result in the scheduling
-priority being set to the corresponding limit.
-.sp
-.LP
-The priority of a process is passed to a child process by \fBfork\fR(2). For a
-privileged process to return to normal priority from an unknown state,
-\fBnice()\fR should be called successively with arguments \(mi40 (goes to
-priority \(mi20 because of truncation), 20 (to get to 0), then 0 (to maintain
-compatibility with previous versions of this call).
-.SH RETURN VALUES
-.sp
-.LP
-Upon successful completion, \fBnice()\fR returns \fB0\fR. Otherwise, a value of
-\fB\(mi1\fR is returned and \fBerrno\fR is set to indicate the error.
-.SH ERRORS
-.sp
-.LP
-The priority is not changed if:
-.sp
-.ne 2
-.na
-\fB\fBEPERM\fR\fR
-.ad
-.RS 9n
-The value of \fIincr\fR specified was negative, and the effective user \fBID\fR
-is not the privileged user.
-.RE
-
-.SH SEE ALSO
-.sp
-.LP
-\fBnice\fR(1), \fBrenice\fR(1), \fBfork\fR(2), \fBpriocntl\fR(2),
-\fBgetpriority\fR(3C)
-.SH NOTES
-.sp
-.LP
-Use of these interfaces should be restricted to only applications written on
-BSD platforms. Use of these interfaces with any of the system libraries or in
-multi-threaded applications is unsupported.
diff --git a/usr/src/man/man3ucb/nlist.3ucb b/usr/src/man/man3ucb/nlist.3ucb
deleted file mode 100644
index 0875e3e1f7..0000000000
--- a/usr/src/man/man3ucb/nlist.3ucb
+++ /dev/null
@@ -1,55 +0,0 @@
-'\" te
-.\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
-.\" 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 NLIST 3UCB "Oct 30, 2007"
-.SH NAME
-nlist \- get entries from symbol table
-.SH SYNOPSIS
-.LP
-.nf
-\fB/usr/ucb/cc\fR [ \fIflag\fR ... ] \fIfile\fR ...
-#include <nlist.h>
-
-\fBint\fR \fBnlist\fR(\fIfilename\fR, \fInl\fR)
-\fBchar *\fR\fIfilename\fR;
-\fBstruct nlist *\fR\fInl\fR;
-.fi
-
-.SH DESCRIPTION
-.sp
-.LP
-\fBnlist()\fR examines the symbol table from the executable image whose name is
-pointed to by \fIfilename\fR, and selectively extracts a list of values and
-puts them in the array of \fBnlist\fR structures pointed to by \fInl\fR. The
-name list pointed to by \fInl\fR consists of an array of structures containing
-names, types and values. The \fBn_name\fR field of each such structure is taken
-to be a pointer to a character string representing a symbol name. The list is
-terminated by an entry with a \fINULL\fR pointer (or a pointer to a \fINULL\fR
-string) in the \fBn_name\fR field. For each entry in \fInl\fR, if the named
-symbol is present in the executable image's symbol table, its value and type
-are placed in the \fBn_value\fR and \fBn_type\fR fields. If a symbol cannot be
-located, the corresponding \fBn_type\fR field of \fInl\fR is set to zero.
-.SH RETURN VALUES
-.sp
-.LP
-Upon normal completion, \fBnlist()\fR returns the number of symbols that were
-not located in the symbol table. If an error occurs, \fBnlist()\fR returns
-\(mi1 and sets all of the \fBn_type\fR fields in members of the array pointed
-to by \fInl\fR to zero.
-.SH SEE ALSO
-.sp
-.LP
-\fBnlist\fR(3ELF), \fBa.out\fR(4)
-.SH NOTES
-.sp
-.LP
-Use of these interfaces should be restricted to only applications written on
-BSD platforms. Use of these interfaces with any of the system libraries or in
-multi-thread applications is unsupported.
-.sp
-.LP
-Only the \fBn_value\fR field is compatibly set. Other fields in the
-\fBnlist\fR structure are filled with the ELF (Executable and Linking Format)
-values (see \fBnlist\fR(3ELF) and \fBa.out\fR(4)).
diff --git a/usr/src/man/man3ucb/printf.3ucb b/usr/src/man/man3ucb/printf.3ucb
deleted file mode 100644
index 55dab93751..0000000000
--- a/usr/src/man/man3ucb/printf.3ucb
+++ /dev/null
@@ -1,351 +0,0 @@
-'\" te
-.\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
-.\" 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 PRINTF 3UCB "Oct 30, 2007"
-.SH NAME
-printf, fprintf, sprintf, vprintf, vfprintf, vsprintf \- formatted output
-conversion
-.SH SYNOPSIS
-.LP
-.nf
-\fB/usr/ucb/cc\fR [\fIflag\fR ...] \fIfile\fR ...
-#include <stdio.h>
-
-\fBint\fR \fBprintf\fR(\fIformat\fR, \fI\&...\fR)
-\fBconst char *\fR\fIformat\fR;
-.fi
-
-.LP
-.nf
-\fBint\fR \fBfprintf\fR(\fIstream\fR, \fIformat\fR, \fIva_list\fR)
-\fBFILE *\fR\fIstream\fR;
-\fBchar *\fR\fIformat\fR;
-\fIva_dcl\fR;
-.fi
-
-.LP
-.nf
-\fBchar *\fR\fBsprintf\fR(\fIs\fR, \fIformat\fR, \fIva_list\fR)
-\fBchar *\fR\fIs\fR, \fB*\fR\fIformat\fR;
-\fIva_dcl\fR;
-.fi
-
-.LP
-.nf
-\fBint\fR \fBvprintf\fR(\fIformat\fR, \fIap\fR)
-\fBchar *\fR\fIformat\fR;
-\fBva_list\fR \fIap\fR;
-.fi
-
-.LP
-.nf
-\fBint\fR \fBvfprintf\fR(\fIstream\fR, \fIformat\fR, \fIap\fR)
-\fBFILE *\fR\fIstream\fR;
-\fBchar *\fR\fIformat\fR;
-\fBva_list\fR \fIap\fR;
-.fi
-
-.LP
-.nf
-\fBchar *\fR\fBvsprintf\fR(\fIs\fR, \fIformat\fR, \fIap\fR)
-\fBchar *\fR\fIs\fR, \fB*\fR\fIformat\fR;
-\fBva_list\fR \fIap\fR;
-.fi
-
-.SH DESCRIPTION
-.sp
-.LP
-\fBprintf()\fR places output on the standard output stream \fBstdout\fR.
-\fBfprintf()\fR places output on the named output \fIstream\fR. \fBsprintf()\fR
-places "output," followed by the \fINULL\fR character (\fB\e0\fR), in
-consecutive bytes starting at *\fIs\fR; it is the user's responsibility to
-ensure that enough storage is available.
-.sp
-.LP
-\fBvprintf()\fR, \fBvfprintf()\fR, and \fBvsprintf()\fR are the same as
-\fBprintf()\fR, \fBfprintf()\fR, and \fBsprintf()\fR respectively, except that
-instead of being called with a variable number of arguments, they are called
-with an argument list as defined by \fB<varargs.h>\fR.
-.sp
-.LP
-Each of these functions converts, formats, and prints its \fIarg\fRs under
-control of the \fIformat\fR. The \fIformat\fR is a character string which
-contains two types of objects: plain characters, which are simply copied to the
-output stream, and conversion specifications, each of which causes conversion
-and printing of zero or more \fIarg\fRs. The results are undefined if there are
-insufficient \fIarg\fRs for the format. If the format is exhausted while
-\fIarg\fRs remain, the excess \fIarg\fRs are simply ignored.
-.sp
-.LP
-Each conversion specification is introduced by the character \fB%\fR. After the
-\fB%\fR, the following appear in sequence:
-.RS +4
-.TP
-.ie t \(bu
-.el o
-Zero or more \fIflags\fR, which modify the meaning of the conversion
-specification.
-.RE
-.RS +4
-.TP
-.ie t \(bu
-.el o
-An optional decimal digit string specifying a minimum \fIfield width\fR. If the
-converted value has fewer characters than the field width, it will be padded on
-the left (or right, if the left-adjustment flag `\fB\(mi\fR\&', described
-below, has been given) to the field width. The padding is with blanks unless
-the field width digit string starts with a zero, in which case the padding is
-with zeros.
-.RE
-.RS +4
-.TP
-.ie t \(bu
-.el o
-A \fIprecision\fR that gives the minimum number of digits to appear for the
-\fBd\fR, \fBi\fR, \fBo\fR, \fBu\fR, \fBx\fR, or \fBX\fR conversions, the number
-of digits to appear after the decimal point for the \fBe\fR, \fBE\fR, and
-\fBf\fR conversions, the maximum number of significant digits for the \fBg\fR
-and \fBG\fR conversion, or the maximum number of characters to be printed from
-a string in \fBs\fR conversion. The precision takes the form of a period
-(\fB\&.\fR) followed by a decimal digit string; a \fINULL\fR digit string is
-treated as zero. Padding specified by the precision overrides the padding
-specified by the field width.
-.RE
-.RS +4
-.TP
-.ie t \(bu
-.el o
-An optional \fBl\fR (ell) specifying that a following \fBd\fR, \fBi\fR,
-\fBo\fR, \fBu\fR, \fBx\fR, or \fBX\fR conversion character applies to a long
-integer \fIarg\fR. An \fBl\fR before any other conversion character is ignored.
-.RE
-.RS +4
-.TP
-.ie t \(bu
-.el o
-A character that indicates the type of conversion to be applied.
-.RE
-.sp
-.LP
-A field width or precision or both may be indicated by an asterisk (\fB*\fR)
-instead of a digit string. In this case, an integer \fIarg\fR supplies the
-field width or precision. The \fIarg\fR that is actually converted is not
-fetched until the conversion letter is seen, so the \fIarg\fRs specifying field
-width or precision must appear \fIbefore\fR the \fIarg\fR (if any) to be
-converted. A negative field width argument is taken as a `\fB\(mi\fR\&' flag
-followed by a positive field width. If the precision argument is negative, it
-will be changed to zero.
-.sp
-.LP
-The flag characters and their meanings are:
-.sp
-.ne 2
-.na
-\fB\fB\(mi\fR\fR
-.ad
-.RS 9n
-The result of the conversion will be left-justified within the field.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fB+\fR\fR
-.ad
-.RS 9n
-The result of a signed conversion will always begin with a sign (\fB+\fR or
-\fB\(mi\fR).
-.RE
-
-.sp
-.ne 2
-.na
-\fBblank\fR
-.ad
-.RS 9n
-If the first character of a signed conversion is not a sign, a blank will be
-prefixed to the result. This implies that if the blank and \fB+\fR flags both
-appear, the blank flag will be ignored.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fB#\fR\fR
-.ad
-.RS 9n
-This flag specifies that the value is to be converted to an "alternate form."
-For \fBc\fR, \fBd\fR, \fBi\fR, \fBs\fR, and \fBu\fR conversions, the flag has
-no effect. For \fBo\fR conversion, it increases the precision to force the
-first digit of the result to be a zero. For \fBx\fR or \fBX\fR conversion, a
-non-zero result will have \fB0x\fR or \fB0X\fR prefixed to it. For \fBe\fR,
-\fBE\fR, \fBf\fR, \fBg\fR, and \fBG\fR conversions, the result will always
-contain a decimal point, even if no digits follow the point (normally, a
-decimal point appears in the result of these conversions only if a digit
-follows it). For \fBg\fR and \fBG\fR conversions, trailing zeroes will
-\fInot\fR be removed from the result (which they normally are).
-.RE
-
-.sp
-.LP
-The conversion characters and their meanings are:
-.sp
-.ne 2
-.na
-\fB\fBd\fR,\fBi\fR,\fBo\fR,\fBu\fR,\fBx\fR,\fBX\fR\fR
-.ad
-.RS 15n
-The integer \fIarg\fR is converted to signed decimal (\fBd\fR or \fBi\fR),
-unsigned octal (\fBo\fR), unsigned decimal (\fBu\fR), or unsigned hexadecimal
-notation (\fBx\fR and \fBX\fR), respectively; the letters \fBabcdef\fR are used
-for \fBx\fR conversion and the letters \fBABCDEF\fR for \fBX\fR conversion. The
-precision specifies the minimum number of digits to appear; if the value being
-converted can be represented in fewer digits, it will be expanded with leading
-zeroes. (For compatibility with older versions, padding with leading zeroes may
-alternatively be specified by prepending a zero to the field width. This does
-not imply an octal value for the field width.) The default precision is 1. The
-result of converting a zero value with a precision of zero is a \fINULL\fR
-string.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBf\fR\fR
-.ad
-.RS 15n
-The float or double \fIarg\fR is converted to decimal notation in the style
-[\fB\(mi\fR]\fIddd\fR\fB\&.\fR\fIddd\fR where the number of digits after the
-decimal point is equal to the precision specification. If the precision is
-missing, 6 digits are given; if the precision is explicitly 0, no digits and no
-decimal point are printed.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBe\fR,\fBE\fR\fR
-.ad
-.RS 15n
-The float or double \fIarg\fR is converted in the style
-[\fB\(mi\fR]\fId\fR\fB\&.\fR\fIddd\fR\fBe\(+-\fR\fIddd\fR, where there is one
-digit before the decimal point and the number of digits after it is equal to
-the precision; when the precision is missing, 6 digits are produced; if the
-precision is zero, no decimal point appears. The \fBE\fR format code will
-produce a number with \fBE\fR instead of \fBe\fR introducing the exponent. The
-exponent always contains at least two digits.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBg\fR,\fBG\fR\fR
-.ad
-.RS 15n
-The float or double \fIarg\fR is printed in style \fBf\fR or \fBe\fR (or in
-style \fBE\fR in the case of a \fBG\fR format code), with the precision
-specifying the number of significant digits. The style used depends on the
-value converted: style \fBe\fR or \fBE\fR will be used only if the exponent
-resulting from the conversion is less than \(mi4 or greater than the precision.
-Trailing zeroes are removed from the result; a decimal point appears only if it
-is followed by a digit.
-.RE
-
-.sp
-.LP
-The \fBe\fR, \fBE f\fR, \fBg,\fR and \fBG\fR formats print \fBIEEE\fR
-indeterminate values (infinity or not-a-number) as "Infinity" or "NaN"
-respectively.
-.sp
-.ne 2
-.na
-\fB\fBc\fR\fR
-.ad
-.RS 5n
-The character \fIarg\fR is printed.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBs\fR\fR
-.ad
-.RS 5n
-The \fIarg\fR is taken to be a string (character pointer) and characters from
-the string are printed until a \fINULL\fR character (\fB\e0\fR) is encountered
-or until the number of characters indicated by the precision specification is
-reached. If the precision is missing, it is taken to be infinite, so all
-characters up to the first \fINULL\fR character are printed. A \fINULL\fR value
-for \fIarg\fR will yield undefined results.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fB%\fR\fR
-.ad
-.RS 5n
-Print a \fB%\fR; no argument is converted.
-.RE
-
-.sp
-.LP
-In no case does a nonexistent or small field width cause truncation of a field;
-if the result of a conversion is wider than the field width, the field is
-simply expanded to contain the conversion result. Padding takes place only if
-the specified field width exceeds the actual width. Characters generated by
-\fBprintf()\fR and \fBfprintf()\fR are printed as if \fBputc\fR(3C) had been
-called.
-.SH RETURN VALUES
-.sp
-.LP
-Upon success, \fBprintf()\fR and \fBfprintf()\fR return the number of
-characters transmitted, excluding the null character. \fBvprintf()\fR and
-\fBvfprintf()\fR return the number of characters transmitted. \fBsprintf()\fR
-and \fBvsprintf()\fR always return \fIs\fR. If an output error is encountered,
-\fBprintf()\fR, \fBfprint()\fR, \fBvprintf()\fR, and \fBvfprintf()\fR return
-EOF.
-.SH EXAMPLES
-.LP
-\fBExample 1 \fRExamples of the \fBprintf\fR Command To Print a Date and Time
-.sp
-.LP
-To print a date and time in the form "Sunday, July 3, 10:02," where
-\fIweekday\fR and \fImonth\fR are pointers to \fINULL\fR-terminated strings:
-
-.sp
-.in +2
-.nf
-printf("%s, %s %i, %d:%.2d", weekday, month, day, hour, min);
-.fi
-.in -2
-
-.LP
-\fBExample 2 \fRExamples of the \fBprintf\fR Command To Print to Five Decimal
-Places
-.sp
-.LP
-To print to five decimal places:
-
-.sp
-.in +2
-.nf
-printf("pi \|= \|%.5f", \|4 * atan(1. 0));
-.fi
-.in -2
-
-.SH SEE ALSO
-.sp
-.LP
-\fBeconvert\fR(3C), \fBputc\fR(3C), \fBscanf\fR(3C), \fBvprintf\fR(3C)
-.SH NOTES
-.sp
-.LP
-Use of these interfaces should be restricted to only applications written on
-BSD platforms. Use of these interfaces with any of the system libraries or in
-multi-thread applications is unsupported.
-.sp
-.LP
-Very wide fields (>128 characters) fail.
diff --git a/usr/src/man/man3ucb/psignal.3ucb b/usr/src/man/man3ucb/psignal.3ucb
deleted file mode 100644
index e8f3d9c415..0000000000
--- a/usr/src/man/man3ucb/psignal.3ucb
+++ /dev/null
@@ -1,45 +0,0 @@
-'\" te
-.\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
-.\" 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 PSIGNAL 3UCB "Oct 30, 2007"
-.SH NAME
-psignal, sys_siglist \- system signal messages
-.SH SYNOPSIS
-.LP
-.nf
-\fB/usr/ucb/cc\fR [ \fIflag\fR ... ] \fIfile\fR ...
-
-\fBvoid\fR \fBpsignal\fR(\fIsig\fR, \fIs\fR)
-\fBunsigned\fR \fIsig\fR;
-\fBchar *\fR\fIs\fR;
-\fBchar *\fR\fIsys_siglist\fR[];
-.fi
-
-.SH DESCRIPTION
-.sp
-.LP
-\fBpsignal()\fR produces a short message on the standard error file describing
-the indicated signal. First the argument string \fIs\fR is printed, then a
-colon, then the name of the signal and a \fBNEWLINE.\fR Most usefully, the
-argument string is the name of the program which incurred the signal. The
-signal number should be from among those found in \fB<signal.h>\fR.
-.sp
-.LP
-To simplify variant formatting of signal names, the vector of message strings
-\fBsys_siglist\fR is provided; the signal number can be used as an index in
-this table to get the signal name without the newline. The define \fBNSIG\fR
-defined in \fB<signal.h>\fR is the number of messages provided for in the
-table; it should be checked because new signals may be added to the system
-before they are added to the table.
-.SH SEE ALSO
-.sp
-.LP
-\fBperror\fR(3C), \fBsignal\fR(3C)
-.SH NOTES
-.sp
-.LP
-Use of these interfaces should be restricted to only applications written on
-BSD platforms. Use of these interfaces with any of the system libraries or in
-multi-thread applications is unsupported.
diff --git a/usr/src/man/man3ucb/rand.3ucb b/usr/src/man/man3ucb/rand.3ucb
deleted file mode 100644
index 231d998b91..0000000000
--- a/usr/src/man/man3ucb/rand.3ucb
+++ /dev/null
@@ -1,51 +0,0 @@
-'\" te
-.\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
-.\" 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 RAND 3UCB "Oct 30, 2007"
-.SH NAME
-rand, srand \- simple random number generator
-.SH SYNOPSIS
-.LP
-.nf
-\fB/usr/ucb/cc\fR [ \fIflag\fR ... ] \fIfile\fR ...
-
-int \fBrand\fR();
-.fi
-
-.LP
-.nf
-\fBint\fR \fBsrand\fR(\fIseed\fR)
-\fBunsigned\fR \fIseed\fR;
-.fi
-
-.SH DESCRIPTION
-.sp
-.LP
-\fBrand()\fR uses a multiplicative congruential random number generator with
-period 2^32 to return successive pseudo-random numbers in the range from 0 to
-2^31 \(mi\|1.
-.sp
-.LP
-\fBsrand()\fR can be called at any time to reset the random-number generator to
-a random starting point. The generator is initially seeded with a value of 1.
-.SH SEE ALSO
-.sp
-.LP
-\fBdrand48\fR(3C), \fBrand\fR(3C), \fBrandom\fR(3C)
-.SH NOTES
-.sp
-.LP
-Use of these interfaces should be restricted to only applications written on
-BSD platforms. Use of these interfaces with any of the system libraries or in
-multi-thread applications is unsupported.
-.sp
-.LP
-The spectral properties of \fBrand()\fR leave a great deal to be desired.
-\fBdrand48\fR(3C) and \fBrandom\fR(3C) provide much better, though more
-elaborate, random-number generators.
-.sp
-.LP
-The low bits of the numbers generated are not very random; use the middle bits.
-In particular the lowest bit alternates between 0 and 1.
diff --git a/usr/src/man/man3ucb/readdir.3ucb b/usr/src/man/man3ucb/readdir.3ucb
deleted file mode 100644
index 6dcb92c691..0000000000
--- a/usr/src/man/man3ucb/readdir.3ucb
+++ /dev/null
@@ -1,217 +0,0 @@
-'\" te
-.\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
-.\" 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 READDIR 3UCB "Oct 30, 2007"
-.SH NAME
-readdir \- read a directory entry
-.SH SYNOPSIS
-.LP
-.nf
-\fB/usr/ucb/cc\fR [ \fIflag\fR ... ] \fIfile\fR ...
-#include <sys/types.h>
-#include <sys/dir.h>
-
-\fBstruct direct *\fR\fBreaddir\fR(\fIdirp\fR)
-\fBDIR *\fR\fIdirp\fR;
-.fi
-
-.SH DESCRIPTION
-.sp
-.LP
-The \fBreaddir()\fR function returns a pointer to a structure representing the
-directory entry at the current position in the directory stream to which
-\fIdirp\fR refers, and positions the directory stream at the next entry, except
-on read-only file systems. It returns a \fINULL\fR pointer upon reaching the
-end of the directory stream, or upon detecting an invalid location in the
-directory. The \fBreaddir()\fR function shall not return directory entries
-containing empty names. It is unspecified whether entries are returned for
-dot \fB(\fR.\fB)\fR or dot-dot \fB(\fR.\|.\fB)\fR. The pointer returned by
-\fBreaddir()\fR points to data that may be overwritten by another call to
-\fBreaddir()\fR on the same directory stream. This data shall not be
-overwritten by another call to \fBreaddir()\fR on a different directory
-stream. The \fBreaddir()\fR function may buffer several directory entries per
-actual read operation. The \fBreaddir()\fR function marks for update the
-\fIst_atime\fR field of the directory each time the directory is actually read.
-.SH RETURN VALUES
-.sp
-.LP
-The \fBreaddir()\fR function returns \fINULL\fR on failure and sets \fBerrno\fR
-to indicate the error.
-.SH ERRORS
-.sp
-.LP
-The \fBreaddir()\fR function will fail if one or more of the following are
-true:
-.sp
-.ne 2
-.na
-\fB\fBEAGAIN\fR\fR
-.ad
-.RS 13n
-Mandatory file/record locking was set, \fBO_NDELAY\fR or \fBO_NONBLOCK\fR was
-set, and there was a blocking record lock.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBEAGAIN\fR\fR
-.ad
-.RS 13n
-Total amount of system memory available when reading using raw I/O is
-temporarily insufficient.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBEAGAIN\fR\fR
-.ad
-.RS 13n
-No data is waiting to be read on a file associated with a tty device and
-\fBO_NONBLOCK\fR was set.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBEAGAIN\fR\fR
-.ad
-.RS 13n
-No message is waiting to be read on a stream and \fBO_NDELAY\fR or
-\fBO_NONBLOCK\fR was set.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBEBADF\fR\fR
-.ad
-.RS 13n
-The file descriptor determined by the \fBDIR\fR stream is no longer valid. This
-results if the \fBDIR\fR stream has been closed.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBEBADMSG\fR\fR
-.ad
-.RS 13n
-Message waiting to be read on a stream is not a data message.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBEDEADLK\fR\fR
-.ad
-.RS 13n
-The \fBread()\fR was going to go to sleep and cause a deadlock to occur.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBEFAULT\fR\fR
-.ad
-.RS 13n
-\fIbuf\fR points to an illegal address.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBEINTR\fR\fR
-.ad
-.RS 13n
-A signal was caught during the \fBread()\fR or \fBreadv()\fR function.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBEINVAL\fR\fR
-.ad
-.RS 13n
-Attempted to read from a stream linked to a multiplexor.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBEIO\fR\fR
-.ad
-.RS 13n
-A physical I/O error has occurred, or the process is in a background process
-group and is attempting to read from its controlling terminal, and either the
-process is ignoring or blocking the \fBSIGTTIN\fR signal or the process group
-of the process is orphaned.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBENOENT\fR\fR
-.ad
-.RS 13n
-The current file pointer for the directory is not located at a valid entry.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBENOLCK\fR\fR
-.ad
-.RS 13n
-The system record lock table was full, so the \fBread()\fR or \fBreadv()\fR
-could not go to sleep until the blocking record lock was removed.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBENOLINK\fR\fR
-.ad
-.RS 13n
-\fIfildes\fR is on a remote machine and the link to that machine is no longer
-active.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBENXIO\fR\fR
-.ad
-.RS 13n
-The device associated with \fIfildes\fR is a block special or character
-special file and the value of the file pointer is out of range.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBEOVERFLOW\fR\fR
-.ad
-.RS 13n
-The value of the \fBdirect\fR structure member \fBd_ino\fR cannot be
-represented in an \fBino_t\fR.
-.RE
-
-.SH USAGE
-.sp
-.LP
-The \fBreaddir()\fR function has a transitional interface for 64-bit file
-offsets. See \fBlf64\fR(5).
-.SH SEE ALSO
-.sp
-.LP
-\fBgetdents\fR(2), \fBreaddir\fR(3C), \fBscandir\fR(3UCB), \fBlf64\fR(5)
-.SH NOTES
-.sp
-.LP
-Use of these interfaces should be restricted to only applications written on
-\fBBSD\fR platforms. Use of these interfaces with any of the system libraries
-or in multi-thread applications is unsupported.
diff --git a/usr/src/man/man3ucb/scandir.3ucb b/usr/src/man/man3ucb/scandir.3ucb
deleted file mode 100644
index f72e493132..0000000000
--- a/usr/src/man/man3ucb/scandir.3ucb
+++ /dev/null
@@ -1,71 +0,0 @@
-'\" te
-.\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
-.\" 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 SCANDIR 3UCB "Oct 30, 2007"
-.SH NAME
-scandir, alphasort \- scan a directory
-.SH SYNOPSIS
-.LP
-.nf
-\fB/usr/ucb/cc\fR [ \fIflag\fR... ] \fIfile\fR...
-#include <sys/types.h>
-#include <sys/dir.h>
-
-\fBint\fR \fBscandir\fR(\fIdirname\fR, \fInamelist\fR, \fIselect\fR, \fIdcomp\fR)
-\fBchar *\fR\fIdirname\fR;
-\fBstruct direct *\fR(*\fInamelist\fR[]);
-\fBint\fR (\fB*\fR\fIselect\fR(), (\fB*\fR\fIdcomp\fR)();
-.fi
-
-.LP
-.nf
-\fBint\fR \fBalphasort\fR(\fId1\fR, \fId2\fR)
-\fBstruct direct **\fR\fId1\fR, \fB**\fR\fId2\fR;
-.fi
-
-.SH DESCRIPTION
-.sp
-.LP
-The \fBscandir()\fR function reads the directory \fIdirname\fR and builds an
-array of pointers to directory entries using \fBmalloc\fR(3C). The second
-parameter is a pointer to an array of structure pointers. The third parameter
-is a pointer to a routine which is called with a pointer to a directory entry
-and should return a non zero value if the directory entry should be included in
-the array. If this pointer is \fINULL\fR, then all the directory entries will
-be included. The last argument is a pointer to a routine which is passed to
-\fBqsort\fR(3C), which sorts the completed array. If this pointer is
-\fINULL\fR, the array is not sorted.
-.sp
-.LP
-The \fBalphasort()\fR function sorts the array alphabetically.
-.SH RETURN VALUES
-.sp
-.LP
-The \fBscandir()\fR function returns the number of entries in the array and a
-pointer to the array through the parameter \fInamelist\fR. The \fBscandir()\fR
-function returns \fB\(mi1\fR if the directory cannot be opened for reading or
-if \fBmalloc\fR(3C) cannot allocate enough memory to hold all the data
-structures.
-.sp
-.LP
-The \fBalphasort()\fR function returns an integer greater than, equal to, or
-less than 0 if the directory entry name pointed to by \fId1\fR is greater than,
-equal to, or less than the directory entry name pointed to by \fId2\fR.
-.SH USAGE
-.sp
-.LP
-The \fBscandir()\fR and \fBalphasort()\fR functions have transitional
-interfaces for 64-bit file offsets. See \fBlf64\fR(5).
-.SH SEE ALSO
-.sp
-.LP
-\fBgetdents\fR(2), \fBmalloc\fR(3C), \fBqsort\fR(3C), \fBreaddir\fR(3UCB),
-\fBreaddir\fR(3C), \fBlf64\fR(5)
-.SH NOTES
-.sp
-.LP
-Use of these functions should be restricted to applications written on
-\fBBSD\fR platforms. Use of these functions with any of the system libraries
-or in multithreaded applications is unsupported.
diff --git a/usr/src/man/man3ucb/setjmp.3ucb b/usr/src/man/man3ucb/setjmp.3ucb
deleted file mode 100644
index 1d20931cf3..0000000000
--- a/usr/src/man/man3ucb/setjmp.3ucb
+++ /dev/null
@@ -1,186 +0,0 @@
-'\" te
-.\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
-.\" 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 SETJMP 3UCB "Apr 7, 1993"
-.SH NAME
-setjmp, longjmp, _setjmp, _longjmp \- non-local goto
-.SH SYNOPSIS
-.LP
-.nf
-\fB/usr/ucb/cc\fR [ \fIflag\fR ... ] \fIfile\fR ...
-#include <setjmp.h>
-
-\fBint\fR \fBsetjmp\fR(\fIenv\fR)
-\fBjmp_buf\fR \fIenv\fR;
-.fi
-
-.LP
-.nf
-\fBvoid\fR \fBlongjmp\fR(\fIenv\fR, \fIval\fR)
-\fBjmp_buf\fR \fIenv\fR;
-\fBint\fR \fIval\fR;
-.fi
-
-.LP
-.nf
-\fBint\fR \fB_setjmp\fR(\fIenv\fR)
-\fBjmp_buf\fR \fIenv\fR;
-.fi
-
-.LP
-.nf
-\fBvoid\fR \fB_longjmp\fR(\fIenv\fR, \fIval\fR)
-\fBjmp_buf\fR \fIenv\fR;
-\fBint\fR \fIval\fR;
-.fi
-
-.SH DESCRIPTION
-.sp
-.LP
-The \fBsetjmp()\fR and \fBlongjmp()\fR functions are useful for dealing with
-errors and interrupts encountered in a low-level subroutine of a program.
-.sp
-.LP
-The \fBsetjmp()\fR function saves its stack environment in \fIenv\fR for later
-use by \fBlongjmp()\fR. A normal call to \fBsetjmp()\fR returns zero.
-\fBsetjmp()\fR also saves the register environment. If a \fBlongjmp()\fR call
-will be made, the routine which called \fBsetjmp()\fR should not return until
-after the \fBlongjmp()\fR has returned control (see below).
-.sp
-.LP
-The \fBlongjmp()\fR function restores the environment saved by the last call of
-\fBsetjmp()\fR, and then returns in such a way that execution continues as if
-the call of \fBsetjmp()\fR had just returned the value \fIval\fR to the
-function that invoked \fBsetjmp()\fR; however, if \fIval\fR were zero,
-execution would continue as if the call of \fBsetjmp()\fR had returned one.
-This ensures that a ``return'' from \fBsetjmp()\fR caused by a call to
-\fBlongjmp()\fR can be distinguished from a regular return from \fBsetjmp()\fR.
-The calling function must not itself have returned in the interim, otherwise
-\fBlongjmp()\fR will be returning control to a possibly nonexistent
-environment. All memory-bound data have values as of the time \fBlongjmp()\fR
-was called. The \fBCPU\fR and floating-point data registers are restored to
-the values they had at the time that \fBsetjmp()\fR was called. But, because
-the \fBregister\fR storage class is only a hint to the C compiler, variables
-declared as \fBregister\fR variables may not necessarily be assigned to machine
-registers, so their values are unpredictable after a \fBlongjmp()\fR. This is
-especially a problem for programmers trying to write machine-independent C
-routines.
-.sp
-.LP
-The \fBsetjmp()\fR and \fBlongjmp()\fR functions save and restore the signal
-mask while \fB_setjmp()\fR and \fB_longjmp()\fR manipulate only the C stack and
-registers.
-.sp
-.LP
-None of these functions save or restore any floating-point status or control
-registers.
-.SH EXAMPLES
-.LP
-\fBExample 1 \fRExamples of \fBsetjmp()\fR and \fBlongjmp()\fR.
-.sp
-.LP
-The following example uses both \fBsetjmp()\fR and \fBlongjmp()\fR to return
-the flow of control to the appropriate instruction block:
-
-.sp
-.in +2
-.nf
-#include <stdio.h>
-#include <setjmp.h>
-#include <signal.h>
-#include <unistd.h>
-jmp_buf env; static void signal_handler();
-main(\|) {
- int returned_from_longjump, processing = 1;
- unsigned int time_interval = 4;
- if ((returned_from_longjump = setjmp(env)) != 0)
- switch (returned_from_longjump) {
- case SIGINT:
- printf("longjumped from interrupt %d\en",SIGINT);
- break;
- case SIGALRM:
- printf("longjumped from alarm %d\en",SIGALRM);
- break;
- }
- (void) signal(SIGINT, signal_handler);
- (void) signal(SIGALRM, signal_handler);
- alarm(time_interval);
- while (processing) {
- printf(" waiting for you to INTERRUPT (cntrl-C) ...\en");
- sleep(1);
- } /* end while forever loop */
-}
-
-static void signal_handler(sig)
-int sig; {
- switch (sig) {
- case SIGINT: ... /* process for interrupt */
- longjmp(env,sig);
- /* break never reached */
- case SIGALRM: ... /* process for alarm */
- longjmp(env,sig);
- /* break never reached */
- default: exit(sig);
- }
-}
-.fi
-.in -2
-
-.sp
-.LP
-When this example is compiled and executed, and the user sends an interrupt
-signal, the output will be:
-
-.sp
-.in +2
-.nf
-longjumped from interrupt
-.fi
-.in -2
-
-.sp
-.LP
-Additionally, every 4 seconds the alarm will expire, signalling this process,
-and the output will be:
-
-.sp
-.in +2
-.nf
-longjumped from alarm
-.fi
-.in -2
-
-.SH SEE ALSO
-.sp
-.LP
-\fBsigvec\fR(3UCB), \fBsetjmp\fR(3C), \fBsignal\fR(3C)
-.SH NOTES
-.sp
-.LP
-Use of these interfaces should be restricted to only applications written on
-BSD platforms. Use of these interfaces with any of the system libraries or in
-multi-thread applications is unsupported.
-.SH BUGS
-.sp
-.LP
-The \fBsetjmp()\fR function does not save the current notion of whether the
-process is executing on the signal stack. The result is that a \fBlongjmp()\fR
-to some place on the signal stack leaves the signal stack state incorrect.
-.sp
-.LP
-On some systems \fBsetjmp()\fR also saves the register environment. Therefore,
-all data that are bound to registers are restored to the values they had at the
-time that \fBsetjmp()\fR was called. All memory-bound data have values as of
-the time \fBlongjmp()\fR was called. However, because the \fBregister\fR
-storage class is only a hint to the C compiler, variables declared as
-\fBregister\fR variables may not necessarily be assigned to machine registers,
-so their values are unpredictable after a \fBlongjmp()\fR. When using compiler
-options that specify automatic register allocation, the compiler will not
-attempt to assign variables to registers in routines that call \fBsetjmp()\fR.
-.sp
-.LP
-The \fBlongjmp()\fR function never causes \fBsetjmp()\fR to return 0, so
-programmers should not depend on \fBlongjmp()\fR being able to cause
-\fBsetjmp()\fR to return 0.
diff --git a/usr/src/man/man3ucb/sigblock.3ucb b/usr/src/man/man3ucb/sigblock.3ucb
deleted file mode 100644
index 1ca228ee45..0000000000
--- a/usr/src/man/man3ucb/sigblock.3ucb
+++ /dev/null
@@ -1,81 +0,0 @@
-'\" te
-.\" Copyright (c) 2007 Sun Microsystems, Inc. All Rights Reserved.
-.\" Copyright (c) 1983 Regents of the University of California. All rights reserved. The Berkeley software License Agreement specifies the terms and conditions for redistribution.
-.TH SIGBLOCK 3UCB "Oct 30, 2007"
-.SH NAME
-sigblock, sigmask, sigpause, sigsetmask \- block signals
-.SH SYNOPSIS
-.LP
-.nf
-\fB/usr/ucb/cc\fR [ \fIflag\fR ... ] \fIfile\fR ...
-#include <signal.h>
-
-\fBint\fR \fBsigblock\fR(\fImask\fR)
-\fBint\fR \fImask\fR;
-.fi
-
-.LP
-.nf
-\fBint\fR \fBsigmask\fR(\fIsignum\fR)
-\fBint\fR \fIsignum\fR;
-.fi
-
-.LP
-.nf
-\fBint\fR \fBsigpause\fR(\fImask\fR)
-\fBint\fR \fImask\fR;
-.fi
-
-.LP
-.nf
-\fBint\fR \fBsigsetmask\fR(\fImask\fR)
-\fBint\fR \fImask\fR;
-.fi
-
-.SH DESCRIPTION
-.sp
-.LP
-\fBsigblock()\fR adds the signals specified in \fImask\fR to the set of signals
-currently being blocked from delivery. Signals are blocked if the appropriate
-bit in \fImask\fR is a 1; the macro \fBsigmask\fR is provided to construct the
-mask for a given \fIsignum\fR. \fBsigblock()\fR returns the previous mask. The
-previous mask may be restored using \fBsigsetmask()\fR.
-.sp
-.LP
-\fBsigpause()\fR assigns \fImask\fR to the set of masked signals and then waits
-for a signal to arrive; on return the set of masked signals is restored.
-\fImask\fR is usually 0 to indicate that no signals are now to be blocked.
-\fBsigpause()\fR always terminates by being interrupted, returning \(mi1 and
-setting \fBerrno\fR to \fBEINTR.\fR
-.sp
-.LP
-\fBsigsetmask()\fR sets the current signal mask (those signals that are blocked
-from delivery). Signals are blocked if the corresponding bit in \fImask\fR is
-a 1; the macro \fBsigmask\fR is provided to construct the mask for a given
-\fIsignum\fR.
-.sp
-.LP
-In normal usage, a signal is blocked using \fBsigblock()\fR. To begin a
-critical section, variables modified on the occurrence of the signal are
-examined to determine that there is no work to be done, and the process pauses
-awaiting work by using \fBsigpause()\fR with the mask returned by
-\fBsigblock()\fR.
-.sp
-.LP
-It is not possible to block \fBSIGKILL\fR, \fBSIGSTOP\fR, or \fBSIGCONT\fR,
-this restriction is silently imposed by the system.
-.SH RETURN VALUES
-.sp
-.LP
-\fBsigblock()\fR and \fBsigsetmask()\fR return the previous set of masked
-signals. \fBsigpause()\fR returns \(mi1 and sets \fBerrno\fR to \fBEINTR\fR.
-.SH SEE ALSO
-.sp
-.LP
-\fBkill\fR(2), \fBsigaction\fR(2), \fBsignal\fR(3UCB), \fBsigvec\fR(3UCB)
-.SH NOTES
-.sp
-.LP
-Use of these interfaces should be restricted to only applications written on
-BSD platforms. Use of these interfaces with any of the system libraries or in
-multi-thread applications is unsupported.
diff --git a/usr/src/man/man3ucb/siginterrupt.3ucb b/usr/src/man/man3ucb/siginterrupt.3ucb
deleted file mode 100644
index 24b0d58230..0000000000
--- a/usr/src/man/man3ucb/siginterrupt.3ucb
+++ /dev/null
@@ -1,67 +0,0 @@
-'\" te
-.\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
-.\" Copyright (c) 1985 Regents of the University of California. All rights reserved. The Berkeley software License Agreement specifies the terms and conditions for redistribution.
-.TH SIGINTERRUPT 3UCB "Oct 30, 2007"
-.SH NAME
-siginterrupt \- allow signals to interrupt functions
-.SH SYNOPSIS
-.LP
-.nf
-\fB/usr/ucb/cc\fR [ \fIflag\fR ... ] \fIfile\fR ...
-
-\fBint\fR \fBsiginterrupt\fR(\fIsig\fR, \fIflag\fR)
-\fBint\fR \fIsig\fR, \fIflag\fR;
-.fi
-
-.SH DESCRIPTION
-.sp
-.LP
-\fBsiginterrupt()\fR is used to change the function restart behavior when a
-function is interrupted by the specified signal. If the flag is false
-(\fB0\fR), then functions will be restarted if they are interrupted by the
-specified signal and no data has been transferred yet. System call restart is
-the default behavior when the \fBsignal\fR(3C) routine is used.
-.sp
-.LP
-If the flag is true, (\fB1\fR), then restarting of functions is disabled. If
-a function is interrupted by the specified signal and no data has been
-transferred, the function will return \fB\(mi1\fR with \fBerrno\fR set to
-\fBEINTR\fR. Interrupted functions that have started transferring data will
-return the amount of data actually transferred.
-.sp
-.LP
-Issuing a \fBsiginterrupt()\fR call during the execution of a signal handler
-will cause the new action to take place on the next signal to be caught.
-.SH RETURN VALUES
-.sp
-.LP
-A \fB0\fR value indicates that the call succeeded. A \fB\(mi1\fR value
-indicates that the call failed and \fBerrno\fR is set to indicate the error.
-.SH ERRORS
-.sp
-.LP
-\fBsiginterrupt()\fR may return the following error:
-.sp
-.ne 2
-.na
-\fB\fBEINVAL\fR\fR
-.ad
-.RS 10n
-\fIsig\fR is not a valid signal.
-.RE
-
-.SH SEE ALSO
-.sp
-.LP
-\fBsigblock\fR(3UCB), \fBsigvec\fR(3UCB), \fBsignal\fR(3C)
-.SH NOTES
-.sp
-.LP
-Use of these interfaces should be restricted to only applications written on
-BSD platforms. Use of these interfaces with any of the system libraries or in
-multi-threaded applications is unsupported.
-.sp
-.LP
-This library routine uses an extension of the \fBsigvec\fR(3UCB) function that
-is not available in 4.2 BSD, hence it should not be used if backward
-compatibility is needed.
diff --git a/usr/src/man/man3ucb/signal.3ucb b/usr/src/man/man3ucb/signal.3ucb
deleted file mode 100644
index 5bd748c45b..0000000000
--- a/usr/src/man/man3ucb/signal.3ucb
+++ /dev/null
@@ -1,113 +0,0 @@
-'\" te
-.\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
-.\" Copyright (c) 1980 Regents of the University of California. All rights reserved. The Berkeley software License Agreement specifies the terms and conditions for redistribution.
-.TH SIGNAL 3UCB "Oct 30, 2007"
-.SH NAME
-signal \- simplified software signal facilities
-.SH SYNOPSIS
-.LP
-.nf
-\fB/usr/ucb/cc\fR [ \fIflag\fR ... ] \fIfile\fR ...
-#include <signal.h>
-
-\fBvoid\fR (\fB*signal(\fR\fIsig\fR, \fIfunc\fR))()
-\fBint\fR \fIsig\fR;
-\fBvoid\fR (\fB*\fR\fIfunc\fR)();
-.fi
-
-.SH DESCRIPTION
-.sp
-.LP
-\fBsignal()\fR is a simplified interface to the more general \fBsigvec\fR(3UCB)
-facility. Programs that use \fBsignal()\fR in preference to \fBsigvec()\fR are
-more likely to be portable to all systems.
-.sp
-.LP
-A signal is generated by some abnormal event, initiated by a user at a terminal
-(quit, interrupt, stop), by a program error (bus error, etc.), by request of
-another program (kill), or when a process is stopped because it wishes to
-access its control terminal while in the background (see \fBtermio\fR(7I)).
-Signals are optionally generated when a process resumes after being stopped,
-when the status of child processes changes, or when input is ready at the
-control terminal. Most signals cause termination of the receiving process if no
-action is taken; some signals instead cause the process receiving them to be
-stopped, or are simply discarded if the process has not requested otherwise.
-Except for the \fBSIGKILL\fR and \fBSIGSTOP\fR signals, the \fBsignal()\fR call
-allows signals either to be ignored or to interrupt to a specified location.
-See \fBsigvec\fR(3UCB) for a complete list of the signals.
-.sp
-.LP
-If \fIfunc\fR is \fBSIG_DFL\fR, the default action for signal \fIsig\fR is
-reinstated; this default is termination (with a core image for starred signals)
-except for signals marked with \(bu or a dagger. Signals marked with \(bu are
-discarded if the action is \fBSIG_DFL\fR; signals marked with a dagger cause
-the process to stop. If \fIfunc\fR is \fBSIG_IGN\fR the signal is subsequently
-ignored and pending instances of the signal are discarded. Otherwise, when the
-signal occurs further occurrences of the signal are automatically blocked and
-\fIfunc\fR is called.
-.sp
-.LP
-A return from the function unblocks the handled signal and continues the
-process at the point it was interrupted.
-.sp
-.LP
-If a caught signal occurs during certain functions, terminating the call
-prematurely, the call is automatically restarted. In particular this can occur
-during a \fBread\fR(2) or \fBwrite\fR(2) on a slow device (such as a terminal;
-but not a file) and during a \fBwait\fR(3C).
-.sp
-.LP
-The value of \fBsignal()\fR is the previous (or initial) value of \fIfunc\fR
-for the particular signal.
-.sp
-.LP
-After a \fBfork\fR(2) or \fBvfork\fR(2) the child inherits all signals. An
-\fBexec\fR(2) resets all caught signals to the default action; ignored signals
-remain ignored.
-.SH RETURN VALUES
-.sp
-.LP
-The previous action is returned on a successful call. Otherwise,\fB\(mi1\fR is
-returned and \fBerrno\fR is set to indicate the error.
-.SH ERRORS
-.sp
-.LP
-\fBsignal()\fR will fail and no action will take place if the following occurs:
-.sp
-.ne 2
-.na
-\fB\fBEINVAL\fR\fR
-.ad
-.RS 10n
-\fIsig\fR is not a valid signal number, or is \fBSIGKILL\fR or \fBSIGSTOP\fR.
-.RE
-
-.SH SEE ALSO
-.sp
-.LP
-\fBkill\fR(1), \fBexec\fR(2), \fBfcntl\fR(2), \fBfork\fR(2),
-\fBgetitimer\fR(2), \fBgetrlimit\fR(2), \fBkill\fR(2), \fBread\fR(2),
-\fBsigaction\fR(2), \fBwrite\fR(2), \fBabort\fR(3C), \fBptrace\fR(3C),
-\fBsetjmp\fR(3C), \fBsetjmp\fR(3UCB), \fBsigblock\fR(3UCB), \fBsignal\fR(3C),
-\fBsignal.h\fR(3HEAD), \fBsigstack\fR(3UCB), \fBsigvec\fR(3UCB),
-\fBwait\fR(3C), \fBwait\fR(3UCB), \fBtermio\fR(7I)
-.SH NOTES
-.sp
-.LP
-Use of these interfaces should be restricted to only applications written on
-BSD platforms. Use of these interfaces with any of the system libraries or in
-multi-threaded applications is unsupported.
-.sp
-.LP
-The handler routine \fIfunc\fR can be declared:
-.sp
-.in +2
-.nf
-void handler(signum) int signum;
-.fi
-.in -2
-
-.sp
-.LP
-Here \fIsignum\fR is the signal number. See \fBsigvec\fR(3UCB) for more
-information.
diff --git a/usr/src/man/man3ucb/sigstack.3ucb b/usr/src/man/man3ucb/sigstack.3ucb
deleted file mode 100644
index 733c5db1d3..0000000000
--- a/usr/src/man/man3ucb/sigstack.3ucb
+++ /dev/null
@@ -1,88 +0,0 @@
-'\" te
-.\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
-.\" Copyright (c) 1983 Regents of the University of California. All rights reserved. The Berkeley software License Agreement specifies the terms and conditions for redistribution.
-.TH SIGSTACK 3UCB "Oct 30, 2007"
-.SH NAME
-sigstack \- set and/or get signal stack context
-.SH SYNOPSIS
-.LP
-.nf
-\fB/usr/ucb/cc\fR [ \fIflag\fR ... ] \fIfile\fR ...
-#include <signal.h>
-
-\fBint\fR \fBsigstack\fR(\fInss\fR, \fIoss\fR)
-\fBstruct sigstack *\fR\fInss\fR, \fB*\fR\fIoss\fR;
-.fi
-
-.SH DESCRIPTION
-.sp
-.LP
-The \fBsigstack()\fR function allows users to define an alternate stack, called
-the "signal stack", on which signals are to be processed. When a signal's
-action indicates its handler should execute on the signal stack (specified with
-a \fBsigvec\fR(3UCB) call), the system checks to see if the process is
-currently executing on that stack. If the process is not currently executing
-on the signal stack, the system arranges a switch to the signal stack for the
-duration of the signal handler's execution.
-.sp
-.LP
-A signal stack is specified by a \fBsigstack()\fR structure, which includes the
-following members:
-.sp
-.in +2
-.nf
-char *ss_sp; /* signal stack pointer */
-int ss_onstack; /* current status */
-.fi
-.in -2
-
-.sp
-.LP
-The \fBss_sp\fR member is the initial value to be assigned to the stack pointer
-when the system switches the process to the signal stack. Note that, on
-machines where the stack grows downwards in memory, this is \fInot\fR the
-address of the beginning of the signal stack area. The \fBss_onstack\fR member
-is zero or non-zero depending on whether the process is currently executing on
-the signal stack or not.
-.sp
-.LP
-If \fInss\fR is not a null pointer, \fBsigstack()\fR sets the signal stack
-state to the value in the \fBsigstack()\fR structure pointed to by \fInss\fR.
-If \fInss\fR is a \fBnull\fR pointer, the signal stack state will be unchanged.
-If \fIoss\fR is not a \fBnull\fR pointer, the current signal stack state is
-stored in the \fBsigstack()\fR structure pointed to by \fIoss\fR.
-.SH RETURN VALUES
-.sp
-.LP
-Upon successful completion, \fB0\fR is returned. Otherwise, \fB\(mi1\fR is
-returned and \fBerrno\fR is set to indicate the error.
-.SH ERRORS
-.sp
-.LP
-The \fBsigstack()\fR function will fail and the signal stack context will
-remain unchanged if one of the following occurs.
-.sp
-.ne 2
-.na
-\fB\fBEFAULT\fR\fR
-.ad
-.RS 10n
-Either \fInss\fR or \fIoss\fR points to memory that is not a valid part of the
-process address space.
-.RE
-
-.SH SEE ALSO
-.sp
-.LP
-\fBsigaltstack\fR(2), \fBsigvec\fR(3UCB), \fBsignal\fR(3C)
-.SH WARNINGS
-.sp
-.LP
-Signal stacks are not "grown" automatically, as is done for the normal stack.
-If the stack overflows unpredictable results may occur.
-.SH NOTES
-.sp
-.LP
-Use of these interfaces should be restricted to only applications written on
-BSD platforms. Use of these interfaces with any of the system libraries or in
-multi-threaded applications is unsupported.
diff --git a/usr/src/man/man3ucb/sigvec.3ucb b/usr/src/man/man3ucb/sigvec.3ucb
deleted file mode 100644
index a1b0119139..0000000000
--- a/usr/src/man/man3ucb/sigvec.3ucb
+++ /dev/null
@@ -1,512 +0,0 @@
-'\" te
-.\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
-.\" Copyright (c) 1980 Regents of the University of California. All rights reserved. The Berkeley software License Agreement specifies the terms and conditions for redistribution.
-.TH SIGVEC 3UCB "Oct 30, 2007"
-.SH NAME
-sigvec \- software signal facilities
-.SH SYNOPSIS
-.LP
-.nf
-\fB/usr/ucb/cc\fR [ \fIflag\fR \&.\|.\|. ] \fIfile\fR\&.\|.\|.
-#include <signal.h>
-
-\fBint\fR \fBsigvec\fR(\fIsig\fR, \fInvec\fR, \fIovec\fR)
-\fBint\fR \fIsig\fR;
-\fBstruct sigvec *\fR\fInvec\fR, \fB*\fR\fIovec\fR;
-.fi
-
-.SH DESCRIPTION
-.sp
-.LP
-The system defines a set of signals that may be delivered to a process. Signal
-delivery resembles the occurrence of a hardware interrupt: the signal is
-blocked from further occurrence, the current process context is saved, and a
-new one is built. A process may specify a \fIhandler\fR to which a signal is
-delivered, or specify that a signal is to be \fIblocked\fR or \fIignored\fR. A
-process may also specify that a default action is to be taken by the system
-when a signal occurs. Normally, signal handlers execute on the current stack of
-the process. This may be changed, on a per-handler basis, so that signals are
-taken on a special \fIsignal stack\fR.
-.sp
-.LP
-All signals have the same \fIpriority\fR. Signal routines execute with the
-signal that caused their invocation to be \fIblocked\fR, but other signals may
-yet occur. A global \fIsignal mask\fR defines the set of signals currently
-blocked from delivery to a process. The signal mask for a process is
-initialized from that of its parent (normally 0). It may be changed with a
-\fBsigblock()\fR or \fBsigsetmask()\fR call, or when a signal is delivered to
-the process.
-.sp
-.LP
-A process may also specify a set of \fIflags\fR for a signal that affect the
-delivery of that signal.
-.sp
-.LP
-When a signal condition arises for a process, the signal is added to a set of
-signals pending for the process. If the signal is not currently \fIblocked\fR
-by the process then it is delivered to the process. When a signal is
-delivered, the current state of the process is saved, a new signal mask is
-calculated (as described below), and the signal handler is invoked. The call to
-the handler is arranged so that if the signal handling routine returns normally
-the process will resume execution in the context from before the signal's
-delivery. If the process wishes to resume in a different context, then it must
-arrange to restore the previous context itself.
-.sp
-.LP
-When a signal is delivered to a process a new signal mask is installed for the
-duration of the process' signal handler (or until a \fBsigblock()\fR or
-\fBsigsetmask()\fR call is made). This mask is formed by taking the current
-signal mask, adding the signal to be delivered, and \fBOR\fRing in the signal
-mask associated with the handler to be invoked.
-.sp
-.LP
-The action to be taken when the signal is delivered is specified by a
-\fBsigvec()\fR structure, which includes the following members:
-.sp
-.in +2
-.nf
-void (*sv_handler)(\|); /* signal handler */
-int sv_mask; /* signal mask to apply */
-int sv_flags; /* see signal options */
-#define SV_ONSTACK /* take signal on signal stack */
-#define SV_INTERRUPT /* do not restart system on signal
- return */
-#define SV_RESETHAND /* reset handler to SIG_DFL when
- signal taken*/
-.fi
-.in -2
-
-.sp
-.LP
-If the \fBSV_ONSTACK\fR bit is set in the flags for that signal, the system
-will deliver the signal to the process on the signal stack specified with
-\fBsigstack\fR(3UCB) rather than delivering the signal on the current stack.
-.sp
-.LP
-If \fInvec\fR is not a \fINULL\fR pointer, \fBsigvec()\fR assigns the handler
-specified by \fBsv_handler()\fR, the mask specified by \fBsv_mask()\fR, and the
-flags specified by \fBsv_flags()\fR to the specified signal. If \fInvec\fR is
-a \fINULL\fR pointer, \fBsigvec()\fR does not change the handler, mask, or
-flags for the specified signal.
-.sp
-.LP
-The mask specified in \fInvec\fR is not allowed to block \fBSIGKILL\fR,
-\fBSIGSTOP\fR, or \fBSIGCONT\fR. The system enforces this restriction silently.
-.sp
-.LP
-If \fIovec\fR is not a \fINULL\fR pointer, the handler, mask, and flags in
-effect for the signal before the call to \fBsigvec()\fR are returned to the
-user. A call to \fBsigvec()\fR with \fInvec\fR a \fINULL\fR pointer and
-\fIovec\fR not a \fINULL\fR pointer can be used to determine the handling
-information currently in effect for a signal without changing that information.
-.sp
-.LP
-The following is a list of all signals with names as in the include file
-\fB<signal.h>\fR:
-.sp
-.ne 2
-.na
-\fB\fBSIGHUP\fR\fR
-.ad
-.RS 13n
-hangup
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBSIGINT\fR\fR
-.ad
-.RS 13n
-interrupt
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBSIGQUIT\fR*\fR
-.ad
-.RS 13n
-quit
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBSIGILL\fR*\fR
-.ad
-.RS 13n
-illegal instruction
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBSIGTRAP\fR*\fR
-.ad
-.RS 13n
-trace trap
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBSIGABRT\fR*\fR
-.ad
-.RS 13n
-abort (generated by \fBabort\fR(3C) routine)
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBSIGEMT\fR*\fR
-.ad
-.RS 13n
-emulator trap
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBSIGFPE\fR*\fR
-.ad
-.RS 13n
-arithmetic exception
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBSIGKILL\fR\fR
-.ad
-.RS 13n
-kill (cannot be caught, blocked, or ignored)
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBSIGBUS\fR*\fR
-.ad
-.RS 13n
-bus error
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBSIGSEGV\fR*\fR
-.ad
-.RS 13n
-segmentation violation
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBSIGSYS\fR*\fR
-.ad
-.RS 13n
-bad argument to function
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBSIGPIPE\fR\fR
-.ad
-.RS 13n
-write on a pipe or other socket with no one to read it
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBSIGALRM\fR\fR
-.ad
-.RS 13n
-alarm clock
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBSIGTERM\fR\fR
-.ad
-.RS 13n
-software termination signal
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBSIGURG\fR*\fR
-.ad
-.RS 13n
-urgent condition present on socket
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBSIGSTOP\fR**\fR
-.ad
-.RS 13n
-stop (cannot be caught, blocked, or ignored)
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBSIGTSTP\fR**\fR
-.ad
-.RS 13n
-stop signal generated from keyboard
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBSIGCONT\fR*\fR
-.ad
-.RS 13n
-continue after stop (cannot be blocked)
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBSIGCHLD\fR*\fR
-.ad
-.RS 13n
-child status has changed
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBSIGTTIN\fR**\fR
-.ad
-.RS 13n
-background read attempted from control terminal
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBSIGTTOU\fR**\fR
-.ad
-.RS 13n
-background write attempted to control terminal
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBSIGIO\fR*\fR
-.ad
-.RS 13n
-I/O is possible on a descriptor (see \fBfcntl\fR(2))
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBSIGXCPU\fR\fR
-.ad
-.RS 13n
-cpu time limit exceeded (see \fBgetrlimit\fR(2))
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBSIGXFSZ\fR\fR
-.ad
-.RS 13n
-file size limit exceeded (see \fBgetrlimit\fR(2))
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBSIGVTALRM\fR\fR
-.ad
-.RS 13n
-virtual time alarm; see \fBsetitimer()\fR on \fBgetitimer\fR(2)
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBSIGPROF\fR\fR
-.ad
-.RS 13n
-profiling timer alarm; see \fBsetitimer()\fR on \fBgetitimer\fR(2)
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBSIGWINCH\fR*\fR
-.ad
-.RS 13n
-window changed (see \fBtermio\fR(7I))
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBSIGLOST\fR\fR
-.ad
-.RS 13n
-resource lost (see \fBlockd\fR(1M))
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBSIGUSR1\fR\fR
-.ad
-.RS 13n
-user-defined signal 1
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBSIGUSR2\fR\fR
-.ad
-.RS 13n
-user-defined signal 2
-.RE
-
-.sp
-.LP
-The starred signals in the list above cause a core image if not caught or
-ignored.
-.sp
-.LP
-Once a signal handler is installed, it remains installed until another
-\fBsigvec()\fR call is made, or an \fBexecve\fR(2) is performed, unless the
-\fBSV_RESETHAND\fR bit is set in the flags for that signal. In that case, the
-value of the handler for the caught signal will be set to \fBSIG_DFL\fR before
-entering the signal-catching function, unless the signal is \fBSIGILL\fR,
-\fBSIGPWR\fR, or \fBSIGTRAP\fR. Also, if this bit is set, the bit for that
-signal in the signal mask will not be set; unless the signal mask associated
-with that signal blocks that signal, further occurrences of that signal will
-not be blocked. The \fBSV_RESETHAND\fR flag is not available in 4.2BSD, hence
-it should not be used if backward compatibility is needed.
-.sp
-.LP
-The default action for a signal may be reinstated by setting the signal's
-handler to \fBSIG_DFL\fR; this default is termination except for signals marked
-with * or **. Signals marked with * are discarded if the action is
-\fBSIG_DFL\fR; signals marked with ** cause the process to stop. If the process
-is terminated, a "core image" will be made in the current working directory of
-the receiving process if the signal is one for which an asterisk appears in the
-above list (see \fBcore\fR(4)).
-.sp
-.LP
-If the handler for that signal is \fBSIG_IGN\fR, the signal is subsequently
-ignored, and pending instances of the signal are discarded.
-.sp
-.LP
-If a caught signal occurs during certain functions, the call is normally
-restarted. The call can be forced to terminate prematurely with an \fBEINTR\fR
-error return by setting the \fBSV_INTERRUPT\fR bit in the flags for that
-signal. The \fBSV_INTERRUPT\fR flag is not available in 4.2BSD, hence it should
-not be used if backward compatibility is needed. The affected functions are
-\fBread\fR(2) or \fBwrite\fR(2) on a slow device (such as a terminal or pipe or
-other socket, but not a file) and during a \fBwait\fR(3C).
-.sp
-.LP
-After a \fBfork\fR(2) or \fBvfork\fR(2) the child inherits all signals, the
-signal mask, the signal stack, and the restart/interrupt and
-reset-signal-handler flags.
-.sp
-.LP
-The \fBexecve\fR(2) call resets all caught signals to default action and resets
-all signals to be caught on the user stack. Ignored signals remain ignored; the
-signal mask remains the same; signals that interrupt functions continue to do
-so.
-.sp
-.LP
-The accuracy of \fIaddr\fR is machine dependent. For example, certain machines
-may supply an address that is on the same page as the address that caused the
-fault. If an appropriate \fIaddr\fR cannot be computed it will be set to
-\fBSIG_NOADDR\fR.
-.SH RETURN VALUES
-.sp
-.LP
-A \fB0\fR value indicates that the call succeeded. A \fB\(mi1\fR return value
-indicates that an error occurred and \fBerrno\fR is set to indicate the reason.
-.SH ERRORS
-.sp
-.LP
-\fBsigvec()\fR will fail and no new signal handler will be installed if one of
-the following occurs:
-.sp
-.ne 2
-.na
-\fB\fBEFAULT\fR\fR
-.ad
-.RS 10n
-Either \fInvec\fR or \fIovec\fR is not a \fINULL\fR pointer and points to
-memory that is not a valid part of the process address space.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBEINVAL\fR\fR
-.ad
-.RS 10n
-\fIsig\fR is not a valid signal number or is \fBSIGKILL\fR or \fBSIGSTOP\fR.
-.RE
-
-.SH SEE ALSO
-.sp
-.LP
-\fBIntro\fR(2), \fBexec\fR(2), \fBfcntl\fR(2), \fBfork\fR(2),
-\fBgetitimer\fR(2), \fBgetrlimit\fR(2), \fBioctl\fR(2), \fBkill\fR(2),
-\fBread\fR(2), \fBumask\fR(2), \fBvfork\fR(2), \fBwrite\fR(2),
-\fBptrace\fR(3C), \fBsetjmp\fR(3C) \fBsigblock\fR(3UCB), \fBsignal\fR(3C),
-\fBsignal\fR(3UCB), \fBsigstack\fR(3UCB), \fBwait\fR(3C), \fBwait\fR(3UCB),
-\fBcore\fR(4), \fBstreamio\fR(7I), \fBtermio\fR(7I)
-.SH NOTES
-.sp
-.LP
-Use of these interfaces should be restricted to only applications written on
-BSD platforms. Use of these interfaces with any of the system libraries or in
-multi-thread applications is unsupported.
-.sp
-.LP
-\fBSIGPOLL\fR is a synonym for \fBSIGIO\fR. A \fBSIGIO\fR will be issued when a
-file descriptor corresponding to a \fBSTREAMS\fR (see \fBIntro\fR(2)) file has
-a "selectable" event pending. Unless that descriptor has been put into
-asynchronous mode (see \fBfcntl\fR(2)), a process may specifically request that
-this signal be sent using the \fBI_SETSIG\fR \fBioctl\fR(2) call (see
-\fBstreamio\fR(7I)). Otherwise, the process will never receive \fBSIGPOLLs0\fR.
-.sp
-.LP
-The handler routine can be declared:
-.sp
-.in +2
-.nf
-void handler(int sig, int code, struct sigcontext *scp,
- char *addr);
-.fi
-.in -2
-
-.sp
-.LP
-Here \fIsig\fR is the signal number; \fIcode\fR is a parameter of certain
-signals that provides additional detail; \fIscp\fR is a pointer to the
-\fBsigcontext\fR structure (defined in \fBsignal.h\fR), used to restore the
-context from before the signal; and \fIaddr\fR is additional address
-information.
-.sp
-.LP
-The signals \fBSIGKILL\fR, \fBSIGSTOP\fR, and \fBSIGCONT\fR cannot be ignored.
diff --git a/usr/src/man/man3ucb/sleep.3ucb b/usr/src/man/man3ucb/sleep.3ucb
deleted file mode 100644
index 4cae187a15..0000000000
--- a/usr/src/man/man3ucb/sleep.3ucb
+++ /dev/null
@@ -1,73 +0,0 @@
-'\" te
-.\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
-.\" Copyright (c) 1980 Regents of the University of California. All rights reserved. The Berkeley software License Agreement specifies the terms and conditions for redistribution.
-.TH SLEEP 3UCB "Oct 30, 2007"
-.SH NAME
-sleep \- suspend execution for interval
-.SH SYNOPSIS
-.LP
-.nf
-\fB/usr/ucb/cc\fR [ \fIflag\fR ... ] \fIfile\fR ...
-
-\fBint\fR \fBsleep\fR(\fIseconds\fR)
-\fBunsigned\fR \fIseconds\fR;
-.fi
-
-.SH DESCRIPTION
-.sp
-.LP
-\fBsleep()\fR suspends the current process from execution for the number of
-seconds specified by the argument. The actual suspension time may be up to 1
-second less than that requested, because scheduled wakeups occur at fixed
-1-second intervals, and may be an arbitrary amount longer because of other
-activity in the system.
-.sp
-.LP
-\fBsleep()\fR is implemented by setting an interval timer and pausing until it
-expires. The previous state of this timer is saved and restored. If the sleep
-time exceeds the time to the expiration of the previous value of the timer, the
-process sleeps only until the timer would have expired, and the signal which
-occurs with the expiration of the timer is sent one second later.
-.SH ATTRIBUTES
-.sp
-.LP
-See \fBattributes\fR(5) for descriptions of the following attributes:
-.sp
-
-.sp
-.TS
-box;
-c | c
-l | l .
-ATTRIBUTE TYPE ATTRIBUTE VALUE
-_
-MT-Level Async-Signal-Safe
-.TE
-
-.SH SEE ALSO
-.sp
-.LP
-\fBalarm\fR(2), \fBgetitimer\fR(2), \fBlongjmp\fR(3C), \fBsiglongjmp\fR(3C),
-\fBsleep\fR(3C), \fBusleep\fR(3C), \fBattributes\fR(5)
-.SH NOTES
-.sp
-.LP
-Use of these interfaces should be restricted to only applications written on
-BSD platforms. Use of these interfaces with any of the system libraries or in
-multi-thread applications is unsupported.
-.sp
-.LP
-\fBSIGALRM\fR should \fInot\fR be blocked or ignored during a call to
-\fBsleep()\fR. Only a prior call to \fBalarm\fR(2) should generate
-\fBSIGALRM\fR for the calling process during a call to \fBsleep()\fR. A
-signal-catching function should \fInot\fR interrupt a call to \fBsleep()\fR to
-call \fBsiglongjmp\fR(3C) or \fBlongjmp\fR(3C) to restore an environment saved
-prior to the \fBsleep()\fR call.
-.SH WARNINGS
-.sp
-.LP
-\fBsleep()\fR is slightly incompatible with \fBalarm\fR(2). Programs that do
-not execute for at least one second of clock time between successive calls to
-\fBsleep()\fR indefinitely delay the alarm signal. Use \fBsleep\fR(3C). Each
-\fBsleep\fR(3C) call postpones the alarm signal that would have been sent
-during the requested sleep period to occur one second later.
diff --git a/usr/src/man/man3ucb/syscall.3ucb b/usr/src/man/man3ucb/syscall.3ucb
deleted file mode 100644
index f7438d3484..0000000000
--- a/usr/src/man/man3ucb/syscall.3ucb
+++ /dev/null
@@ -1,52 +0,0 @@
-'\" te
-.\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
-.\" Copyright (c) 1980 Regents of the University of California. All rights reserved. The Berkeley software License Agreement specifies the terms and conditions for redistribution.
-.TH SYSCALL 3UCB "Oct 30, 2007"
-.SH NAME
-syscall \- indirect system call
-.SH SYNOPSIS
-.LP
-.nf
-\fB/usr/ucb/cc\fR [ \fIflag\fR ... ] \fIfile\fR ...
-#include <sys/syscall.h>
-
-\fBint\fR \fBsyscall\fR(\fInumber\fR, \fIarg\fR, \fI\&...\fR)
-\fBint\fR \fInumber\fR;
-.fi
-
-.SH DESCRIPTION
-.sp
-.LP
-\fBsyscall()\fR performs the function whose assembly language interface has the
-specified \fInumber\fR, and arguments \fIarg .\|.\|.\fR. Symbolic constants for
-functions can be found in the header \fB<sys/syscall.h>\fR.
-.SH RETURN VALUES
-.sp
-.LP
-On error \fBsyscall()\fR returns \(mi1 and sets the external variable
-\fBerrno\fR (see \fBIntro\fR(2)).
-.SH FILES
-.sp
-.LP
-\fB<sys/syscall.h>\fR
-.SH SEE ALSO
-.sp
-.LP
-\fBIntro\fR(2), \fBpipe\fR(2)
-.SH NOTES
-.sp
-.LP
-Use of these interfaces should be restricted to only applications written on
-BSD platforms. Use of these interfaces with any of the system libraries or in
-multi-thread applications is unsupported.
-.SH WARNINGS
-.sp
-.LP
-There is no way to use \fBsyscall()\fR to call functions such as \fBpipe\fR(2)
-which return values that do not fit into one hardware register.
-.sp
-.LP
-Since many system calls are implemented as library wrappers around traps to the
-kernel, these calls may not behave as documented when called from
-\fBsyscall()\fR, which bypasses these wrappers. For these reasons, using
-\fBsyscall()\fR is not recommended.
diff --git a/usr/src/man/man3ucb/times.3ucb b/usr/src/man/man3ucb/times.3ucb
deleted file mode 100644
index 37fec3acb7..0000000000
--- a/usr/src/man/man3ucb/times.3ucb
+++ /dev/null
@@ -1,62 +0,0 @@
-'\" te
-.\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
-.\" 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 TIMES 3UCB "Oct 30, 2007"
-.SH NAME
-times \- get process times
-.SH SYNOPSIS
-.LP
-.nf
-\fB/usr/ucb/cc\fR [ \fIflag\fR ... ] \fIfile\fR ...
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/times.h>
-
-\fBint\fR \fBtimes\fR(\fItmsp\fR)
-\fIregister struct tms *\fR\fItmsp\fR;
-.fi
-
-.SH DESCRIPTION
-.sp
-.LP
-The \fBtimes()\fR function returns time-accounting information for the current
-process and for the terminated child processes of the current process. All
-times are reported in clock ticks. The number of clock ticks per second is
-defined by the variable \fBCLK_TCK\fR, found in the header \fB<limits.h>\fR.
-.sp
-.LP
-A structure with the following members is returned by \fBtimes()\fR:
-.sp
-.in +2
-.nf
-time_t tms_utime; /* user time */
-time_t tms_stime; /* system time */
-time_t tms_cutime; /* user time, children */
-time_t tms_cstime; /* system time, children */
-.fi
-.in -2
-
-.sp
-.LP
-The children's times are the sum of the children's process times and their
-children's times.
-.SH RETURN VALUES
-.sp
-.LP
-Upon successful completion, \fBtimes()\fR returns \fB0\fR. Otherwise, it
-returns \fB\(mi1\fR\&.
-.SH SEE ALSO
-.sp
-.LP
-\fBtime\fR(1), \fBtime\fR(2), \fBgetrusage\fR(3C), \fBwait\fR(3C)
-.SH NOTES
-.sp
-.LP
-Use of these interfaces should be restricted to only applications written on
-BSD platforms. Use of these interfaces with any of the system libraries or in
-multi-threaded applications is unsupported.
-.sp
-.LP
-The \fBtimes()\fR function has been superseded by \fBgetrusage\fR(3C).
diff --git a/usr/src/man/man3ucb/wait.3ucb b/usr/src/man/man3ucb/wait.3ucb
deleted file mode 100644
index 24e23f8c57..0000000000
--- a/usr/src/man/man3ucb/wait.3ucb
+++ /dev/null
@@ -1,369 +0,0 @@
-'\" te
-.\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
-.\" Copyright (c) 1980 Regents of the University of California. All rights reserved. The Berkeley software License Agreement specifies the terms and conditions for redistribution.
-.TH WAIT 3UCB "Oct 30, 2007"
-.SH NAME
-wait, wait3, wait4, waitpid, WIFSTOPPED, WIFSIGNALED, WIFEXITED \- wait for
-process to terminate or stop
-.SH SYNOPSIS
-.LP
-.nf
-\fB/usr/ucb/cc\fR [ \fIflag\fR ... ] \fIfile\fR ...
-#include <sys/wait.h>
-
-\fBint\fR \fBwait\fR(\fIstatusp\fR)
-\fBint *\fR\fIstatusp\fR;
-.fi
-
-.LP
-.nf
-\fBint\fR \fBwaitpid\fR(\fIpid\fR, \fIstatusp\fR, \fIoptions\fR)
-\fBint\fR \fIpid\fR;
-\fBint *\fR\fIstatusp\fR;
-\fBint\fR \fIoptions\fR;
-.fi
-
-.LP
-.nf
-#include <sys/time.h>
-#include <sys/resource.h>
-
-\fBint\fR \fBwait3\fR(\fIstatusp\fR, \fIoptions\fR, \fIrusage\fR)
-\fBint *\fR\fIstatusp\fR;
-\fBint\fR \fIoptions\fR;
-\fBstruct rusage *\fR\fIrusage\fR;
-.fi
-
-.LP
-.nf
-\fBint\fR \fBwait4\fR(\fIpid\fR, \fIstatusp\fR, \fIoptions\fR, \fIrusage\fR)
-\fBint\fR \fIpid\fR;
-\fBint *\fR\fIstatusp\fR;
-\fBint\fR \fIoptions\fR;
-\fBstruct rusage *\fR\fIrusage\fR;
-.fi
-
-.LP
-.nf
-\fBWIFSTOPPED\fR(\fIstatus\fR)
-\fBint\fR \fIstatus\fR;
-.fi
-
-.LP
-.nf
-\fBWIFSIGNALED\fR(\fIstatus\fR)
-\fBint\fR \fIstatus\fR;
-.fi
-
-.LP
-.nf
-\fBWIFEXITED\fR(\fIstatus\fR)
-\fBint\fR \fIstatus\fR;
-.fi
-
-.SH DESCRIPTION
-.sp
-.LP
-The \fBwait()\fR function delays its caller until a signal is received or one
-of its child processes terminates or stops due to tracing. If any child process
-has died or stopped due to tracing and this has not been reported using
-\fBwait()\fR, return is immediate, returning the process \fBID\fR and exit
-status of one of those children. If that child process has died, it is
-discarded. If there are no children, return is immediate with the value \(mi1
-returned. If there are only running or stopped but reported children, the
-calling process is blocked.
-.sp
-.LP
-If \fIstatus\fR is not a \fINULL\fR pointer, then on return from a successful
-\fBwait()\fR call the status of the child process whose process \fBID\fR is the
-return value of \fBwait()\fR is stored in the \fBwait()\fR union pointed to by
-\fIstatus\fR. The \fBw_status\fR member of that union is an \fBint\fR; it
-indicates the cause of termination and other information about the terminated
-process in the following manner:
-.RS +4
-.TP
-.ie t \(bu
-.el o
-If the low-order 8 bits of \fBw_status\fR are equal to 0177, the child process
-has stopped; the 8 bits higher up from the low-order 8 bits of \fBw_status\fR
-contain the number of the signal that caused the process to stop.
-See\fBptrace\fR(3C) and \fBsigvec\fR(3UCB).
-.RE
-.RS +4
-.TP
-.ie t \(bu
-.el o
-If the low-order 8 bits of \fBw_status\fR are non-zero and are not equal to
-0177, the child process terminated due to a signal; the low-order 7 bits of
-\fBw_status\fR contain the number of the signal that terminated the process. In
-addition, if the low-order seventh bit of \fBw_status\fR (that is, bit 0200) is
-set, a ``core image'' of the process was produced; see \fBsigvec\fR(3UCB).
-.RE
-.RS +4
-.TP
-.ie t \(bu
-.el o
-Otherwise, the child process terminated due to an \fBexit()\fR call; the 8 bits
-higher up from the low-order 8 bits of \fBw_status\fR contain the low-order 8
-bits of the argument that the child process passed to \fBexit()\fR; see
-\fBexit\fR(2).
-.RE
-.sp
-.LP
-\fBwaitpid()\fR behaves identically to \fBwait()\fR if \fIpid\fR has a value
-of \(mi1 and \fIoptions\fR has a value of zero. Otherwise, the behavior of
-\fBwaitpid()\fR is modified by the values of \fIpid\fR and \fIoptions\fR as
-follows:
-.sp
-.LP
-\fIpid\fR specifies a set of child processes for which status is requested.
-\fBwaitpid()\fR only returns the status of a child process from this set.
-.RS +4
-.TP
-.ie t \(bu
-.el o
-If \fIpid\fR is equal to \(mi1, status is requested for any child process. In
-this respect, \fBwaitpid()\fR is then equivalent to \fBwait()\fR.
-.RE
-.RS +4
-.TP
-.ie t \(bu
-.el o
-If \fIpid\fR is greater than zero, it specifies the process \fBID\fR of a
-single child process for which status is requested.
-.RE
-.RS +4
-.TP
-.ie t \(bu
-.el o
-If \fIpid\fR is equal to zero, status is requested for any child process whose
-process group \fBID\fR is equal to that of the calling process.
-.RE
-.RS +4
-.TP
-.ie t \(bu
-.el o
-If \fIpid\fR is less than \(mi1, status is requested for any child process
-whose process group \fBID\fR is equal to the absolute value of \fIpid\fR.
-.RE
-.sp
-.LP
-\fIoptions\fR is constructed from the bitwise inclusive \fBOR\fR of zero or
-more of the following flags, defined in the header \fB<sys/wait.h>\fR:
-.sp
-.ne 2
-.na
-\fB\fBWNOHANG\fR\fR
-.ad
-.RS 13n
-\fBwaitpid()\fR does not suspend execution of the calling process if status is
-not immediately available for one of the child processes specified by
-\fIpid\fR.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBWUNTRACED\fR\fR
-.ad
-.RS 13n
-The status of any child processes specified by \fIpid\fR that are stopped, and
-whose status has not yet been reported since they stopped, are also reported to
-the requesting process.
-.RE
-
-.sp
-.LP
-\fBwait3()\fR is an alternate interface that allows both non-blocking status
-collection and the collection of the status of children stopped by any means.
-The \fIstatus\fR parameter is defined as above. The \fIoptions\fR parameter is
-used to indicate the call should not block if there are no processes that have
-status to report (\fBWNOHANG\fR), and/or that children of the current process
-that are stopped due to a \fBSIGTTIN\fR, \fBSIGTTOU\fR, \fBSIGTSTP\fR, or
-\fBSIGSTOP\fR signal are eligible to have their status reported as well
-(\fBWUNTRACED\fR). A terminated child is discarded after it reports status, and
-a stopped process will not report its status more than once. If \fIrusage\fR is
-not a \fINULL\fR pointer, a summary of the resources used by the terminated
-process and all its children is returned. Only the user time used and the
-system time used are currently available. They are returned in
-\fBrusage.ru_utime\fR and \fBrusage.ru_stime\fR, respectively.
-.sp
-.LP
-When the \fBWNOHANG\fR option is specified and no processes have status to
-report, \fBwait3()\fR returns 0. The \fBWNOHANG\fR and \fBWUNTRACED\fR options
-may be combined by \fBORing\fR the two values.
-.sp
-.LP
-\fBwait4()\fR is another alternate interface. With a \fIpid\fR argument of 0,
-it is equivalent to \fBwait3()\fR. If \fIpid\fR has a nonzero value, then
-\fBwait4()\fR returns status only for the indicated process \fBID,\fR but not
-for any other child processes.
-.sp
-.LP
-\fBWIFSTOPPED\fR, \fBWIFSIGNALED\fR, \fBWIFEXITED\fR, are macros that take an
-argument \fIstatus\fR, of type \fBint\fR, as returned by \fBwait()\fR, or
-\fBwait3()\fR, or \fBwait4()\fR. \fBWIFSTOPPED\fR evaluates to true (1) when
-the process for which the \fBwait()\fR call was made is stopped, or to false
-(0) otherwise. \fBWIFSIGNALED\fR evaluates to true when the process was
-terminated with a signal. \fBWIFEXITED\fR evaluates to true when the process
-exited by using an \fBexit\fR(2) call.
-.SH RETURN VALUES
-.sp
-.LP
-If \fBwait()\fRor \fBwaitpid()\fR returns due to a stopped or terminated child
-process, the process ID of the child is returned to the calling process.
-Otherwise, a value of \fB\(mi1\fR is returned and \fBerrno\fR is set to
-indicate the error.
-.sp
-.LP
-If \fBwait()\fR or \fBwaitpid()\fR return due to the delivery of a signal to
-the calling process, a value of \fB\(mi1\fR is returned and \fBerrno\fR is set
-to \fBEINTR.\fR If \fBwaitpid()\fR function was invoked with \fBWNOHANG\fR set
-in \fIoptions\fR, it has at least one child process specified by \fIpid\fR for
-which status is not available, and status is not available for any process
-specified by \fIpid\fR, a value of zero is returned. Otherwise, a value of
-\fB\(mi1\fR is returned, and \fBerrno\fR is set to indicate the error.
-.sp
-.LP
-\fBwait3(\|)\fR and \fBwait4(\|)\fR return 0 if \fBWNOHANG\fR is specified and
-there are no stopped or exited children, and returns the process \fBID\fR of
-the child process if it returns due to a stopped or terminated child process.
-Otherwise, they returns a value of \fB\(mi1\fR and sets \fBerrno\fR to indicate
-the error.
-.SH ERRORS
-.sp
-.LP
-The \fBwait()\fR, \fBwait3()\fR and \fBwait4()\fR functions will fail and
-return immediately if:
-.sp
-.ne 2
-.na
-\fB\fBECHILD\fR\fR
-.ad
-.RS 10n
-The calling process has no existing unwaited-for child processes.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBEFAULT\fR\fR
-.ad
-.RS 10n
-The \fIstatus\fR or \fIrusage\fR arguments point to an illegal address.
-.RE
-
-.sp
-.LP
-\fBwaitpid()\fR may set \fBerrno\fR to:
-.sp
-.ne 2
-.na
-\fB\fBECHILD\fR\fR
-.ad
-.RS 10n
-The process or process group specified by \fIpid\fR does not exist or is not a
-child of the calling process.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBEINTR\fR\fR
-.ad
-.RS 10n
-The function was interrupted by a signal. The value of the location pointed to
-by \fIstatusp\fR is undefined.
-.RE
-
-.sp
-.ne 2
-.na
-\fB\fBEINVAL\fR\fR
-.ad
-.RS 10n
-The value of \fIoptions\fR is not valid.
-.RE
-
-.sp
-.LP
-The \fBwait()\fR, \fBwait3()\fR, and \fBwait4()\fR functions will terminate
-prematurely, return \(mi1, and set \fBerrno\fR to \fBEINTR\fR upon the arrival
-of a signal whose \fBSV_INTERRUPT\fR bit in its flags field is set (see
-\fBsigvec\fR(3UCB) and \fBsiginterrupt\fR(3UCB)). \fBsignal\fR(3UCB), sets this
-bit for any signal it catches.
-.SH SEE ALSO
-.sp
-.LP
-\fBexit\fR(2), \fBgetrusage\fR(3C), \fBptrace\fR(3C), \fBsiginterrupt\fR(3UCB),
-\fBsignal\fR(3C), \fBsignal\fR(3UCB), \fBsigvec\fR(3UCB), \fBwait\fR(3C),
-\fBwaitpid\fR(3C)
-.SH NOTES
-.sp
-.LP
-Use of these interfaces should be restricted to only applications written on
-BSD platforms. Use of these interfaces with any of the system libraries or in
-multi-thread applications is unsupported.
-.sp
-.LP
-If a parent process terminates without waiting on its children, the
-initialization process (process \fBID\fR = 1) inherits the children.
-.sp
-.LP
-The \fBwait()\fR, \fBwait3()\fR, and \fBwait4()\fR functions are automatically
-restarted when a process receives a signal while awaiting termination of a
-child process, unless the \fBSV_INTERRUPT\fR bit is set in the flags for that
-signal.
-.sp
-.LP
-Calls to \fBwait()\fR with an argument of \fB0\fR should be cast to type
-`\fBint *\fR', as in:
-.sp
-.in +2
-.nf
-\fBwait((int *)0)\fR
-.fi
-.in -2
-.sp
-
-.sp
-.LP
-Previous SunOS releases used \fBunion\fR \fBwait\fR\fB*statusp\fR and
-\fBunion\fR \fBwait\fR \fBstatus\fR in place of \fBint *statusp\fR and
-\fBint\fR status. The union contained a member \fBw_status\fR that could be
-treated in the same way as \fIstatus\fR.
-.sp
-.LP
-Other members of the \fBwait\fR union could be used to extract this information
-more conveniently:
-.RS +4
-.TP
-.ie t \(bu
-.el o
-If the \fBw_stopval\fR member had the value \fB\fR\fBWSTOPPED\fR\fB, \fR the
-child process had stopped; the value of the \fBw_stopsig\fR member was the
-signal that stopped the process.
-.RE
-.RS +4
-.TP
-.ie t \(bu
-.el o
-If the \fBw_termsig\fR member was non-zero, the child process terminated due to
-a signal; the value of the \fBw_termsig\fR member was the number of the signal
-that terminated the process. If the \fBw_coredump\fR member was non-zero, a
-core dump was produced.
-.RE
-.RS +4
-.TP
-.ie t \(bu
-.el o
-Otherwise, the child process terminated due to a call to \fBexit()\fR. The
-value of the \fBw_retcode\fR member was the low-order 8 bits of the argument
-that the child process passed to \fBexit()\fR.
-.RE
-.sp
-.LP
-\fBunion\fR \fBwait\fR is obsolete in light of the new specifications provided
-by \fIIEEE Std 1003.1-1988\fR and endorsed by \fISVID89\fR and \fIXPG3\fR.
-SunOS Release 4.1 supports \fBunion\fR\fBwait\fR for backward compatibility,
-but it will disappear in a future release.
diff --git a/usr/src/man/man5/acl.5 b/usr/src/man/man5/acl.5
index d039a300e0..89715d82f5 100644
--- a/usr/src/man/man5/acl.5
+++ b/usr/src/man/man5/acl.5
@@ -3,7 +3,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 ACL 5 "Sep 29, 2008"
+.TH ACL 5 "Sep 10, 2013"
.SH NAME
acl \- Access Control Lists
.SH DESCRIPTION
@@ -812,9 +812,9 @@ Use the following to determine if a file has a trivial ACL:
istrivial = acl_trivial("file")
if (istrivial == 0)
-printf("file %s has a trivial ACL\n", file);
+printf("file %s has a trivial ACL\en", file);
else
-printf("file %s has a NON-trivial ACL\n", file);
+printf("file %s has a NON-trivial ACL\en", file);
\&...
.fi
.in -2
diff --git a/usr/src/man/man5/tecla.5 b/usr/src/man/man5/tecla.5
index d02067c877..61edb3c856 100644
--- a/usr/src/man/man5/tecla.5
+++ b/usr/src/man/man5/tecla.5
@@ -24,7 +24,7 @@
.\" or other dealings in this Software without prior written authorization
.\" of the copyright holder.
.\" Portions Copyright (c) 2005, Sun Microsystems, Inc. All Rights Reserved.
-.TH TECLA 5 "May 20, 2004"
+.TH TECLA 5 "Sep 10, 2013"
.SH NAME
tecla, teclarc \- User interface provided by the tecla library.
.SH DESCRIPTION
@@ -986,10 +986,10 @@ Entering Repeat Counts section.
.ad
.RS 30n
Terminate and return the current contents of the line, after appending a
-newline character. The newline character is normally '\n', but will be the
+newline character. The newline character is normally '\en', but will be the
first character of the key sequence that invoked the newline action, if this
happens to be a printable character. If the action was invoked by the '\n'
-newline character or the '\r' carriage return character, the line is appended
+newline character or the '\er' carriage return character, the line is appended
to the history buffer.
.RE
@@ -1967,7 +1967,7 @@ end-of-history
.sp
.ne 2
.na
-\fB\fB\n\fR\fR
+\fB\fB\en\fR\fR
.ad
.RS 21n
newline
@@ -1976,7 +1976,7 @@ newline
.sp
.ne 2
.na
-\fB\fB\r\fR\fR
+\fB\fB\er\fR\fR
.ad
.RS 21n
newline
@@ -2237,7 +2237,7 @@ complete-word
.sp
.ne 2
.na
-\fB\fB\r\fR\fR
+\fB\fB\er\fR\fR
.ad
.RS 8n
newline
@@ -2246,7 +2246,7 @@ newline
.sp
.ne 2
.na
-\fB\fB\n\fR\fR
+\fB\fB\en\fR\fR
.ad
.RS 8n
newline
@@ -3526,7 +3526,7 @@ newline
.sp
.ne 2
.na
-\fB\fBM-\n\fR\fR
+\fB\fBM-\en\fR\fR
.ad
.RS 21n
newline
diff --git a/usr/src/man/man7d/poll.7d b/usr/src/man/man7d/poll.7d
index 4f91dfb4a1..cd3db77de9 100644
--- a/usr/src/man/man7d/poll.7d
+++ b/usr/src/man/man7d/poll.7d
@@ -3,7 +3,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 POLL 7D "Mar 28, 2007"
+.TH POLL 7D "Sep 10, 2013"
.SH NAME
poll \- driver for fast poll on many file descriptors
.SH SYNOPSIS
@@ -248,14 +248,14 @@ The following example is part of a test program which shows how
result = ioctl(wfd, DP_ISPOLLED, &dpfd);
if (result < 0) {
perror("/dev/poll ioctl DP_ISPOLLED failed");
- printf("errno = %d\n", errno);
+ printf("errno = %d\en", errno);
close (wfd);
free(pollfd);
error = 1;
goto out1;
}
if (result != 1) {
- printf("DP_ISPOLLED returned incorrect result: %d.\n",
+ printf("DP_ISPOLLED returned incorrect result: %d.\en",
result);
close (wfd);
free(pollfd);
@@ -263,7 +263,7 @@ The following example is part of a test program which shows how
goto out1;
}
if (dpfd.fd != fds[rn]) {
- printf("DP_ISPOLLED returned wrong fd %d, expect %d\n",
+ printf("DP_ISPOLLED returned wrong fd %d, expect %d\en",
dpfd.fd, fds[rn]);
close (wfd);
free(pollfd);
@@ -271,7 +271,7 @@ The following example is part of a test program which shows how
goto out1;
}
if (dpfd.revents != POLLIN) {
- printf("DP_ISPOLLED returned unexpected revents %d\n",
+ printf("DP_ISPOLLED returned unexpected revents %d\en",
dpfd.revents);
close (wfd);
free(pollfd);
diff --git a/usr/src/man/man7d/tsalarm.7d b/usr/src/man/man7d/tsalarm.7d
index 9e0c344854..c2ee9ae421 100644
--- a/usr/src/man/man7d/tsalarm.7d
+++ b/usr/src/man/man7d/tsalarm.7d
@@ -3,7 +3,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 TSALARM 7D "Mar 16, 2004"
+.TH TSALARM 7D "Sep 10, 2013"
.SH NAME
tsalarm \- Alarm device driver
.SH SYNOPSIS
@@ -210,7 +210,7 @@ How to set an alarm:
int fd = open(LOM_DEVICE, O_RDWR);
if (fd == -1) {
- printf("Error opening device: %s\n", LOM_DEVICE);
+ printf("Error opening device: %s\en", LOM_DEVICE);
exit (1);
}
diff --git a/usr/src/man/man7d/ugen.7d b/usr/src/man/man7d/ugen.7d
index 9ba8be68fa..a9a5b11305 100644
--- a/usr/src/man/man7d/ugen.7d
+++ b/usr/src/man/man7d/ugen.7d
@@ -3,7 +3,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 UGEN 7D "Dec 3, 2008"
+.TH UGEN 7D "Sep 10, 2013"
.SH NAME
ugen \- USB generic driver
.SH SYNOPSIS
@@ -1139,7 +1139,7 @@ The following example shows how to read an isochronous-IN endpoint:
for (i = 0; i < pktcnt; i++) {
printf("packet %d len = %d,"
- " actual_len = %d, status = 0x%x\n",
+ " actual_len = %d, status = 0x%x\en",
i, pktdesc->dsc_isoc_pkt_len,
pktdesc->dsc_isoc_pkt_actual_len,
pktdesc->dsc_isoc_pkt_status);
diff --git a/usr/src/man/man7i/agpgart_io.7i b/usr/src/man/man7i/agpgart_io.7i
index d92e300d99..e0470bb2f0 100644
--- a/usr/src/man/man7i/agpgart_io.7i
+++ b/usr/src/man/man7i/agpgart_io.7i
@@ -3,7 +3,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 AGPGART_IO 7I "Sep 25, 2008"
+.TH AGPGART_IO 7I "Sep 10, 2013"
.SH NAME
agpgart_io \- Solaris agpgart driver I/O control operations
.SH SYNOPSIS
@@ -779,7 +779,7 @@ int main(int argc, char *argv[])
ret = ioctl(fd, AGPIOC_INFO, &agpinfo);
if(ret == -1) {
- printf("Get info error %d\n", errno);
+ printf("Get info error %d\en", errno);
exit(-1);
}
printf("AGPSTAT is %x\en", agpinfo.agpi_mode);
diff --git a/usr/src/pkg/manifests/compatibility-ucb.mf b/usr/src/pkg/manifests/compatibility-ucb.mf
index 14ca442aa2..8c9d5ed533 100644
--- a/usr/src/pkg/manifests/compatibility-ucb.mf
+++ b/usr/src/pkg/manifests/compatibility-ucb.mf
@@ -21,7 +21,7 @@
#
# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
-# Copyright 2012 Nexenta Systems, Inc. All rights reserved.
+# Copyright 2013 Nexenta Systems, Inc. All rights reserved.
#
set name=pkg.fmri value=pkg:/compatibility/ucb@$(PKGVERS)
@@ -37,8 +37,6 @@ dir path=usr/bin
dir path=usr/lib
dir path=usr/share/man
dir path=usr/share/man/man1b
-dir path=usr/share/man/man3libucb
-dir path=usr/share/man/man3ucb
dir path=usr/ucb
$(i386_ONLY)dir path=usr/ucb/$(ARCH32)
dir path=usr/ucb/$(ARCH64)
@@ -81,33 +79,6 @@ file path=usr/share/man/man1b/users.1b
file path=usr/share/man/man1b/vipw.1b
file path=usr/share/man/man1b/whereis.1b
file path=usr/share/man/man1b/whoami.1b
-file path=usr/share/man/man3libucb/libcurses.3libucb
-file path=usr/share/man/man3libucb/libdbm.3libucb
-file path=usr/share/man/man3libucb/librpcsoc.3libucb
-file path=usr/share/man/man3libucb/libtermcap.3libucb
-file path=usr/share/man/man3libucb/libucb.3libucb
-file path=usr/share/man/man3ucb/dbm.3ucb
-file path=usr/share/man/man3ucb/flock.3ucb
-file path=usr/share/man/man3ucb/fopen.3ucb
-file path=usr/share/man/man3ucb/gettimeofday.3ucb
-file path=usr/share/man/man3ucb/mctl.3ucb
-file path=usr/share/man/man3ucb/nice.3ucb
-file path=usr/share/man/man3ucb/nlist.3ucb
-file path=usr/share/man/man3ucb/printf.3ucb
-file path=usr/share/man/man3ucb/psignal.3ucb
-file path=usr/share/man/man3ucb/rand.3ucb
-file path=usr/share/man/man3ucb/readdir.3ucb
-file path=usr/share/man/man3ucb/scandir.3ucb
-file path=usr/share/man/man3ucb/setjmp.3ucb
-file path=usr/share/man/man3ucb/sigblock.3ucb
-file path=usr/share/man/man3ucb/siginterrupt.3ucb
-file path=usr/share/man/man3ucb/signal.3ucb
-file path=usr/share/man/man3ucb/sigstack.3ucb
-file path=usr/share/man/man3ucb/sigvec.3ucb
-file path=usr/share/man/man3ucb/sleep.3ucb
-file path=usr/share/man/man3ucb/syscall.3ucb
-file path=usr/share/man/man3ucb/times.3ucb
-file path=usr/share/man/man3ucb/wait.3ucb
file path=usr/ucb/basename mode=0755
file path=usr/ucb/biff mode=0755
file path=usr/ucb/chown mode=0755
diff --git a/usr/src/uts/common/krtld/kobj.c b/usr/src/uts/common/krtld/kobj.c
index 17e27b223a..d5bcd94c7b 100644
--- a/usr/src/uts/common/krtld/kobj.c
+++ b/usr/src/uts/common/krtld/kobj.c
@@ -3503,7 +3503,7 @@ kobj_open_path(char *name, int use_path, int use_moddir_suffix)
kobj_free(fullname, maxpathlen);
return (file);
}
- while (*pathp == ' ')
+ while (*pathp == ' ' || *pathp == ':')
pathp++;
if (*pathp == 0)
break;
diff --git a/usr/src/uts/common/os/modsysfile.c b/usr/src/uts/common/os/modsysfile.c
index 58e1b556b1..a4d66c6563 100644
--- a/usr/src/uts/common/os/modsysfile.c
+++ b/usr/src/uts/common/os/modsysfile.c
@@ -23,8 +23,6 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/types.h>
#include <sys/inttypes.h>
#include <sys/param.h>
@@ -699,7 +697,7 @@ do_sysfile_cmd(struct _buf *file, const char *cmd)
}
*cp++ = (char)ch;
}
- *cp++ = ':';
+ *cp++ = ' ';
if (isnewline(ch)) {
cp--;
(void) kobj_ungetc(file);