shp               668 compat/hpux/hpux_compat.c 	struct shmid_ds *shp;
shp               674 compat/hpux/hpux_compat.c 	if ((shp = shm_find_segment_by_shmid(SCARG(uap, shmid))) == NULL)
shp               681 compat/hpux/hpux_compat.c 		if (cred->cr_uid && cred->cr_uid != shp->shm_perm.uid &&
shp               682 compat/hpux/hpux_compat.c 		    cred->cr_uid != shp->shm_perm.cuid)
shp               689 compat/hpux/hpux_compat.c 		error = ipcperm(cred, &shp->shm_perm, IPC_R);
shp               691 compat/hpux/hpux_compat.c 			sbuf.shm_perm.uid = shp->shm_perm.uid;
shp               692 compat/hpux/hpux_compat.c 			sbuf.shm_perm.gid = shp->shm_perm.gid;
shp               693 compat/hpux/hpux_compat.c 			sbuf.shm_perm.cuid = shp->shm_perm.cuid;
shp               694 compat/hpux/hpux_compat.c 			sbuf.shm_perm.cgid = shp->shm_perm.cgid;
shp               695 compat/hpux/hpux_compat.c 			sbuf.shm_perm.mode = shp->shm_perm.mode;
shp               696 compat/hpux/hpux_compat.c 			sbuf.shm_perm.seq = shp->shm_perm.seq;
shp               697 compat/hpux/hpux_compat.c 			sbuf.shm_perm.key = shp->shm_perm.key;
shp               698 compat/hpux/hpux_compat.c 			sbuf.shm_segsz = shp->shm_segsz;
shp               699 compat/hpux/hpux_compat.c 			sbuf.shm_ptbl = shp->shm_internal;	/* XXX */
shp               700 compat/hpux/hpux_compat.c 			sbuf.shm_lpid = shp->shm_lpid;
shp               701 compat/hpux/hpux_compat.c 			sbuf.shm_cpid = shp->shm_cpid;
shp               702 compat/hpux/hpux_compat.c 			sbuf.shm_nattch = shp->shm_nattch;
shp               703 compat/hpux/hpux_compat.c 			sbuf.shm_cnattch = shp->shm_nattch;	/* XXX */
shp               704 compat/hpux/hpux_compat.c 			sbuf.shm_atime = shp->shm_atime;
shp               705 compat/hpux/hpux_compat.c 			sbuf.shm_dtime = shp->shm_dtime;
shp               706 compat/hpux/hpux_compat.c 			sbuf.shm_ctime = shp->shm_ctime;
shp               715 compat/hpux/hpux_compat.c 		if (cred->cr_uid && cred->cr_uid != shp->shm_perm.uid &&
shp               716 compat/hpux/hpux_compat.c 		    cred->cr_uid != shp->shm_perm.cuid) {
shp               721 compat/hpux/hpux_compat.c 			shp->shm_perm.uid = sbuf.shm_perm.uid;
shp               722 compat/hpux/hpux_compat.c 			shp->shm_perm.gid = sbuf.shm_perm.gid;
shp               723 compat/hpux/hpux_compat.c 			shp->shm_perm.mode = (shp->shm_perm.mode & ~0777)
shp               725 compat/hpux/hpux_compat.c 			shp->shm_ctime = time_second;
shp               490 compat/ibcs2/ibcs2_exec.c 	struct coff_scnhdr sh, *shp = &sh;
shp               523 compat/ibcs2/ibcs2_exec.c 	error = coff_find_section(p, nd.ni_vp, fhp, shp, COFF_STYP_TEXT);
shp               531 compat/ibcs2/ibcs2_exec.c 	taddr = COFF_ALIGN(shp->s_vaddr);
shp               532 compat/ibcs2/ibcs2_exec.c 	offset = shp->s_scnptr - (shp->s_vaddr - taddr);
shp               533 compat/ibcs2/ibcs2_exec.c 	tsize = shp->s_size + (shp->s_vaddr - taddr);
shp               540 compat/ibcs2/ibcs2_exec.c 	error = coff_find_section(p, nd.ni_vp, fhp, shp, COFF_STYP_DATA);
shp               548 compat/ibcs2/ibcs2_exec.c 	daddr = COFF_ALIGN(shp->s_vaddr);
shp               549 compat/ibcs2/ibcs2_exec.c 	offset = shp->s_scnptr - (shp->s_vaddr - daddr);
shp               550 compat/ibcs2/ibcs2_exec.c 	dsize = shp->s_size + (shp->s_vaddr - daddr);
shp               559 compat/ibcs2/ibcs2_exec.c 	error = coff_find_section(p, nd.ni_vp, fhp, shp, COFF_STYP_BSS);
shp               562 compat/ibcs2/ibcs2_exec.c 		int bsize = daddr + dsize + shp->s_size - baddr;
shp               106 ddb/db_elf.c   	Elf_Shdr *shp;
shp               157 ddb/db_elf.c   	shp = (Elf_Shdr *)((char *)symtab + elf->e_shoff);
shp               158 ddb/db_elf.c   	shstrtab = (char *)symtab + shp[elf->e_shstrndx].sh_offset;
shp               160 ddb/db_elf.c   		if (shp[i].sh_type == SHT_SYMTAB) {
shp               163 ddb/db_elf.c   			if (shp[i].sh_offset == 0)
shp               166 ddb/db_elf.c   			    shp[i].sh_offset);
shp               168 ddb/db_elf.c   			    shp[i].sh_offset + shp[i].sh_size);
shp               169 ddb/db_elf.c   			j = shp[i].sh_link;
shp               170 ddb/db_elf.c   			if (shp[j].sh_offset == 0)
shp               172 ddb/db_elf.c   			strtab_start = (char *)symtab + shp[j].sh_offset;
shp               173 ddb/db_elf.c   			strtab_end = (char *)symtab + shp[j].sh_offset +
shp               174 ddb/db_elf.c   			    shp[j].sh_size;
shp               182 ddb/db_elf.c   		if (strcmp(".strtab", shstrtab+shp[i].sh_name) == 0) {
shp               183 ddb/db_elf.c   			strtab_start = (char *)symtab + shp[i].sh_offset;
shp               184 ddb/db_elf.c   			strtab_end = (char *)symtab + shp[i].sh_offset +
shp               185 ddb/db_elf.c   			    shp[i].sh_size;
shp               186 ddb/db_elf.c   		} else if (strcmp(".symtab", shstrtab+shp[i].sh_name) == 0) {
shp               188 ddb/db_elf.c   			    shp[i].sh_offset);
shp               190 ddb/db_elf.c   			    shp[i].sh_offset + shp[i].sh_size);
shp               235 ddb/db_elf.c   	Elf_Shdr *shp = STAB_TO_SHDR(stab, elf);
shp               239 ddb/db_elf.c   	shstrtab = (char *)elf + shp[elf->e_shstrndx].sh_offset;
shp               241 ddb/db_elf.c   		if (shp[i].sh_type == SHT_SYMTAB)
shp               242 ddb/db_elf.c   			return ((char *)elf + shp[shp[i].sh_link].sh_offset);
shp               243 ddb/db_elf.c   		if (strcmp(".strtab", shstrtab+shp[i].sh_name) == 0)
shp               244 ddb/db_elf.c   			return ((char *)elf + shp[i].sh_offset);
shp              2248 dev/pci/if_de.c     const tulip_srom_header_t *shp = (tulip_srom_header_t *) &sc->tulip_rombuf[0];
shp              2249 dev/pci/if_de.c     const tulip_srom_adapter_info_t *saip = (tulip_srom_adapter_info_t *) (shp + 1);
shp              2255 dev/pci/if_de.c     for (idx1 = 0; idx1 < shp->sh_adapter_count; idx1++, saip++) {
shp              2256 dev/pci/if_de.c 	if (shp->sh_adapter_count == 1)
shp              2264 dev/pci/if_de.c     if (idx1 == shp->sh_adapter_count)
shp              2270 dev/pci/if_de.c     bcopy((caddr_t) shp->sh_ieee802_address, (caddr_t) sc->tulip_enaddr,
shp                80 lib/libsa/loadfile_elf.c 	Elf_Shdr *shp;
shp               175 lib/libsa/loadfile_elf.c 		shp = ALLOC(sz);
shp               177 lib/libsa/loadfile_elf.c 		if (read(fd, shp, sz) != sz) {
shp               179 lib/libsa/loadfile_elf.c 			FREE(shp, sz);
shp               194 lib/libsa/loadfile_elf.c 			if (shp[i].sh_type == SHT_SYMTAB)
shp               198 lib/libsa/loadfile_elf.c 			if (shp[i].sh_type == SHT_SYMTAB ||
shp               199 lib/libsa/loadfile_elf.c 			    shp[i].sh_type == SHT_STRTAB) {
shp               202 lib/libsa/loadfile_elf.c 					    (u_long)shp[i].sh_size));
shp               203 lib/libsa/loadfile_elf.c 					if (lseek(fd, (off_t)shp[i].sh_offset,
shp               206 lib/libsa/loadfile_elf.c 						FREE(shp, sz);
shp               209 lib/libsa/loadfile_elf.c 					if (READ(fd, maxp, shp[i].sh_size) !=
shp               210 lib/libsa/loadfile_elf.c 					    shp[i].sh_size) {
shp               212 lib/libsa/loadfile_elf.c 						FREE(shp, sz);
shp               216 lib/libsa/loadfile_elf.c 				maxp += roundup(shp[i].sh_size,
shp               218 lib/libsa/loadfile_elf.c 				shp[i].sh_offset = off;
shp               219 lib/libsa/loadfile_elf.c 				off += roundup(shp[i].sh_size, sizeof(long));
shp               224 lib/libsa/loadfile_elf.c 			BCOPY(shp, shpp, sz);
shp               229 lib/libsa/loadfile_elf.c 		FREE(shp, sz);
shp               710 net/if_strip.c 	struct st_header *shp;
shp               824 net/if_strip.c 	shp = mtod(m, struct st_header *);
shp               825 net/if_strip.c 	bcopy((caddr_t)"SIP0", (caddr_t)shp->starmode_type,
shp               826 net/if_strip.c 		sizeof(shp->starmode_type));
shp               828 net/if_strip.c  	bcopy((caddr_t)dldst, (caddr_t)shp->starmode_addr,
shp               829 net/if_strip.c 		sizeof (shp->starmode_addr));