usr/src/lib/libc/port/llib-lc
author Theo Schlossnagle <jesus@omniti.com>
Thu, 11 Apr 2013 04:50:36 +0000
changeset 14022 19e11862653b
parent 13497 205481e35e49
permissions -rw-r--r--
3713 Implement accept4() 3714 Implement pipe2() 3715 Implement dup3() 3716 Implement mkostemp() and mkostemps() 3719 so_socketpair syscall should preserve FD_CLOEXEC flag Reviewed by: Dan McDonald <[email protected]> Reviewed by: Robert Mustacchi <[email protected]> Approved by: Garrett D'Amore <[email protected]>
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
     1
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
     2
 * CDDL HEADER START
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
     3
 *
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
     4
 * The contents of this file are subject to the terms of the
1645
5c204cdba7d2 PSARC 2006/124 Configurable Privileges for Zones
comay
parents: 0
diff changeset
     5
 * Common Development and Distribution License (the "License").
5c204cdba7d2 PSARC 2006/124 Configurable Privileges for Zones
comay
parents: 0
diff changeset
     6
 * You may not use this file except in compliance with the License.
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
     7
 *
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
     8
 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
     9
 * or http://www.opensolaris.org/os/licensing.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    10
 * See the License for the specific language governing permissions
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    11
 * and limitations under the License.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    12
 *
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    13
 * When distributing Covered Code, include this CDDL HEADER in each
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    14
 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    15
 * If applicable, add the following below this CDDL HEADER, with the
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    16
 * fields enclosed by brackets "[]" replaced with your own identifying
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    17
 * information: Portions Copyright [yyyy] [name of copyright owner]
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    18
 *
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    19
 * CDDL HEADER END
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    20
 */
1645
5c204cdba7d2 PSARC 2006/124 Configurable Privileges for Zones
comay
parents: 0
diff changeset
    21
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    22
/*
13105
48f2dbca79a2 PSARC 2010/299 GNU/Linux/BSD compatibility functions
Roger A. Faulkner <Roger.Faulkner@Oracle.COM>
parents: 10547
diff changeset
    23
 * Copyright (c) 1991, 2010, Oracle and/or its affiliates. All rights reserved.
13497
205481e35e49 1678 libc lint library is missing definition for glob/globfree
Yuri Pankov <yuri.pankov@nexenta.com>
parents: 13151
diff changeset
    24
 * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
14022
19e11862653b 3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents: 13497
diff changeset
    25
 * Copyright 2013 OmniTI Computer Consulting, Inc. All rights reserved.
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    26
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    27
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    28
/* LINTLIBRARY */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    29
/* PROTOLIB1 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    30
13105
48f2dbca79a2 PSARC 2010/299 GNU/Linux/BSD compatibility functions
Roger A. Faulkner <Roger.Faulkner@Oracle.COM>
parents: 10547
diff changeset
    31
#define	__EXTENSIONS__
48f2dbca79a2 PSARC 2010/299 GNU/Linux/BSD compatibility functions
Roger A. Faulkner <Roger.Faulkner@Oracle.COM>
parents: 10547
diff changeset
    32
2248
4609e8bb25ad 6416832 libaio and librt can and should be folded into libc
raf
parents: 1846
diff changeset
    33
#include <aio.h>
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    34
#include <alloca.h>
5331
3047ad28a67b PSARC/2007/218 caller_context_t in all VOPs
amw
parents: 5006
diff changeset
    35
#include <attr.h>
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    36
#include <atomic.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    37
#include <ctype.h>
2923
da82ab368162 PSARC 2006/561 libcmd must die
raf
parents: 2267
diff changeset
    38
#include <deflt.h>
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    39
#include <dirent.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    40
#include <dlfcn.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    41
#include <door.h>
4891
f4f971e9574d PSARC/2006/662 Make err/warn part of Solaris's libc
vk199839
parents: 4520
diff changeset
    42
#include <err.h>
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    43
#include <sys/errno.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    44
#include <euc.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    45
#include <fcntl.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    46
#include <float.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    47
#include <fmtmsg.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    48
#include <fnmatch.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    49
#include <ftw.h>
13497
205481e35e49 1678 libc lint library is missing definition for glob/globfree
Yuri Pankov <yuri.pankov@nexenta.com>
parents: 13151
diff changeset
    50
#include <glob.h>
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    51
#include <getwidth.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    52
#include <grp.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    53
#include <iconv.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    54
#include <langinfo.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    55
#include <libgen.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    56
#include <libw.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    57
#include <locale.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    58
#include <memory.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    59
#include <mon.h>
2248
4609e8bb25ad 6416832 libaio and librt can and should be folded into libc
raf
parents: 1846
diff changeset
    60
#include <mqueue.h>
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    61
#include <nan.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    62
#include <ndbm.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    63
#include <limits.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    64
#include <nl_types.h>
13105
48f2dbca79a2 PSARC 2010/299 GNU/Linux/BSD compatibility functions
Roger A. Faulkner <Roger.Faulkner@Oracle.COM>
parents: 10547
diff changeset
    65
#include <poll.h>
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    66
#include <project.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    67
#include <priv.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    68
#include <pwd.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    69
#include <rctl.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    70
#include <regex.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    71
#include <rpcsvc/ypclnt.h>
2248
4609e8bb25ad 6416832 libaio and librt can and should be folded into libc
raf
parents: 1846
diff changeset
    72
#include <sched.h>
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    73
#include <search.h>
2248
4609e8bb25ad 6416832 libaio and librt can and should be folded into libc
raf
parents: 1846
diff changeset
    74
#include <semaphore.h>
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    75
#include <setjmp.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    76
#include <shadow.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    77
#include <siginfo.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    78
#include <signal.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    79
#include <stdarg.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    80
#include <ucred.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    81
#include <sys/ucred.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    82
#include <unistd.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    83
#include <ulimit.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    84
#include <utime.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    85
#include <stddef.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    86
#include <stdio.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    87
#include <stdlib.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    88
#include <string.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    89
#include <stropts.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    90
#include <synch.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    91
#include <sys/acctctl.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    92
#include <sys/acl.h>
2248
4609e8bb25ad 6416832 libaio and librt can and should be folded into libc
raf
parents: 1846
diff changeset
    93
#include <sys/asynch.h>
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    94
#include <sys/byteorder.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    95
#include <sys/cladm.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    96
#include <sys/corectl.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    97
#include <sys/dl.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    98
#include <sys/exacct.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    99
#include <sys/fcntl.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   100
#include <sys/file.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   101
#include <sys/fs/namenode.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   102
#include <sys/instance.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   103
#include <sys/ipc.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   104
#include <sys/lwp.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   105
#include <sys/mkdev.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   106
#include <sys/mman.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   107
#include <sys/mnttab.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   108
#include <sys/mount.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   109
#include <sys/msg.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   110
#include <sys/param.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   111
#include <sys/priocntl.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   112
#include <sys/procset.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   113
#include <sys/processor.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   114
#include <sys/pset.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   115
#include <sys/rctl_impl.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   116
#include <sys/sem.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   117
#include <sys/shm.h>
4520
7dbeadedd7fe 6424438 Winchester: ID mapping for AD Interoperability
nw141292
parents: 3855
diff changeset
   118
#include <sys/sid.h>
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   119
#include <sys/signal.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   120
#include <sys/stat.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   121
#include <sys/statvfs.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   122
#include <sys/strlog.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   123
#include <sys/stropts.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   124
#include <sys/syscall.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   125
#include <sys/sysconfig.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   126
#include <sys/syslog.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   127
#include <sys/systeminfo.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   128
#include <sys/task.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   129
#include <sys/termio.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   130
#include <sys/termios.h>
5696
7e38474aec18 PSARC/2007/616 Winchester update for diagonal ID mapping
nw141292
parents: 5331
diff changeset
   131
#include <sys/u8_textprep.h>
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   132
#include <sys/time.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   133
#include <sys/timeb.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   134
#include <sys/times.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   135
#include <sys/types.h>
2267
c5d9a656170f PSARC/2006/269 Zone Boot Arguments II
dp
parents: 2248
diff changeset
   136
#include <sys/uadmin.h>
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   137
#include <sys/utsname.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   138
#include <sys/vfstab.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   139
#include <sys/sendfile.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   140
#include <sys/zone.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   141
#include <termio.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   142
#include <time.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   143
#include <tzfile.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   144
#include <ucontext.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   145
#include <utmpx.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   146
#include <values.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   147
#include <wait.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   148
#include <wchar.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   149
#include <wctype.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   150
#include <widec.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   151
#include <wordexp.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   152
#include <thread.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   153
#include <pthread.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   154
#include <schedctl.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   155
#include <zone.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   156
#include <port.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   157
#include <spawn.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   158
#include <inttypes.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   159
#include <getopt.h>
1846
376b8b33ed65 PSARC 2006/162 Extended FILE space for 32-bit Solaris processes
craigm
parents: 1676
diff changeset
   160
#include <stdio_ext.h>
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   161
#if defined(__i386)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   162
#include <sys/sysi86.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   163
#endif
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   164
#if defined(__amd64)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   165
#include <stack_unwind.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   166
#endif
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   167
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   168
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   169
 * This really comes from the crt*.s startup modules.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   170
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   171
char **environ;
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   172
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   173
/*
13105
48f2dbca79a2 PSARC 2010/299 GNU/Linux/BSD compatibility functions
Roger A. Faulkner <Roger.Faulkner@Oracle.COM>
parents: 10547
diff changeset
   174
 * This is a GNU/Linux/BSD compatibility interface,
48f2dbca79a2 PSARC 2010/299 GNU/Linux/BSD compatibility functions
Roger A. Faulkner <Roger.Faulkner@Oracle.COM>
parents: 10547
diff changeset
   175
 * not declared in any header file.
48f2dbca79a2 PSARC 2010/299 GNU/Linux/BSD compatibility functions
Roger A. Faulkner <Roger.Faulkner@Oracle.COM>
parents: 10547
diff changeset
   176
 */
48f2dbca79a2 PSARC 2010/299 GNU/Linux/BSD compatibility functions
Roger A. Faulkner <Roger.Faulkner@Oracle.COM>
parents: 10547
diff changeset
   177
const char *__progname;
48f2dbca79a2 PSARC 2010/299 GNU/Linux/BSD compatibility functions
Roger A. Faulkner <Roger.Faulkner@Oracle.COM>
parents: 10547
diff changeset
   178
48f2dbca79a2 PSARC 2010/299 GNU/Linux/BSD compatibility functions
Roger A. Faulkner <Roger.Faulkner@Oracle.COM>
parents: 10547
diff changeset
   179
/*
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   180
 * POSIX versions of standard libc routines; these aren't extracted
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   181
 * from the headers above since we cannot #define _POSIX_C_SOURCE.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   182
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   183
int __posix_readdir_r(DIR * _RESTRICT_KYWD, struct dirent * _RESTRICT_KYWD,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   184
    struct dirent ** _RESTRICT_KYWD);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   185
int __posix_getgrgid_r(gid_t, struct group *, char *, size_t, struct group **);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   186
int __posix_getgrnam_r(const char *, struct group *, char *, size_t,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   187
    struct group **);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   188
int __posix_getpwuid_r(uid_t, struct passwd *, char *, size_t,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   189
    struct passwd **);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   190
int __posix_getpwnam_r(const char *, struct passwd *, char *, size_t,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   191
    struct passwd **);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   192
int __posix_sigwait(const sigset_t * _RESTRICT_KYWD, int * _RESTRICT_KYWD);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   193
char *__posix_asctime_r(const struct tm *_RESTRICT_KYWD, char *_RESTRICT_KYWD);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   194
char *__posix_ctime_r(const time_t *, char *);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   195
int __posix_ttyname_r(int, char *, size_t);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   196
int __posix_getlogin_r(char *, int);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   197
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   198
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   199
 * XPG4 versions of standard libc routines; these aren't extracted
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   200
 * from the headers above since we cannot #define _XPG4_2.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   201
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   202
int __xpg4_putmsg(int, const struct strbuf *, const struct strbuf *, int);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   203
int __xpg4_putpmsg(int, const struct strbuf *, const struct strbuf *, int, int);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   204
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   205
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   206
 * These aren't extracted from the headers above because:
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   207
 * - We cannot #define _STRPTIME_DONTZERO
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   208
 * - We cannot #define _XPG5
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   209
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   210
char *__strptime_dontzero(const char *, const char *, struct tm *);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   211
long __sysconf_xpg5(int);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   212
wchar_t *__wcstok_xpg5(wchar_t *_RESTRICT_KYWD,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   213
	const wchar_t *_RESTRICT_KYWD, wchar_t **_RESTRICT_KYWD);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   214
size_t __wcsftime_xpg5(wchar_t *_RESTRICT_KYWD, size_t,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   215
	const wchar_t *_RESTRICT_KYWD, const struct tm *_RESTRICT_KYWD);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   216
wint_t __fgetwc_xpg5(__FILE *);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   217
wint_t __getwc_xpg5(__FILE *);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   218
wint_t __getwchar_xpg5(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   219
wint_t __fputwc_xpg5(wint_t, __FILE *);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   220
wint_t __putwc_xpg5(wint_t, __FILE *);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   221
wint_t __putwchar_xpg5(wint_t);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   222
wchar_t *__fgetws_xpg5(wchar_t *_RESTRICT_KYWD, int, __FILE *_RESTRICT_KYWD);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   223
int __fputws_xpg5(const wchar_t *_RESTRICT_KYWD, __FILE *_RESTRICT_KYWD);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   224
wint_t __ungetwc_xpg5(wint_t, __FILE *);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   225
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   226
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   227
 * /usr/src/lib/libc/port/gen routines
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   228
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   229
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   230
/* _ctype.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   231
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   232
/* _loc_data.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   233
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   234
/* _locale.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   235
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   236
/* _set_tab.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   237
int _set_tab(const char *loc, int cat);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   238
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   239
/* _xftw.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   240
int _xftw(int ver, const char *path, int (*fn)(), int depth);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   241
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   242
/* a64l.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   243
long a64l(const char *);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   244
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   245
/* abort.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   246
void abort(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   247
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   248
/* abs.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   249
int abs(int arg);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   250
long labs(long int arg);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   251
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   252
/* assert.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   253
void _assert(const char *assertion, const char *filename, int line_num);
7734
c46e039795b8 6751138 libc's lint library is missing definition for __assert_c99
David Powell <David.Powell@sun.com>
parents: 7478
diff changeset
   254
void __assert_c99(const char *assertion, const char *filename, int line_num,
c46e039795b8 6751138 libc's lint library is missing definition for __assert_c99
David Powell <David.Powell@sun.com>
parents: 7478
diff changeset
   255
    const char *funcname);
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   256
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   257
/* atexit.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   258
int atexit(void(*func)());
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   259
void _exithandle(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   260
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   261
/* atof.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   262
double atof(const char *p);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   263
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   264
/* atoi.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   265
int atoi(const char *p);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   266
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   267
/* atol.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   268
long atol(const char *p);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   269
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   270
/* basename.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   271
char *basename(char *s);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   272
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   273
/* bcmp.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   274
int bcmp(const void *s1, const void *s2, size_t len);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   275
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   276
/* bcopy.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   277
void bcopy(const void *s1, void *s2, size_t len);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   278
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   279
/* bsearch.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   280
void *bsearch(const void *ky, const void *bs, size_t nel,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   281
		size_t width, int (*compar)());
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   282
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   283
/* bzero.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   284
void bzero(void *sp, size_t len);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   285
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   286
/* calloc.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   287
void *calloc(size_t num, size_t size);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   288
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   289
/* catclose.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   290
int catclose(nl_catd catd);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   291
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   292
/* catgets.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   293
char *catgets(nl_catd catd, int set_num, int msg_num, const char *s);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   294
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   295
/* catopen.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   296
nl_catd catopen(const char *name, int mode);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   297
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   298
/* cfgetispeed.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   299
speed_t cfgetispeed(const struct termios *termios_p);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   300
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   301
/* cfgetospeed.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   302
speed_t cfgetospeed(const struct termios *termios_p);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   303
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   304
/* cfree.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   305
void cfree(void *p, size_t num, size_t size);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   306
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   307
/* cfsetispeed.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   308
int cfsetispeed(struct termios *termios_p, speed_t speed);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   309
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   310
/* cfsetospeed.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   311
int cfsetospeed(struct termios *termios_p, speed_t speed);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   312
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   313
/* cftime.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   314
int cftime(char *buf, char *format, const time_t *t);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   315
int ascftime(char *buf, const char *format, const struct tm *tm);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   316
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   317
/* clock.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   318
clock_t clock(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   319
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   320
/* closedir.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   321
int closedir(DIR *dirp);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   322
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   323
/* confstr.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   324
size_t confstr(int name, char *buf, size_t length);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   325
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   326
/* crypt.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   327
void setkey(const char *key);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   328
void encrypt(char *block, int fake);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   329
char *crypt(const char *key, const char *salt);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   330
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   331
/* csetlen.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   332
int csetlen(int cset);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   333
int csetcol(int cset);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   334
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   335
/* ctime.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   336
char *ctime(const time_t *t);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   337
char *ctime_r(const time_t *, char *buf, int);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   338
char *asctime(const struct tm *t);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   339
char *asctime_r(const struct tm *, char *, int);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   340
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   341
/* ctypefcns.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   342
int isalpha(int c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   343
int isupper(int c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   344
int islower(int c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   345
int isdigit(int c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   346
int isxdigit(int c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   347
int isalnum(int c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   348
int isspace(int c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   349
int ispunct(int c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   350
int isprint(int c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   351
int isgraph(int c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   352
int iscntrl(int c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   353
int isascii(int c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   354
int _toupper(int c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   355
int _tolower(int c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   356
int toascii(int c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   357
10547
1a61a72b11d5 PSARC/2009/444 daemon() in libc
Vladimir Kotal <Vladimir.Kotal@Sun.COM>
parents: 10089
diff changeset
   358
/* daemon.c */
1a61a72b11d5 PSARC/2009/444 daemon() in libc
Vladimir Kotal <Vladimir.Kotal@Sun.COM>
parents: 10089
diff changeset
   359
int daemon(int nochdir, int noclose);
1a61a72b11d5 PSARC/2009/444 daemon() in libc
Vladimir Kotal <Vladimir.Kotal@Sun.COM>
parents: 10089
diff changeset
   360
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   361
/* directio.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   362
int directio(int filedes, int advice);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   363
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   364
/* dirname.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   365
char *dirname(char *s);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   366
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   367
/* div.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   368
div_t div(int numer, int denom);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   369
ldiv_t ldiv(long int numer, long int denom);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   370
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   371
/* drand48.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   372
double drand48(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   373
double erand48(unsigned short *xsubi);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   374
long krand48(unsigned short *xsubi, unsigned int m);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   375
long lrand48(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   376
long mrand48(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   377
void srand48(long seedval);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   378
unsigned short *seed48(unsigned short seed16v[3]);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   379
void lcong48(unsigned short param[7]);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   380
long nrand48(unsigned short *xsubi);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   381
long jrand48(unsigned short *xsubi);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   382
14022
19e11862653b 3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents: 13497
diff changeset
   383
/* dup.c */
19e11862653b 3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents: 13497
diff changeset
   384
int dup(int fildes);
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   385
int dup2(int fildes, int fildes2);
14022
19e11862653b 3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents: 13497
diff changeset
   386
int dup3(int fildes, int fildes2, int flags);
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   387
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   388
/* ecvt.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   389
char *ecvt(double value, int ndigit, int *_RESTRICT_KYWD decpt,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   390
	int *_RESTRICT_KYWDsign);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   391
char *fcvt(double value, int ndigit, int *_RESTRICT_KYWD decpt,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   392
	int *_RESTRICT_KYWD sign);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   393
4891
f4f971e9574d PSARC/2006/662 Make err/warn part of Solaris's libc
vk199839
parents: 4520
diff changeset
   394
/* err.c */
f4f971e9574d PSARC/2006/662 Make err/warn part of Solaris's libc
vk199839
parents: 4520
diff changeset
   395
void _errfp(FILE *, int, const char *, ...);
f4f971e9574d PSARC/2006/662 Make err/warn part of Solaris's libc
vk199839
parents: 4520
diff changeset
   396
void _verrfp(FILE *, int, const char *, va_list);
f4f971e9574d PSARC/2006/662 Make err/warn part of Solaris's libc
vk199839
parents: 4520
diff changeset
   397
void _errxfp(FILE *, int, const char *, ...);
f4f971e9574d PSARC/2006/662 Make err/warn part of Solaris's libc
vk199839
parents: 4520
diff changeset
   398
void _verrxfp(FILE *, int, const char *, va_list);
f4f971e9574d PSARC/2006/662 Make err/warn part of Solaris's libc
vk199839
parents: 4520
diff changeset
   399
void _warnfp(FILE *, const char *, ...);
f4f971e9574d PSARC/2006/662 Make err/warn part of Solaris's libc
vk199839
parents: 4520
diff changeset
   400
void _vwarnfp(FILE *, const char *, va_list);
f4f971e9574d PSARC/2006/662 Make err/warn part of Solaris's libc
vk199839
parents: 4520
diff changeset
   401
void _warnxfp(FILE *, const char *, ...);
f4f971e9574d PSARC/2006/662 Make err/warn part of Solaris's libc
vk199839
parents: 4520
diff changeset
   402
void _vwarnxfp(FILE *, const char *, va_list);
f4f971e9574d PSARC/2006/662 Make err/warn part of Solaris's libc
vk199839
parents: 4520
diff changeset
   403
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   404
/* errlst.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   405
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   406
/* euclen.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   407
int euccol(const unsigned char *s);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   408
int euclen(const unsigned char *s);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   409
int eucscol(const unsigned char *s);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   410
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   411
/* execvp.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   412
/* VARARGS1 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   413
int execlp(const char *, const char *, ...);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   414
int execvp(const char *name, char *const *argv);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   415
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   416
/* fattach.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   417
int fattach(int fildes, const char *path);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   418
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   419
/* fdetach.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   420
int fdetach(const char *path);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   421
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   422
/* ffs.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   423
int ffs(int field);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   424
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   425
/* fmtmsg.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   426
int addseverity(int value, const char *string);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   427
int fmtmsg(long class, const char *label, int severity, const char *text,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   428
		const char *action, const char *tag);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   429
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   430
/* ftime.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   431
int ftime(struct timeb *tp);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   432
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   433
/* ftok.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   434
key_t ftok(const char *path, int id);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   435
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   436
/* gcvt.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   437
char *gcvt(double number, int ndigit, char *buf);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   438
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   439
/* getcwd.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   440
char *getcwd(char *str, size_t size);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   441
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   442
/* getdate.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   443
struct tm *getdate(const char *expression);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   444
#ifdef getdate_err
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   445
#undef getdate_err
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   446
#endif
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   447
int getdate_err;
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   448
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   449
/* getdate_data.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   450
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   451
/* getdate_gd.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   452
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   453
/* getdtblsize.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   454
int getdtablesize(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   455
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   456
/* getenv.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   457
char *getenv(const char *name);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   458
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   459
/* getexecname.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   460
const char *getexecname(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   461
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   462
/* getgrnam.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   463
struct group *getgrnam(const char *name);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   464
struct group *getgrgid(gid_t gid);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   465
struct group *fgetgrent_r(FILE *, struct group *, char *, int);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   466
struct group *getgrent_r(struct group *, char *, int);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   467
struct group *getgrgid_r(gid_t, struct group *, char *, int);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   468
struct group *getgrnam_r(const char *, struct group *, char *, int);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   469
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   470
/* gethostid.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   471
long gethostid(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   472
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   473
/* gethz.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   474
int gethz(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   475
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   476
/* getisax.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   477
uint_t getisax(uint32_t *, uint_t);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   478
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   479
/* getlogin.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   480
char *getlogin(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   481
char *getlogin_r(char *, int);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   482
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   483
/* getmntent.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   484
int getmntany(FILE *fd, struct mnttab *mgetp, struct mnttab *mrefp);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   485
int getmntent(FILE *fd, struct mnttab *mp);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   486
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   487
/* getnetgrent.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   488
int setnetgrent(const char *grp);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   489
int endnetgrent(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   490
int getnetgrent(char **machinep, char **namep, char **domainp);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   491
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   492
/* getopt.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   493
int getopt(int argc, char *const *argv, const char *opts);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   494
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   495
/* getopt_long.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   496
int getopt_clip(int argc, char *const *argv, const char *optstring,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   497
		const struct option *long_options, int *long_index);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   498
int getopt_long(int argc, char *const *argv, const char *optstring,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   499
		const struct option *long_options, int *long_index);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   500
int getopt_long_only(int argc, char *const *argv, const char *optstring,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   501
		const struct option *long_options, int *long_index);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   502
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   503
/* getpagesize.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   504
int getpagesize(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   505
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   506
/* getpw.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   507
int getpw(uid_t uid, char *buf);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   508
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   509
/* getpwnam.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   510
struct passwd *getpwnam(const char *name);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   511
struct passwd *getpwuid(uid_t uid);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   512
struct passwd *fgetpwent_r(FILE *, struct passwd *, char *, int);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   513
struct passwd *getpwent_r(struct passwd *, char *, int);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   514
struct passwd *getpwnam_r(const char *, struct passwd *, char *, int);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   515
struct passwd *getpwuid_r(uid_t, struct passwd *, char *, int);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   516
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   517
/* getrusage.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   518
int getrusage(int who, struct rusage *rusage);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   519
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   520
/* gettimeofday.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   521
int gettimeofday(struct timeval *_RESTRICT_KYWD tp, void *_RESTRICT_KYWD);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   522
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   523
/* getspent.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   524
void setspent(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   525
void endspent(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   526
struct spwd *getspent(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   527
struct spwd *getspent_r(struct spwd *, char *, int);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   528
struct spwd *fgetspent(FILE *f);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   529
struct spwd *fgetspent_r(FILE *, struct spwd *, char *, int);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   530
struct spwd *getspnam(const char *name);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   531
struct spwd *getspnam_r(const char *, struct spwd *, char *, int);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   532
int putspent(const struct spwd *p, FILE *f);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   533
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   534
/* getspent_r.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   535
int str2spwd(const char *, int, void *, char *, int);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   536
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   537
/* getsubopt.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   538
int getsubopt(char **optionsp, char *const *tokens, char **valuep);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   539
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   540
/* gettxt.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   541
char *gettxt(const char *msg_id, const char *dflt_str);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   542
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   543
/* getusershell.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   544
char *getusershell(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   545
void endusershell(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   546
void setusershell(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   547
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   548
/* getut.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   549
struct utmp *getutent(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   550
struct utmp *getutid(const struct utmp *entry);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   551
struct utmp *getutline(const struct utmp *entry);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   552
struct utmp *pututline(const struct utmp *entry);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   553
void setutent(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   554
void endutent(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   555
int utmpname(const char *newfile);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   556
void updwtmp(const char *file, struct utmp *ut);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   557
void getutmp(const struct utmpx *utx, struct utmp *ut);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   558
void getutmpx(const struct utmp *ut, struct utmpx *utx);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   559
struct utmp *makeut(struct utmp *utmp);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   560
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   561
/* getutx.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   562
struct utmpx *getutxent(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   563
struct utmpx *getutxid(const struct utmpx *entry);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   564
struct utmpx *getutxline(const struct utmpx *entry);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   565
struct utmpx *pututxline(const struct utmpx *entry);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   566
void setutxent(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   567
void endutxent(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   568
int utmpxname(const char *newfile);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   569
void updwtmpx(const char *filex, struct utmpx *utx);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   570
struct utmpx *makeutx(const struct utmpx *utmp);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   571
struct utmpx *modutx(const struct utmpx *utp);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   572
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   573
/* getvfsent.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   574
int getvfsspec(FILE *fd, struct vfstab *vp, char *special);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   575
int getvfsfile(FILE *fd, struct vfstab *vp, char *mountp);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   576
int getvfsany(FILE *fd, struct vfstab *vgetp, struct vfstab *vrefp);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   577
int getvfsent(FILE *fd, struct vfstab *vp);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   578
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   579
/* getwd.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   580
char *getwd(char *pathname);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   581
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   582
/* getwidth.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   583
void getwidth(eucwidth_t *eucstruct);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   584
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   585
/* hsearch.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   586
int hcreate(size_t size);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   587
void hdestroy(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   588
ENTRY *hsearch(ENTRY item, ACTION action);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   589
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   590
/* iconv.c  */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   591
size_t iconv(iconv_t cd, const char **_RESTRICT_KYWD inbuf,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   592
    size_t *_RESTRICT_KYWD inbytesleft, char **_RESTRICT_KYWD outbuf,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   593
    size_t *_RESTRICT_KYWD outbytesleft);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   594
int iconv_close(iconv_t cd);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   595
iconv_t iconv_open(const char *tocode, const char *fromcode);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   596
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   597
/* imaxabs.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   598
intmax_t imaxabs(intmax_t j);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   599
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   600
/* imaxdiv.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   601
imaxdiv_t imaxdiv(intmax_t numer, intmax_t denom);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   602
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   603
/* index.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   604
char *index(const char *sp, int c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   605
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   606
/* initgroups.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   607
int initgroups(const char *uname, gid_t agroup);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   608
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   609
/* innetgr.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   610
int innetgr(const char *group, const char *machine, const char *name,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   611
    const char *domain);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   612
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   613
/* insque.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   614
void insque(void *elem, void *pred);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   615
void remque(void *elem);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   616
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   617
/* isaexec.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   618
int isaexec(const char *, char *const *, char *const *);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   619
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   620
/* isastream.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   621
int isastream(int fd);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   622
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   623
/* isatty.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   624
int isatty(int f);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   625
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   626
/* killpg.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   627
int killpg(pid_t pgrp, int sig);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   628
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   629
/* l64a.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   630
char *l64a(long lg);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   631
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   632
/* lckpwdf.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   633
int lckpwdf(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   634
int ulckpwdf(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   635
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   636
/* lfind.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   637
void * lfind(const void *ky, const void *bs, size_t *nelp,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   638
		size_t width, int (*compar)());
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   639
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   640
/* localeconv.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   641
struct lconv *localeconv(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   642
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   643
/* lsearch.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   644
void * lsearch(const void *ky, void *bs, size_t *nelp,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   645
		size_t width, int (*compar)());
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   646
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   647
/* madvise.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   648
int madvise(caddr_t addr, size_t len, int advice);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   649
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   650
/* malloc.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   651
void *malloc(size_t size);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   652
void *realloc(void *old, size_t size);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   653
void free(void *old);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   654
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   655
/* mbstowcs.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   656
size_t mbstowcs(wchar_t *_RESTRICT_KYWD pwcs, const char *_RESTRICT_KYWD s,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   657
	size_t n);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   658
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   659
/* mbtowc.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   660
int mbtowc(wchar_t *_RESTRICT_KYWD wchar, const char *_RESTRICT_KYWD s,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   661
	size_t n);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   662
int mblen(const char *s, size_t n);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   663
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   664
/* memalign.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   665
void *memalign(size_t align, size_t nbytes);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   666
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   667
/* memccpy.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   668
void *memccpy(void *_RESTRICT_KYWDs, const void *_RESTRICT_KYWD s0, int c,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   669
	size_t n);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   670
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   671
/* memchr.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   672
void *memchr(const void *sptr, int c1, size_t n);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   673
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   674
/* memcmp.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   675
int memcmp(const void *s1, const void *s2, size_t n);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   676
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   677
/* memcpy.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   678
void *memcpy(void *_RESTRICT_KYWD s, const void *_RESTRICT_KYWD s0, size_t n);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   679
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   680
/* memmove.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   681
void *memmove(void *s, const void *s0, size_t n);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   682
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   683
/* memset.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   684
void *memset(void *sp1, int c, size_t n);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   685
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   686
/* mkdev.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   687
dev_t __makedev(const int version, const major_t majdev,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   688
		const minor_t mindev);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   689
major_t __major(const int version, const dev_t devnum);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   690
minor_t __minor(const int version, const dev_t devnum);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   691
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   692
/* mkfifo.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   693
int mkfifo(const char *path, mode_t mode);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   694
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   695
/* mktemp.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   696
char *mktemp(char *as);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   697
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   698
/* mlock.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   699
int mlock(caddr_t addr, size_t len);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   700
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   701
/* mlockall.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   702
int mlockall(int flags);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   703
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   704
/* mon.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   705
void monitor(int (*alowpc)(), int (*ahighpc)(), WORD *buffer,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   706
		size_t bufsize, size_t nfunc);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   707
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   708
/* msync.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   709
int msync(caddr_t addr, size_t len, int flags);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   710
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   711
/* munlock.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   712
int munlock(caddr_t addr, size_t len);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   713
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   714
/* munlockall.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   715
int munlockall(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   716
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   717
/* ndbm.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   718
void dbm_setdefwrite(DBM *db);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   719
int dbm_flush(DBM *db);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   720
int dbm_flushpag(DBM *db);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   721
DBM *dbm_open(const char *file, int flags, mode_t mode);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   722
void dbm_close(DBM *db);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   723
int dbm_close_status(DBM *db);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   724
datum dbm_fetch(DBM *db, datum key);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   725
int dbm_delete(DBM *db, datum key);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   726
int dbm_store(DBM *db, datum key, datum dat, int replace);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   727
datum dbm_firstkey(DBM *db);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   728
datum dbm_nextkey(DBM *db);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   729
datum dbm_do_nextkey(DBM *db, datum inkey);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   730
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   731
/* new_list.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   732
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   733
/* nftw.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   734
int nftw(const char *path, int (*fn)(), int depth, int flags);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   735
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   736
/* nl_langinfo.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   737
char *nl_langinfo(nl_item item);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   738
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   739
/* opendir.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   740
DIR *opendir(const char *filename);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   741
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   742
/* opt_data.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   743
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   744
/* perror.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   745
void perror(const char *s);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   746
14022
19e11862653b 3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents: 13497
diff changeset
   747
/* pipe.c */
19e11862653b 3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents: 13497
diff changeset
   748
int pipe(int *fds);
19e11862653b 3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents: 13497
diff changeset
   749
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   750
/* psiginfo.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   751
void psiginfo(siginfo_t *sip, char *s);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   752
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   753
/* psignal.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   754
void psignal(int sig, const char *s);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   755
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   756
/* pt.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   757
char *ptsname(int fd);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   758
int unlockpt(int fd);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   759
int grantpt(int fd);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   760
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   761
/* putenv.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   762
int putenv(char *change);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   763
int setenv(const char *envname, const char *envval, int overwrite);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   764
int unsetenv(const char *name);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   765
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   766
/* putpwent.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   767
int putpwent(const struct passwd *p, FILE *f);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   768
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   769
/* qsort.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   770
void qsort(void *base, size_t n, size_t size, int (*compar)());
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   771
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   772
/* raise.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   773
int raise(int sig);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   774
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   775
/* rand.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   776
void srand(unsigned x);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   777
int rand(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   778
int rand_r(unsigned int *);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   779
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   780
/* random.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   781
void srandom(unsigned x);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   782
char *initstate(unsigned seed, char *arg_state, size_t n);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   783
char *setstate(const char *arg_state);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   784
long random(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   785
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   786
/* rctlops.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   787
int rctl_walk(int (*callback)(const char *, void *), void *walk_data);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   788
hrtime_t rctlblk_get_firing_time(rctlblk_t *rblk);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   789
uint_t rctlblk_get_global_action(rctlblk_t *rblk);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   790
uint_t rctlblk_get_global_flags(rctlblk_t *rblk);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   791
uint_t rctlblk_get_local_action(rctlblk_t *rblk, int *signalp);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   792
uint_t rctlblk_get_local_flags(rctlblk_t *rblk);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   793
id_t rctlblk_get_recipient_pid(rctlblk_t *rblk);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   794
rctl_priv_t rctlblk_get_privilege(rctlblk_t *rblk);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   795
rctl_qty_t rctlblk_get_value(rctlblk_t *rblk);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   796
void rctlblk_set_local_action(rctlblk_t *rblk, uint_t action, int signal);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   797
void rctlblk_set_local_flags(rctlblk_t *rblk, uint_t flags);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   798
void rctlblk_set_privilege(rctlblk_t *rblk, rctl_priv_t priv);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   799
void rctlblk_set_value(rctlblk_t *rblk, rctl_qty_t val);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   800
size_t rctlblk_size(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   801
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   802
/* readdir.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   803
struct dirent *readdir(DIR *dirp);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   804
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   805
/* realpath.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   806
char *realpath(const char *_RESTRICT_KYWD raw, char *_RESTRICT_KYWD canon);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   807
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   808
/* regexpr.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   809
char *re_comp(const char *sp);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   810
int re_exec(const char *p1);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   811
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   812
/* rindex.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   813
char *rindex(const char *sp, int c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   814
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   815
/* rename.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   816
int remove(const char *filename);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   817
int rename(const char *old, const char *new);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   818
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   819
/* rewinddir.c */
6812
febeba71273d PSARC 2008/309 expunge synonyms.h
raf
parents: 5891
diff changeset
   820
#undef rewinddir
febeba71273d PSARC 2008/309 expunge synonyms.h
raf
parents: 5891
diff changeset
   821
void rewinddir(DIR *dirp);
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   822
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   823
/* scandir.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   824
int alphasort(const struct dirent **, const struct dirent **);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   825
int scandir(const char *dirname, struct dirent *(*namelist[]),
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   826
	int (*select)(const struct dirent *),
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   827
	int (*dcomp)(const struct dirent **, const struct dirent **));
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   828
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   829
/* scrwidth.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   830
int scrwidth(wchar_t c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   831
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   832
/* seekdir.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   833
void seekdir(DIR *dirp, long loc);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   834
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   835
/* select.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   836
int pselect(int nfds,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   837
	fd_set *_RESTRICT_KYWD readfds,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   838
	fd_set *_RESTRICT_KYWD writefds,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   839
	fd_set *_RESTRICT_KYWD errorfds,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   840
	const struct timespec *_RESTRICT_KYWD timeout,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   841
	const sigset_t *_RESTRICT_KYWD sigmask);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   842
int select(int nfds,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   843
	fd_set *_RESTRICT_KYWD readfds,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   844
	fd_set *_RESTRICT_KYWD writefds,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   845
	fd_set *_RESTRICT_KYWD errorfds,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   846
	struct timeval *_RESTRICT_KYWD timeout);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   847
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   848
/* setlocale.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   849
char *setlocale(int cat, const char *loc);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   850
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   851
/* setpriority.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   852
int getpriority(int which, id_t who);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   853
int setpriority(int which, id_t who, int prio);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   854
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   855
/* settimeofday.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   856
int settimeofday(struct timeval *tp, void *);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   857
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   858
/* sigflag.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   859
int sigflag(int sig, int flag, int on);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   860
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   861
/* siglist.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   862
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   863
/* sigsend.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   864
int sigsend(idtype_t idtype, id_t id, int sig);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   865
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   866
/* sigsetops.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   867
int sigfillset(sigset_t *set);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   868
int sigemptyset(sigset_t *set);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   869
int sigaddset(sigset_t *set, int sig);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   870
int sigdelset(sigset_t *set, int sig);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   871
int sigismember(const sigset_t *set, int sig);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   872
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   873
/* scalls.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   874
unsigned sleep(unsigned sleep_tm);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   875
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   876
/* ssignal.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   877
int (*ssignal(int sig, int (*fn)())) ();
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   878
int gsignal(int sig);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   879
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   880
/* str2id.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   881
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   882
/* str2sig.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   883
int str2sig(const char *s, int *sigp);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   884
int sig2str(int i, char *s);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   885
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   886
/* strcat.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   887
char *strcat(char *_RESTRICT_KYWD s1, const char *_RESTRICT_KYWD s2);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   888
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   889
/* strchr.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   890
char *strchr(const char *sp, int c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   891
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   892
/* strcmp.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   893
int strcmp(const char *s1, const char *s2);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   894
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   895
/* strcpy.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   896
char *strcpy(char *_RESTRICT_KYWD s1, const char *_RESTRICT_KYWD s2);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   897
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   898
/* strcspn.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   899
size_t strcspn(const char *string, const char *charset);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   900
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   901
/* strdup.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   902
char *strdup(const char *s1);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   903
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   904
/* strerror.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   905
char *strerror(int errnum);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   906
int strerror_r(int errnum, char *strerrbuf, size_t buflen);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   907
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   908
/* strftime.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   909
size_t strftime(char *_RESTRICT_KYWD s, size_t maxsize,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   910
		const char *_RESTRICT_KYWD format,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   911
		const struct tm *_RESTRICT_KYWD tm);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   912
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   913
/* strlen.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   914
size_t strlen(const char *s);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   915
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   916
/* strncat.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   917
char *strncat(char *_RESTRICT_KYWD s1, const char *_RESTRICT_KYWD s2, size_t n);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   918
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   919
/* strncmp.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   920
int strncmp(const char *s1, const char *s2, size_t n);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   921
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   922
/* strncpy.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   923
char *strncpy(char *_RESTRICT_KYWD s1, const char *_RESTRICT_KYWD s2, size_t n);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   924
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   925
/* strpbrk.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   926
char *strpbrk(const char *string, const char *brkset);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   927
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   928
/* strrchr.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   929
char *strrchr(const char *sp, int c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   930
7478
f2ea9cb5143d PSARC 2008/305 strsep() in libc
Vladimir Kotal <Vladimir.Kotal@Sun.COM>
parents: 6812
diff changeset
   931
/* strsep.c */
f2ea9cb5143d PSARC 2008/305 strsep() in libc
Vladimir Kotal <Vladimir.Kotal@Sun.COM>
parents: 6812
diff changeset
   932
char *strsep(char **stringp, const char *delim);
f2ea9cb5143d PSARC 2008/305 strsep() in libc
Vladimir Kotal <Vladimir.Kotal@Sun.COM>
parents: 6812
diff changeset
   933
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   934
/* strspn.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   935
size_t strspn(const char *string, const char *charset);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   936
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   937
/* strstr.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   938
char *strstr(const char *as1, const char *as2);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   939
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   940
/* strtod.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   941
double strtod(const char *_RESTRICT_KYWD cp, char **_RESTRICT_KYWD ptr);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   942
float strtof(const char *_RESTRICT_KYWD cp, char **_RESTRICT_KYWD ptr);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   943
long double strtold(const char *_RESTRICT_KYWD cp, char **_RESTRICT_KYWD ptr);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   944
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   945
/* strtoimax.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   946
intmax_t strtoimax(const char *_RESTRICT_KYWD nptr,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   947
	char **_RESTRICT_KYWD endptr, int base);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   948
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   949
/* strtok.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   950
char *strtok(char *_RESTRICT_KYWD string, const char *_RESTRICT_KYWD sepset);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   951
char *strtok_r(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   952
	char **_RESTRICT_KYWD);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   953
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   954
/* strtol.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   955
long strtol(const char *_RESTRICT_KYWD str, char **_RESTRICT_KYWD nptr,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   956
	int base);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   957
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   958
/* strtoul.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   959
unsigned long strtoul(const char *_RESTRICT_KYWD str,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   960
	char **_RESTRICT_KYWD nptr, int base);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   961
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   962
/* strtoumax.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   963
uintmax_t strtoumax(const char *_RESTRICT_KYWD nptr,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   964
		    char **_RESTRICT_KYWD endptr, int base);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   965
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   966
/* strxfrm.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   967
size_t strxfrm(char *_RESTRICT_KYWD s1, const char *_RESTRICT_KYWD s2,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   968
	size_t n);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   969
int strcoll(const char *s1, const char *s2);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   970
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   971
/* swab.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   972
void swab(const char *_RESTRICT_KYWD from, char *_RESTRICT_KYWD to, ssize_t n);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   973
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   974
/* swapctl.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   975
int swapctl(int cmd, void *arg);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   976
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   977
/* sysconf.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   978
long sysconf(int name);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   979
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   980
/* syslog.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   981
/* VARARGS2 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   982
void syslog(int pri, const char *fmt, ...);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   983
void vsyslog(int pri, const char *fmt, va_list ap);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   984
void openlog(const char *ident, int logstat, int logfac);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   985
void closelog(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   986
int setlogmask(int pmask);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   987
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   988
/* tcdrain.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   989
int tcdrain(int fildes);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   990
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   991
/* tcflow.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   992
int tcflow(int fildes, int action);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   993
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   994
/* tcflush.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   995
int tcflush(int fildes, int queue_selector);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   996
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   997
/* tcgetattr.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   998
int tcgetattr(int fildes, struct termios *termios_p);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   999
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1000
/* tcgetpgrp.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1001
pid_t tcgetpgrp(int fd);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1002
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1003
/* tcgetsid.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1004
pid_t tcgetsid(int fd);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1005
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1006
/* tcsendbreak.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1007
int tcsendbreak(int fildes, int duration);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1008
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1009
/* tcsetattr.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1010
int tcsetattr(int fildes, int optional_actions,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1011
	const struct termios *termios_p);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1012
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1013
/* tcsetpgrp.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1014
int tcsetpgrp(int fd, pid_t pgrp);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1015
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1016
/* tell.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1017
long tell(int f);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1018
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1019
/* telldir.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1020
long telldir(DIR *dirp);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1021
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1022
/* tfind.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1023
void *tfind(const void *ky, void *const *rtp, int (*compar)());
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1024
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1025
/* time_comm.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1026
struct tm *localtime(const time_t *timep);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1027
struct tm *localtime_r(const time_t *_RESTRICT_KYWD, struct tm *_RESTRICT_KYWD);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1028
struct tm *gmtime(const time_t *clock);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1029
struct tm *gmtime_r(const time_t *_RESTRICT_KYWD, struct tm *_RESTRICT_KYWD);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1030
double difftime(time_t time1, time_t time0);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1031
time_t mktime(struct tm *timeptr);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1032
void _ltzset(time_t tim);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1033
void tzset(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1034
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1035
/* time_data.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1036
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1037
/* time_gdata.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1038
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1039
/* tolower.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1040
int tolower(int c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1041
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1042
/* toupper.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1043
int toupper(int c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1044
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1045
/* truncate.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1046
int ftruncate(int fildes, off_t len);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1047
int truncate(const char *path, off_t len);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1048
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1049
/* tsearch.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1050
void *tsearch(const void *ky, void **rtp, int (*compar)());
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1051
void *tdelete(const void *ky, void **rtp, int (*compar)());
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1052
void twalk(const void *rt, void (*action)());
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1053
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1054
/* ttyname.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1055
char *ttyname(int f);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1056
char *_ttyname_dev(dev_t rdev, char *buffer, size_t buflen);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1057
char *ttyname_r(int, char *, int);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1058
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1059
/* ttyslot.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1060
int ttyslot(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1061
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1062
/* ualarm.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1063
unsigned ualarm(unsigned usecs, unsigned reload);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1064
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1065
/* ulimit.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1066
/* VARARGS1 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1067
long ulimit(int cmd, ...);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1068
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1069
/* scalls.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1070
int usleep(unsigned n);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1071
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1072
/* valloc.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1073
void *valloc(size_t size);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1074
5891
0d5c6468bb04 6598890 cancellation code abuses synonyms
raf
parents: 5696
diff changeset
  1075
/* waitpid.c */
0d5c6468bb04 6598890 cancellation code abuses synonyms
raf
parents: 5696
diff changeset
  1076
pid_t wait(int *stat_loc);
0d5c6468bb04 6598890 cancellation code abuses synonyms
raf
parents: 5696
diff changeset
  1077
pid_t waitpid(pid_t pid, int *stat_loc, int options);
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1078
pid_t wait3(int *status, int options, struct rusage *rp);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1079
pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1080
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1081
/* wcstombs.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1082
size_t wcstombs(char *_RESTRICT_KYWD s, const wchar_t *_RESTRICT_KYWD pwcs,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1083
	size_t n);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1084
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1085
/* wctomb.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1086
int wctomb(char *s, wchar_t wchar);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1087
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1088
/* wdata.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1089
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1090
/* wisprint.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1091
int wisprint(wchar_t c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1092
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1093
/* xgetwidth.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1094
void _xgetwidth(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1095
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1096
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1097
 * /usr/src/lib/libc/port/intl routines
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1098
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1099
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1100
/* gettext.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1101
char *bindtextdomain(const char *domain, const char *binding);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1102
char *dcgettext(const char *domain, const char *msg_id, const int category);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1103
char *dgettext(const char *domain, const char *msg_id);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1104
char *gettext(const char *msg_id);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1105
char *textdomain(const char *domain);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1106
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1107
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1108
 * /usr/src/lib/libc/port/print routines
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1109
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1110
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1111
/* fprintf.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1112
/* VARARGS2 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1113
int fprintf(FILE *_RESTRICT_KYWD iop, const char *_RESTRICT_KYWD format, ...);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1114
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1115
/* printf.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1116
/* VARARGS1 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1117
int printf(const char *_RESTRICT_KYWD format, ...);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1118
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1119
/* snprintf.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1120
/* VARARGS2 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1121
int snprintf(char *_RESTRICT_KYWD string, size_t n,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1122
		const char *_RESTRICT_KYWD format, ...);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1123
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1124
/* sprintf.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1125
/* VARARGS2 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1126
int sprintf(char *_RESTRICT_KYWD string,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1127
		const char *_RESTRICT_KYWD format, ...);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1128
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1129
/* vfprintf.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1130
/* VARARGS2 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1131
int vfprintf(FILE *_RESTRICT_KYWD iop, const char *_RESTRICT_KYWD format,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1132
		va_list);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1133
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1134
/* vprintf.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1135
/* VARARGS1 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1136
int vprintf(const char *_RESTRICT_KYWD format, va_list);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1137
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1138
/* vsnprintf.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1139
/* VARARGS2 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1140
int vsnprintf(char *_RESTRICT_KYWD string, size_t n,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1141
		const char *_RESTRICT_KYWD format, va_list);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1142
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1143
/* vsprintf.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1144
/* VARARGS2 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1145
int vsprintf(char *_RESTRICT_KYWD string, const char *_RESTRICT_KYWD format,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1146
	va_list);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1147
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1148
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1149
 * /usr/src/lib/libc/port/regex routines
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1150
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1151
13497
205481e35e49 1678 libc lint library is missing definition for glob/globfree
Yuri Pankov <yuri.pankov@nexenta.com>
parents: 13151
diff changeset
  1152
/* glob.c */
205481e35e49 1678 libc lint library is missing definition for glob/globfree
Yuri Pankov <yuri.pankov@nexenta.com>
parents: 13151
diff changeset
  1153
extern int glob(const char *restrict pattern, int flags,
205481e35e49 1678 libc lint library is missing definition for glob/globfree
Yuri Pankov <yuri.pankov@nexenta.com>
parents: 13151
diff changeset
  1154
    int(*errfunc)(const char *epath, int eerrno), glob_t *restrict pglob);
205481e35e49 1678 libc lint library is missing definition for glob/globfree
Yuri Pankov <yuri.pankov@nexenta.com>
parents: 13151
diff changeset
  1155
extern void globfree(glob_t *pglob);
205481e35e49 1678 libc lint library is missing definition for glob/globfree
Yuri Pankov <yuri.pankov@nexenta.com>
parents: 13151
diff changeset
  1156
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1157
/* regex.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1158
char *regex(const char *regexp, const char *stringp, ...);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1159
#ifdef __loc1
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1160
#undef __loc1
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1161
#endif
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1162
char *__loc1;
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1163
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1164
/* regcmp.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1165
char *regcmp(const char *regexp, ...);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1166
#ifdef __i_size
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1167
#undef __i_size
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1168
#endif
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1169
int __i_size;
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1170
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1171
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1172
 * /usr/src/lib/libc/port/stdio routines
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1173
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1174
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1175
/* _filbuf.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1176
int _filbuf(FILE *iop);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1177
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1178
/* _flsbuf.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1179
int _flsbuf(int ch, FILE *iop);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1180
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1181
/* _wrtchk.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1182
int _wrtchk(FILE *iop);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1183
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1184
/* clearerr.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1185
void clearerr(FILE *iop);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1186
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1187
/* ctermid.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1188
char *ctermid(char *s);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1189
char *ctermid_r(char *s);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1190
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1191
/* cuserid.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1192
char *cuserid(char *s);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1193
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1194
/* data.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1195
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1196
/* doscan.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1197
int _doscan(FILE *iop, const char *fmt, va_list va_alist);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1198
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1199
/* fdopen.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1200
FILE *fdopen(int fd, const char *type);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1201
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1202
/* feof.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1203
int feof(FILE *iop);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1204
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1205
/* ferror.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1206
int ferror(FILE *iop);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1207
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1208
/* fgetc.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1209
int fgetc(FILE *iop);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1210
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1211
/* fgets.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1212
char *fgets(char *_RESTRICT_KYWD buf, int size, FILE *_RESTRICT_KYWD iop);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1213
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1214
/* fileno.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1215
int _fileno(FILE *iop);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1216
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1217
/* flush.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1218
void _cleanup(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1219
FILE *_findiop(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1220
typedef unsigned char Uchar;
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1221
void _setbufend(FILE *iop, Uchar *end);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1222
Uchar *_realbufend(FILE *iop);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1223
void _bufsync(FILE *iop, Uchar *bufend);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1224
int _xflsbuf(FILE *iop);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1225
int fflush(FILE *iop);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1226
int fclose(FILE *iop);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1227
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1228
/* fopen.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1229
FILE *fopen(const char *_RESTRICT_KYWD name, const char *_RESTRICT_KYWD type);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1230
FILE *freopen(const char *_RESTRICT_KYWD name, const char *_RESTRICT_KYWD type,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1231
		FILE *_RESTRICT_KYWD iop);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1232
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1233
/* fpos.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1234
int fgetpos(FILE *_RESTRICT_KYWD stream, fpos_t *_RESTRICT_KYWD pos);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1235
int fsetpos(FILE *stream, const fpos_t *pos);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1236
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1237
/* fputc.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1238
int fputc(int ch, FILE *iop);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1239
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1240
/* fputs.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1241
int fputs(const char *_RESTRICT_KYWD ptr, FILE *_RESTRICT_KYWD iop);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1242
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1243
/* fread.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1244
size_t fread(void *_RESTRICT_KYWD ptr, size_t size, size_t count,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1245
	FILE *_RESTRICT_KYWD iop);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1246
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1247
/* fseek.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1248
int fseek(FILE *iop, long offset, int ptrname);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1249
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1250
/* ftell.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1251
long ftell(FILE *iop);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1252
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1253
/* fwrite.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1254
size_t fwrite(const void *_RESTRICT_KYWD ptr1, size_t size, size_t count,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1255
	FILE *_RESTRICT_KYWD iop);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1256
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1257
/* getc.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1258
int getc(FILE *iop);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1259
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1260
/* getchar.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1261
int getchar(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1262
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1263
/* getpass.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1264
char *getpass(const char *prompt);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1265
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1266
/* getpass.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1267
char *getpassphrase(const char *prompt);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1268
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1269
/* gets.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1270
char *gets(char *buf);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1271
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1272
/* getw.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1273
int getw(FILE *stream);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1274
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1275
/* popen.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1276
FILE *popen(const char *cmd, const char *mode);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1277
int pclose(FILE *ptr);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1278
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1279
/* putc.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1280
int putc(int ch, FILE *iop);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1281
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1282
/* putchar.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1283
int putchar(int ch);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1284
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1285
/* puts.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1286
int puts(const char *ptr);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1287
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1288
/* putw.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1289
int putw(int w, FILE *stream);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1290
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1291
/* rewind.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1292
void rewind(FILE *iop);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1293
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1294
/* scanf.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1295
/* VARARGS1 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1296
int scanf(const char *_RESTRICT_KYWD fmt, ...);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1297
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1298
/* VARARGS2 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1299
int fscanf(FILE *_RESTRICT_KYWD iop, const char *_RESTRICT_KYWD fmt, ...);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1300
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1301
/* VARARGS2 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1302
int sscanf(const char *_RESTRICT_KYWD str, const char *_RESTRICT_KYWD fmt, ...);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1303
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1304
/* setbuf.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1305
void setbuf(FILE *_RESTRICT_KYWD iop, char *_RESTRICT_KYWD abuf);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1306
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1307
/* setvbuf.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1308
int setvbuf(FILE *_RESTRICT_KYWD iop, char *_RESTRICT_KYWD abuf, int type,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1309
		size_t size);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1310
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1311
/* system.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1312
int system(const char *s);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1313
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1314
/* tempnam.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1315
char *tempnam(const char *dir, const char *pfx);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1316
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1317
/* tmpfile.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1318
FILE *tmpfile(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1319
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1320
/* tmpnam.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1321
char *tmpnam(char *s);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1322
char *tmpnam_r(char *);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1323
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1324
/* ungetc.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1325
int ungetc(int c, FILE *iop);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1326
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1327
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1328
 * /usr/src/lib/libc/port/sys routines
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1329
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1330
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1331
/* exacctsys.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1332
size_t getacct(idtype_t idtype, id_t id, void *buf, size_t bufsize);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1333
int putacct(idtype_t idtype, id_t id, void *buf, size_t bufsize, int flags);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1334
int wracct(idtype_t idtype, id_t id, int flags);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1335
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1336
/* execl.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1337
/* VARARGS1 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1338
int execl(const char *name, const char *, ...);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1339
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1340
/* execle.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1341
int execle(const char *, const char *file, ...);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1342
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1343
/* execv.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1344
int execv(const char *file, char *const *argv);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1345
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1346
/* lockf.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1347
int lockf(int fildes, int function, off_t size);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1348
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1349
/* meminfosys.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1350
int meminfo(const uint64_t *inaddr, int addr_count, const uint_t *info_req,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1351
	int info_count, uint64_t *outdata, uint_t *validity);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1352
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1353
/* msgsys.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1354
int msgget(key_t key, int msgflg);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1355
int msgctl(int msqid, int cmd, struct msqid_ds *buf);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1356
ssize_t msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1357
int msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1358
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1359
/* nfssys.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1360
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1361
int exportfs(char *dir, struct export *ep);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1362
int nfs_getfh(char *path, fhandle_t *fhp);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1363
int nfssvc(int fd);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1364
*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1365
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1366
/* psetsys.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1367
int pset_create(psetid_t *npset);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1368
int pset_destroy(psetid_t pset);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1369
int pset_assign(psetid_t pset, processorid_t cpu, psetid_t *opset);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1370
int pset_assign_forced(psetid_t pset, processorid_t cpu, psetid_t *opset);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1371
int pset_info(psetid_t pset, int *type, u_int *numcpus, processorid_t *cpulist);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1372
int pset_bind(psetid_t pset, idtype_t idtype, id_t id, psetid_t *opset);
10089
3b42b78e6a26 6757037 Zone-spawned LWP needs to be able to run on a processor set
Surya Prakki <Surya.Prakki@Sun.COM>
parents: 9880
diff changeset
  1373
int pset_bind_lwp(psetid_t pset, id_t id, pid_t, psetid_t *opset);
3b42b78e6a26 6757037 Zone-spawned LWP needs to be able to run on a processor set
Surya Prakki <Surya.Prakki@Sun.COM>
parents: 9880
diff changeset
  1374
  
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1375
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1376
/* rctlsys.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1377
int getrctl(const char *name, rctlblk_t *old_rblk, rctlblk_t *new_rblk,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1378
    int flags);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1379
int setrctl(const char *name, rctlblk_t *old_rblk, rctlblk_t *new_rblk,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1380
    int flags);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1381
/* (private functions) */
3684
a0773f73b68d PSARC 2006/554 setproject(3PROJECT) defining, and enhancing behaviour
rd117015
parents: 2923
diff changeset
  1382
int setprojrctl(const char *name, rctlblk_t *new_rblk, size_t size, int flags);
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1383
int rctlctl(const char *, rctlblk_t *, int);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1384
size_t rctllist(char *, size_t);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1385
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1386
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1387
/* semsys.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1388
int semctl(int semid, int semnum, int cmd, ...);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1389
int semget(key_t key, int nsems, int semflg);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1390
int semop(int semid, struct sembuf *sops, size_t nsops);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1391
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1392
/* shmsys.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1393
void *shmat(int shmid, const void *shmaddr, int shmflg);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1394
int shmctl(int shmid, int cmd, struct shmid_ds *buf);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1395
#if defined(_XOPEN_SOURCE) && (_XOPEN_VERSION - 0 == 4)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1396
int shmdt(const void *);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1397
#else
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1398
int shmdt(char *);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1399
#endif /* defined(_XOPEN_SOURCE) && (_XOPEN_VERSION - 0 == 4) */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1400
int shmget(key_t key, size_t size, int shmflg);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1401
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1402
/* tasksys.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1403
taskid_t settaskid(projid_t project, uint_t flags);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1404
taskid_t gettaskid(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1405
projid_t getprojid(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1406
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1407
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1408
 * /usr/src/lib/libc/port/widec routines
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1409
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1410
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1411
/* fgetws.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1412
wchar_t *fgetws(wchar_t *_RESTRICT_KYWD ptr, int  size,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1413
	FILE *_RESTRICT_KYWD iop);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1414
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1415
/* fputwc.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1416
wint_t fputwc(wint_t wc, FILE *iop);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1417
wint_t putwc(wint_t wc, FILE *iop);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1418
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1419
/* fputws.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1420
int fputws(const wchar_t *_RESTRICT_KYWD ptr, FILE *_RESTRICT_KYWD iop);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1421
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1422
/* getwchar.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1423
wint_t getwchar(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1424
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1425
/* getwidth.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1426
void getwidth(eucwidth_t *eucstruct);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1427
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1428
/* getws.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1429
wchar_t *getws(wchar_t *ptr);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1430
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1431
/* iswctype.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1432
int iswctype(wint_t wc, wctype_t charclass);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1433
int iswalpha(wint_t c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1434
int iswupper(wint_t c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1435
int iswlower(wint_t c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1436
int iswdigit(wint_t c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1437
int iswxdigit(wint_t c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1438
int iswalnum(wint_t c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1439
int iswspace(wint_t c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1440
int iswpunct(wint_t c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1441
int iswprint(wint_t c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1442
int iswgraph(wint_t c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1443
int iswcntrl(wint_t c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1444
int isphonogram(wint_t c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1445
int isideogram(wint_t c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1446
int isenglish(wint_t c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1447
int isnumber(wint_t c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1448
int isspecial(wint_t c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1449
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1450
/* libwcollate.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1451
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1452
/* putwchar.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1453
wint_t putwchar(wint_t c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1454
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1455
/* putws.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1456
int putws(const wchar_t *ptr);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1457
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1458
/* scrwidth.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1459
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1460
/* strtows.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1461
wchar_t *strtows(wchar_t *s1, char *s2);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1462
char *wstostr(char *s1, wchar_t *s2);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1463
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1464
/* trwctype.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1465
wint_t towupper(wint_t c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1466
wint_t towlower(wint_t c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1467
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1468
/* ungetwc.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1469
wint_t ungetwc(wint_t wc, FILE *iop);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1470
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1471
/* wcollate.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1472
size_t wcsxfrm(wchar_t *_RESTRICT_KYWD s1, const wchar_t *_RESTRICT_KYWD s2,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1473
	size_t n);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1474
int wcscoll(const wchar_t *s1, const wchar_t *s2);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1475
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1476
/* wcsftime.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1477
#if !defined(__amd64) 		/* XX64 - fix me */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1478
size_t wcsftime(wchar_t *wcs, size_t maxsize,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1479
	const char *format, const struct tm *timeptr);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1480
#endif	/* __amd64 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1481
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1482
/* wcstring.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1483
wint_t fgetwc(FILE *iop);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1484
wint_t getwc(FILE *iop);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1485
int wcwidth(wchar_t wc);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1486
int wcswidth(const wchar_t *pwcs, size_t n);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1487
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1488
/* wcswcs.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1489
wchar_t *wcswcs(const wchar_t *ws1, const wchar_t *ws2);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1490
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1491
/* wcsxfrm.c - empty file! */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1492
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1493
/* wcsxfrm.xpg4.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1494
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1495
/* wisprint.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1496
int wisprint(wchar_t c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1497
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1498
/* wscasecmp.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1499
int wscasecmp(const wchar_t *s1, const wchar_t *s2);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1500
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1501
/* wscat.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1502
wchar_t *wcscat(wchar_t *_RESTRICT_KYWD s1, const wchar_t *_RESTRICT_KYWD s2);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1503
wchar_t *wscat(wchar_t *s1, const wchar_t *s2);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1504
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1505
/* wschr.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1506
wchar_t *wcschr(const wchar_t *sp, wchar_t c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1507
wchar_t *wschr(const wchar_t *sp, wchar_t c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1508
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1509
/* wscmp.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1510
int wcscmp(const wchar_t *s1, const wchar_t *s2);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1511
int wscmp(const wchar_t *s1, const wchar_t *s2);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1512
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1513
/* wscol.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1514
int wscol(const wchar_t *s1);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1515
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1516
/* wscpy.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1517
wchar_t *wcscpy(wchar_t *_RESTRICT_KYWD s1, const wchar_t *_RESTRICT_KYWD s2);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1518
wchar_t *wscpy(wchar_t *s1, const wchar_t *s2);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1519
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1520
/* wscspn.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1521
size_t wcscspn(const wchar_t *string, const wchar_t *charset);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1522
size_t wscspn(const wchar_t *string, const wchar_t *charset);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1523
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1524
/* wsdup.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1525
wchar_t *wsdup(const wchar_t *s1);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1526
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1527
/* wslen.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1528
size_t wcslen(const wchar_t *s);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1529
size_t wslen(const wchar_t *s);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1530
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1531
/* wsncasecmp.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1532
int wsncasecmp(const wchar_t *s1, const wchar_t *s2, size_t n);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1533
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1534
/* wsncat.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1535
wchar_t *wcsncat(wchar_t *_RESTRICT_KYWD s1, const wchar_t *_RESTRICT_KYWD s2,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1536
	size_t n);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1537
wchar_t *wsncat(wchar_t *s1, const wchar_t *s2, size_t n);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1538
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1539
/* wsncmp.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1540
int wcsncmp(const wchar_t *s1, const wchar_t *s2, size_t n);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1541
int wsncmp(const wchar_t *s1, const wchar_t *s2, size_t n);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1542
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1543
/* wsncpy.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1544
wchar_t *wcsncpy(wchar_t *_RESTRICT_KYWD s1, const wchar_t *_RESTRICT_KYWD s2,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1545
	size_t n);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1546
wchar_t *wsncpy(wchar_t *s1, const wchar_t *s2, size_t n);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1547
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1548
/* wspbrk.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1549
wchar_t *wcspbrk(const wchar_t *string, const wchar_t *brkset);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1550
wchar_t *wspbrk(const wchar_t *string, const wchar_t *brkset);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1551
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1552
/* wsprintf.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1553
int wsprintf(wchar_t *wstring, const char *format, ...);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1554
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1555
/* wsrchr.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1556
wchar_t *wcsrchr(const wchar_t *sp, wchar_t c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1557
wchar_t *wsrchr(const wchar_t *sp, wchar_t c);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1558
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1559
/* wsscanf.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1560
int wsscanf(wchar_t *s, const char *format, ...);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1561
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1562
/* wssize.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1563
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1564
/* wsspn.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1565
size_t wcsspn(const wchar_t *string, const wchar_t *charset);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1566
size_t wsspn(const wchar_t *string, const wchar_t *charset);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1567
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1568
/* wstod.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1569
double wcstod(const wchar_t *_RESTRICT_KYWD cp, wchar_t **_RESTRICT_KYWD ptr);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1570
float wcstof(const wchar_t *_RESTRICT_KYWD cp, wchar_t **_RESTRICT_KYWD ptr);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1571
long double wcstold(const wchar_t *_RESTRICT_KYWD cp,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1572
	wchar_t **_RESTRICT_KYWD ptr);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1573
double wstod(const wchar_t *cp, wchar_t **ptr);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1574
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1575
/* wstok.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1576
#if !defined(__amd64) 		/* XX64 - fix me */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1577
wchar_t *wcstok(wchar_t *string, const wchar_t *sepset);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1578
wchar_t *wstok(wchar_t *string, const wchar_t *sepset);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1579
#endif	/* __amd64 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1580
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1581
/* wcstol.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1582
long wcstol(const wchar_t *_RESTRICT_KYWD str, wchar_t **_RESTRICT_KYWD ptr,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1583
	int base);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1584
long long wcstoll(const wchar_t *_RESTRICT_KYWD str,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1585
	wchar_t **_RESTRICT_KYWD ptr, int base);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1586
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1587
/* wcstoul.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1588
unsigned long wcstoul(const wchar_t *_RESTRICT_KYWD str,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1589
	wchar_t **_RESTRICT_KYWD ptr, int base);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1590
unsigned long long wcstoull(const wchar_t *_RESTRICT_KYWD str,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1591
	wchar_t **_RESTRICT_KYWD ptr, int base);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1592
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1593
/* wcstoimax.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1594
intmax_t wcstoimax(const wchar_t *_RESTRICT_KYWD nptr,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1595
	wchar_t **_RESTRICT_KYWD endptr, int base);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1596
uintmax_t wcstoumax(const wchar_t *_RESTRICT_KYWD nptr,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1597
	wchar_t **_RESTRICT_KYWD endptr, int base);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1598
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1599
/* wstol.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1600
long wstol(const wchar_t *str, wchar_t **ptr, int base);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1601
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1602
/* wstoll.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1603
long long wstoll(const wchar_t *str, wchar_t **ptr, int base);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1604
long long watoll(const wchar_t *p);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1605
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1606
/* wsxfrm.c */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1607
size_t wsxfrm(wchar_t *s1, const wchar_t *s2, size_t n);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1608
int wscoll(const wchar_t *s1, const wchar_t *s2);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1609
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1610
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1611
 * /usr/src/lib/libc/port/gen/event_port.c
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1612
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1613
int port_dispatch(int port, int flags, int source, int events, uintptr_t object,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1614
    void *user);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1615
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1616
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1617
 * /usr/src/lib/libc/$MACH/gen routines
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1618
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1619
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1620
/* alloca.s */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1621
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1622
void *__builtin_alloca(size_t);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1623
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1624
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1625
 * modctl(int arg, ...) and utssys(...) are not available from a header
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1626
 * file, but our utilities which make use of it should be able to be
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1627
 * lint clean.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1628
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1629
int modctl(int arg, ...);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1630
int utssys(void *buf, int arg, int type, void *outbp);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1631
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1632
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1633
typedef float single;
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1634
typedef unsigned extended[3];
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1635
typedef long double quadruple;
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1636
typedef unsigned fp_exception_field_type;
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1637
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1638
typedef char decimal_string[512];
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1639
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1640
enum fp_class_type {
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1641
	fp_zero	 = 0,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1642
	fp_subnormal    = 1,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1643
	fp_normal	= 2,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1644
	fp_infinity	= 3,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1645
	fp_quiet	= 4,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1646
	fp_signaling    = 5
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1647
};
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1648
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1649
enum fp_direction_type {
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1650
	fp_nearest	= 0,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1651
	fp_tozero	= 1,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1652
	fp_positive	= 2,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1653
	fp_negative	= 3
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1654
};
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1655
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1656
typedef struct {
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1657
	enum fp_class_type fpclass;
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1658
	int sign;
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1659
	int exponent;
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1660
	decimal_string ds;
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1661
	int more;
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1662
	int ndigits;
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1663
} decimal_record;
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1664
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1665
enum decimal_form {
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1666
	fixed_form,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1667
	floating_form
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1668
};
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1669
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1670
typedef struct {
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1671
	enum fp_direction_type rd;
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1672
	enum decimal_form df;
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1673
	int ndigits;
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1674
} decimal_mode;
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1675
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1676
enum decimal_string_form {
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1677
	invalid_form,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1678
	whitespace_form,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1679
	fixed_int_form,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1680
	fixed_intdot_form,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1681
	fixed_dotfrac_form,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1682
	fixed_intdotfrac_form,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1683
	floating_int_form,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1684
	floating_intdot_form,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1685
	floating_dotfrac_form,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1686
	floating_intdotfrac_form,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1687
	inf_form,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1688
	infinity_form,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1689
	nan_form,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1690
	nanstring_form
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1691
};
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1692
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1693
typedef int sigfpe_code_type;
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1694
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1695
typedef void (*sigfpe_handler_type)();
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1696
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1697
extern sigfpe_handler_type sigfpe(sigfpe_code_type, sigfpe_handler_type);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1698
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1699
extern void single_to_decimal(single *, decimal_mode *, decimal_record *,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1700
				fp_exception_field_type *);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1701
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1702
extern void double_to_decimal(double *, decimal_mode *, decimal_record *,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1703
				fp_exception_field_type *);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1704
extern void extended_to_decimal(extended *, decimal_mode *,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1705
				decimal_record *, fp_exception_field_type *);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1706
extern void quadruple_to_decimal(quadruple *, decimal_mode *,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1707
				decimal_record *, fp_exception_field_type *);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1708
extern void decimal_to_single(single *, decimal_mode *, decimal_record *,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1709
				fp_exception_field_type *);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1710
extern void decimal_to_double(double *, decimal_mode *, decimal_record *,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1711
				fp_exception_field_type *);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1712
extern void decimal_to_extended(extended *, decimal_mode *,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1713
				decimal_record *, fp_exception_field_type *);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1714
extern void decimal_to_quadruple(quadruple *, decimal_mode *,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1715
				decimal_record *, fp_exception_field_type *);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1716
extern void string_to_decimal(char **, int, int, decimal_record *,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1717
				enum decimal_string_form *, char **);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1718
extern void func_to_decimal(char **, int, int, decimal_record *,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1719
				enum decimal_string_form *, char **,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1720
				int (*)(void), int *, int (*)(int));
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1721
extern void file_to_decimal(char **, int, int, decimal_record *,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1722
				enum decimal_string_form *, char **,
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1723
				FILE *, int *);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1724
extern char *seconvert(single *, int, int *, int *, char *);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1725
extern char *sfconvert(single *, int, int *, int *, char *);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1726
extern char *sgconvert(single *, int, int, char *);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1727
extern char *econvert(double, int, int *, int *, char *);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1728
extern char *fconvert(double, int, int *, int *, char *);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1729
extern char *gconvert(double, int, int, char *);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1730
extern char *qeconvert(quadruple *, int, int *, int *, char *);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1731
extern char *qfconvert(quadruple *, int, int *, int *, char *);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1732
extern char *qgconvert(quadruple *, int, int, char *);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1733
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1734
extern void __assert(const char *, const char *, int);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1735
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1736
extern int setjmp(jmp_buf);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1737
extern void longjmp(jmp_buf, int);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1738
extern int sigsetjmp(sigjmp_buf, int);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1739
extern void siglongjmp(sigjmp_buf, int);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1740
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1741
int uname(struct utsname *);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1742
int _uname(struct utsname *);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1743
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1744
int errno;
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1745
int *___errno()
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1746
{ return (&errno); }
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1747
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1748
extern int getloadavg(double [], int);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1749
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1750
extern long pcsample(uintptr_t [], long);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1751
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1752
int fstat(int, struct stat *);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1753
int stat(const char *_RESTRICT_KYWD, struct stat *_RESTRICT_KYWD);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1754
int lstat(const char *_RESTRICT_KYWD, struct stat *_RESTRICT_KYWD);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1755
int mknod(const char *, mode_t, dev_t);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1756
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1757
extern int __init_daemon_priv(int, uid_t uid, gid_t gid, ...);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1758
extern void __fini_daemon_priv(const char *, ...);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1759
extern int __init_suid_priv(int, ...);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1760
extern int __priv_bracket(priv_op_t);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1761
extern void __priv_relinquish(void);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1762
extern const char * __priv_getsetbynum(const void *, int);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1763
extern char * __priv_set_to_str(void *, const priv_set_t *, char, int);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1764
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1765
/* private interface to get the groups list for a certain user */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1766
int _getgroupsbymember(const char *, gid_t[], int, int);
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1767
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1768
/* private interface for use only by java */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
  1769
volatile sc_shared_t *volatile *_thr_schedctl(void);
1645
5c204cdba7d2 PSARC 2006/124 Configurable Privileges for Zones
comay
parents: 0
diff changeset
  1770
5c204cdba7d2 PSARC 2006/124 Configurable Privileges for Zones
comay
parents: 0
diff changeset
  1771
/* private interface to unmount all autofs mounts */
5c204cdba7d2 PSARC 2006/124 Configurable Privileges for Zones
comay
parents: 0
diff changeset
  1772
int _autofssys(enum autofssys_op, void *);
1676
37f4a3e2bd99 PSARC/2002/762 Layered Trusted Solaris
jpk
parents: 1645
diff changeset
  1773
37f4a3e2bd99 PSARC/2002/762 Layered Trusted Solaris
jpk
parents: 1645
diff changeset
  1774
/* label.c */
37f4a3e2bd99 PSARC/2002/762 Layered Trusted Solaris
jpk
parents: 1645
diff changeset
  1775
extern int is_system_labeled(void);
3855
df4146229995 6296436 /usr/bin/rm has slowed down
sn199410
parents: 3684
diff changeset
  1776
5696
7e38474aec18 PSARC/2007/616 Winchester update for diagonal ID mapping
nw141292
parents: 5331
diff changeset
  1777
extern int uconv_u16tou32(const uint16_t *, size_t *, uint32_t *, size_t *,
7e38474aec18 PSARC/2007/616 Winchester update for diagonal ID mapping
nw141292
parents: 5331
diff changeset
  1778
	int);
7e38474aec18 PSARC/2007/616 Winchester update for diagonal ID mapping
nw141292
parents: 5331
diff changeset
  1779
extern int uconv_u16tou8(const uint16_t *, size_t *, uchar_t *, size_t *, int);
7e38474aec18 PSARC/2007/616 Winchester update for diagonal ID mapping
nw141292
parents: 5331
diff changeset
  1780
extern int uconv_u32tou16(const uint32_t *, size_t *, uint16_t *, size_t *,
7e38474aec18 PSARC/2007/616 Winchester update for diagonal ID mapping
nw141292
parents: 5331
diff changeset
  1781
	int);
7e38474aec18 PSARC/2007/616 Winchester update for diagonal ID mapping
nw141292
parents: 5331
diff changeset
  1782
extern int uconv_u32tou8(const uint32_t *, size_t *, uchar_t *, size_t *, int);
7e38474aec18 PSARC/2007/616 Winchester update for diagonal ID mapping
nw141292
parents: 5331
diff changeset
  1783
extern int uconv_u8tou16(const uchar_t *, size_t *, uint16_t *, size_t *, int);
7e38474aec18 PSARC/2007/616 Winchester update for diagonal ID mapping
nw141292
parents: 5331
diff changeset
  1784
extern int uconv_u8tou32(const uchar_t *, size_t *, uint32_t *, size_t *, int);
7e38474aec18 PSARC/2007/616 Winchester update for diagonal ID mapping
nw141292
parents: 5331
diff changeset
  1785
extern int u8_validate(char *, size_t, char **, int, int *);
7e38474aec18 PSARC/2007/616 Winchester update for diagonal ID mapping
nw141292
parents: 5331
diff changeset
  1786
extern int u8_strcmp(const char *, const char *, size_t, int, size_t, int *);
7e38474aec18 PSARC/2007/616 Winchester update for diagonal ID mapping
nw141292
parents: 5331
diff changeset
  1787
extern size_t u8_textprep_str(char *, size_t *, char *, size_t *, int, size_t,
7e38474aec18 PSARC/2007/616 Winchester update for diagonal ID mapping
nw141292
parents: 5331
diff changeset
  1788
	int *);
13151
61094292b8c8 38 need replacement for tr (fix lint)
Garrett D'Amore <garrett@nexenta.com>
parents: 13105
diff changeset
  1789
61094292b8c8 38 need replacement for tr (fix lint)
Garrett D'Amore <garrett@nexenta.com>
parents: 13105
diff changeset
  1790
/* private locale interfaces */
61094292b8c8 38 need replacement for tr (fix lint)
Garrett D'Amore <garrett@nexenta.com>
parents: 13105
diff changeset
  1791
wint_t __nextwctype(wint_t, wctype_t);
61094292b8c8 38 need replacement for tr (fix lint)
Garrett D'Amore <garrett@nexenta.com>
parents: 13105
diff changeset
  1792
int __iswrune(wint_t);