/illumos-gate/usr/src/lib/libshell/common/sh/ |
H A D | streval.c | 127 static void arith_error(const char *message,const char *expr, int mode) argument 130 mode = (mode&3)!=0; 131 errormsg(SH_DICT,ERROR_exit(mode),message,expr);
|
/illumos-gate/usr/src/lib/libdscfg/common/ |
H A D | cfg_vols.c | 60 char *mode; member in union:hash_data_s::__anon3185 69 mode_t mode; member in struct:__anon3186 703 char *path, *mode, *cnode; local 725 if (!(mode = strtok(0, " "))) { 739 data = make_svol_data(path, mode, cnode, set - offset); 950 make_svol_data(char *path, char *mode, char *cnode, int set) argument 959 data->u.mode = strdup(mode); 973 free(p->u.mode); 1019 if (!S_ISCHR(statinfo->mode)) [all...] |
/illumos-gate/usr/src/lib/libexacct/common/ |
H A D | exacct_ops.c | 1158 int aflags, int oflags, mode_t mode) 1169 if ((fd = open(name, oflags, mode)) == -1) { 1157 ea_open(ea_file_t *ef, const char *name, const char *creator, int aflags, int oflags, mode_t mode) argument
|
/illumos-gate/usr/src/lib/libsqlite/src/ |
H A D | main.c | 478 sqlite *sqlite_open(const char *zFilename, int mode, char **pzErrMsg){ argument
|
H A D | tclsqlite.c | 1026 int mode; local 1079 mode = 0666; 1080 }else if( Tcl_GetIntFromObj(interp, objv[3], &mode)!=TCL_OK ){ 1094 p->db = sqlite_open(zFile, mode, &zErrMsg);
|
/illumos-gate/usr/src/lib/libtnfctl/ |
H A D | tnfctl_int.h | 130 enum proc_mode mode; /* mode of handle */ member in struct:tnfctl_handle 335 if (hndl->mode == INTERNAL_MODE) { \ 343 if (hndl->mode == INTERNAL_MODE) { \ 356 if (hndl->mode == INTERNAL_MODE) \
|
/illumos-gate/usr/src/lib/libnwam/common/ |
H A D | libnwam_files.c | 740 mode_t mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH; local 758 if ((fd = open(tmpfilename, O_RDWR | O_CREAT | O_TRUNC, mode)) < 0)
|
/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | pkgserv.c | 248 start_mode_t mode) 313 if (!first || mode == NEVER) 338 switch (mode) { 361 server->onetime |= (mode == RUN_ONCE); 366 if (mode == FLUSH_LOG) 395 pkgparsemode(const char *mode) argument 397 if (strcasecmp(mode, MODE_PERMANENT) == 0) { 399 } else if (strncasecmp(mode, MODE_TIMEOUT, 401 const char *pidstr = mode + sizeof (MODE_TIMEOUT) - 1; 409 } else if (strcasecmp(mode, MODE_RUN_ONC 247 pkgopenserver_i(const char *root, const char *sadmdir, boolean_t readonly, start_mode_t mode) argument 419 pkgmodeargument(start_mode_t mode) argument 441 pkgserversetmode(start_mode_t mode) argument [all...] |
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/opl/common/ |
H A D | opl.c | 426 /* Mask value : Non MTP mode - 00-7f, MTP mode - 80-ff */ 455 int mode = 0; local 462 (find_prop(pnode, "mirror-mode"))); 465 mode = (*mirror_mode); 491 cs_stat, ngrps, mode); 576 int i_factor = 2; /* default to non-mirror mode */ 586 * Obtain "mirror-mode" property from pseudo-mc. 594 * Mirror mode: 597 * Non-mirror mode [all...] |
H A D | opl_picl.c | 722 uint16_t sec_status, mode; local 737 mode = (sec_status >> PCI_CLASS_BRIDGE) & 739 if (mode) { 741 if (mode == PCI_MODE_66) 743 else if (mode == PCI_MODE_100) 745 else if (mode == PCI_MODE_133) 928 err = picl_get_prop_by_name(nodeh, "SPARC64-VII-mode", &proph);
|
/illumos-gate/usr/src/lib/libresolv2/common/dst/ |
H A D | dst_api.c | 219 * called separately with a different mode set for each step. The 222 * mode A bit mask used to specify operation(s) to be performed. 243 dst_sign_data(const int mode, DST_KEY *in_key, void **context, argument 247 DUMP(data, mode, len, "dst_sign_data()"); 249 if (mode & SIG_MODE_FINAL && 254 return (in_key->dk_func->sign(mode, in_key, context, data, len, 266 * called separately with a different mode set for each step. The 269 * mode Operations to perform this time. 286 dst_verify_data(const int mode, DST_KEY *in_key, void **context, argument 290 DUMP(data, mode, le 592 int mode; local [all...] |
/illumos-gate/usr/src/lib/libc/port/aio/ |
H A D | posix_aio.c | 122 lio_listio(int mode, aiocb_t *_RESTRICT_KYWD const *_RESTRICT_KYWD list, argument 147 switch (mode) { 182 error = (int)_kaio(AIOLIO, mode, list, nent, sigevp); 196 if (mode == LIO_WAIT || 204 head->lio_mode = mode; 206 if (mode == LIO_NOWAIT && sigevp != NULL) { 280 if (mode == LIO_WAIT && oerrno == ENOTSUP) { 286 (void) _kaio(AIOLIOWAIT, mode, list, nent, sigevp); 1319 lio_listio64(int mode, aiocb64_t *_RESTRICT_KYWD const *_RESTRICT_KYWD list, argument 1344 switch (mode) { [all...] |
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | ndbm.c | 159 dbm_open(const char *file, int flags, mode_t mode) argument 183 db->dbm_pagf = open64(db->dbm_pagbuf, flags, mode); 195 db->dbm_dirf = open64(db->dbm_pagbuf, flags, mode);
|
/illumos-gate/usr/src/lib/libcmd/common/ |
H A D | join.c | 560 outrec(register Join_t* jp, int mode) argument 569 if (mode < 0 && jp->file[0].hit++) 571 if (mode > 0 && jp->file[1].hit++) 579 i = mode >= 0; 585 j = (mode<0 && i || mode>0 && !i) ? 595 if (mode >= 0) 600 if (mode>0 && i==0) 606 if (mode||i==0)
|
/illumos-gate/usr/src/lib/brand/solaris10/s10_brand/common/ |
H A D | s10_deleted.c | 112 s10_openat(sysret_t *rval, int fd, const char *path, int oflag, mode_t mode) argument 115 fd, path, oflag, mode)); 119 s10_open(sysret_t *rval, char *path, int oflag, mode_t mode) argument 122 AT_FDCWD, path, oflag, mode)); 126 s10_creat(sysret_t *rval, char *path, mode_t mode) argument 129 AT_FDCWD, path, O_WRONLY | O_CREAT | O_TRUNC, mode)); 135 s10_openat64(sysret_t *rval, int fd, const char *path, int oflag, mode_t mode) argument 138 fd, path, oflag, mode)); 142 s10_open64(sysret_t *rval, char *path, int oflag, mode_t mode) argument 145 AT_FDCWD, path, oflag, mode)); 149 s10_creat64(sysret_t *rval, char *path, mode_t mode) argument 208 s10_chmod(sysret_t *rval, const char *name, mode_t mode) argument 215 s10_fchmod(sysret_t *rval, int filedes, mode_t mode) argument 453 s10_xmknod(sysret_t *rval, int version, const char *path, mode_t mode, dev_t dev) argument [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/ |
H A D | server.c | 241 opts &= ~WHOLE; /* WHOLE mode only useful if renaming */ 781 int f, mode, opts, wrerr, olderrno; local 798 mode = 0; 800 mode = (mode << 3) | (*cp++ - '0'); 802 error("recvf: mode not delimited\n"); 861 if ((stb.st_mode & 07777) == mode) { 865 sendrem("%s: Warning: remote mode %o != " 866 "local mode %o", target, 867 stb.st_mode & 07777, mode); 1090 int mode = stb.st_mode & S_IFMT; local [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/telnet/ |
H A D | encrypt.c | 226 EncryptEnable(char *type, char *mode) argument 235 if (EncryptType(type, mode)) 236 return (EncryptStart(mode)); 242 EncryptDisable(char *type, char *mode) argument 257 if ((mode == 0) || (isprefix(mode, "input") ? 1 : 0)) { 263 if ((mode == 0) || (isprefix(mode, "output"))) { 271 "%s: invalid encryption mode\n"), mode); 277 EncryptType(char *type, char *mode) argument 310 EncryptStart(char *mode) argument 358 EncryptStop(char *mode) argument [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/tftp/ |
H A D | main.c | 80 static char mode[32]; variable 121 static char vhelp[] = "toggle verbose mode"; 128 static char mhelp[] = "set file transfer mode"; 132 static char ashelp[] = "set mode to netascii"; 133 static char bnhelp[] = "set mode to octet"; 143 { "mode", mhelp, modecmd }, 187 (void) strlcpy(mode, "netascii", sizeof (mode)); 321 (void) fprintf(stderr, "Using %s mode to transfer files.\n", 322 mode); [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/ilbd/ilb/ |
H A D | ilb_probe.c | 64 /* Load balance mode. Value of argv[4]. */ 85 * argv[4] is the load balance mode, "DSR", "NAT", "HALF-NAT" 101 enum lb_mode mode; /* argv[4] */ member in struct:__anon149 220 param->mode = dsr; 222 param->mode = nat; 224 param->mode = half_nat; 253 switch (param->mode) { 333 /* DSR mode, need to set the next hop */ 659 /* DSR mode, need to set the next hop */ 779 /* DSR mode, nee [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_nfs3.c | 770 xdr_skip(4); /* mode */ 864 detail_mode(mode) 865 int mode; 868 (void) sprintf(get_line(0, 0), " Mode = 0%o", mode); 871 (mode & S_ISUID) != 0, 872 (mode & S_ISGID) != 0, 873 (mode & S_ISVTX) != 0); 875 perms(mode >> 6 & 0x7)); 877 perms(mode >> 3 & 0x7)); 879 perms(mode 885 uint_t fltype, mode, nlinks, uid, gid; local [all...] |
/illumos-gate/usr/src/cmd/csh/ |
H A D | sh.tchar.c | 364 creat_(tchar *name_, int mode) argument 370 fd = creat((char *)chbuf, mode); 379 open_(path_, flags, mode) 382 int mode; /* May be omitted. */ 388 fd = open((char *)chbuf, flags, mode);
|
/illumos-gate/usr/src/cmd/lvm/util/ |
H A D | metaclust.c | 285 * and do the action specified in mode 288 reset_state(uint_t mode, mdsetname_t *sp, char *drivername, md_error_t *ep) argument 308 if ((mode & (RESET_OWNER | CHOOSE_OWNER)) && !mirror_dev) { 324 if (mode & RESET_OWNER) { 340 if ((mode & GET_MIRROR_STATE) && mirror_dev) { 379 if (mode & (RESET_OWNER | CHOOSE_OWNER)) { 411 if (mode & RESET_OWNER) { 447 if (mode & CHOOSE_OWNER) { 477 if (mode & RESET_ABR) { 522 if (mode [all...] |
/illumos-gate/usr/src/cmd/fcinfo/ |
H A D | fcinfo-list.c | 50 int resourceType, int flags, int mode); 373 int resourceType, int flags, int mode) 384 printHBAPortInfo(&port, &attrs, mode); 615 int mode; local 664 "Error: Unsupported option for target mode: %c.\n"), 669 mode = TARGET_MODE; 672 mode = INITIATOR_MODE; 692 processHBA_flags, mode); 733 int mode; local 786 /* now see if it is a target mode F 371 processHBA(HBA_HANDLE handle, HBA_ADAPTERATTRIBUTES attrs, int portIndex, HBA_PORTATTRIBUTES port, HBA_FCPTARGETMAPPINGV2 *map, int resourceType, int flags, int mode) argument [all...] |
/illumos-gate/usr/src/cmd/abi/appcert/static_prof/ |
H A D | static_prof.c | 319 int mode = O_RDONLY; local 322 if ((c->obj->fd = open(c->obj->ename, mode)) < 0) { 1633 case 's': /* silent mode to turn off stderr messages */
|
/illumos-gate/usr/src/cmd/audio/audioplay/ |
H A D | audioplay.c | 143 static int path_open(char *fname, int flags, mode_t mode, char *path); 916 path_open(char *fname, int flags, mode_t mode, char *path) argument 937 return (open(fname, flags, mode)); 984 return (open(fullpath, flags, mode)); 995 return (open(fname, flags, mode));
|