/osnet-11/usr/src/lib/libast/common/sfio/ |
H A D | sfclrlock.c | 41 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 D | 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;
|
H A D | sfswap.c | 43 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...] |
H A D | 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) )
|
H A D | sfstrtod.c | 77 reg int mode, fexp, sign, expsign; local 95 mode = IPART; 111 if(mode == IPART) 117 else if(mode == FPART) 137 if(mode != IPART) 139 mode = FPART; 143 { if(mode == EPART) 145 mode = EPART;
|
H A D | 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 ! [all...] |
H A D | sfsync.c | 59 if((f->mode&SF_READ) && (f->mode&SF_SYNCED) ) 61 if((f->mode&SF_READ) && !(f->bits&SF_MMAP) && 64 if((f->mode&SF_WRITE) && !(f->bits&SF_HOLE) && 89 int local, rv, mode, lock; local 105 lock = origf->mode&SF_LOCK; 106 if(origf->mode == (SF_SYNCED|SF_READ) ) /* already synced */ 109 if((origf->mode&SF_RDWR) != SFMODE(origf,local) && _sfmode(origf,0,local) < 0) 122 mode = f->mode [all...] |
H A D | _sfopen.c | 38 Sfio_t* _sfopen(Sfio_t* f, const char* file, const char* mode) argument 40 Sfio_t* _sfopen(f,file,mode) 43 char* mode; /* mode of the stream */ 50 if((sflags = _sftype(mode,&oflags,NIL(int*))) == 0) 57 if(f->mode&SF_INIT ) /* stream uninitialized, ok to set flags */ 68 f->mode = (f->mode&~SF_WRITE)|SF_READ; 69 else f->mode = (f->mode 140 _sftype(reg const char* mode, int* oflagsp, int* uflagp) argument [all...] |
/osnet-11/usr/src/lib/libast/common/path/ |
H A D | pathaccess.c | 27 * return path to file a/b with access mode using : separated dirs 30 * if (mode&PATH_REGULAR) then path must not be a directory 31 * if (mode&PATH_ABSOLUTE) then path must be rooted 40 pathaccess(char* path, const char* dirs, const char* a, const char* b, int mode) argument 42 return pathaccess_20100601(dirs, a, b, mode, path, PATH_MAX); 50 pathaccess_20100601(register const char* dirs, const char* a, const char* b, register int mode, register char* path, size_t size) argument 60 if ((!sib || *path == '/') && pathexists(path, mode)) 62 if (*path == '/' || !(mode & PATH_ABSOLUTE))
|
H A D | pathexists.c | 44 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...] |
H A D | pathpath.c | 27 * return full path to p with mode access using $PATH 41 pathpath(char* path, const char* p, const char* a, int mode) argument 43 return pathpath_20100601(p, a, mode, path, PATH_MAX); 51 pathpath_20100601(const char* p, const char* a, int mode, register char* path, size_t size) argument 71 if (pathexists(path, mode)) 73 if (*p != '/' && (mode & PATH_ABSOLUTE)) 110 if (s = pathaccess(path, p, a, mode, path, size)) 120 if (!(s = pathaccess(x, p, a, mode, path, size)) && !*x && (x = getenv("FPATH"))) 121 s = pathaccess(x, p, a, mode, path, size);
|
/osnet-11/usr/src/grub/grub2/grub-core/video/ |
H A D | efi_gop.c | 132 grub_video_gop_fill_mode_info (unsigned mode, argument 136 out->mode_number = mode; 144 return grub_error (GRUB_ERR_IO, "unsupported video mode"); 183 return grub_error (GRUB_ERR_IO, "unsupported video mode"); 193 unsigned mode; local 195 for (mode = 0; mode < gop->mode->max_mode; mode++) 203 status = efi_call_4 (gop->query_mode, gop, mode, 256 unsigned mode; local [all...] |
/osnet-11/usr/src/lib/libast/common/comp/ |
H A D | open.c | 51 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);
|
/osnet-11/usr/src/lib/libcmd/common/ |
H A D | dirname.c | 101 int mode = 0; local 110 mode |= PATH_REGULAR; 113 mode &= ~PATH_REGULAR; 114 mode |= PATH_READ; 117 mode |= PATH_EXECUTE; 132 if(!mode) 134 else if(pathpath(argv[0], "", mode, buf, sizeof(buf)))
|
H A D | comm.c | 66 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 150 register int mode = C_FILE1|C_FILE2|C_COMMON; local [all...] |
H A D | mkdir.c | 34 "default, the mode of created directories is \ba=rwx\b minus the " 36 "[m:mode]:[mode?Set the mode of created directories 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=rwx\b.]" 42 "\vmkdir -p -m $(umask -S),u+wx $(dirname dir) && mkdir [-m mode]] " 43 "dir\v where the \b-m\b mode option represents that option supplied to " 69 register mode_t mode = DIRMODE; local 86 mode [all...] |
/osnet-11/usr/src/lib/libnsl/des/ |
H A D | des_crypt.c | 95 * CBC mode encryption 98 cbc_crypt(char *key, char *buf, size_t len, unsigned int mode, char *ivec) argument 106 err = common_crypt(key, buf, len, mode, &dp); 119 * ECB mode encryption 122 ecb_crypt(char *key, char *buf, size_t len, unsigned int mode) argument 128 return (common_crypt(key, buf, len, mode, &dp)); 144 common_crypt(char *key, char *buf, unsigned len, unsigned mode, argument 153 ((mode & DES_DIRMASK) == DES_ENCRYPT) ? ENCRYPT : DECRYPT; 155 desdev = mode & DES_DEVMASK; 193 unsigned int mode, cha 192 desN_crypt(des_block keys[], int keynum, char *buf, unsigned int len, unsigned int mode, char *ivec) argument 231 __cbc_triple_crypt(des_block keys[], char *buf, uint_t len, uint_t mode, char *ivec) argument [all...] |
/osnet-11/usr/src/lib/libdll/common/ |
H A D | dllopen.c | 38 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/pkcs11/pkcs11_tpm/common/ |
H A D | hwf_obj.c | 296 hwf_object_check_required_attributes(TEMPLATE *tmpl, CK_ULONG mode) argument 303 if (mode == MODE_CREATE) { 308 return (template_check_required_base_attributes(tmpl, mode)); 312 clock_check_required_attributes(TEMPLATE *tmpl, CK_ULONG mode) argument 317 if (mode == MODE_CREATE) { 324 return (hwf_object_check_required_attributes(tmpl, mode)); 328 counter_check_required_attributes(TEMPLATE *tmpl, CK_ULONG mode) argument 333 if (mode == MODE_CREATE) { 350 return (hwf_object_check_required_attributes(tmpl, mode)); 357 hwf_validate_attribute(TEMPLATE *tmpl, CK_ATTRIBUTE *attr, CK_ULONG mode) argument 373 clock_validate_attribute(TEMPLATE *tmpl, CK_ATTRIBUTE *attr, CK_ULONG mode) argument 384 counter_validate_attribute(TEMPLATE *tmpl, CK_ATTRIBUTE *attr, CK_ULONG mode) argument [all...] |
H A D | data_obj.c | 297 data_object_check_required_attributes(TEMPLATE *tmpl, CK_ULONG mode) argument 299 return (template_check_required_base_attributes(tmpl, mode)); 312 data_object_set_default_attributes(TEMPLATE *tmpl, CK_ULONG mode) argument 318 if (mode) 355 CK_ULONG mode) 366 return (template_validate_base_attribute(tmpl, attr, mode)); 354 data_object_validate_attribute(TEMPLATE *tmpl, CK_ATTRIBUTE *attr, CK_ULONG mode) argument
|
/osnet-11/usr/src/lib/libmail/common/ |
H A D | delempty.c | 37 * 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/gss_mechs/mech_krb5/krb5/os/ |
H A D | safechown.c | 16 * safechown changes the owner ship of src to uid. If the mode parameter 17 * does not equal -1 changes the mode of src as well. 23 safechown(const char *src, uid_t uid, gid_t gid, int mode) argument 62 if (mode != -1) { 63 if (fchmod(fd, (mode_t)mode)) { 78 fprintf(stderr, "Usage %s [-u uid] [-m mode] source\n", prg); 85 int mode = -1; local 91 mode = strtol(optarg, 0, 8); 104 if (safechown(argv[optind], uid, getgid(), mode)) {
|
/osnet-11/usr/src/lib/libast/common/disc/ |
H A D | sfstrtmp.c | 48 sfstrtmp(register Sfio_t* f, int mode, void* buf, size_t siz) 55 f->mode = mode;
|
/osnet-11/usr/src/cmd/sendmail/libsm/ |
H A D | setvbuf.c | 40 ** mode -- buffering method to use 49 sm_io_setvbuf(fp, timeout, buf, mode, size) 53 int mode; 70 if (mode != SM_IO_NBF) 71 if ((mode != SM_IO_FBF && mode != SM_IO_LBF && 72 mode != SM_IO_NOW) || (int) size < 0) 97 /* If setting unbuffered mode, skip all the hard work. */ 98 if (mode == SM_IO_NBF) 159 if (mode [all...] |
/osnet-11/usr/src/cmd/sendmail/db/os/ |
H A D | os_open.c | 33 __db_open(name, arg_flags, ok_flags, mode, fdp) 36 int mode, *fdp; 93 if ((ret = __os_open(name, flags, mode, fdp)) != 0) 129 __os_open(name, flags, mode, fdp) 131 int flags, mode, *fdp; 134 __db_jump.j_open(name, flags, mode) : open(name, flags, mode);
|