/titanic_50/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | samr_clnt.c | 161 struct samr_Connect2 arg; in samr_connect2() local 166 bzero(&arg, sizeof (struct samr_Connect2)); in samr_connect2() 171 arg.servername = ndr_rpc_malloc(samr_handle, len); in samr_connect2() 172 (void) snprintf((char *)arg.servername, len, "\\\\%s", server); in samr_connect2() 173 arg.access_mask = access_mask; in samr_connect2() 175 if (ndr_rpc_call(samr_handle, opnum, &arg) != 0) { in samr_connect2() 177 } else if (arg.status != 0) { in samr_connect2() 178 status = NT_SC_VALUE(arg.status); in samr_connect2() 180 (void) memcpy(&samr_handle->handle, &arg.handle, in samr_connect2() 201 struct samr_Connect4 arg; in samr_connect4() local [all …]
|
H A D | lsar_clnt.c | 124 struct mslsa_OpenPolicy2 arg; in lsar_open_policy2() local 134 bzero(&arg, sizeof (struct mslsa_OpenPolicy2)); in lsar_open_policy2() 137 arg.servername = ndr_rpc_malloc(lsa_handle, len); in lsar_open_policy2() 138 if (arg.servername == NULL) { in lsar_open_policy2() 143 (void) snprintf((char *)arg.servername, len, "\\\\%s", server); in lsar_open_policy2() 144 arg.attributes.length = sizeof (struct mslsa_object_attributes); in lsar_open_policy2() 145 arg.desiredAccess = MAXIMUM_ALLOWED; in lsar_open_policy2() 147 if (ndr_rpc_call(lsa_handle, opnum, &arg) != 0) { in lsar_open_policy2() 151 status = arg.status; in lsar_open_policy2() 153 (void) memcpy(&lsa_handle->handle, &arg.domain_handle, in lsar_open_policy2() [all …]
|
H A D | srvsvc_clnt.c | 96 struct mlsm_NetShareGetInfo arg; in srvsvc_net_share_get_info() local 116 bzero(&arg, sizeof (struct mlsm_NetShareGetInfo)); in srvsvc_net_share_get_info() 119 arg.servername = ndr_rpc_malloc(&handle, len); in srvsvc_net_share_get_info() 120 if (arg.servername == NULL) { in srvsvc_net_share_get_info() 125 (void) snprintf((char *)arg.servername, len, "\\\\%s", server); in srvsvc_net_share_get_info() 126 arg.netname = (LPTSTR)netname; in srvsvc_net_share_get_info() 127 arg.level = srvsvc_info_level; /* share information level */ in srvsvc_net_share_get_info() 129 rc = ndr_rpc_call(&handle, opnum, &arg); in srvsvc_net_share_get_info() 130 if ((rc != 0) || (arg.status != 0)) { in srvsvc_net_share_get_info() 135 switch (arg.result.switch_value) { in srvsvc_net_share_get_info() [all …]
|
/titanic_50/usr/src/lib/libshare/smb/ |
H A D | smb_share_doorclnt.c | 121 door_arg_t *arg; in smb_share_door_clnt_enter() local 131 if ((arg = malloc(sizeof (door_arg_t) + SMB_SHARE_DSIZE)) != NULL) { in smb_share_door_clnt_enter() 132 buf = ((char *)arg) + sizeof (door_arg_t); in smb_share_door_clnt_enter() 133 bzero(arg, sizeof (door_arg_t)); in smb_share_door_clnt_enter() 134 arg->data_ptr = buf; in smb_share_door_clnt_enter() 135 arg->rbuf = buf; in smb_share_door_clnt_enter() 136 arg->rsize = SMB_SHARE_DSIZE; in smb_share_door_clnt_enter() 142 return (arg); in smb_share_door_clnt_enter() 149 smb_share_door_clnt_exit(door_arg_t *arg, boolean_t must_close, char *errmsg) in smb_share_door_clnt_exit() argument 155 free(arg); in smb_share_door_clnt_exit() [all …]
|
/titanic_50/usr/src/tools/cw/ |
H A D | cw.c | 487 newae(struct aelist *ael, const char *arg) in newae() argument 493 ae->ae_arg = strdup(arg); in newae() 516 error(const char *arg) in error() argument 519 "%s: error: mapping failed at or near arg '%s'\n", progname, arg); in error() 687 char *arg = *++ctx->i_oldargv; in do_gcc() local 688 size_t arglen = strlen(arg); in do_gcc() 690 if (*arg == '-') { in do_gcc() 697 strcmp(arg + arglen - 3, ".il") == 0) in do_gcc() 701 arg[arglen - 2] == '.' && in do_gcc() 702 (arg[arglen - 1] == 'S' || arg[arglen - 1] == 's' || in do_gcc() [all …]
|
/titanic_50/usr/src/lib/krb5/kadm5/clnt/ |
H A D | client_principal.c | 56 cprinc_arg arg; in kadm5_create_principal() local 61 memset(&arg, 0, sizeof(arg)); in kadm5_create_principal() 62 arg.mask = mask; in kadm5_create_principal() 63 arg.passwd = pw; in kadm5_create_principal() 64 arg.api_version = handle->api_version; in kadm5_create_principal() 70 memcpy(&arg.rec, princ, sizeof(kadm5_principal_ent_rec_v1)); in kadm5_create_principal() 72 memcpy(&arg.rec, princ, sizeof(kadm5_principal_ent_rec)); in kadm5_create_principal() 83 arg.rec.mod_name = NULL; in kadm5_create_principal() 85 arg.rec.mod_name = NULL; in kadm5_create_principal() 88 arg.rec.policy = NULL; in kadm5_create_principal() [all …]
|
H A D | clnt_policy.c | 47 cpol_arg arg; in kadm5_create_policy() local 56 arg.mask = mask; in kadm5_create_policy() 57 arg.api_version = handle->api_version; in kadm5_create_policy() 58 memcpy(&arg.rec, policy, sizeof(kadm5_policy_ent_rec)); in kadm5_create_policy() 59 r = create_policy_2(&arg, handle->clnt); in kadm5_create_policy() 69 dpol_arg arg; in kadm5_delete_policy() local 78 arg.name = name; in kadm5_delete_policy() 79 arg.api_version = handle->api_version; in kadm5_delete_policy() 81 r = delete_policy_2(&arg, handle->clnt); in kadm5_delete_policy() 92 mpol_arg arg; in kadm5_modify_policy() local [all …]
|
/titanic_50/usr/src/cmd/smbsrv/smbd/ |
H A D | smbd_doorsvc.c | 286 smbd_arg_t *arg = NULL; in smbd_door_dispatch_async() local 297 if ((arg = malloc(sizeof (smbd_arg_t))) == NULL) { in smbd_door_dispatch_async() 303 (void) memcpy(arg, req_arg, sizeof (smbd_arg_t)); in smbd_door_dispatch_async() 304 arg->data = NULL; in smbd_door_dispatch_async() 308 free(arg); in smbd_door_dispatch_async() 315 arg->data = data; in smbd_door_dispatch_async() 319 arg->magic = SMBD_ARG_MAGIC; in smbd_door_dispatch_async() 320 list_insert_tail(&smbd_doorsvc.sd_async_list, arg); in smbd_door_dispatch_async() 326 rc = pthread_create(&tid, &attr, smbd_door_dispatch_op, arg); in smbd_door_dispatch_async() 331 smbd_door_release_async(arg); in smbd_door_dispatch_async() [all …]
|
/titanic_50/usr/src/lib/libxcurses/src/libc/gen/ |
H A D | base.c | 66 basedir(char *arg, int type) in basedir() argument 70 if (arg==(char *)0 || *arg=='\0' || in basedir() 71 (*arg=='.' && (arg[1]=='\0' || in basedir() 72 (type==DIRNAME && arg[1]=='.' && arg[2]=='\0')))) in basedir() 76 if (M_DRDELIM(arg[1])) /* drive-specified pathnames */ in basedir() 77 path = arg+2; in basedir() 79 path = arg; in basedir() 82 return arg; in basedir() 94 if (type==DIRNAME && path!=arg) { in basedir() 96 return arg; /* curdir on the specified drive */ in basedir() [all …]
|
/titanic_50/usr/src/lib/libnsl/rpc/ |
H A D | key_call.c | 126 setkeyarg3 arg; in key_setsecret_g() local 131 arg.key.keybuf3_len = keylen/4 + 1; in key_setsecret_g() 132 arg.key.keybuf3_val = secretkey; in key_setsecret_g() 133 arg.algtype = algtype; in key_setsecret_g() 134 arg.keylen = keylen; in key_setsecret_g() 135 arg.userkey = userkey; in key_setsecret_g() 136 if (!key_call((rpcproc_t)KEY_SET_3, xdr_setkeyarg3, (char *)&arg, in key_setsecret_g() 240 mechtype arg; in key_secretkey_is_set_g_ext() local 253 arg.keylen = keylen; in key_secretkey_is_set_g_ext() 254 arg.algtype = algtype; in key_secretkey_is_set_g_ext() [all …]
|
/titanic_50/usr/src/lib/libdtrace/common/ |
H A D | dt_options.c | 49 dt_opt_agg(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_agg() argument 53 if (arg != NULL) in dt_opt_agg() 62 dt_opt_amin(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_amin() argument 67 if (arg == NULL || dtrace_str2attr(arg, &attr) == -1) in dt_opt_amin() 109 dt_opt_core(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_core() argument 113 if (arg != NULL) in dt_opt_core() 124 dt_opt_cpp_hdrs(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_cpp_hdrs() argument 126 if (arg != NULL) in dt_opt_cpp_hdrs() 140 dt_opt_cpp_path(dtrace_hdl_t *dtp, const char *arg, uintptr_t option) in dt_opt_cpp_path() argument 144 if (arg == NULL) in dt_opt_cpp_path() [all …]
|
H A D | dt_sugar.c | 195 dt_node_t *arg; in dt_sugar_visit_all() local 209 for (arg = dnp->dn_args; arg != NULL; arg = arg->dn_list) in dt_sugar_visit_all() 210 dt_sugar_visit_all(dp, arg); in dt_sugar_visit_all() 241 for (arg = dnp->dn_aggtup; arg != NULL; arg = arg->dn_list) in dt_sugar_visit_all() 242 dt_sugar_visit_all(dp, arg); in dt_sugar_visit_all() 249 for (arg = dnp->dn_pdescs; arg != NULL; arg = arg->dn_list) in dt_sugar_visit_all() 250 dt_sugar_visit_all(dp, arg); in dt_sugar_visit_all() 255 for (arg = dnp->dn_acts; arg != NULL; arg = arg->dn_list) in dt_sugar_visit_all() 256 dt_sugar_visit_all(dp, arg); in dt_sugar_visit_all() 271 for (arg = dnp->dn_members; arg != NULL; arg = arg->dn_list) in dt_sugar_visit_all() [all …]
|
/titanic_50/usr/src/cmd/msgfmt/ |
H A D | option.c | 35 char *arg; in parse_option() local 41 arg = *argv; in parse_option() 42 if (*arg == '-') { in parse_option() 43 if (!*(arg + 1)) { in parse_option() 48 if ((c = *++arg) == '\0') { in parse_option() 60 if (*(arg + 1)) { in parse_option() 65 flag->idir = ++arg; in parse_option() 91 if (*(arg + 1)) { in parse_option() 96 flag->ofile = ++arg; in parse_option() 132 if (*(arg + 1) == '\0') { in parse_option() [all …]
|
/titanic_50/usr/src/cmd/ssh/sshd/ |
H A D | servconf.c | 662 char *arg, *attrib, *cp = *condition; in match_cfg_line() local 673 if ((arg = strdelim(&cp)) == NULL || *arg == '\0') { in match_cfg_line() 677 len = strlen(arg); in match_cfg_line() 683 if (match_pattern_list(user, arg, len, 0) != 1) in match_cfg_line() 687 "line %d", user, arg, line); in match_cfg_line() 689 switch (match_cfg_line_group(arg, line, user)) { in match_cfg_line() 700 if (match_hostname(host, arg, len) != 1) in match_cfg_line() 704 "%.100s' at line %d", host, arg, line); in match_cfg_line() 706 switch (addr_match_list(address, arg)) { in match_cfg_line() 709 "%.100s' at line %d", address, arg, line); in match_cfg_line() [all …]
|
/titanic_50/usr/src/cmd/print/printmgr/com/sun/admin/pm/server/ |
H A D | Printer.java | 307 public synchronized void setPrinterName(String arg) in setPrinterName() argument 309 printername = arg; in setPrinterName() 311 public synchronized void setPrinterType(String arg) in setPrinterType() argument 313 printertype = arg; in setPrinterType() 315 public synchronized void setPrintServer(String arg) in setPrintServer() argument 317 printserver = arg; in setPrintServer() 319 public synchronized void setComment(String arg) in setComment() argument 321 comment = arg; in setComment() 323 public synchronized void setMake(String arg) in setMake() argument 325 make = arg; in setMake() [all …]
|
/titanic_50/usr/src/grub/grub-0.97/stage2/ |
H A D | builtins.c | 85 static int configfile_func (char *arg, int flags); 157 blocklist_func (char *arg, int flags) in blocklist_func() argument 215 if (! grub_open (arg)) in blocklist_func() 261 boot_func (char *arg, int flags) in boot_func() argument 362 bootp_func (char *arg, int flags) in bootp_func() argument 366 if (grub_memcmp (arg, "--with-configfile", sizeof ("--with-configfile") - 1) in bootp_func() 370 arg = skip_to (0, arg); in bootp_func() 407 cat_func (char *arg, int flags) in cat_func() argument 411 if (! grub_open (arg)) in cat_func() 440 chainloader_func (char *arg, int flags) in chainloader_func() argument [all …]
|
/titanic_50/usr/src/cmd/sgs/libconv/common/ |
H A D | globals_machelf.c | 99 cef_cp(CONV_EXPN_FIELD_ARG *arg, CONV_EXPN_FIELD_STATE *state, in cef_cp() argument 133 (void) conv_invalid_val(&inv_buf, arg->oflags, 0); in cef_cp() 134 (void) strlcpy(arg->buf, inv_buf.buf, arg->bufsize); in cef_cp() 144 cef_setup(CONV_EXPN_FIELD_ARG *arg, Conv_fmt_flags_t fmt_flags, in cef_setup() argument 150 state->cur = arg->buf; in cef_setup() 151 state->room = arg->bufsize; in cef_setup() 153 state->sep_str = arg->sep ? arg->sep : MSG_ORIG(MSG_GBL_SEP); in cef_setup() 158 if (!cef_cp(arg, state, FALSE, in cef_setup() 159 (arg->prefix ? arg->prefix : MSG_ORIG(MSG_GBL_OSQBRKT)))) in cef_setup() 163 lead_str = arg->lead_str; in cef_setup() [all …]
|
/titanic_50/usr/src/lib/libcmd/common/ |
H A D | mkdir.c | 67 register char* arg; in b_mkdir() local 87 mode = strperm(arg = opt_info.arg, &opt_info.arg, mode); in b_mkdir() 88 if (*opt_info.arg) in b_mkdir() 89 error(ERROR_exit(0), "%s: invalid mode", arg); in b_mkdir() 98 error(2, "%s", opt_info.arg); in b_mkdir() 101 error(ERROR_usage(2), "%s", opt_info.arg); in b_mkdir() 123 while (arg = *argv++) in b_mkdir() 125 if (mkdir(arg, mode) < 0) in b_mkdir() 129 error(ERROR_system(0), "%s:", arg); in b_mkdir() 140 n = strlen(arg); in b_mkdir() [all …]
|
/titanic_50/usr/src/uts/common/avs/ns/dsw/ |
H A D | dsw.c | 60 static int iiioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *crp, 146 extern int _ii_config(intptr_t arg, int ilp32, int *rvp, int iflags); 147 extern int _ii_disable(intptr_t arg, int ilp32, int *rvp); 148 extern int _ii_suspend(intptr_t arg, int ilp32, int *rvp); 149 extern int _ii_bitmap(intptr_t arg, int ilp32, int *rvp); 150 extern int _ii_segment(intptr_t arg, int ilp32, int *rvp); 151 extern int _ii_abort(intptr_t arg, int ilp32, int *rvp); 152 extern int _ii_acopy(intptr_t arg, int ilp32, int *rvp); 153 extern int _ii_copy(intptr_t arg, int ilp32, int *rvp); 154 extern int _ii_shutdown(intptr_t arg, int *rvp); [all …]
|
/titanic_50/usr/src/uts/common/io/1394/adapters/ |
H A D | hci1394_ioctl.c | 59 static int hci1394_ioctl_wrreg(hci1394_state_t *soft_state, void *arg, 61 static int hci1394_ioctl_rdreg(hci1394_state_t *soft_state, void *arg, 63 static int hci1394_ioctl_wrvreg(hci1394_state_t *soft_state, void *arg, 65 static int hci1394_ioctl_rdvreg(hci1394_state_t *soft_state, void *arg, 67 static int hci1394_ioctl_selfid_cnt(hci1394_state_t *soft_state, void *arg, 69 static int hci1394_ioctl_busgen_cnt(hci1394_state_t *soft_state, void *arg, 71 static int hci1394_ioctl_wrphy(hci1394_state_t *soft_state, void *arg, 73 static int hci1394_ioctl_rdphy(hci1394_state_t *soft_state, void *arg, 75 static int hci1394_ioctl_hbainfo(hci1394_state_t *soft_state, void *arg, 77 static int hci1394_ioctl_read_selfid(hci1394_state_t *soft_state, void *arg, [all …]
|
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | syncinit.c | 48 static int prefix(char *arg, char *pref); 49 static int lookup(char **table, char *arg); 109 char *arg, *cp; in main() local 168 arg = *argv++; in main() 169 if (sscanf(arg, "%d", &speed) == 1) in main() 171 else if (strchr(arg, '=')) { in main() 172 if (prefix(arg, "loop")) { in main() 173 if (lookup(yesno, arg)) in main() 178 } else if (prefix(arg, "echo")) { in main() 179 if (lookup(yesno, arg)) in main() [all …]
|
/titanic_50/usr/src/cmd/ssh/libssh/common/ |
H A D | readconf.c | 323 char *s, *string, **charptr, *endofnumber, *keyword, *arg, *arg2, fwdarg[256]; in process_config_line() local 367 arg = strdelim(&s); in process_config_line() 368 if (!arg || *arg == '\0') in process_config_line() 371 if ((value = convtime(arg)) == -1) in process_config_line() 381 arg = strdelim(&s); in process_config_line() 382 if (!arg || *arg == '\0') in process_config_line() 385 if (strcmp(arg, "yes") == 0 || strcmp(arg, "true") == 0) in process_config_line() 387 else if (strcmp(arg, "no") == 0 || strcmp(arg, "false") == 0) in process_config_line() 500 arg = strdelim(&s); in process_config_line() 501 if (!arg || *arg == '\0') in process_config_line() [all …]
|
/titanic_50/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_deleg_ops.c | 101 deleg_rd_open(femarg_t *arg, int mode, cred_t *cr, caller_context_t *ct) in deleg_rd_open() argument 115 fp = (rfs4_file_t *)arg->fa_fnode->fn_available; in deleg_rd_open() 121 return (vnext_open(arg, mode, cr, ct)); in deleg_rd_open() 126 deleg_wr_open(femarg_t *arg, int mode, cred_t *cr, caller_context_t *ct) in deleg_wr_open() argument 139 fp = (rfs4_file_t *)arg->fa_fnode->fn_available; in deleg_wr_open() 145 return (vnext_open(arg, mode, cr, ct)); in deleg_wr_open() 154 deleg_wr_read(femarg_t *arg, uio_t *uiop, int ioflag, cred_t *cr, in deleg_wr_read() argument 162 fp = (rfs4_file_t *)arg->fa_fnode->fn_available; in deleg_wr_read() 167 return (vnext_read(arg, uiop, ioflag, cr, ct)); in deleg_wr_read() 175 deleg_rd_write(femarg_t *arg, uio_t *uiop, int ioflag, cred_t *cr, in deleg_rd_write() argument [all …]
|
/titanic_50/usr/src/lib/libc/port/gen/ |
H A D | getgrnam_r.c | 75 nss_XbyY_args_t arg; in getgrnam_r() local 81 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2group); in getgrnam_r() 82 arg.key.name = name; in getgrnam_r() 84 NSS_DBOP_GROUP_BYNAME, &arg); in getgrnam_r() 85 return ((struct group *)NSS_XbyY_FINI(&arg)); in getgrnam_r() 95 nss_XbyY_args_t arg; in getgrgid_r() local 97 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2group); in getgrgid_r() 98 arg.key.gid = gid; in getgrgid_r() 100 NSS_DBOP_GROUP_BYGID, &arg); in getgrgid_r() 101 return ((struct group *)NSS_XbyY_FINI(&arg)); in getgrgid_r() [all …]
|
H A D | nss_dbdefs.c | 391 nss_pack_key2str(void *buffer, size_t length, nss_XbyY_args_t *arg, in nss_pack_key2str() argument 404 if (buffer == NULL || length == 0 || arg == NULL || in nss_pack_key2str() 411 if (arg->key.name == NULL) in nss_pack_key2str() 413 len = strlen(arg->key.name) + 1; in nss_pack_key2str() 416 (void) strlcpy(buffer, arg->key.name, len); in nss_pack_key2str() 423 *(nssuint_t *)buffer = (nssuint_t)arg->key.number; in nss_pack_key2str() 430 *(nssuint_t *)buffer = (nssuint_t)arg->key.uid; in nss_pack_key2str() 437 *(nssuint_t *)buffer = (nssuint_t)arg->key.gid; in nss_pack_key2str() 441 if (arg->key.hostaddr.addr == NULL) in nss_pack_key2str() 443 len = arg->key.hostaddr.len; in nss_pack_key2str() [all …]
|