systm.h revision 87a18d3f5ba5da1985af86439cf1c94a9118b665
1N/A * The contents of this file are subject to the terms of the 1N/A * Common Development and Distribution License (the "License"). 1N/A * You may not use this file except in compliance with the License. 1N/A * See the License for the specific language governing permissions 1N/A * and limitations under the License. 1N/A * When distributing Covered Code, include this CDDL HEADER in each 1N/A * If applicable, add the following below this CDDL HEADER, with the 1N/A * fields enclosed by brackets "[]" replaced with your own identifying 1N/A * information: Portions Copyright [yyyy] [name of copyright owner] 1N/A/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 1N/A/* All Rights Reserved */ 1N/A * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 1N/A * Use is subject to license terms. 1N/A * The pc_t is the type of the kernel's program counter. In general, a 1N/A * pc_t is a uintptr_t -- except for a sparcv9 kernel, in which case all 1N/A * instruction text is below 4G, and a pc_t is thus a uint32_t. 1N/A * Random set of variables used by more than one routine. 1N/Aextern int hz;
/* system clock rate */ 1N/Aextern char wake_sched;
/* causes clock to wake swapper on next tick */ 1N/A /* memory in pages. */ 1N/Aextern char *
volatile panicstr;
/* panic string pointer */ 1N/Aextern int rstchown;
/* 1 ==> restrictive chown(2) semantics */ 1N/Aextern char *
isa_list;
/* For sysinfo's isalist option */ 1N/A * Use NFS client operations in the global zone only. Under contract with 1N/A * admin/install; do not change without coordinating with that consolidation. 1N/A * for tod fault detection 1N/A * The last argument to timeout_generic() is flags. See callo.h for the 1N/A * flags definitions. 1N/A * The last argument to untimeout_generic() is flags. See callout.c for the 1N/A/* casts to keep lint happy */ * Structure of the system-entry table. * Changes to struct sysent should maintain binary compatibility with * loadable system calls, although the interface is currently private. * This means it should only be expanded on the end, and flag values * It is desirable to keep the size of this struct a power of 2 for quick char sy_narg;
/* total number of arguments */ unsigned short sy_flags;
/* various flags as defined below */ unsigned char sy_flags;
/* various flags as defined below */ int (*
sy_call)();
/* argp, rvalp-style handler */ #
define NSYSCALL 256 /* number of system calls */ * Values 1, 2, and 4 were used previously for SETJUMP, ASYNC, and IOSYS. #
define SE_32RVAL1 0x0 /* handler returns int32_t in rval1 */#
define SE_32RVAL2 0x1 /* handler returns int32_t in rval2 */#
define SE_64RVAL 0x2 /* handler returns int64_t in rvals */#
define SE_LOADED 0x10 /* syscall is completely loaded */#
define SE_NOUNLOAD 0x20 /* syscall never needs unload */#
define SE_ARGC 0x40 /* syscall takes C-style args */ * Structure of the return-value parameter passed by reference to * initname holds the path to init and is used as a point of rendezvous * between krtld (which processes the boot arguments) and the kernel. * initargs holds the arguments to init (such as -v, -s, -r, -m verbose) and * is a point of rendezvous between krtld (which processes the boot arguments) extern int exec_init(
const char *,
const char *);
char *
strcat(
char *,
const char *);
char *
strcpy(
char *,
const char *);
/* Need to be consistent with <string.h> C++ definitions */ extern const char *
strchr(
const char *,
int);
#
endif /* _STRCHR_INLINE */extern const char *
strrchr(
const char *,
int);
#
endif /* _STRRCHR_INLINE */extern const char *
strstr(
const char *,
const char *);
#
endif /* _STRSTR_INLINE */#
else /* __cplusplus >= 199711L */char *
strchr(
const char *,
int);
char *
strstr(
const char *,
const char *);
#
endif /* __cplusplus >= 199711L *//* Need to be consistent with <string.h> C++ definitions */ extern const char *
strpbrk(
const char *,
const char *);
#
endif /* _STRPBRK_INLINE */#
else /* __cplusplus >= 199711L */char *
strpbrk(
const char *,
const char *);
#
endif /* __cplusplus >= 199711L */#
endif /* _KERNEL || _BOOT */#
endif /* _SYS_SYSTM_H */