Searched refs:mode (Results 51 - 75 of 1589) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/libbc/libc/stdio/4.2/
H A Dfopen.c42 fopen(char *file, char *mode) argument
44 return (_endopen(file, mode, _findiop()));
48 freopen(char *file, char *mode, FILE *iop) argument
51 return (_endopen(file, mode, iop));
55 _endopen(char *file, char *mode, FILE *iop) argument
61 plus = (mode[1] == '+');
62 switch (mode[0]) {
79 iop->_flag = plus ? _IORW : (mode[0] == 'r') ? _IOREAD : _IOWRT;
80 if (mode[0] == 'a') {
/illumos-gate/usr/src/lib/libbc/libc/stdio/sys5/
H A Dfopen.c36 fopen(char *file, char *mode) argument
38 return (_endopen(file, mode, _findiop()));
42 freopen(char *file, char *mode, FILE *iop) argument
45 return (_endopen(file, mode, iop));
49 _endopen(char *file, char *mode, FILE *iop) argument
55 plus = (mode[1] == '+');
56 switch (mode[0]) {
73 iop->_flag = plus ? _IORW : (mode[0] == 'r') ? _IOREAD : _IOWRT;
74 if (mode[0] == 'a') {
76 /* if update only mode, mov
[all...]
/illumos-gate/usr/src/lib/libast/common/comp/
H A Dmkfifo.c40 mkfifo(const char* path, mode_t mode)
43 return mknod(path, S_IFIFO|(mode & ~S_IFMT), 0);
H A Dopen.c51 int mode;
58 mode = (op & O_CREAT) ? va_arg(ap, int) : S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH;
73 if ((fd = creat(path, (op & O_EXCL) ? 0 : mode)) < 0)
84 if (mode && fchmod(fd, mode))
86 if (mode && chmod(path, mode))
97 else if ((fd = open(path, op & (_ast_O_LOCAL-1), mode)) < 0)
115 else fd = open(path, op, mode);
/illumos-gate/usr/src/lib/libast/common/sfio/
H A Dsfclrlock.c41 if(f && (f->mode&SF_AVAIL))
50 if(f->mode&SF_PKRD)
58 f->mode &= (SF_RDWR|SF_INIT|SF_POOL|SF_PUSH|SF_SYNCED|SF_STDIO);
60 rv = (f->mode&SF_PUSH) ? 0 : (f->flags&SF_FLAGS);
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 Dsfswap.c43 if(!f1 || (f1->mode&SF_AVAIL) || (SFFROZEN(f1) && (f1->mode&SF_PUSH)) )
45 if(f2 && SFFROZEN(f2) && (f2->mode&SF_PUSH) )
50 f1mode = f1->mode;
52 f1->mode |= SF_PUSH; /* make sure there is no recursion on f1 */
55 { f2mode = f2->mode;
57 f2->mode |= SF_PUSH; /* make sure there is no recursion on f2 */
63 if((!f2 || !(f2->mode&SF_AVAIL)) )
65 { f1->mode = f1mode;
72 f2->mode
[all...]
/illumos-gate/usr/src/cmd/make/lib/vroot/
H A Dmount.cc37 vroot_result= mount(path, vroot_args.mount.name, vroot_args.mount.mode);
41 int mount_vroot(char *target, char *name, int mode, pathpt vroot_path, pathpt vroot_vroot) argument
44 vroot_args.mount.mode= mode;
H A Dopen.cc38 vroot_result= open(path, vroot_args.open.flags, vroot_args.open.mode);
42 int open_vroot(char *path, int flags, int mode, pathpt vroot_path, pathpt vroot_vroot) argument
45 vroot_args.open.mode= mode;
/illumos-gate/usr/src/lib/libc/i386/fp/
H A Dieee.c31 * Returns IEEE mode/status and
40 b->mode = cw;
53 * Restores previous IEEE mode/status
59 _putcw(b->mode);
/illumos-gate/usr/src/cmd/mknod/
H A Dmknod.c61 static int domk(const char *path, const mode_t mode, const dev_t arg);
68 mode_t mode; local
82 mode = S_IFIFO;
92 mode = S_IFBLK;
95 mode = S_IFCHR;
116 return (domk(argv[1], (mode | ACC), arg) ? 2 : 0);
120 domk(const char *path, const mode_t mode, const dev_t arg) argument
124 if ((ec = mknod(path, mode, arg)) == -1) {
/illumos-gate/usr/src/cmd/krb5/ldap_util/
H A Dkdb5_ldap_list.h47 extern void list_modify_str_array(char ***destlist, const char **sourcelist, int mode);
48 extern int list_modify_int_array(int *destlist, const int *sourcelist, int mode);
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/
H A Dbackup.c40 backup(char *path, int mode) argument
45 /* mode probably used in the future */
57 (void) fprintf(fp, "%s%s", path, mode ? "\n" :
/illumos-gate/usr/src/lib/libast/common/preroot/
H A Drealopen.c34 realopen(const char* path, int mode, int perm) argument
40 return(open(buf, mode, perm));
/illumos-gate/usr/src/cmd/lp/lib/filters/
H A Dfiltertable.c66 open_filtertable(char *file, char *mode) argument
79 fd = open_locked(file, mode, MODE_READ);
/illumos-gate/usr/src/ucblib/libucb/port/stdio/
H A Dfopen.c55 _endopen(const char *file, const char *mode, FILE *iop, int largefile) argument
61 plus = (mode[1] == '+');
62 switch (mode[0]) {
89 } else if (_file_set(iop, fd, mode) != 0) {
95 iop->_flag = plus ? _IORW : (mode[0] == 'r') ? _IOREAD : _IOWRT;
96 if (mode[0] == 'a') {
112 fopen(const char *file, const char *mode) argument
118 rc = _endopen(file, mode, iop, LARGE_OPEN);
131 fopen64(const char *file, const char *mode) argument
137 rc = _endopen(file, mode, io
145 freopen(const char *file, const char *mode, FILE *iop) argument
153 freopen64(const char *file, const char *mode, FILE *iop) argument
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/telnet/
H A Dterminal.c156 * These routines decides on what the mode should be (based on the values
165 int mode = 0; local
171 mode |= MODE_ECHO;
174 mode |= MODE_FLOW;
177 mode |= MODE_INBIN;
180 mode |= MODE_OUTBIN;
185 mode |= (MODE_TRAPSIG|MODE_EDIT);
188 mode &= ~MODE_ECHO;
191 return (mode);
195 mode |
[all...]
/illumos-gate/usr/src/boot/lib/libz/
H A Dgzlib.c82 if (state->mode == GZ_READ) { /* for reading ... */
94 local gzFile gz_open(path, fd, mode)
97 const char *mode;
121 /* interpret mode */
122 state->mode = GZ_NONE;
126 while (*mode) {
127 if (*mode >= '0' && *mode <= '9')
128 state->level = *mode - '0';
130 switch (*mode) {
[all...]
/illumos-gate/usr/src/uts/common/io/1394/adapters/
H A Dhci1394_ioctl.c60 int mode);
62 int mode);
64 int mode);
66 int mode);
68 int mode);
70 int mode);
72 int mode);
74 int mode);
76 int mode);
78 int mode);
87 hci1394_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *credp, int *rvalp) argument
171 hci1394_ioctl_wrreg(hci1394_state_t *soft_state, void *arg, int mode) argument
199 hci1394_ioctl_rdreg(hci1394_state_t *soft_state, void *arg, int mode) argument
236 hci1394_ioctl_wrvreg(hci1394_state_t *soft_state, void *arg, int mode) argument
274 hci1394_ioctl_rdvreg(hci1394_state_t *soft_state, void *arg, int mode) argument
322 hci1394_ioctl_selfid_cnt(hci1394_state_t *soft_state, void *arg, int mode) argument
353 hci1394_ioctl_busgen_cnt(hci1394_state_t *soft_state, void *arg, int mode) argument
384 hci1394_ioctl_wrphy(hci1394_state_t *soft_state, void *arg, int mode) argument
420 hci1394_ioctl_rdphy(hci1394_state_t *soft_state, void *arg, int mode) argument
465 hci1394_ioctl_hbainfo(hci1394_state_t *soft_state, void *arg, int mode) argument
501 hci1394_ioctl_read_selfid(hci1394_state_t *soft_state, void *arg, int mode) argument
602 hci1394_ioctl_read_selfid32(hci1394_state_t *soft_state, hci1394_ioctl_readselfid32_t *read_selfid, int mode) argument
[all...]
/illumos-gate/usr/src/lib/libast/common/path/
H A Dpathexists.c44 int mode; member in struct:Tree_s
49 pathexists(char* path, int mode) argument
103 t->mode = PATH_READ|PATH_EXECUTE;
120 t->mode |= PATH_READ;
122 t->mode |= PATH_WRITE;
124 t->mode |= PATH_EXECUTE;
126 t->mode |= PATH_REGULAR;
129 if (!t->mode || c && (t->mode & PATH_REGULAR))
132 mode
[all...]
/illumos-gate/usr/src/lib/libcmd/common/
H A Ddirname.c102 int mode = 0; local
109 mode |= PATH_REGULAR;
112 mode &= ~PATH_REGULAR;
113 mode |= PATH_READ;
116 mode |= PATH_EXECUTE;
129 if(!mode)
131 else if(pathpath(buf, argv[0], "", mode))
H A Dcomm.c66 static int comm(Sfio_t *in1, Sfio_t *in2, register Sfio_t *out,register int mode) argument
79 if(mode&C_COMMON)
81 if(mode!=C_COMMON)
84 if(mode==C_ALL)
97 if(mode&C_FILE2)
99 if(mode&C_FILE1)
109 if((mode&C_FILE1) && sfwrite(out,cp1,n1) < 0)
121 if(mode&C_FILE1)
123 mode &= C_FILE2;
126 mode
151 register int mode = C_FILE1|C_FILE2|C_COMMON; local
[all...]
/illumos-gate/usr/src/uts/common/syscall/
H A Dchmod.c41 #include <sys/mode.h>
47 * Change mode of file.
50 fchmodat(int fd, char *path, int mode, int flag) argument
61 vattr.va_mode = mode & MODEMASK;
70 * Change mode of file given path name.
73 chmod(char *path, int mode) argument
75 return (fchmodat(AT_FDCWD, path, mode, 0));
79 * Change mode of file given file descriptor.
82 fchmod(int fd, int mode) argument
84 return (fchmodat(fd, NULL, mode,
[all...]
/illumos-gate/usr/src/uts/common/sys/
H A Decppsys.h59 int mode; member in struct:ecpp_transfer_parms
66 int mode; /* mode to use for reading device id */ member in struct:ecpp_device_id
80 int mode; /* mode to use for reading device id */ member in struct:ecpp_device_id32
/illumos-gate/usr/src/lib/libnsl/des/
H A Ddes_crypt.c89 * CBC mode encryption
92 cbc_crypt(char *key, char *buf, size_t len, unsigned int mode, char *ivec) argument
99 err = common_crypt(key, buf, len, mode, &dp);
106 * ECB mode encryption
109 ecb_crypt(char *key, char *buf, size_t len, unsigned int mode) argument
114 return (common_crypt(key, buf, len, mode, &dp));
123 common_crypt(char *key, char *buf, unsigned len, unsigned mode, argument
132 ((mode & DES_DIRMASK) == DES_ENCRYPT) ? ENCRYPT : DECRYPT;
134 desdev = mode & DES_DEVMASK;
170 unsigned int mode, cha
169 desN_crypt(des_block keys[], int keynum, char *buf, unsigned int len, unsigned int mode, char *ivec) argument
207 __cbc_triple_crypt(des_block keys[], char *buf, uint_t len, uint_t mode, char *ivec) argument
[all...]

Completed in 123 milliseconds

1234567891011>>