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