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

1234567891011>>

/illumos-gate/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));
/illumos-gate/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)
/illumos-gate/usr/src/cmd/sgs/tsort/common/
H A Dzfopen.c47 char *mode; local
50 mode = "updating";
54 mode = "reading";
57 mode = "writing";
60 mode = "appending";
63 mode = type;
67 path, mode);
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dfwide.c38 fwide(FILE *fp, int mode) argument
46 if (mode != 0 && m == _NO_MODE)
47 _setorientation(fp, (mode > 0) ? _WC_MODE : _BYTE_MODE);
52 mode = 1;
55 mode = 0;
58 mode = -1;
62 return (mode);
/illumos-gate/usr/src/cmd/lp/lib/lp/
H A Ddirs.c42 int mode
45 mkdir_lpdir (path, mode)
47 int mode;
55 ret = Mkdir(path, mode);
/illumos-gate/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);
/illumos-gate/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);
/illumos-gate/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...]
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dopen.c41 __openat(int dfd, const char *path, int oflag, mode_t mode) argument
43 return (syscall(SYS_openat, dfd, path, oflag, mode));
47 __open(const char *path, int oflag, mode_t mode) argument
50 return (syscall(SYS_open, path, oflag, mode));
52 return (__openat(AT_FDCWD, path, oflag, mode));
59 __openat64(int dfd, const char *path, int oflag, mode_t mode) argument
61 return (syscall(SYS_openat64, dfd, path, oflag, mode));
65 __open64(const char *path, int oflag, mode_t mode) argument
68 return (syscall(SYS_open64, path, oflag, mode));
70 return (__openat64(AT_FDCWD, path, oflag, mode));
[all...]
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
42 return (syscall(SYS_mkdir, path, mode));
44 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
45 return (syscall(SYS_chmod, path, mode));
47 return (fchmodat(AT_FDCWD, path, mode, 0));
53 fchmod(int fd, mode_t mode) argument
56 return (syscall(SYS_fchmod, fd, mode));
58 return (fchmodat(fd, NULL, mode, 0));
/illumos-gate/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);
/illumos-gate/usr/src/lib/libtnfctl/
H A Dkernel.c41 tnfctl_trace_state_set(tnfctl_handle_t *hdl, boolean_t mode) argument
43 if (hdl->mode != KERNEL_MODE)
47 return (_tnfctl_prbk_set_tracing(hdl, mode));
51 tnfctl_filter_state_set(tnfctl_handle_t *hdl, boolean_t mode) argument
53 if (hdl->mode != KERNEL_MODE)
57 return (_tnfctl_prbk_set_pfilter_mode(hdl, mode));
63 if (hdl->mode != KERNEL_MODE)
73 if (hdl->mode != KERNEL_MODE)
83 if (hdl->mode != KERNEL_MODE)
/illumos-gate/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);
/illumos-gate/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...]
/illumos-gate/usr/src/cmd/zonestat/zonestatd/
H A Dsvc-zonestat27 mode=$1
29 case "$mode" in
/illumos-gate/usr/src/cmd/make/lib/vroot/
H A Daccess.cc33 vroot_result= access(path, vroot_args.access.mode);
37 int access_vroot(char *path, int mode, pathpt vroot_path, pathpt vroot_vroot) argument
39 vroot_args.access.mode= mode;
/illumos-gate/usr/src/uts/i86pc/io/pci/
H A Dpci_tools_ext.h38 extern int pcitool_dev_reg_ops(dev_info_t *dip, void *arg, int cmd, int mode);
39 extern int pcitool_bus_reg_ops(dev_info_t *dip, void *arg, int cmd, int mode);
40 extern int pcitool_intr_admn(dev_info_t *dip, void *arg, int cmd, int mode);

Completed in 75 milliseconds

1234567891011>>