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

1234567891011>>

/osnet-11/usr/src/lib/libdll/common/
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);
/osnet-11/usr/src/lib/libast/common/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)
/osnet-11/usr/src/lib/libast/common/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)))
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));
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);
/osnet-11/usr/src/lib/libmail/common/
H A Ddelempty.c37 * int delempty(mode_t mode, char *mailname)
43 * on the mode].
51 delempty(mode_t mode, char *mailname) argument
63 /* check for mode 0660 */
64 if ((mode & 07777) == MFMODE)
/osnet-11/usr/src/lib/libast/common/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);
/osnet-11/usr/src/lib/libc/port/gen/
H A Dmkfifo.c39 mkfifoat(int fd, const char *path, mode_t mode) argument
41 mode &= 0777; /* only allow file access permissions */
42 mode |= S_IFIFO; /* creating a FIFO */
43 return (mknodat(fd, path, mode, 0));
48 mkfifo(const char *path, mode_t mode) argument
50 mode &= 0777; /* only allow file access permissions */
51 mode |= S_IFIFO; /* creating a FIFO */
52 return (mknod(path, mode, 0));
/osnet-11/usr/src/lib/libc/port/sys/
H A Dmkdir.c32 mkdirat(int fd, const char *path, mode_t mode) argument
34 return (syscall(SYS_mkdirat, fd, path, mode));
39 mkdir(const char *path, mode_t mode) argument
41 return (mkdirat(AT_FDCWD, path, mode));
H A Dmknod.c32 mknodat(int fd, const char *path, mode_t mode, dev_t dev) argument
34 return (syscall(SYS_mknodat, fd, path, mode, dev));
39 mknod(const char *path, mode_t mode, dev_t dev) argument
41 return (mknodat(AT_FDCWD, path, mode, dev));
H A Dchmod.c35 fchmodat(int fd, const char *path, mode_t mode, int flag) argument
37 return (syscall(SYS_fchmodat, fd, path, mode, flag));
42 chmod(const char *path, mode_t mode) argument
44 return (fchmodat(AT_FDCWD, path, mode, 0));
49 fchmod(int fd, mode_t mode) argument
51 return (fchmodat(fd, NULL, mode, 0));
/osnet-11/usr/src/lib/libcmd/common/
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...]
/osnet-11/usr/src/lib/libast/common/vmalloc/
H A Dvmset.c44 reg int mode, inuse; local
48 return vd->mode;
51 if(!(vd->mode&VM_TRUST) )
59 mode = vd->mode;
62 vd->mode |= (flags&VM_FLAGS);
63 else vd->mode &= ~(flags&VM_FLAGS);
65 if(vd->mode&(VM_TRACE|VM_MTDEBUG))
66 vd->mode &= ~VM_TRUST;
71 return mode;
[all...]
/osnet-11/usr/src/lib/libc/i386/sys/
H A Dxstat.c73 _xmknod(int version, const char *path, mode_t mode, dev_t dev) argument
79 return (mknod(path, mode, dev));
/osnet-11/usr/src/lib/libc/port/rt/
H A Dshm.c35 shm_open(const char *path, int oflag, mode_t mode) argument
48 fd = __pos4obj_open(path, SHM_DATA_TYPE, oflag, mode, &crflag);

Completed in 93 milliseconds

1234567891011>>