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

1234567891011>>

/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/lib/iconv_modules/zh/common/
H A DUTF-8%zh_CN-cp935.c41 _icv_state *st; local
43 if ((st = (_icv_state *)malloc(sizeof(_icv_state))) == NULL) {
48 st->left_to_right = B_TRUE;
49 st->right_to_left = B_FALSE;
50 st->left_code_size = 2; /* byte */
51 st->right_code_size = 2; /* byte */
52 st->table = &ucs2_cp935_tab[0];
53 st->table_size = MAX_UCS_NUM;
54 st->shift = SHIFT_IN;
56 st
66 _icv_close(_icv_state *st) argument
[all...]
H A DUTF-8%zh_TW-cp937.c42 _icv_state *st; local
44 if ((st = (_icv_state *)malloc(sizeof(_icv_state))) == NULL) {
49 st->left_to_right = B_TRUE;
50 st->right_to_left = B_FALSE;
51 st->left_code_size = 2; /* byte */
52 st->right_code_size = 2; /* byte */
53 st->table = &ucs2_cp937_tab[0];
54 st->table_size = MAX_UCS_NUM;
55 st->shift = SHIFT_IN;
57 st
67 _icv_close(_icv_state *st) argument
[all...]
H A Dzh_CN-cp935%UTF-8.c41 _icv_state *st; local
43 if ((st = (_icv_state *)malloc(sizeof(_icv_state))) == NULL) {
48 st->left_to_right = B_FALSE;
49 st->right_to_left = B_TRUE;
50 st->left_code_size = 2; /* byte */
51 st->right_code_size = 2; /* byte */
52 st->table = &cp935_ucs2_tab[0];
53 st->table_size = MAX_UCS_NUM;
54 st->shift = SHIFT_IN;
56 st
66 _icv_close(_icv_state *st) argument
[all...]
H A Dzh_TW-cp937%UTF-8.c42 _icv_state *st; local
44 if ((st = (_icv_state *)malloc(sizeof(_icv_state))) == NULL) {
49 st->left_to_right = B_FALSE;
50 st->right_to_left = B_TRUE;
51 st->left_code_size = 2; /* byte */
52 st->right_code_size = 2; /* byte */
53 st->table = &cp937_ucs2_tab[0];
54 st->table_size = MAX_UCS_NUM;
55 st->shift = SHIFT_IN;
57 st
67 _icv_close(_icv_state *st) argument
[all...]
/illumos-gate/usr/src/tools/smatch/src/validation/
H A Douter-scope.c2 struct st { int len; }; struct
5 struct st;
6 static int test(struct st *s);
7 static int test(struct st *s)
/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...]
/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/test/os-tests/tests/sdevfs/
H A Dsdevfs_eisdir.c34 struct stat st; local
38 if (stat(SD_TEST_DIR, &st) != 0) {
44 if ((st.st_mode & S_IFMT) != S_IFDIR) {
/illumos-gate/usr/src/tools/smatch/src/validation/backend/
H A Dstruct-access.c1 struct st { struct
5 static int load_i(struct st *st) argument
7 return st->i;
10 static void store_i(struct st *st, int i) argument
12 st->i = i;
15 static int *load_d(struct st *st) argument
17 return st
20 store_d(struct st *st, int *d) argument
[all...]
/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/boot/sys/boot/i386/loader/
H A Dchain.c47 struct stat st; local
68 if (fstat(fd, &st) == -1) {
73 size = st.st_size;

Completed in 88 milliseconds

1234567891011>>