Searched defs:fs (Results 1 - 23 of 23) sorted by relevance

/ast/src/cmd/tw/
H A Dftwlocal.c34 struct statvfs fs; local
36 return statvfs(ftw->path, &fs) || (fs.f_flag & ST_LOCAL);
38 return !strgrpmatch(fmtfs(&ftw->statb), "([an]fs|samb)", NiL, 0, STR_LEFT|STR_ICASE);
/ast/src/cmd/3d/
H A Dfstatvfs3d.c31 fstatvfs3d(int fd, struct statvfs* fs) argument
36 if (!fscall(NiL, MSG_fstatfs, 0, fd, fs))
40 if (FSTATVFS(fd, fs))
44 fscall(mp, MSG_fstatfs, 0, fd, fs);
47 fscall(mp, MSG_fstatfs, 0, fd, fs);
H A Dstatvfs3d.c29 statvfs3d(const char* path, struct statvfs* fs) argument
35 if (!fscall(NiL, MSG_statfs, 0, path, fs))
41 if (STATVFS(sp, fs))
45 fscall(mp, MSG_statfs, 0, state.path.name, fs);
48 fscall(mp, MSG_statfs, 0, state.path.name, fs);
H A Dfstatfs3d.c63 #define VFS (fs)
71 fstatfs3d(int fd, struct statfs* fs, int size, int type) argument
84 memset(fs, 0, sizeof(*fs));
85 fs->f_bsize = vfs.f_bsize;
86 fs->f_blocks = vfs.f_blocks;
87 fs->f_bfree = vfs.f_bfree;
88 fs->f_files = vfs.f_files;
89 fs->f_ffree = vfs.f_ffree;
96 if (FSTATFS(fd, fs, siz
[all...]
H A Dstatfs3d.c63 #define VFS (fs)
71 statfs3d(const char* path, struct statfs* fs, int size, int type) argument
85 memset(fs, 0, sizeof(*fs));
86 fs->f_bsize = vfs.f_bsize;
87 fs->f_blocks = vfs.f_blocks;
88 fs->f_bfree = vfs.f_bfree;
89 fs->f_files = vfs.f_files;
90 fs->f_ffree = vfs.f_ffree;
99 if (STATFS(sp, fs, siz
[all...]
H A Dfork3d.c38 register Fs_t* fs; local
52 for (fs = state.fs; fs < state.fs + elementsof(state.fs); fs++)
54 if ((fs->flags & FS_FORK) && fs->set)
55 (*fs
[all...]
H A Dmount3d.c30 register Fs_t* fs; local
74 for (fs = state.fs; fs < state.fs + elementsof(state.fs); fs++)
75 if (x == fs->key)
77 if (fs->get && (r = (*fs
[all...]
H A Dfs.c25 * 3d mounted fs support
41 * initialize mount channel and return fs fd for mp
47 register Fs_t* fs; local
52 fs = mp->fs;
53 if (mp->channel && fs->fd)
54 return fs->fd;
55 if ((fd = fsfd(fs)) <= 0)
58 return fs->fd;
79 if (!(np = getmount(MNTNAM, NiL)) || (nd = fsfd(np->fs)) <
108 register Fs_t* fs = mp->fs; local
152 register Fs_t* fs; local
538 fsinit(register Fs_t* fs, int fd) argument
608 fsdrop(register Fs_t* fs, int clear) argument
[all...]
H A Dmap.c53 if (state.visit.fs && state.visit.fs != mp->fs)
55 v = mp->fs->special;
56 z = mp->fs->specialsize;
123 register Fs_t* fs; local
147 for (fs = state.fs; fs < state.fs
187 licensed(register Fs_t* fs) argument
337 register Fs_t* fs; local
[all...]
H A Dinit.c62 register Fs_t* fs; local
72 for (fs = state.fs; fs < state.fs + elementsof(state.fs); fs++)
73 if (!(fs->flags & (FS_ERROR|FS_INIT)) && (fs->flags & (FS_BOUND|FS_OPEN)) && (!x || x == fs
215 set_fs(register Fs_t* fs, const char* arg, int argsize, const char* op, int opsize) argument
448 get_map(Fs_t* fs, register char* buf, const char* op, int flags) argument
462 set_map(Fs_t* fs, const char* arg, int argsize, const char* op, int opsize) argument
469 get_safe(Fs_t* fs, register char* buf, const char* op, int flags) argument
483 set_safe(Fs_t* fs, const char* arg, int argsize, const char* op, int opsize) argument
490 get_intercept(Fs_t* fs, register char* buf, const char* op, int flags) argument
507 set_intercept(Fs_t* fs, const char* arg, int argsize, const char* op, int opsize) argument
566 get_option(register Fs_t* fs, register char* buf, const char* op, int flags) argument
879 register Fs_t* fs; local
1068 set_option(Fs_t* fs, const char* arg, int argsize, const char* op, int opsize) argument
1279 get_pwd(register Fs_t* fs, register char* buf, const char* op, int flags) argument
1337 set_pwd(Fs_t* fs, const char* arg, int argsize, const char* op, int opsize) argument
1360 get_view(Fs_t* fs, register char* buf, const char* op, int flags) argument
1368 set_view(Fs_t* fs, const char* arg, int argsize, const char* op, int opsize) argument
1539 Fs_t* fs; local
[all...]
H A Dvcs.c157 if ((fd = fsfd(state.vcs.fs)) < 0)
486 vcs_set(Fs_t* fs, const char* arg, int argsize, const char* op, int opsize) argument
492 state.vcs.fs = fs;
H A D3d.h191 Fs_t* fs; member in struct:Mount
356 #define fsmonitored(p) ((state.path.monitor=getmount((p),NiL))&&(state.path.monitor->fs->flags&(FS_ERROR|FS_MONITOR|FS_ON))==(FS_MONITOR|FS_ON))
357 #define fsmount(p) (((p)->channel&&(p)->fs->fd)?((p)->channel==-1?-1:(p)->fs->fd):fschannel(p))
358 #define fssys(p,c) (fson((p)->fs)&&(((p)->fs->call&MSG_MASK(c))||((p)->fs->flags&FS_GLOBAL)&&(fsmount(p),0)))
402 Fs_t* fs; member in struct:__anon6
435 Fs_t fs[TABSIZE]; member in struct:__anon7
/ast/src/lib/libast/features/
H A Dsfinit.c34 char* fs = ""; local
38 char* fs = "F"; local
45 printf("\t1E%d%s,\n", i, fs);
/ast/src/lib/libast/misc/
H A Dfmtrec.c32 fmtrec(Recfmt_t f, int fs) argument
49 if (fs)
58 if (!fs)
H A Dfts.c1526 struct statvfs fs; local
1528 return statvfs(ent->fts_path, &fs) || (fs.f_flag & ST_LOCAL);
1530 return !strgrpmatch(fmtfs(ent->fts_statp), "([an]fs|samb)", NiL, 0, STR_LEFT|STR_ICASE);
/ast/src/lib/libast/include/
H A Dmnt.h38 char* fs; /* filesystem name */ member in struct:__anon271
/ast/src/cmd/tests/sfio/
H A Dtdisc.c140 Sfio_t *f, *fs; local
206 if(!(fs = sfopen(NIL(Sfio_t*),"abcdef","s")) )
208 sfstack(f,fs);
220 sfclose(fs);
/ast/src/cmd/cs/vcs_src/
H A Difs_func.c219 int fs, fd, len; local
221 if( (fs = open( pSrc, O_RDONLY, 0 )) < 0 )
224 while( (len = read( fs, buf, sizeof(buf) )) > 0 )
228 close( fs );
/ast/src/lib/libcmd/
H A Did.c105 register struct fsg* fs; local
118 while (fs = getfsgnam(name))
119 if (!isfsg(fs))
121 if (p = fs->fs_mem)
159 while (fs = getfsgnam(s))
160 if (isfsg(fs))
162 if (flags < 0) sfprintf(sp, "%u", fs->fs_id);
163 else sfprintf(sp, "%u(%s)", fs->fs_id, s);
202 register struct fsg* fs; local
266 if (!(fs
[all...]
/ast/src/cmd/mailx/
H A Dsend.c562 register Format_t* fs = (Format_t*)context; local
565 if (fs->flags & np->flags) {
567 if (fs->label) {
568 if (fs->col = strlen(fs->label))
569 fputs(fs->label, fs->fp);
570 fs->label = 0;
572 else if ((fs->col + fs
598 Format_t fs; local
[all...]
H A Dfio.c263 struct stat fs; local
278 if (next && !fstat(fileno(fp), &fs) && !stat(name, &ds) && fs.st_mtime >= ds.st_mtime)
/ast/src/lib/libast/comp/
H A Diconv.c1440 char* fs; local
1478 fs = fb;
1488 while (fn > 0 && _ast_iconv(cd, &fs, &fn, &ts, &tn) == (size_t)(-1))
1513 *ts++ = (disc->fill >= 0) ? disc->fill : *fs;
1516 fs++;
1529 sfread(ip, fb, fs - fb);
1531 for (i = fn; --i >= (fs - fb);)
1535 if (n <= (fs - fb))
1537 n -= fs - fb;
1539 ft += (fs
[all...]
H A Domitted.c1023 struct stat fs; local
1027 if (sysstat(path, &fs) || (fs.st_mode & S_IWUSR) || syschmod(path, (fs.st_mode | S_IWUSR) & S_IPERM))
1028 fs.st_mode = 0;
1038 if (fs.st_mode)
1039 syschmod(path, fs.st_mode & S_IPERM);

Completed in 75 milliseconds