Searched refs:mode (Results 1 - 25 of 589) sorted by relevance

1234567891011>>

/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 Dfopen.c27 fopen(const char* path, const char* mode) argument
29 return sfopen(NiL, path, mode);
H A Dpopen.c27 popen(const char* cmd, const char* mode) argument
29 return sfpopen((Sfio_t*)(-1), cmd, 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 Dfdopen.c27 fdopen(int fd, const char* mode) argument
31 if (fd < 0 || !(flags = _sftype(mode, NiL, NiL)))
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 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));
/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/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 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 Dsfwalk.c43 if(sfstdin->mode & SF_INIT)
44 _sfmode(sfstdin, (sfstdin->mode & SF_RDWR), 0);
45 if(sfstdout->mode & SF_INIT)
46 _sfmode(sfstdout, (sfstdout->mode & SF_RDWR), 0);
47 if(sfstderr->mode & SF_INIT)
48 _sfmode(sfstderr, (sfstderr->mode & SF_RDWR), 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 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));
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));
/osnet-11/usr/src/lib/libast/common/comp/
H A Dmknod.c40 mknod(const char* path, mode_t mode, dev_t dev)
42 if (S_ISFIFO(mode))
43 return mkfifo(path, mode);
44 if (S_ISDIR(mode))
45 return mkdir(path, mode);
H A Dcreat64.c33 creat64(const char* path, mode_t mode)
35 return open64(path, O_WRONLY|O_CREAT|O_TRUNC, mode);
H A Deaccess.c52 register int mode;
73 mode = 0;
83 mode |= S_IRUSR;
85 mode |= S_IWUSR;
87 mode |= S_IXUSR;
95 mode |= S_IRGRP;
97 mode |= S_IWGRP;
99 mode |= S_IXGRP;
124 mode |= S_IROTH;
126 mode |
[all...]
H A Dmkfifo.c40 mkfifo(const char* path, mode_t mode)
43 return mknod(path, S_IFIFO|(mode & ~S_IFMT), 0);
/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/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/cmd/sendmail/db/os/
H A Dos_oflags.c61 int mode; local
80 mode = 0;
82 mode |= S_IRUSR;
84 mode |= S_IWUSR;
86 mode |= S_IRGRP;
88 mode |= S_IWGRP;
90 mode |= S_IROTH;
92 mode |= S_IWOTH;
93 return (mode);
/osnet-11/usr/src/lib/libcmd/common/
H A Dwc.c74 static void printout(register Wc_t *wp, register char *name,register int mode) argument
76 if (mode&WC_LINES)
78 if (mode&WC_WORDS)
80 if (mode&WC_CHARS)
82 if (mode&WC_LONGEST)
93 register int mode=0, n; local
105 mode |= WC_CHARS;
108 mode |= WC_LINES;
111 mode |= WC_LONGEST;
115 mode |
[all...]
/osnet-11/usr/src/lib/libsec/common/
H A Daclmode.c41 unsigned long mode; local
54 mode = tp->a_perm;
55 if (mode > 07)
57 *modep |= (mode << 6);
75 mode = tp->a_perm;
76 if (mode > 07)
78 *modep |= mode;
93 mode_t mode; local
104 mode = (*modep & 0700);
105 tp->a_perm = (mode >>
[all...]
/osnet-11/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dcert.c303 cert_check_required_attributes(TEMPLATE *tmpl, CK_ULONG mode) argument
311 if (mode == MODE_CREATE) {
319 return (template_check_required_base_attributes(tmpl, mode));
326 cert_validate_attribute(TEMPLATE *tmpl, CK_ATTRIBUTE *attr, CK_ULONG mode) argument
333 if (mode != MODE_CREATE) {
347 return (template_validate_base_attribute(tmpl, attr, mode));
352 cert_x509_check_required_attributes(TEMPLATE *tmpl, CK_ULONG mode) { argument
364 return (cert_check_required_attributes(tmpl, mode));
377 cert_x509_set_default_attributes(TEMPLATE *tmpl, CK_ULONG mode) argument
383 if (mode)
418 cert_x509_validate_attribute(TEMPLATE *tmpl, CK_ATTRIBUTE *attr, CK_ULONG mode) argument
445 cert_vendor_check_required_attributes(TEMPLATE *tmpl, CK_ULONG mode) argument
451 cert_vendor_validate_attribute(TEMPLATE *tmpl, CK_ATTRIBUTE *attr, CK_ULONG mode) argument
[all...]

Completed in 23 milliseconds

1234567891011>>