Searched defs:mode (Results 1 - 25 of 145) sorted by relevance

123456

/ast/src/cmd/probe/
H A DMakefile5 $(LIBDIR)/probe :INSTALLDIR: mode=u+s,+x probe macro
7 $(BINDIR) :INSTALLDIR: mode=u+s,+x probe macro
/ast/src/lib/libast/sfio/
H A Dsfopen.c31 Sfio_t* sfopen(Sfio_t* f, const char* file, const char* mode) argument
33 Sfio_t* sfopen(f,file,mode)
36 reg char* mode; /* mode of the stream */
39 return _sfopen(f, file, mode);
H A Dsfpurge.c36 reg int mode; local
41 if((mode = f->mode&SF_RDWR) != (int)f->mode && _sfmode(f,mode|SF_SYNCED,0) < 0)
51 if((f->flags&SF_STRING) && (f->mode&SF_READ) )
69 switch(f->mode&~SF_LOCK)
76 if(!f->proc || !(f->flags&SF_READ) || !(f->mode&SF_WRITE) )
H A Dsftell.c36 reg int mode; local
42 /* set the stream to the right mode */
43 if((mode = f->mode&SF_RDWR) != (int)f->mode && _sfmode(f,mode,0) < 0)
56 else p = f->here + ((f->mode&SF_WRITE) ? f->next-f->data : f->next-f->endb);
H A Dsfsize.c36 reg int mode; local
42 if((mode = f->mode&SF_RDWR) != (int)f->mode && _sfmode(f,mode,0) < 0)
81 if(f->here != s && (f->mode&SF_READ) )
100 else if(f->mode&SF_WRITE)
H A Dsfpeek.c43 reg int mode; local
47 { if(f->mode&SF_INIT)
65 if(!(mode = f->flags&SF_READ) )
66 mode = SF_WRITE;
67 if((int)f->mode != mode && _sfmode(f,mode,0) < 0)
78 { f->mode |= SF_PEEK;
H A Dsfsk.c41 reg int local, mode; local
48 { if((mode = f->mode&SF_RDWR) != (int)f->mode && _sfmode(f,mode,0) < 0)
53 if(f->mode == SF_READ && (f->bits&SF_MMAP) && f->data)
/ast/src/lib/libast/stdio/
H A D_stdopen.c29 _stdopen(int fd, const char* mode) argument
31 return fdopen(fd, mode);
H A Dfdopen.c27 fdopen(int fd, const char* mode) argument
31 if (fd < 0 || !(flags = _sftype(mode, NiL, NiL, NiL)))
H A Dfmemopen.c27 fmemopen(void* buf, size_t size, const char* mode) argument
29 STDIO_PTR(0, "fmemopen", Sfio_t*, (void*, size_t, const char*), (buf, size, mode))
31 return sfnew(NiL, buf, size, -1, SF_STRING|_sftype(mode, NiL, NiL, NiL));
H A Dfopen.c27 fopen(const char* path, const char* mode) argument
29 return sfopen(NiL, path, mode);
H A Dfreopen.c27 freopen(const char* path, const char* mode, Sfio_t* f) argument
29 STDIO_PTR(f, "freopen", Sfio_t*, (const char*, const char*, Sfio_t*), (path, mode, f))
31 return sfopen(f, path, mode);
H A Dfwide.c27 fwide(Sfio_t* f, int mode) argument
29 STDIO_INT(f, "fwide", int, (Sfio_t*, int), (f, mode))
31 if (mode > 0)
36 else if (mode < 0)
H A Dpopen.c27 popen(const char* cmd, const char* mode) argument
29 return sfpopen((Sfio_t*)(-1), cmd, mode);
/ast/src/lib/libdll/
H A Ddllopen.c38 dllopen(const char* name, int mode)
72 dll = dlopen(path, mode);
87 dllopen(const char* name, int mode) argument
90 return dlopen(name, mode);
/ast/src/cmd/3d/
H A Dcreat3d.c27 creat3d(const char* path, mode_t mode) argument
29 return(open(path, O_WRONLY|O_CREAT|O_TRUNC, mode));
H A Dfchmod3d.c29 fchmod3d(int fd, mode_t mode) argument
34 if (!fscall(NiL, MSG_fchmod, 0, fd, mode))
38 if (FCHMOD(fd, mode))
42 fscall(mp, MSG_fchmod, 0, fd, mode);
45 fscall(mp, MSG_fchmod, 0, fd, mode);
H A Daccess3d.c27 access3d(const char* path, int mode) argument
48 switch (mode)
68 return(ACCESS(sp, mode));
75 if (mode & (R_OK|W_OK|X_OK))
80 if (mode & R_OK) test |= S_IRUSR;
81 if (mode & W_OK) test |= S_IWUSR;
82 if (mode & X_OK) test |= S_IXUSR;
86 if (mode & R_OK) test |= S_IRGRP;
87 if (mode & W_OK) test |= S_IWGRP;
88 if (mode
[all...]
/ast/src/cmd/coshell/
H A DMakefile14 $(FUNDIR) :INSTALLDIR: mode=+x cosh title macro
/ast/src/lib/libast/preroot/
H A Drealopen.c34 realopen(const char* path, int mode, int perm) argument
40 return(open(buf, mode, perm));
/ast/src/lib/libast/string/
H A Dfmtmode.c27 * return ls -l style file mode string given file mode bits
28 * if external!=0 then mode is modex canonical
34 fmtmode(register int mode, int external) argument
41 mode = modex(mode);
44 *s++ = p->name[((mode & p->mask1) >> p->shift1) | ((mode & p->mask2) >> p->shift2)];
H A Dstrmode.c27 * return modex canonical representation of file mode bits
28 * given ls -l style file mode string
39 int mode; local
41 mode = 0;
47 mode |= (p->mask1 & (c << p->shift1)) | (p->mask2 & (c << p->shift2));
50 return(mode);
/ast/src/lib/libast/vmalloc/
H A Dvmset.c44 int mode; local
48 return vd->mode;
52 mode = vd->mode;
54 vd->mode |= (flags&VM_FLAGS);
55 else vd->mode &= ~(flags&VM_FLAGS);
59 return mode;
/ast/src/cmd/at/
H A DMakefile16 $(LIBDIR)/at/jobs :INSTALLDIR: mode=u=rwx,go=x macro
18 $(LIBDIR)/at/jobs :INSTALLDIR: mode=u=rx,go=x atx macro
/ast/src/lib/libcmd/
H A Dmkfifo.c34 "default, the mode of created FIFO is \ba=rw\b minus the "
36 "[m:mode]:[mode?Set the mode of created FIFO to \amode\a. "
37 "\amode\a is symbolic or octal mode as in \bchmod\b(1). Relative "
38 "modes assume an initial mode of \ba=rw\b.]"
56 register mode_t mode = S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH; local
67 mode = strperm(arg = opt_info.arg, &opt_info.arg, mode);
69 error(ERROR_exit(0), "%s: invalid mode", ar
[all...]

Completed in 511 milliseconds

123456