Searched defs:st (Results 1 - 25 of 390) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dftok.c36 struct stat st; local
38 return(stat(path, &st) < 0 ? (key_t)-1 :
39 (key_t)((key_t)id << 24 | ((long)(unsigned)minor(st.st_dev)) << 16 |
40 (unsigned)st.st_ino));
/illumos-gate/usr/src/cmd/mail/
H A Ddoopen.c42 struct stat st; local
44 if ((stat(file, &st) < 0 && errno == EOVERFLOW) ||
H A Dmkdead.c38 struct stat st; local
54 if ((aret = legal(dotdead)) && stat(dotdead, &st) == 0)
66 if ((aret=legal(hmdead)) && !(stat(hmdead, &st) < 0 &&
/illumos-gate/usr/src/lib/libast/common/path/
H A Dpathstat.c33 pathstat(const char* path, struct stat* st) argument
39 if (!stat(path, st)) return(0);
41 return(lstat(path, st));
43 return(stat(path, st));
H A Dpathshell.c58 struct stat st; local
66 if (stat(sh, &st))
68 if (ru != st.st_uid && !strmatch(sh, "?(/usr)?(/local)/?([ls])bin/?([[:lower:]])sh?(.exe)"))
84 if (stat(s, &st))
86 if (ru != eu && st.st_uid == ru)
88 if (rg != eg && st.st_gid == rg)
/illumos-gate/usr/src/cmd/rcap/common/
H A Drcapd_stat.c45 struct stat st; local
57 if (stat(procfile, &st) == 0)
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dmakebuf.c99 struct stat st; local
101 if (fp->f_file < 0 || fstat(fp->f_file, &st) < 0)
109 *couldbetty = S_ISCHR(st.st_mode);
110 if (st.st_blksize == 0)
117 if (S_ISREG(st.st_mode) && st.st_blksize > SM_IO_MAX_BUF_FILE)
118 st.st_blksize = SM_IO_MAX_BUF_FILE;
122 if (!S_ISREG(st.st_mode))
125 if (st.st_blksize > SM_IO_MAX_BUF)
126 st
[all...]
H A Dfseek.c88 struct stat st; local
202 fp->f_file < 0 || fstat(fp->f_file, &st) ||
203 (st.st_mode & S_IFMT) != S_IFREG)
208 fp->f_blksize = st.st_blksize;
221 if (fstat(fp->f_file, &st))
223 target = st.st_size + offset;
/illumos-gate/usr/src/lib/libast/common/disc/
H A Dmemfatal.c50 Vmstat_t st; local
59 vmstat(region, &st);
60 error(ERROR_SYSTEM|3, "storage allocator out of space on %lu byte request ( region %lu segments %lu busy %lu:%lu:%lu free %lu:%lu:%lu )", (size_t)obj, st.extent, st.n_seg, st.n_busy, st.s_busy, st.m_busy, st.n_free, st.s_free, st
[all...]
/illumos-gate/usr/src/lib/libast/common/misc/
H A Dmimetype.c51 mimetype(Mime_t* mp, Sfio_t* fp, const char* file, struct stat* st) argument
68 return magictype(mp->magic, fp, file, st);
/illumos-gate/usr/src/lib/libast/common/sfio/
H A Dsfsize.c68 { sfstat_t st; local
69 if(sysfstatf(f->file,&st) < 0)
71 else if((f->extent = st.st_size) < f->here)
/illumos-gate/usr/src/lib/libast/common/string/
H A Dfmtdev.c35 fmtdev(struct stat* st) argument
40 unsigned int ma = major(idevice(st));
41 unsigned int mi = minor(idevice(st));
/illumos-gate/usr/src/lib/libast/common/vec/
H A Dvecfile.c45 struct stat st; local
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/lib/libgen/common/
H A Drmdirp.c56 struct stat64 st, cst; local
100 if (stat64(d, &st) < 0) {
106 if ((st.st_ino == cst.st_ino) &&
107 (st.st_dev == cst.st_dev)) {
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dftok.c46 struct stat64 st; local
51 if (stat64(path, &st) < 0)
69 devpiece = st.st_dev & 0xfff;
72 ((uint32_t)st.st_ino & 0x0fff)));
/illumos-gate/usr/src/cmd/mdb/intel/libstand/
H A Dstat.c42 _fxstat(const int ver, int fd, struct stat *st) argument
49 _xstat(const int ver, const char *path, struct stat *st) argument
56 _lxstat(const int ver, const char *path, struct stat *st) argument
/illumos-gate/usr/src/lib/libast/common/comp/
H A Dgross.c35 extern int fstat(int fd, struct stat* st) argument
38 return __fxstat(_STAT_VER, fd, st);
40 return _fxstat(_STAT_VER, fd, st);
44 extern int lstat(const char* path, struct stat* st) argument
47 return __lxstat(_STAT_VER, path, st);
49 return _lxstat(_STAT_VER, path, st);
53 extern int stat(const char* path, struct stat* st) argument
56 return __xstat(_STAT_VER, path, st);
58 return _xstat(_STAT_VER, path, st);
66 extern int fstat64(int fd, struct stat64* st) argument
75 lstat64(const char* path, struct stat64* st) argument
84 stat64(const char* path, struct stat64* st) argument
[all...]
/illumos-gate/usr/src/lib/libast/common/port/
H A Diblocks.c50 #define B_SIZE BSIZE(st->st_dev)
51 #define B_INDIRECT NINDIR(st->st_dev)
72 _iblocks(register struct stat* st) argument
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;
/illumos-gate/usr/src/lib/libast/common/vmalloc/
H A Dvmstat.c36 int vmstat(Vmalloc_t* vm, Vmstat_t* st) argument
38 int vmstat(vm, st)
40 Vmstat_t* st;
50 if(!st)
62 st->n_busy = st->n_free = 0;
63 st->s_busy = st->s_free = st->m_busy = st
[all...]
/illumos-gate/usr/src/lib/libshare/common/
H A Dissubdir.c67 struct stat st; local
94 if (stat(childdir, &st) < 0) {
99 child_dev = st.st_dev;
100 child_rdev = st.st_rdev;
101 (void) strncpy(child_fstype, st.st_fstype,
105 (child_dev != st.st_dev ||
106 inoeq(child_ino[index - 1], st.st_ino))) {
112 child_ino[index++] = st.st_ino;
113 if (S_ISDIR(st.st_mode)) {
/illumos-gate/usr/src/lib/libunistat/common/
H A Dspcs_log.c56 struct stat st; local
67 if (stat(sessionlog, &st) == 0) {
68 if (st.st_size > MAX_SESSION_LOG) {
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dcopywin.c101 cchar_t *st, *tt; local
111 st = s->_line[sminr] + sminc;
122 for (tc = tminc; tc <= tmaxc; ++tc, ++tt, ++st) {
124 if (iswspace(st->_wc[0]))
126 *tt = *st;
/illumos-gate/usr/src/lib/libcmd/common/
H A Dmkdir.c76 struct stat st; local
162 if (stat(name, &st))
167 if ((st.st_mode & (S_ISVTX|S_ISUID|S_ISGID)) != (mode & (S_ISVTX|S_ISUID|S_ISGID)) && chmod(name, mode))
169 error(ERROR_system(0), "%s: cannot change mode from %s to %s", name, fmtperm(st.st_mode & (S_ISVTX|S_ISUID|S_ISGID)), fmtperm(mode));
/illumos-gate/usr/src/lib/libinstzones/common/
H A Dzones_states.c281 zone_state_t st; local
408 if (zone_get_state(a_zlem->_zlName, &st) != Z_OK) {
411 if ((st == ZONE_STATE_DOWN) ||
412 (st == ZONE_STATE_INSTALLED)||
413 (st == ZONE_STATE_READY)) {
424 a_zlem->_zlCurrKernelStatus = st;
/illumos-gate/usr/src/cmd/audio/utilities/
H A DAudioRawPipe.cc85 struct stat st; local
93 if (fstat(getfd(), &st) < 0)
105 if (S_ISREG(st.st_mode)) {
108 setlength(GetHeader().Bytes_to_Time(st.st_size - offset));

Completed in 93 milliseconds

1234567891011>>