Searched refs:st_size (Results 1 - 25 of 160) sorted by relevance

1234567

/osnet-11/usr/src/lib/libgen/common/
H A Dcopylist.c89 *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));
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/
H A Dstat.pl27 ($st_dev,$st_ino,$st_mode,$st_nlink,$st_uid,$st_gid,$st_rdev,$st_size,
/osnet-11/usr/src/lib/libdtrace/sparc/
H A Ddt_isadep.c58 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...]
/osnet-11/usr/src/lib/libast/common/port/
H A Diblocks.c76 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 Dastcopy.c69 if (pos >= st.st_size) return(0);
70 mapsize = st.st_size - pos;
/osnet-11/usr/src/lib/libfedfs/common/
H A Dget_rp_data.c76 res = malloc(stbuf.st_size);
81 sz = read(fd2, res, stbuf.st_size);
83 if (sz != stbuf.st_size) {
/osnet-11/usr/src/lib/krb5/kadm5/srv/
H A Dserver_dict.c136 if ((word_block = (char *) malloc(sb.st_size + 1)) == NULL)
138 if (read(fd, word_block, sb.st_size) != sb.st_size)
141 word_block[sb.st_size] = '\0';
144 len = sb.st_size;
/osnet-11/usr/src/lib/libdtrace/i386/
H A Ddt_isadep.c62 ftp->ftps_size = (size_t)symp->st_size;
133 if ((text = calloc(1, symp->st_size + 4)) == NULL) {
138 if (Pread(P, text, symp->st_size, symp->st_value) != symp->st_size) {
146 ftp->ftps_size = (size_t)symp->st_size;
223 if (size == 5 && text[i] == DT_JMP32 && symp->st_size <=
228 if (size == 2 && text[i] == DT_JMP8 && symp->st_size <=
234 symp->st_size <=
239 if (size == 2 && DT_ISJ8(text[i]) && symp->st_size <=
269 ftp->ftps_size = (size_t)symp->st_size;
[all...]
/osnet-11/usr/src/lib/libc/port/gen/
H A Dgetusershell.c160 if ((fstat(fileno(fp), &statb) == -1) || (statb.st_size > LONG_MAX) ||
161 ((strings = malloc((size_t)statb.st_size + 1)) == NULL)) {
165 shells = calloc((size_t)statb.st_size / 3, sizeof (char *));
H A Dgetauxv.c69 statb.st_size + sizeof (auxv_t));
72 i = read(fd, buf, statb.st_size);
H A Dcatopen.c403 addr = mmap(0, (size_t)statbuf.st_size, PROT_READ, MAP_SHARED, fd, 0);
413 (void) munmap(addr, (size_t)statbuf.st_size);
420 (void) munmap(addr, statbuf.st_size);
424 tmp_catd->__size = (int)statbuf.st_size;
H A Dscandir.c91 tmp_arraysz = stb.st_size / 24; /* 24 bytes on a 64-bit system */
176 tmp_arraysz = stb.st_size / 24; /* 24 bytes on a 64-bit system */
/osnet-11/usr/src/lib/libast/common/vec/
H A Dvecfile.c50 if (!fstat(fd, &st) && S_ISREG(st.st_mode) && (n = st.st_size) > 0 && (buf = newof(0, char, n + 1, 0)))
/osnet-11/usr/src/cmd/sendmail/db/os/
H A Dos_stat.c80 *mbytesp = sb.st_size / MEGABYTE;
82 *bytesp = sb.st_size % MEGABYTE;
/osnet-11/usr/src/lib/libproc/common/
H A Dproc_get_info.c85 (rv = malloc(statb.st_size)) == NULL ||
86 read(fd, rv, statb.st_size) != statb.st_size) {
119 nldt = statb.st_size / sizeof (struct ssd);
H A DPservice.c203 *xrsize = (int)statb.st_size;
302 *cxrsize = (int)statb.st_size;
470 symp->st_size = (Elf32_Word)sym.st_size;
/osnet-11/usr/src/lib/libcmdutils/common/
H A Dwritefile.c51 off_t filesize = s1p->st_size;
101 if (ISREG(*s1p) && s1p->st_size > SMALLFILESIZE) {
108 if (s1p->st_size < mapsize) mapsize = s1p->st_size;
/osnet-11/usr/src/lib/libpkg/common/
H A Dvfpops.c242 ((a_flags & VFP_NOMALLOC) || statbuf.st_size > MIN_MMAP_SIZE)) {
246 vfp->_vfpMapSize = statbuf.st_size;
256 vfp->_vfpSize = (statbuf.st_size + pagesize +
257 (pagesize-(statbuf.st_size % pagesize)));
305 vfp->_vfpSize = statbuf.st_size+pagesize;
320 if (statbuf.st_size != 0) {
322 statbuf.st_size);
323 if (rlen != statbuf.st_size) {
337 ((char *)vfp->_vfpStart)[statbuf.st_size] = '\0';
363 vfp->_vfpEnd = (((char *)vfp->_vfpStart) + statbuf.st_size)
[all...]
/osnet-11/usr/src/lib/libast/common/string/
H A Dfmtls.c86 s += sfsprintf(s, LS_W_MAX, "%8I*u ", sizeof(st->st_size), st->st_size);
/osnet-11/usr/src/lib/libdhcpagent/common/
H A Ddhcp_stable.c77 (duid = malloc(sb.st_size)) != NULL) {
78 retv = read(fd, duid, sb.st_size);
79 if (retv == sb.st_size) {
80 *duidlen = sb.st_size;
/osnet-11/usr/src/grub/grub2/util/
H A Dgrub-mount.c151 st->st_size = 0;
206 st->st_size = file->size;
210 st->st_size = 0;
212 st->st_blocks = (st->st_size + 511) >> 9;
296 st.st_size = file->size;
300 st.st_blocks = (st.st_size + 511) >> 9;
/osnet-11/usr/src/lib/libdhcpsvc/modules/files/
H A Ddhcp_network.c187 if (fstat(fd, &st) == -1 || st.st_size < 1)
190 ent0 = mmap(0, st.st_size, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
198 ent0[st.st_size - 1] = '\0';
217 if (ent - ent0 >= st.st_size)
249 entend = &ent0[st.st_size - 1];
323 (void) munmap(ent0, st.st_size);
573 retval = copy_range(fd, recnext, newfd, recoff, st.st_size - recnext);
586 retval = write_rec(newfd, newp, recoff + st.st_size - recnext);
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/File/
H A Dstat.pm16 $st_rdev $st_size
40 $st_size, $st_atime, $st_mtime, $st_ctime, $st_blksize, $st_blocks )
/osnet-11/usr/src/lib/libbsm/common/
H A Daudit_crontab.c194 len = st.st_size;
204 if (st_tmp.st_size == 0 && len == 0) {
/osnet-11/usr/src/lib/libcryptoutil/common/
H A Dkeyfile.c72 filesize = statbuf.st_size;

Completed in 44 milliseconds

1234567