| /onnv/onnv-gate/usr/src/lib/libast/common/sfio/ |
| sfpurge.c | 36 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) )
|
| sftell.c | 36 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);
|
| sfpeek.c | 43 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;
|
| sfsize.c | 36 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)
|
| sfsk.c | 41 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)
|
| sfreserve.c | 41 reg int mode, local; local 50 mode = 0; 51 else if((mode = type&SF_WRITE) ) 74 { if(type == 1 ) /* upward compatibility mode */ 81 { if((f->mode&SF_RDWR) != f->mode && _sfmode(f,0,0) < 0) 95 if(!mode && !(mode = f->flags&SF_READ) ) 96 mode = SF_WRITE; 97 if((int)f->mode != mode && _sfmode(f,mode,local) < 0 [all...] |
| sfseek.c | 44 f->endb = (f->mode&SF_WRITE) ? f->data+f->size : f->data; 61 int mode, local, hardseek, mustsync; local 70 if(hardseek && f->mode == (SF_READ|SF_SYNCED) ) 72 f->mode = SF_READ; 75 /* set and initialize the stream to a definite mode */ 76 if((int)SFMODE(f,local) != (mode = f->mode&SF_RDWR)) 81 mode = _sfmode(f,mode,local); 85 if(mode < 0 [all...] |
| /onnv/onnv-gate/usr/src/cmd/sgs/tsort/common/ |
| zfopen.c | 47 char *mode; local 50 mode = "updating"; 54 mode = "reading"; 57 mode = "writing"; 60 mode = "appending"; 63 mode = type; 67 path, mode);
|
| /onnv/onnv-gate/usr/src/lib/libc/port/sys/ |
| openat.c | 40 mode_t mode; local 43 mode = va_arg(ap, mode_t); 45 return (syscall(SYS_fsat, 1, fd, name, oflag, mode)); 54 mode_t mode; local 57 mode = va_arg(ap, mode_t); 59 return (syscall(SYS_fsat, 0, fd, name, oflag, mode));
|
| /onnv/onnv-gate/usr/src/lib/libast/common/string/ |
| strmode.c | 27 * 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);
|
| /onnv/onnv-gate/usr/src/lib/libast/common/vmalloc/ |
| vmset.c | 44 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...] |
| /onnv/onnv-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
| snoop_tftp.c | 40 char *name, *mode; local 58 mode = name + (strlen(name) + 1); 60 "TFTP Read \"%s\" (%s)", name, mode); local 64 mode = name + (strlen(name) + 1); 66 "TFTP Write \"%s\" (%s)", name, mode); local 102 mode = name + (strlen(name) + 1); 108 get_line(mode - dlc_header, strlen(mode) + 1), 109 "Transfer mode = %s", 110 mode); [all...] |
| /onnv/onnv-gate/usr/src/lib/brand/lx/lx_brand/common/ |
| open.c | 48 mode_t mode = 0; local 61 mode = (mode_t)p3; 91 * fcntl(2) flag to denote LX_O_DIRECT mode. 102 lx_debug("\topen(%s, 0%o, 0%o)", path, flags, mode); 104 if ((fd = open(path, flags, mode)) < 0)
|
| /onnv/onnv-gate/usr/src/lib/libcmd/common/ |
| dirname.c | 102 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))
|
| mkfifo.c | 34 "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 69 mode = strperm(arg = opt_info.arg, &opt_info.arg, mode); 71 error(ERROR_exit(0), "%s: invalid mode", arg) [all...] |
| /onnv/onnv-gate/usr/src/uts/common/fs/smbsrv/ |
| smb_seek.c | 54 * USHORT Mode; Seek mode: 0, 1 or 2 58 * The starting point of the seek is set by Mode: 96 ushort_t mode; local 101 if (smbsr_decode_vwv(sr, "wwl", &sr->smb_fid, &mode, &off) != 0) 112 if ((rc = smb_ofile_seek(sr->fid_ofile, mode, off, &off_ret)) != 0) {
|
| /onnv/onnv-gate/usr/src/cmd/audio/include/ |
| AudioUnixfile.h | 43 FileAccess mode; // access mode member in class:AudioUnixfile 56 const FileAccess acc); // access mode 83 virtual FileAccess GetAccess() const; // Get mode
|
| /onnv/onnv-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
| safechown.c | 17 * safechown changes the owner ship of src to uid. If the mode parameter 18 * does not equal -1 changes the mode of src as well. 24 safechown(const char *src, uid_t uid, gid_t gid, int mode) 63 if (mode != -1) { 64 if (fchmod(fd, (mode_t)mode)) { 79 fprintf(stderr, "Usage %s [-u uid] [-m mode] source\n", prg); 86 int mode = -1; local 92 mode = strtol(optarg, 0, 8); 105 if (safechown(argv[optind], uid, getgid(), mode)) {
|
| /onnv/onnv-gate/usr/src/lib/libsec/common/ |
| aclmode.c | 41 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 >> 6) [all...] |
| /onnv/onnv-gate/usr/src/lib/libast/common/tm/ |
| tvtouch.c | 84 int mode; local 128 umask(mode = umask(0)); 129 mode = (~mode) & (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH); 130 if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, mode)) < 0) 267 umask(mode = umask(0)); 268 mode = (~mode) & (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH); 269 if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, mode)) < 0)
|
| /onnv/onnv-gate/usr/src/cmd/mkfifo/ |
| mkfifo.c | 65 mode_t mode = ALLRW & (~umsk); local 82 mode = newmode(optarg, ALLRW, umsk, "", ""); 98 if (mkfifo(path, mode) < 0) { 112 gettext("usage: mkfifo [-m mode] file ...\n"));
|
| /onnv/onnv-gate/usr/src/cmd/mknod/ |
| mknod.c | 61 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) 124 if ((ec = mknod(path, mode, arg)) == -1) {
|
| /onnv/onnv-gate/usr/src/cmd/sendmail/db/os/ |
| os_oflags.c | 61 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);
|
| /onnv/onnv-gate/usr/src/cmd/ssh/sshd/ |
| sshpty.c | 373 mode_t mode; local 380 mode = S_IRUSR | S_IWUSR | S_IWGRP; 383 mode = S_IRUSR | S_IWUSR | S_IWGRP | S_IWOTH; 387 * Change owner and mode of the tty as required. 409 if ((st.st_mode & (S_IRWXU|S_IRWXG|S_IRWXO)) != mode) { 410 if (chmod(ttyname, mode) < 0) { 414 ttyname, (int)mode, strerror(errno)); 417 ttyname, (int)mode, strerror(errno));
|
| /onnv/onnv-gate/usr/src/lib/efcode/engine/ |
| extend.c | 38 int mode; local 41 mode = POP(DS); 43 pl = dlopen(name, mode);
|