/illumos-gate/usr/src/tools/btxld/ |
H A D | version.c | 73 buf_size = P2ROUNDUP(sb.st_size + SECTOR_SIZE, SECTOR_SIZE); 85 ret = read(fd, buf, sb.st_size); 86 if (ret != sb.st_size) { 103 mboot->load_end_addr = sb.st_size; 107 hs.src_size = sb.st_size; 112 extra = P2ROUNDUP(sb.st_size, 8); 114 memset(buf+sb.st_size, 0, buf_size - sb.st_size);
|
/illumos-gate/usr/src/lib/libgen/common/ |
H A D | copylist.c | 89 *szptr = stbuf.st_size; 91 return (common_copylist(filenm, stbuf.st_size)); 106 if (stbuf.st_size > LONG_MAX) { 111 *szptr = (off_t)stbuf.st_size; 113 return (common_copylist(filenm, stbuf.st_size));
|
/illumos-gate/usr/src/cmd/mdb/common/modules/libumem/ |
H A D | misc.c | 94 if (mdb_vread(buf, sym.st_size, (uintptr_t)sym.st_value) 95 == sym.st_size) 96 return ((ssize_t)sym.st_size);
|
/illumos-gate/usr/src/cmd/sgs/prof/common/ |
H A D | symintLoad.c | 163 size_t st_size; /* size of symbol table data */ local 165 st_size = symdat_pri_p->d_size; 167 st_size += symdat_aux_p->d_size; 170 prsym_list_p = symlist = (PROF_SYMBOL *)_Malloc(st_size, 1);
|
/illumos-gate/usr/src/lib/libc/port/locale/ |
H A D | ldpart.c | 74 if (st.st_size <= 0) { 78 bufsize = namesize + st.st_size; 85 plim = p + st.st_size; 86 if (read(fd, p, (size_t)st.st_size) != st.st_size)
|
/illumos-gate/usr/src/lib/libbc/libc/sys/common/ |
H A D | _stat.c | 52 long st_size; member in struct:n_stat 89 buf->st_size = getmodsize(buf->st_size, 135 buf->st_size = getmodsize(buf->st_size, 144 buf->st_size = getmodsize(buf->st_size, 188 bsdbuf->st_size = nbuf->st_size;
|
/illumos-gate/usr/src/lib/libdtrace/sparc/ |
H A D | dt_isadep.c | 58 ftp->ftps_size = (size_t)symp->st_size; 80 if ((text = malloc(symp->st_size + 4)) == NULL) { 85 if (Pread(P, text, symp->st_size, symp->st_value) != symp->st_size) { 95 text[symp->st_size / 4] = 0; 99 ftp->ftps_size = symp->st_size; 102 for (i = 0; i < symp->st_size / 4; i++) { 183 if ((uintptr_t)dst >= (uintptr_t)symp->st_size) 246 (uintptr_t)symp->st_size) { 286 ftp->ftps_size = (size_t)symp->st_size; [all...] |
/illumos-gate/usr/src/cmd/cpio/ |
H A D | cpiostat.c | 63 TmpSt->st_size = FromStat->st_size;
|
/illumos-gate/usr/src/cmd/sgs/rtld/common/ |
H A D | locale.c | 161 (status.st_size < sizeof (Msghdr))) { 167 if ((msghdr = (Msghdr *)mmap(0, status.st_size, PROT_READ, MAP_SHARED, 178 (void) munmap((caddr_t)msghdr, status.st_size); 186 (void) munmap((caddr_t)msghdr, status.st_size); 192 if ((size_tot + size_old < status.st_size) && 193 (size_tot + size_new < status.st_size)) { 194 (void) munmap((caddr_t)msghdr, status.st_size); 202 dom->dom_msgsz = status.st_size;
|
/illumos-gate/usr/src/lib/libast/common/port/ |
H A D | iblocks.c | 76 return (st->st_blocks <= 0 || st->st_size <= 0) ? 0 : st->st_blocks; 82 t = b = (st->st_size + B_SIZE - 1) / B_SIZE;
|
H A D | astcopy.c | 69 if (pos >= st.st_size) return(0); 70 mapsize = st.st_size - pos;
|
/illumos-gate/usr/src/common/ficl/ficlplatform/ |
H A D | unix.c | 80 statbuf.st_size = -1; 84 return (statbuf.st_size);
|
/illumos-gate/usr/src/lib/krb5/kadm5/srv/ |
H A D | server_dict.c | 132 if ((word_block = (char *) malloc(sb.st_size + 1)) == NULL) 134 if (read(fd, word_block, sb.st_size) != sb.st_size) 137 word_block[sb.st_size] = '\0'; 140 len = sb.st_size;
|
/illumos-gate/usr/src/lib/libdtrace/i386/ |
H A D | dt_isadep.c | 66 ftp->ftps_size = (size_t)symp->st_size; 137 if ((text = calloc(1, symp->st_size + 4)) == NULL) { 142 if (Pread(P, text, symp->st_size, symp->st_value) != symp->st_size) { 150 ftp->ftps_size = (size_t)symp->st_size; 227 if (size == 5 && text[i] == DT_JMP32 && symp->st_size <= 232 if (size == 2 && text[i] == DT_JMP8 && symp->st_size <= 238 symp->st_size <= 243 if (size == 2 && DT_ISJ8(text[i]) && symp->st_size <= 273 ftp->ftps_size = (size_t)symp->st_size; [all...] |
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | getusershell.c | 147 if ((fstat(fileno(fp), &statb) == -1) || (statb.st_size > LONG_MAX) || 148 ((strings = malloc((size_t)statb.st_size + 1)) == NULL)) { 152 shells = calloc((size_t)statb.st_size / 3, sizeof (char *));
|
H A D | getauxv.c | 69 statb.st_size + sizeof (auxv_t)); 72 i = read(fd, buf, statb.st_size);
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/exec/ |
H A D | mmap_exec.c | 64 if (mmap(0, statbuf.st_size,
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | bootstat.h | 58 uint64_t st_size; member in struct:bootstat
|
H A D | stat.h | 80 off_t st_size; member in struct:stat 97 off_t st_size; member in struct:stat64 119 off_t st_size; member in struct:stat 141 off64_t st_size; /* large file support */ member in struct:stat64 225 off_t st_size; member in struct:stat 252 off_t st_size; member in struct:stat 286 off_t st_size; member in struct:stat64 313 off64_t st_size; member in struct:stat64 360 off32_t st_size; member in struct:stat32 385 off64_t st_size; member in struct:stat64_32 [all...] |
/illumos-gate/usr/src/lib/libast/common/vec/ |
H A D | vecfile.c | 50 if (!fstat(fd, &st) && S_ISREG(st.st_mode) && (n = st.st_size) > 0 && (buf = newof(0, char, n + 1, 0)))
|
/illumos-gate/usr/src/cmd/mdb/common/modules/mm/ |
H A D | mm.c | 40 kw->kmlw_entries = mdb_zalloc(sym.st_size, UM_SLEEP); 43 if (mdb_vread(kw->kmlw_entries, sym.st_size, sym.st_value) == -1) { 45 mdb_free(kw->kmlw_entries, sym.st_size); 50 kw->kmlw_nentries = sym.st_size / sizeof (mm_logentry_t);
|
/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | scandir.c | 57 arraysz = (stb.st_size / 24); 83 arraysz = stb.st_size / 12;
|
/illumos-gate/usr/src/cmd/sendmail/db/os/ |
H A D | os_stat.c | 80 *mbytesp = sb.st_size / MEGABYTE; 82 *bytesp = sb.st_size % MEGABYTE;
|
/illumos-gate/usr/src/ucblib/libucb/port/gen/ |
H A D | scandir.c | 92 arraysz = (stb.st_size / 24); 120 arraysz = stb.st_size / 12; 158 if (stb.st_size > SSIZE_MAX) { 162 arraysz = (stb.st_size / 24); 190 arraysz = stb.st_size / 12;
|
/illumos-gate/usr/src/cmd/tnf/tnfdump/ |
H A D | main.c | 150 if (st.st_size == 0) { 157 if ((p = mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, fd, 0)) 175 end_p = p + st.st_size; 182 (void) munmap(p, st.st_size); 188 if ((err = tnf_reader_begin(p, st.st_size, &tnf)) != TNF_ERR_NONE) { 191 (void) munmap(p, st.st_size); 210 (void) munmap(p, st.st_size);
|