/illumos-gate/usr/src/contrib/ast/src/lib/libast/disc/ |
H A D | sfdcsubstr.c | 52 reg Subfile_t *su; local 56 su = (Subfile_t*)disc; 59 if(su->extent >= 0 && (ssize_t)n > (io = (ssize_t)(su->extent - su->here)) ) 68 here = su->here + su->offset; 76 su->here += io; 121 reg Subfile_t* su; local 124 su = (Subfile_t*)disc; 132 here = su->here; 135 if(su->extent >= 0) 136 here = su->extent; [all …]
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | svc_dg.c | 98 struct svc_dg_data *su = xprt ? get_svc_dg_data(xprt) : NULL; in svc_dg_xprtfree() local 111 if (su != NULL) { in svc_dg_xprtfree() 112 XDR_DESTROY(&(su->su_xdrs)); in svc_dg_xprtfree() 113 free(su); in svc_dg_xprtfree() 124 struct svc_dg_data *su = NULL; in svc_dg_create_private() local 154 su = malloc(sizeof (*su) + ucred_sz); in svc_dg_create_private() 155 if (su == NULL) in svc_dg_create_private() 157 su->su_iosz = ((MAX(sendsize, recvsize) + 3) / 4) * 4; in svc_dg_create_private() 158 if ((rpc_buffer(xprt) = malloc(su->su_iosz)) == NULL) in svc_dg_create_private() 160 xdrmem_create(&(su->su_xdrs), rpc_buffer(xprt), su->su_iosz, in svc_dg_create_private() [all …]
|
H A D | svc_door.c | 185 struct svc_door_data *su = su_data(xprt); in svc_door_dispatch() local 203 if (su->call_info.prognum == r->rq_prog && su->call_info.versnum == in svc_door_dispatch() 205 (*su->call_info.dispatch)(r, xprt); in svc_door_dispatch() 213 if (su->call_info.prognum == r->rq_prog) in svc_door_dispatch() 214 svcerr_progvers(xprt, su->call_info.versnum, in svc_door_dispatch() 215 su->call_info.versnum); in svc_door_dispatch() 235 struct svc_door_data *su; in door_server() local 270 su = su_data(xprt); in door_server() 271 su->argbuf = argp; in door_server() 272 su->arglen = arg_size; in door_server() [all …]
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb2_read.c | 49 smb_xuio_t *su; in smb_xuio_alloc() local 51 su = kmem_zalloc(sizeof (*su), KM_SLEEP); in smb_xuio_alloc() 52 su->su_node = node; in smb_xuio_alloc() 60 su->su_ref = 1; in smb_xuio_alloc() 61 su->su_xuio.xu_type = UIOTYPE_ZEROCOPY; in smb_xuio_alloc() 63 return (su); in smb_xuio_alloc() 75 smb_xuio_t *su = (smb_xuio_t *)varg; in smb_xuio_free() local 76 xuio_t *xu = &su->su_xuio; in smb_xuio_free() 78 ref = atomic_dec_uint_nv(&su->su_ref); in smb_xuio_free() 84 (void) smb_fsop_retzcbuf(su->su_node, xu, CRED()); in smb_xuio_free() [all …]
|
/illumos-gate/usr/src/ucblib/librpcsoc/ |
H A D | svc_udp.c | 109 register struct svcudp_data *su; local 141 su = (struct svcudp_data *)mem_alloc(sizeof (*su)); 142 if (su == NULL) { 149 su->su_iosz = ((MAX(sendsz, recvsz) + 3) / 4) * 4; 150 if ((rpc_buffer(xprt) = (char *)mem_alloc(su->su_iosz)) == NULL) { 152 mem_free((char *) su, sizeof (*su)); 159 &(su->su_xdrs), rpc_buffer(xprt), su->su_iosz, XDR_DECODE); 160 su->su_cache = NULL; 161 xprt->xp_p2 = (caddr_t)su; 163 xprt->xp_verf.oa_base = su->su_verfbody; [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/privilege/ |
H A D | privilege_001_pos.ksh | 65 log_mustnot su $ZFS_USER -c "zpool create $TESTPOOL $DISKS" 66 log_mustnot su $ZFS_USER -c "pfexec zpool create $TESTPOOL $DISKS" 70 log_must su $ZFS_USER -c "pfexec zpool create -f $TESTPOOL $DISKS" 73 log_mustnot su $ZFS_USER -c "zfs create $TESTPOOL/fs" 77 log_must su $ZFS_USER -c "pfexec zfs create $TESTPOOL/fs" 84 log_mustnot su $ZFS_USER -c "zpool destroy $TESTPOOL" 85 log_must su $ZFS_USER -c "pfexec zpool destroy $TESTPOOL" 89 log_mustnot su $ZFS_USER -c "pfexec zpool create -f $TESTPOOL $DISKS"
|
H A D | privilege_002_pos.ksh | 76 log_mustnot su $ZFS_USER -c "zfs create $DATASET/zfsprivfs" 82 log_mustnot su $ZFS_USER -c "zfs create $DATASET/zfsprivfs" 83 log_must su $ZFS_USER -c "pfexec zfs create $DATASET/zfsprivfs" 86 log_mustnot su $ZFS_USER -c "zpool destroy $DATASET" 87 log_mustnot su $ZFS_USER -c "pfexec zpool destroy $DATASET" 93 log_mustnot su $ZFS_USER -c "zfs create $DATASET/zfsprivfs2" 94 log_mustnot su $ZFS_USER -c "pfexec zfs create $DATASET/zfsprivfs2" 98 log_must su $ZFS_USER -c "pfexec zfs destroy $DATASET/zfsprivfs"
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | tbl_html.c | 52 html_tbl_sulen(const struct roffsu *su, void *arg) in html_tbl_sulen() argument 54 if (su->scale < 0.0) in html_tbl_sulen() 57 switch (su->unit) { in html_tbl_sulen() 59 return su->scale * 65536.0 / 24.0; in html_tbl_sulen() 61 return su->scale * 10.0; in html_tbl_sulen() 63 return su->scale * 10.0 / 2.54; in html_tbl_sulen() 66 return su->scale * 10.0 / 6.0; in html_tbl_sulen() 69 return su->scale; in html_tbl_sulen() 71 return su->scale * 10.0 / 6.0 / 12.0; in html_tbl_sulen() 73 return su->scale / 24.0; in html_tbl_sulen() [all …]
|
H A D | roff_term.c | 161 struct roffsu su; in roff_term_pre_po() local 170 a2roffsu(n->child->string, &su, SCALE_EM) != NULL) { in roff_term_pre_po() 171 ponew = term_hen(p, &su); in roff_term_pre_po() 191 struct roffsu su; in roff_term_pre_sp() local 195 if (a2roffsu(n->child->string, &su, SCALE_VS) == NULL) in roff_term_pre_sp() 196 su.scale = 1.0; in roff_term_pre_sp() 197 len = term_vspan(p, &su); in roff_term_pre_sp() 221 struct roffsu su; in roff_term_pre_ti() local 240 if (a2roffsu(cp, &su, SCALE_EM) == NULL) in roff_term_pre_ti() 242 len = term_hen(p, &su); in roff_term_pre_ti()
|
H A D | term_ascii.c | 261 ascii_hspan(const struct termp *p, const struct roffsu *su) in ascii_hspan() argument 265 switch (su->unit) { in ascii_hspan() 267 r = su->scale; in ascii_hspan() 270 r = su->scale * 240.0 / 2.54; in ascii_hspan() 273 r = su->scale * 65536.0; in ascii_hspan() 276 r = su->scale * 240.0; in ascii_hspan() 279 r = su->scale * 0.24; in ascii_hspan() 283 r = su->scale * 40.0; in ascii_hspan() 286 r = su->scale * 10.0 / 3.0; in ascii_hspan() 290 r = su->scale * 24.0; in ascii_hspan()
|
H A D | term.c | 524 struct roffsu su; in term_word() local 635 if (a2roffsu(seq, &su, SCALE_EM) == NULL) in term_word() 637 uc += term_hen(p, &su); in term_word() 656 if ((cp = a2roffsu(seq, &su, SCALE_EM)) == NULL) in term_word() 658 uc = term_hen(p, &su); in term_word() 871 struct roffsu su; in term_setwidth() local 889 if (a2roffsu(wstr, &su, SCALE_MAX) != NULL) in term_setwidth() 890 width = term_hspan(p, &su); in term_setwidth() 1050 term_vspan(const struct termp *p, const struct roffsu *su) in term_vspan() argument 1055 switch (su->unit) { in term_vspan() [all …]
|
H A D | term_tab.c | 45 struct roffsu su; in term_tab_set() local 56 a2roffsu(".8i", &su, SCALE_IN); in term_tab_set() 57 tabs.d = term_hen(p, &su); in term_tab_set() 73 if (a2roffsu(arg, &su, SCALE_EM) == NULL) in term_tab_set() 86 pos = term_hen(p, &su); in term_tab_set()
|
H A D | man_term.c | 271 struct roffsu su; in pre_PD() local 279 if (a2roffsu(n->string, &su, SCALE_VS) != NULL) in pre_PD() 280 mt->pardist = term_vspan(p, &su); in pre_PD() 362 struct roffsu su; in pre_in() local 384 if (a2roffsu(++cp, &su, SCALE_EN) == NULL) in pre_in() 387 v = term_hen(p, &su); in pre_in() 413 struct roffsu su; in pre_HP() local 440 a2roffsu(nn->string, &su, SCALE_EN) != NULL) { in pre_HP() 441 len = term_hen(p, &su); in pre_HP() 507 struct roffsu su; in pre_IP() local [all …]
|
H A D | term_ps.c | 1297 ps_hspan(const struct termp *p, const struct roffsu *su) in ps_hspan() argument 1305 switch (su->unit) { in ps_hspan() 1314 r = PNT2AFM(p, su->scale * 72.0 / 240.0); in ps_hspan() 1317 r = PNT2AFM(p, su->scale * 72.0 / 2.54); in ps_hspan() 1320 r = su->scale * in ps_hspan() 1324 r = su->scale * in ps_hspan() 1328 r = PNT2AFM(p, su->scale * 72.0); in ps_hspan() 1331 r = su->scale * in ps_hspan() 1335 r = PNT2AFM(p, su->scale * 12.0); in ps_hspan() 1338 r = PNT2AFM(p, su->scale * 1.0); in ps_hspan() [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/acl/nontrivial/ |
H A D | zfs_acl_chmod_owner_001_pos.ksh | 128 su $user -c "chown $expect_owner $node" 164 su $user -c "chgrp $expect_group $node" 281 log_must su $user -c "chmod A+$flag:$acl_t $node" 288 log_must su $user -c "chmod A0- $node" 305 log_must su $user -c "touch $file" 306 log_must su $user -c "chmod 444 $file" 307 log_must su $user -c "mkdir -p $dir" 308 log_must su $user -c "chmod 444 $dir" 309 log_must su $user -c "chmod 555 $base_node"
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/acl/cifs/ |
H A D | cifs_attr_002_pos.ksh | 83 log_mustnot su $user -c "$cmd" 87 log_must su $user -c "$cmd" 89 log_mustnot su $user -c "$cmd" 93 log_must su $user -c "$cmd" 95 log_must su $user -c "$cmd" 97 log_mustnot su $user -c "$cmd"
|
/illumos-gate/usr/src/cmd/su/ |
H A D | su.dfl | 27 # SULOG determines the location of the file used to log all su attempts 31 # CONSOLE determines whether attempts to su to root should be logged 45 # to log all su attempts. LOG_NOTICE messages are generated for su's to 46 # root, LOG_INFO messages are generated for su's to other users, and LOG_CRIT 47 # messages are generated for failed su attempts.
|
H A D | Makefile | 30 PROG = su 31 ROOTFS_PROG = su.static 32 DEFAULTFILES = su.dfl
|
H A D | su.c | 149 char su[PATH_MAX] = "su"; /* arg0 for exec of shprog */ variable 495 (void) strcpy(su, eflag ? "-" : ""); in main() 498 (void) strlcat(su, p + 1, sizeof (su)); in main() 500 (void) strlcat(su, pshell, sizeof (su)); in main() 503 (void) strcpy(su, eflag ? "-su" : "su"); in main() 689 argv[1] = su; in main() 692 (void) execl(pshell, su, 0); in main() 707 (void) strcpy(su, "-sh"); in main() 711 (void) strcpy(su, "sh"); in main() 715 argv[1] = su; in main() [all …]
|
/illumos-gate/usr/src/uts/sparc/os/ |
H A D | minor_perm | 5 su:[a-z] 0666 root sys 6 su:[a-z],cu 0600 uucp uucp 7 su:ssp 0600 root sys 8 su:sspctl 0600 root sys
|
/illumos-gate/usr/src/cmd/ypcmd/ |
H A D | ypserv_resolv_common.c | 82 struct svc_dg_data *su = get_svc_dg_data(xprt); in svc_getxid() local 83 if (su == NULL) in svc_getxid() 86 return (su->su_xid); in svc_getxid()
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | un.h | 78 #define SUN_LEN(su) (sizeof (sa_family_t) + strlen((su)->sun_path)) argument
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | sidsys.c | 44 uid_t su = 0; in allocids() local 73 err = eph_uid_alloc(zone, flag, &su, nuids); in allocids() 80 r.r_val1 = su; in allocids()
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/xattr/ |
H A D | xattr_003_neg.ksh | 59 log_mustnot su $ZFS_USER -c "runat $TESTDIR/myfile.$$ cat passwd" 60 log_mustnot su $ZFS_USER -c "runat $TESTDIR/myfile.$$ cp /etc/passwd ."
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | route.c | 288 static void sodump(su_t *su, char *which); 2044 su_t *su; in getaddr() local 2060 su = &rcip->ri_dst; in getaddr() 2061 su->sa.sa_family = rcip->ri_af; in getaddr() 2065 su = &rcip->ri_gate; in getaddr() 2066 su->sa.sa_family = rcip->ri_af; in getaddr() 2069 su = &rcip->ri_mask; in getaddr() 2070 su->sa.sa_family = rcip->ri_af; in getaddr() 2080 su = &rcip->ri_ifa; in getaddr() 2081 su->sa.sa_family = rcip->ri_af; in getaddr() [all …]
|