Searched defs:mode (Results 26 - 50 of 288) sorted by relevance

1234567891011>>

/osnet-11/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Ddata_obj.c297 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
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...]
H A Dhwf_obj.c296 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...]
/osnet-11/usr/src/lib/libproc/common/
H A Dpr_open.c38 pr_open(struct ps_prochandle *Pr, const char *filename, int flags, mode_t mode) argument
46 return (open(filename, flags, mode));
69 adp++; /* mode argument */
70 adp->arg_value = (long)mode;
89 pr_creat(struct ps_prochandle *Pr, const char *filename, mode_t mode) argument
97 return (creat(filename, mode));
120 adp++; /* mode argument */
121 adp->arg_value = (long)mode;
/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/libnisdb/
H A Ddb_pickle.h53 pickle_mode mode; member in class:pickle_file
59 /* Constructor. Creates pickle_file with given name and mode. */
65 * Opens pickle_file with mode specified with constructor.
75 * dump/load is determined by 'mode' with which pickle_file was created.
76 * Returns 0 if successful; 1 if file cannot be opened in mode
/osnet-11/usr/src/lib/libpkg/common/
H A Dmappath.c41 #define mode(flag, pt) (!flag || ((flag == 1) && islower(pt[1])) || \ macro
83 if (mode(flag, pt)) {
206 if (mode(flag, varname)) {
/osnet-11/usr/src/lib/libcmd/common/
H A Ddirname.c101 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 Dmktemp.c31 "temporary file will have mode \brw-------\b and a temporary directory "
32 "will have mode \brwx------\b, subject to \bumask\b(1). Generated paths "
44 "[m:mode]:[mode?Set the mode of the created temporary to \amode\a. "
45 "\amode\a is symbolic or octal mode as in \bchmod\b(1). Relative modes "
46 "assume an initial mode of \bu=rwx\b.]"
69 mode_t mode = 0; local
90 mode = strperm(pfx = opt_info.arg, &opt_info.arg, S_IRWXU);
92 error(ERROR_exit(0), "%s: invalid mode", pf
[all...]
H A Dchmod.c35 "according to mode, which can be either a symbolic representation "
38 "[+?Symbolic mode strings consist of one or more comma separated list "
39 "of operations that can be perfomed on the mode. Each operation is of "
73 "[+?A numeric mode is from one to four octal digits (0-7), "
84 "[+?For symbolic links, by default, \bchmod\b changes the mode on the file "
86 "The \b-h\b options can be specified to change the mode of the link. "
95 "\b%s: mode changed to %0.4o (%s)\b, with arguments of the "
96 "pathname, the numeric mode, and the resulting permission bits as "
100 "symbolic mode specification, \bchmod\b treats this as a mode "
153 register int mode; local
[all...]
/osnet-11/usr/src/lib/libgen/common/
H A Dmkdirp.c52 mkdirp(const char *d, mode_t mode) argument
65 if (mkdir(str, mode) == 0) {
96 if (mkdir(str, mode) != 0 && errno != EEXIST) {
109 if (mkdir(str, mode) != 0 && errno != EEXIST) {
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dlock_file.c1 /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
66 krb5_lock_file(krb5_context context, int fd, int mode) argument
75 switch (mode & ~KRB5_LOCKMODE_DONTBLOCK) {
99 if (mode & KRB5_LOCKMODE_DONTBLOCK) {
133 krb5_lock_file(context, fd, mode)
136 int mode;
H A Dsafechown.c16 * 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/efcode/engine/
H A Dextend.c38 int mode; local
41 mode = POP(DS);
43 pl = dlopen(name, 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/libast/common/path/
H A Dpathaccess.c27 * 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 Dpathpath.c27 * 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/lib/libast/common/sfio/
H A D_sfopen.c38 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...]
H A Dsfreserve.c41 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 Dsfseek.c44 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 <
[all...]
H A Dsfsync.c59 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...]
/osnet-11/usr/src/lib/libc/port/stdio/
H A Dfopen.c82 char plus, mode; local
110 mode = type[0];
111 if (mode != 'r' && mode != 'w' && mode != 'a') {
126 * specified, the old access mode needs to be O_RDWR. When 'r' is
127 * specified, the old access mode needs to be O_RDONLY or O_RDWR.
128 * When 'a' or 'w' is specified, the old access mode needs to be
130 * the underlying file descriptor was not opened with a mode that
131 * would allow the stream to do successful I/O with the requested mode
[all...]
/osnet-11/usr/src/lib/libresolv2/common/isc/
H A Dev_files.c54 int mode; local
65 OK(mode = fcntl(fd, F_GETFL, NULL)); /*%< side effect: validate fd. */
68 * if the application already had it in O_NONBLOCK mode and if so, all
79 if (mode & PORT_NONBLOCK)
86 OK(fcntl(fd, F_SETFL, mode | PORT_NONBLOCK));
160 int mode, eventmask; local
171 /* Get the mode. Unless the file has been closed, errors are bad. */
172 mode = fcntl(del->fd, F_GETFL, NULL);
173 if (mode == -1 && errno != EBADF)
194 * and if !EV_WASNONBLOCK, and if we got no EBADF when we got the mode
[all...]
/osnet-11/usr/src/lib/libmail/common/
H A Dpopenvp.c53 #define tst(a, b) (*mode == 'r'? (b) : (a))
63 popenvp(char *file, char **argv, char *mode, int resetid) argument
97 return (fdopen(myside, mode));
/osnet-11/usr/src/lib/libnsl/common/
H A Ddaemon_utils.c88 open_daemon_lock(const char *name, int mode) argument
124 if ((fd = open(lock_file, mode, 0644)) == -1)
127 if (mode & O_CREAT)

Completed in 65 milliseconds

1234567891011>>