Home
last modified time | relevance | path

Searched refs:st_size (Results 1 – 25 of 465) sorted by relevance

12345678910>>...19

/titanic_44/usr/src/lib/libdtrace/sparc/
H A Ddt_isadep.c58 ftp->ftps_size = (size_t)symp->st_size; in dt_pid_create_entry_probe()
80 if ((text = malloc(symp->st_size + 4)) == NULL) { in dt_pid_create_return_probe()
85 if (Pread(P, text, symp->st_size, symp->st_value) != symp->st_size) { in dt_pid_create_return_probe()
95 text[symp->st_size / 4] = 0; in dt_pid_create_return_probe()
99 ftp->ftps_size = symp->st_size; in dt_pid_create_return_probe()
102 for (i = 0; i < symp->st_size / 4; i++) { in dt_pid_create_return_probe()
183 if ((uintptr_t)dst >= (uintptr_t)symp->st_size) in dt_pid_create_return_probe()
246 (uintptr_t)symp->st_size) { in dt_pid_create_return_probe()
286 ftp->ftps_size = (size_t)symp->st_size; in dt_pid_create_offset_probe()
308 ftp->ftps_size = (size_t)symp->st_size; in dt_pid_create_glob_offset_probes()
[all …]
/titanic_44/usr/src/lib/libdtrace/i386/
H A Ddt_isadep.c66 ftp->ftps_size = (size_t)symp->st_size; in dt_pid_create_entry_probe()
137 if ((text = calloc(1, symp->st_size + 4)) == NULL) { in dt_pid_create_return_probe()
142 if (Pread(P, text, symp->st_size, symp->st_value) != symp->st_size) { in dt_pid_create_return_probe()
150 ftp->ftps_size = (size_t)symp->st_size; in dt_pid_create_return_probe()
227 if (size == 5 && text[i] == DT_JMP32 && symp->st_size <= in dt_pid_create_return_probe()
232 if (size == 2 && text[i] == DT_JMP8 && symp->st_size <= in dt_pid_create_return_probe()
238 symp->st_size <= in dt_pid_create_return_probe()
243 if (size == 2 && DT_ISJ8(text[i]) && symp->st_size <= in dt_pid_create_return_probe()
273 ftp->ftps_size = (size_t)symp->st_size; in dt_pid_create_offset_probe()
285 if ((text = malloc(symp->st_size)) == NULL) { in dt_pid_create_offset_probe()
[all …]
/titanic_44/usr/src/lib/libbc/libc/sys/common/
H A D_stat.c52 long st_size; member
89 buf->st_size = getmodsize(buf->st_size, in bc_fstat()
135 buf->st_size = getmodsize(buf->st_size, in stat_com()
144 buf->st_size = getmodsize(buf->st_size, in stat_com()
188 bsdbuf->st_size = nbuf->st_size; in cpstatbuf()
/titanic_44/usr/src/lib/libgen/common/
H A Dcopylist.c89 *szptr = stbuf.st_size; in copylist64()
91 return (common_copylist(filenm, stbuf.st_size)); in copylist64()
106 if (stbuf.st_size > LONG_MAX) { in copylist()
111 *szptr = (off_t)stbuf.st_size; in copylist()
113 return (common_copylist(filenm, stbuf.st_size)); in copylist()
/titanic_44/usr/src/cmd/sgs/rtld/common/
H A Dlocale.c161 (status.st_size < sizeof (Msghdr))) { in open_mofile()
167 if ((msghdr = (Msghdr *)mmap(0, status.st_size, PROT_READ, MAP_SHARED, in open_mofile()
178 (void) munmap((caddr_t)msghdr, status.st_size); in open_mofile()
186 (void) munmap((caddr_t)msghdr, status.st_size); in open_mofile()
192 if ((size_tot + size_old < status.st_size) && in open_mofile()
193 (size_tot + size_new < status.st_size)) { in open_mofile()
194 (void) munmap((caddr_t)msghdr, status.st_size); in open_mofile()
202 dom->dom_msgsz = status.st_size; in open_mofile()
/titanic_44/usr/src/lib/krb5/kadm5/srv/
H A Dserver_dict.c132 if ((word_block = (char *) malloc(sb.st_size + 1)) == NULL) in init_dict()
134 if (read(fd, word_block, sb.st_size) != sb.st_size) in init_dict()
137 word_block[sb.st_size] = '\0'; in init_dict()
140 len = sb.st_size; in init_dict()
/titanic_44/usr/src/lib/libc/port/locale/
H A Dldpart.c74 if (st.st_size <= 0) { in __part_load_locale()
78 bufsize = namesize + st.st_size; in __part_load_locale()
85 plim = p + st.st_size; in __part_load_locale()
86 if (read(fd, p, (size_t)st.st_size) != st.st_size) in __part_load_locale()
H A Drune.c80 if ((size_t)sb.st_size < sizeof (_FileRuneLocale)) { in _Read_RuneMagi()
87 fdata = mmap(NULL, sb.st_size, PROT_READ, MAP_PRIVATE, fd, 0); in _Read_RuneMagi()
95 lastp = fdata + sb.st_size; in _Read_RuneMagi()
150 (void) munmap(fdata, sb.st_size); in _Read_RuneMagi()
222 (void) munmap(fdata, sb.st_size); in _Read_RuneMagi()
242 (void) munmap(fdata, sb.st_size); in _Read_RuneMagi()
H A Dcollate.c98 if (sbuf.st_size < (COLLATE_STR_LEN + sizeof (info))) { in __lc_collate_load()
103 map = mmap(NULL, sbuf.st_size, PROT_READ, MAP_PRIVATE, fd, 0); in __lc_collate_load()
111 (void) munmap(map, sbuf.st_size); in __lc_collate_load()
123 (void) munmap(map, sbuf.st_size); in __lc_collate_load()
134 if (i != (sbuf.st_size - (TMP - map))) { in __lc_collate_load()
135 (void) munmap(map, sbuf.st_size); in __lc_collate_load()
142 (void) munmap(map, sbuf.st_size); in __lc_collate_load()
147 ldata->l_map_len = sbuf.st_size; in __lc_collate_load()
/titanic_44/usr/src/uts/common/sys/
H A Dstat.h80 off_t st_size; member
97 off_t st_size; member
119 off_t st_size;
141 off64_t st_size; /* large file support */
225 off_t st_size;
252 off_t st_size;
286 off_t st_size;
313 off64_t st_size;
360 off32_t st_size; member
385 off64_t st_size; member
/titanic_44/usr/src/cmd/sgs/prof/common/
H A DsymintLoad.c163 size_t st_size; /* size of symbol table data */ in _symintLoad() local
165 st_size = symdat_pri_p->d_size; in _symintLoad()
167 st_size += symdat_aux_p->d_size; in _symintLoad()
170 prsym_list_p = symlist = (PROF_SYMBOL *)_Malloc(st_size, 1); in _symintLoad()
/titanic_44/usr/src/cmd/sgs/libld/common/
H A Dresolve.c600 } else if ((otype == STT_OBJECT) && (osym->st_size != nsym->st_size)) { in sym_tworeals()
605 EC_XWORD(osym->st_size), ifl->ifl_name, in sym_tworeals()
606 EC_XWORD(nsym->st_size)); in sym_tworeals()
740 } else if (osym->st_size != nsym->st_size) { in sym_realtent()
750 ((otent && (osym->st_size > nsym->st_size)) || in sym_realtent()
751 (ntent && (osym->st_size < nsym->st_size)))) { in sym_realtent()
754 sdp->sd_file->ifl_name, EC_XWORD(osym->st_size), in sym_realtent()
755 ifl->ifl_name, EC_XWORD(nsym->st_size)); in sym_realtent()
764 EC_XWORD(osym->st_size), in sym_realtent()
765 ifl->ifl_name, EC_XWORD(nsym->st_size)); in sym_realtent()
[all …]
/titanic_44/usr/src/cmd/bnu/
H A Dcntrl.c358 (void) sprintf(fsize, "0x%lx", stbuf.st_size); in cntrl()
364 if (((stbuf.st_size-1)/512 + 1) > RemUlimit) { in cntrl()
484 stbuf.st_size = 0L; in cntrl()
492 DEBUG(7, "Dfile length 0x%lx\n", stbuf.st_size); in cntrl()
493 startp = stbuf.st_size - (stbuf.st_size % BUFSIZ); in cntrl()
494 if((stbuf.st_size >= 0) && (startp < 0)) in cntrl()
649 stbuf.st_size = 0; /* for time loop calculation */ in cntrl()
665 if (stbuf.st_size < 0) in cntrl()
666 sprintf(p,", length=0x%lx", stbuf.st_size); in cntrl()
668 sprintf(p,", length=%ld", stbuf.st_size); in cntrl()
[all …]
/titanic_44/usr/src/lib/libpkg/common/
H A Dvfpops.c242 ((a_flags & VFP_NOMALLOC) || statbuf.st_size > MIN_MMAP_SIZE)) { in vfpOpen()
246 vfp->_vfpMapSize = statbuf.st_size; in vfpOpen()
256 vfp->_vfpSize = (statbuf.st_size + pagesize + in vfpOpen()
257 (pagesize-(statbuf.st_size % pagesize))); in vfpOpen()
305 vfp->_vfpSize = statbuf.st_size+pagesize; in vfpOpen()
320 if (statbuf.st_size != 0) { in vfpOpen()
322 statbuf.st_size); in vfpOpen()
323 if (rlen != statbuf.st_size) { in vfpOpen()
337 ((char *)vfp->_vfpStart)[statbuf.st_size] = '\0'; in vfpOpen()
363 vfp->_vfpEnd = (((char *)vfp->_vfpStart) + statbuf.st_size)-1; in vfpOpen()
[all …]
/titanic_44/usr/src/ucblib/libucb/port/gen/
H A Dscandir.c92 arraysz = (stb.st_size / 24); in scandir64()
120 arraysz = stb.st_size / 12; in scandir64()
158 if (stb.st_size > SSIZE_MAX) { in scandir()
162 arraysz = (stb.st_size / 24); in scandir()
190 arraysz = stb.st_size / 12; in scandir()
/titanic_44/usr/src/cmd/mdb/common/modules/libumem/
H A Dmisc.c96 if (mdb_vread(buf, sym.st_size, (uintptr_t)sym.st_value) in umem_readvar()
97 == sym.st_size) in umem_readvar()
98 return ((ssize_t)sym.st_size); in umem_readvar()
/titanic_44/usr/src/cmd/tnf/tnfdump/
H A Dmain.c150 if (st.st_size == 0) { in read_tnf_file()
157 if ((p = mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, fd, 0)) in read_tnf_file()
175 end_p = p + st.st_size; in read_tnf_file()
182 (void) munmap(p, st.st_size); in read_tnf_file()
188 if ((err = tnf_reader_begin(p, st.st_size, &tnf)) != TNF_ERR_NONE) { in read_tnf_file()
191 (void) munmap(p, st.st_size); in read_tnf_file()
210 (void) munmap(p, st.st_size); in read_tnf_file()
/titanic_44/usr/src/psm/stand/boot/sparc/common/
H A Dinetboot.c73 ((virt = create_ramdisk(RD_ROOTFS, st.st_size, NULL)) == NULL)) in read_and_boot_ramdisk()
77 if ((size = xread(fd, (char *)virt, st.st_size)) != st.st_size) { in read_and_boot_ramdisk()
79 "filesize = %ld\n", (long)size, (long)st.st_size); in read_and_boot_ramdisk()
/titanic_44/usr/src/lib/libproc/common/
H A Dproc_get_info.c85 (rv = malloc(statb.st_size)) == NULL || in proc_get_priv()
86 read(fd, rv, statb.st_size) != statb.st_size) { in proc_get_priv()
119 nldt = statb.st_size / sizeof (struct ssd); in proc_get_ldt()
/titanic_44/usr/src/lib/libc/port/gen/
H A Dgetusershell.c147 if ((fstat(fileno(fp), &statb) == -1) || (statb.st_size > LONG_MAX) || in initshells()
148 ((strings = malloc((size_t)statb.st_size + 1)) == NULL)) { in initshells()
152 shells = calloc((size_t)statb.st_size / 3, sizeof (char *)); in initshells()
/titanic_44/usr/src/cmd/dis/
H A Ddis_target.c221 if (syma->se_sym.st_size < symb->se_sym.st_size) in sym_compare()
223 if (syma->se_sym.st_size > symb->se_sym.st_size) in sym_compare()
658 tgt->dt_symcache->se_sym.st_size) { in dis_tgt_lookup()
661 *size = sym->se_sym.st_size; in dis_tgt_lookup()
678 addr < sym->se_sym.st_value + sym->se_sym.st_size && in dis_tgt_lookup()
716 (addr < osym->se_sym.st_value + osym->se_sym.st_size)); in dis_tgt_lookup()
722 *size = sym->se_sym.st_size; in dis_tgt_lookup()
882 (sym->se_sym.st_size == 0) || in dis_tgt_function_iter()
904 (sym->se_sym.st_value + sym->se_sym.st_size) > in dis_tgt_function_iter()
934 return (func->df_sym->se_sym.st_size); in dis_function_size()
/titanic_44/usr/src/lib/libcmdutils/common/
H A Dwritefile.c49 off_t filesize = s1p->st_size; in writefile()
99 if (S_ISREG(s1p->st_mode) && s1p->st_size > SMALLFILESIZE) { in writefile()
106 if (s1p->st_size < mapsize) mapsize = s1p->st_size; in writefile()
/titanic_44/usr/src/lib/libdhcpagent/common/
H A Ddhcp_stable.c73 (duid = malloc(sb.st_size)) != NULL) { in read_stable_duid()
74 retv = read(fd, duid, sb.st_size); in read_stable_duid()
75 if (retv == sb.st_size) { in read_stable_duid()
76 *duidlen = sb.st_size; in read_stable_duid()
/titanic_44/usr/src/cmd/cpio/
H A Dcpiostat.c63 TmpSt->st_size = FromStat->st_size; in stat_to_svr32_stat()
/titanic_44/usr/src/cmd/rcap/rcapd/
H A Drcapd_scanner.c158 *pghpp = malloc(st.st_size); in get_pagedata()
160 debug("cannot malloc() %ld bytes for pagedata", st.st_size); in get_pagedata()
163 (void) bzero(*pghpp, st.st_size); in get_pagedata()
166 if ((res = read(fd, *pghpp, st.st_size)) != st.st_size) { in get_pagedata()
1040 if ((st.st_size % sizeof (*lpc->lpc_xmap)) != 0) { in lpc_xmap_update()
1047 lpc->lpc_xmap = malloc(st.st_size); in lpc_xmap_update()
1049 debug("cannot malloc() %ld bytes for xmap", st.st_size); in lpc_xmap_update()
1055 if ((res = pread(lpc->lpc_xmap_fd, lpc->lpc_xmap, st.st_size, 0)) != in lpc_xmap_update()
1056 st.st_size) { in lpc_xmap_update()
1067 lpc->lpc_nxmap = st.st_size / sizeof (*lpc->lpc_xmap); in lpc_xmap_update()

12345678910>>...19