| /illumos-gate/usr/src/lib/watchmalloc/common/ |
| H A D | malloc.c | 33 * The following #-parameters may be redefined: 38 * Default is ((char *)(-1)). 43 * free elts maintained in a self-adjusting binary tree. Each list 45 * For results on self-adjusting trees, see the paper: 46 * Self-Adjusting Binary Trees, 74 static void protect(TREE *); 97 while (sz--) in copy_pattern() 104 static TREE *List[MINSIZE/WORDSIZE-1]; 105 static TREE *Last[MINSIZE/WORDSIZE-1]; 122 i = size / WORDSIZE - 1; in smalloc() [all …]
|
| /illumos-gate/usr/src/cmd/bnu/ |
| H A D | uudemon.cleanup | 37 if [ ! -f /etc/uucp/Systems ]; then 46 if [ ! -f /etc/asppp.cf ]; then 49 X=`sed -e 's/#.*$//' /etc/asppp.cf` 50 set -- $X 51 while [ $# -ne 0 ]; 74 if [ $del -ne 1 ]; then 81 if [ -n "$outstr" ]; then 102 # Running as uucp, take care to protect things 124 O_LOGS=$OLD/Old-Log 125 ACCT_LOGS=$OLD/Old-acct [all …]
|
| /illumos-gate/usr/src/man/man3c/ |
| H A D | pthread_atfork.3c | 16 .\" Standard for Information Technology -- Portable Operating System 18 .\" Copyright (C) 2001-2004 by the Institute of Electrical and Electronics 50 pthread_atfork \- register fork handlers 79 The \fIprepare\fR fork handler is called in \fBLIFO\fR (last-in first-out) 81 \fBFIFO\fR (first-in first-out) order. This calling order allows applications 106 \fBpthread_atfork()\fR to ensure \fBfork()\fR-safety, since the two thread APIs 115 program and do more than simply call \fBexec\fR(2) in the child of the fork 120 Since the "fork-one" model results in duplicating only the thread that called 130 library must protect itself from such a deadlock scenario. If the application 131 that links with this library calls \fBfork()\fR and does not call \fBexec()\fR [all …]
|
| H A D | mutex_init.3c | 16 .\" Standard for Information Technology -- Portable Operating System 18 .\" Copyright (C) 2001-2004 by the Institute of Electrical and Electronics 51 mutex_destroy \- mutual exclusion locks 55 cc -mt [ \fIflag\fR... ] \fIfile\fR... [ \fIlibrary\fR... ] 104 Mutexes are either intra-process or inter-process, depending upon the argument 111 For inter-process synchronization, a mutex needs to be allocated in memory 148 The \fItype\fR argument can be augmented by the bitwise-inclusive-\fBOR\fR of 287 Default mutex initialization (intra-process): 308 Customized mutex initialization (inter-process): 318 Customized mutex initialization (inter-process robust): [all …]
|
| /illumos-gate/usr/src/man/man2/ |
| H A D | fork.2 | 16 .\" Standard for Information Technology -- Portable Operating System 18 .\" Copyright (C) 2001-2004 by the Institute of Electrical and Electronics 50 fork, fork1, forkall, forkx, forkallx \- create a new process 103 open file descriptors (except those marked close-on-fork, see discussion below) 109 close-on-exec flags (see \fBexec\fR(2)) 128 set-user-ID mode bit 134 set-group-ID mode bit 164 process group \fBID\fR -- memory mappings (see \fBmmap\fR(2)) 246 Scheduling priority and any per-process scheduling parameters that are specific 273 file descriptors that were marked with the close-on-fork flag, \fBFD_CLOFORK\fR [all …]
|
| /illumos-gate/usr/src/lib/libsldap/common/ |
| H A D | ns_cache_door.c | 48 * 2) Set the close on exec flags so descriptor remains available 58 * closed it underneath us or where the nscd dies or re-execs itself 59 * and we're a multi-threaded application. Note that we cannot protect 60 * the application if it closes the fd and it is multi-threaded. 73 * Returns 0 if the door call reached the server, -1 if contact was not made. 79 static int doorfd = -1; 104 if (doorfd == -1) { in __ns_ldap_trydoorcall_getfd() 109 == -1) { in __ns_ldap_trydoorcall_getfd() 115 * dup up the file descriptor if we have 0 - 2 in __ns_ldap_trydoorcall_getfd() 123 while (i--) in __ns_ldap_trydoorcall_getfd() [all …]
|
| /illumos-gate/usr/src/man/man5/ |
| H A D | loader.conf.5 | 70 .Bl -tag -width Ar 91 command and is automatically removed when system is reaching the multi-user 98 .Bl -bullet 123 .Bl -tag -width Ar 124 .It Ar exec 141 .It Ar boot-args 144 Protect boot menu with a password without interrupting 157 Provides a password to be required by check-password before execution is 199 .Bl -tag -width bootfile -offset indent 203 - [all …]
|
| /illumos-gate/usr/src/lib/libtsol/common/ |
| H A D | call_labeld.c | 56 * 2) Set the close on exec flags so descriptor remains available 66 * closed it underneath us or where the nscd dies or re-execs itself 67 * and we're a multi-threaded application. Note that we cannot protect 68 * the application if it closes the fd and it is multi-threaded. 81 * Returns 0 if the door call reached the server, -1 if contact was not made. 91 static int doorfd = -1; in __call_labeld() 118 if (doorfd == -1) { in __call_labeld() 131 * dup up the file descriptor if we have 0 - 2 in __call_labeld() 139 while (i--) in __call_labeld() 141 doorfd = -1; in __call_labeld() [all …]
|
| /illumos-gate/usr/src/uts/common/os/ |
| H A D | schedctl.c | 60 * Page handling structures. This is set up as a list of per-page 61 * control structures (sc_page_ctl), with p->p_pagep pointing to 62 * the first. The per-page structures point to the actual pages 65 * All data is protected by p->p_sc_lock. Since this lock is 76 caddr_t spc_uaddr; /* user-level address of the page */ 115 if (t->t_schedctl == NULL) { in schedctl() 125 thread_lock(t); /* protect against ts_tick and ts_update */ in schedctl() 126 t->t_schedctl = ssp; in schedctl() 127 t->t_sc_uaddr = uaddr; in schedctl() 128 ssp->sc_cid = t->t_cid; in schedctl() [all …]
|
| H A D | timers.c | 52 kmutex_t tod_lock; /* protects time-of-day stuff */ 57 * significantly lower may allow for denial-of-service attacks. 67 ((tvp)->tv_sec cmp (tsp)->tv_sec || \ 68 ((tvp)->tv_sec == (tsp)->tv_sec && \ 70 (tvp)->tv_usec * 1000 cmp (tsp)->tv_nsec)) 76 * the time-of-day and per-process interval timers. Subroutines 95 * protect modification of last in uniqtime() 101 * Fast algorithm to convert nsec to usec -- see hrt2ts() in uniqtime() 109 usec = nsec - (usec >> 3); in uniqtime() 133 ((last.tv_sec - sec) <= 5)) { /* not way back in time */ in uniqtime() [all …]
|
| H A D | kcpc.c | 57 int kcpc_cpuctx; /* number of cpu-specific contexts */ 96 #define KCPC_CTX_FLAG_SET(ctx, flag) atomic_or_uint(&(ctx)->kc_flags, (flag)) 97 #define KCPC_CTX_FLAG_CLR(ctx, flag) atomic_and_uint(&(ctx)->kc_flags, ~(flag)) 101 * cross-call or from high-PIL interrupt 126 * Perform one-time initialization of kcpc framework. 140 return (-1); in kcpc_init() 154 * Load platform-specific pcbe module in kcpc_init() 158 return (kcpc_pcbe_error == 0 ? 0 : -1); in kcpc_init() 165 cpc_ncounters = pcbe_ops->pcbe_ncounters(); in kcpc_register_pcbe() 196 ctx->kc_cpuid = cpuid; in kcpc_bind_cpu() [all …]
|
| H A D | fork.c | 104 curthread->t_post_sys = 1; /* so vfwait() will be called */ in vfork() 109 * forksys system call - forkx, forkallx, vforkx. This is the 121 curthread->t_post_sys = 1; /* so vfwait() will be called */ in forksys() 138 orphpp = &pp->p_orphan; in disown_proc() 140 orphpp = &(*orphpp)->p_nextorph; in disown_proc() 141 *orphpp = cp->p_nextorph; in disown_proc() 143 if (pp->p_child == cp) in disown_proc() 144 pp->p_child = cp->p_sibling; in disown_proc() 145 if (cp->p_sibling) in disown_proc() 146 cp->p_sibling->p_psibling = cp->p_psibling; in disown_proc() [all …]
|
| /illumos-gate/usr/src/tools/scripts/ |
| H A D | ws.1onbld | 27 \- enable SunOS avocet environments 30 [-e] [workspace_name] 57 ENVCPPFLAGS{1-4} 58 ENVLDLIBS{1-3} 65 The ENVCPPFLAGS{1-4} and the ENVLDLIBS{1-3} environment variables 88 start-up file (eg: .cshrc) then that will undo what what 90 has done. If you do this in your shell start-up script, 91 conditionally protect 106 .B \-e 107 prevent ws from calling exit or exec, useful for setting environment in [all …]
|
| /illumos-gate/usr/src/cmd/truss/ |
| H A D | actions.c | 66 const lwpstatus_t *Lsp = pri->lwpstat; in report_sleeping() 67 int sys = Lsp->pr_syscall; in report_sleeping() 70 !(Lsp->pr_flags & (PR_ASLEEP|PR_VFORKP))) { in report_sleeping() 76 pri->length = 0; in report_sleeping() 77 pri->Errno = 0; in report_sleeping() 78 pri->ErrPriv = PRIV_NONE; in report_sleeping() 79 pri->Rval1 = pri->Rval2 = 0; in report_sleeping() 84 pri->length += printf("%s", pri->sys_string); in report_sleeping() 85 pri->sys_leng = 0; in report_sleeping() 86 *pri->sys_string = '\0'; in report_sleeping() [all …]
|
| H A D | main.c | 57 * The user can trace individual threads by using the 'pid/1,3-6,8-' syntax. 108 /* fetch or allocate thread-private data */ 120 pri->sys_path = my_malloc(pri->sys_psize = 16, NULL); in get_private() 121 pri->sys_string = my_malloc(pri->sys_ssize = 32, NULL); in get_private() 128 /* destructor function for thread-private data */ 134 if (pri->sys_path) in free_private() 135 free(pri->sys_path); in free_private() 136 if (pri->sys_string) in free_private() 137 free(pri->sys_string); in free_private() 138 if (pri->exec_string) in free_private() [all …]
|
| /illumos-gate/usr/src/uts/common/sys/ |
| H A D | proc.h | 77 id_t le_lwpid; /* its lwpid (t->t_tid) */ 95 * Elements of the lwp directory, p->p_lwpdir[]. 103 * p->p_lwpfree, linked through ld_next. If ld_entry != NULL, the 104 * entry is used and ld_next is the thread-id hash link pointer. 112 * Element of the p_tidhash thread-id (lwpid) hash table. 138 * out. Other per-process data (user.h) is also inside the proc structure. 139 * Lightweight-process data (lwp.h) and the kernel stack may be swapped out. 184 uint_t p_proc_flag; /* /proc-related flags */ 211 * Special per-process flag when set will fix misaligned memory 266 * Microstate accounting, resource usage, and real-time profiling [all …]
|
| /illumos-gate/usr/src/uts/common/fs/smbsrv/ |
| H A D | smb_tree.c | 31 * ------------------------- 36 * +-------------------+ 38 * +-------------------+ 42 * +-------------------+ +-------------------+ +-------------------+ 43 * | SESSION |<----->| SESSION |......| SESSION | 44 * +-------------------+ +-------------------+ +-------------------+ 48 * | +-------------------+ +-------------------+ +-------------------+ 49 * | | USER |<--->| USER |...| USER | 50 * | +-------------------+ +-------------------+ +-------------------+ 54 * +-------------------+ +-------------------+ +-------------------+ [all …]
|
| /illumos-gate/usr/src/lib/libc/port/gen/ |
| H A D | getxby_door.c | 49 /* nss<->door hints */ 53 static int proc_is_cache = -1; 55 /* library<->nscd door interaction apis */ 66 * 2) Set the close on exec flags so descriptor remains available 76 * closed it underneath us or where the nscd dies or re-execs itself 77 * and we're a multi-threaded application. Note that we cannot protect 78 * the application if it closes the fd and it is multi-threaded. 91 * Returns 0 if the door call reached the server, -1 if contact was not made. 111 { -1, DEFAULTMUTEX, { 0 } }, /* front (fattached) door */ 112 { -1, DEFAULTMUTEX, { 0 } }, /* back (private) door */ [all …]
|
| /illumos-gate/usr/src/uts/common/fs/zfs/sys/ |
| H A D | zfs_znode.h | 26 * Copyright 2022-2023 Racktop Systems, Inc. 88 VERIFY(0 == sa_update(zp->z_sa_hdl, SA_ZPL_FLAGS(zp->z_zfsvfs), \ 103 #define ZFS_NO_EXECS_DENIED 0x100 /* exec was given to everyone */ 105 #define SA_ZPL_ATIME(z) z->z_attr_table[ZPL_ATIME] 106 #define SA_ZPL_MTIME(z) z->z_attr_table[ZPL_MTIME] 107 #define SA_ZPL_CTIME(z) z->z_attr_table[ZPL_CTIME] 108 #define SA_ZPL_CRTIME(z) z->z_attr_table[ZPL_CRTIME] 109 #define SA_ZPL_GEN(z) z->z_attr_table[ZPL_GEN] 110 #define SA_ZPL_DACL_ACES(z) z->z_attr_table[ZPL_DACL_ACES] 111 #define SA_ZPL_XATTR(z) z->z_attr_table[ZPL_XATTR] [all …]
|
| /illumos-gate/usr/src/cmd/logadm/ |
| H A D | tester | 1 #!/usr/bin/perl -w 27 # tester - run logadm tests 34 # tester [-f] <bindir> 37 # tester [-f] <bindir> globtest1 luttest1 40 # tester [-f] -s globtest1 <bindir> 48 # -f means "fast" -- without it, watchmalloc(3MALLOC) is setup for 102 $usage_summary = '[-s test-name] [-d dir] bindir [test-name...]'; 118 warn " -$_ $usage{$_}\n"; 130 usage("$bindir does not exist") unless -d $bindir; 131 usage("cannot list more than one test with -s option") if $opt_s && @ARGV; [all …]
|
| /illumos-gate/usr/src/uts/i86pc/ml/ |
| H A D | syscall_asm_amd64.S | 53 * - syscall/sysretq (amd64 generic) 54 * - syscall/sysretl (i386 plus SYSC bit) 55 * - sysenter/sysexit (i386 plus SEP bit) 56 * - int/iret (i386 generic) 57 * - lcall/iret (i386 generic) 64 * segment-not-present trap, i.e. lcalls are extremely slow(!). 66 * The basic pattern used in the 32-bit SYSC handler at this point in time is 70 * The 64-bit handler is much closer to the sparcv9 handler; that's 71 * because of passing arguments in registers. The 32-bit world still 72 * passes arguments on the stack -- that makes that handler substantially [all …]
|
| /illumos-gate/usr/src/cmd/svc/configd/ |
| H A D | configd.c | 57 * as managing its door thread pool and per-thread datastructures. 59 * 1. Per-thread Datastructures 60 * ----------------------------- 69 * Threads access their per-thread data using thread_self() 74 * ------------------------------ 84 * at a time -- this logic is handled in reserve_new_thread(). This keeps 92 int num_servers; /* number in-progress or running */ 101 static int privileged_psinfo_fd = -1; 120 * wish to have per-CPU magazines to reduce our memory footprint. And in _umem_options_init() 121 * as with svc.startd, if svc.configd is so MT-hot that this becomes a in _umem_options_init() [all …]
|
| /illumos-gate/usr/src/grub/grub-0.97/ |
| H A D | config.status.solaris | 10 SHELL=${CONFIG_SHELL-/bin/bash} 11 ## --------------------- ## 13 ## --------------------- ## 16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21 alias -g '${1+"$@"}'='"$@"' 22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 23 set -o posix 35 # Work around bugs in pre-3.0 UWIN ksh. 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 99 rm -f conf$$.sh [all …]
|
| H A D | configure | 2 # Guess values for system-dependent variables and create Makefiles. 5 # Report bugs to <bug-grub@gnu.org>. 10 ## --------------------- ## 12 ## --------------------- ## 15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 20 alias -g '${1+"$@"}'='"$@"' 21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22 set -o posix 34 # Work around bugs in pre-3.0 UWIN ksh. 46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then [all …]
|
| /illumos-gate/usr/src/uts/common/exec/elf/ |
| H A D | elf.c | 53 #include <sys/exec.h> 99 /* Link against the non-compat instances when compiling the 32-bit version. */ 117 ASSERT(phdrp->p_type == PT_SUNWDTRACE); in dtrace_safe_phdr() 123 if (phdrp->p_memsz < PT_SUNWDTRACE_SIZE || in dtrace_safe_phdr() 124 (phdrp->p_flags & (PF_R | PF_W | PF_X)) != (PF_R | PF_W | PF_X)) in dtrace_safe_phdr() 125 return (-1); in dtrace_safe_phdr() 127 args->thrptr = phdrp->p_vaddr + base; in dtrace_safe_phdr() 146 if (secflag_isset(p->p_secflags.psf_lower, flag)) in handle_secflag_dt() 149 secflag_isset(p->p_secflags.psf_inherit, flag)) in handle_secflag_dt() 152 secflag_clear(&p->p_secflags.psf_effective, flag); in handle_secflag_dt() [all …]
|