Home
last modified time | relevance | path

Searched refs:strncpy (Results 1 – 25 of 1056) sorted by relevance

12345678910>>...43

/illumos-gate/usr/src/cmd/ttymon/
H A Dtmutmp.c66 (void) strncpy(&up->ut_user[1], Tag, sizeof (up->ut_user)-1); in account()
67 (void) strncpy(up->ut_line, lastname(line), sizeof (up->ut_line)); in account()
95 (void) strncpy(buf, lastname(line), sizeof (u->ut_line)); in checkut_line()
102 (void) strncpy(ttyn, u->ut_line, in checkut_line()
133 (void) strncpy(user, up->ut_user, sizeof (up->ut_user)); in cleanut()
135 (void) strncpy(ttyn, up->ut_line, sizeof (up->ut_line)); in cleanut()
137 (void) strncpy(rhost, up->ut_host, in cleanut()
188 (void) strncpy(u->ut_line, lastname(line), in getty_account()
190 (void) strncpy(u->ut_user, "LOGIN", in getty_account()
/illumos-gate/usr/src/cmd/bnu/
H A Dgtcfile.c76 (void) strncpy(cmfile, csave[i].file, NAMESIZE-1); in commitall()
87 (void) strncpy(csave[i].file, cmfile, NAMESIZE); in commitall()
94 (void) strncpy(jobid, BASENAME(csave[0].file, '.'), NAMESIZE); in commitall()
115 (void) strncpy(file, csave[i].file, NAMESIZE-1);
147 (void) strncpy(csave[ncsave].file, BASENAME(file, '/'), NAMESIZE-1);
148 (void) strncpy(csave[ncsave].sys, sys, NAMESIZE-1);
149 (void) strncpy (csave[ncsave].sgrade, grd, NAMESIZE-1);
182 (void) strncpy(remote, sys, NAMESIZE);
/illumos-gate/usr/src/cmd/ypcmd/
H A Dypalias.c68 strncpy(result, name, NAME_MAX-4);
69 strncpy(&result[NAME_MAX-4],
75 strncpy(tmpbuf, result, NAME_MAX);
98 (void) strncpy(result, name, MAXALIASLEN-4);
99 (void) strncpy(&result[MAXALIASLEN-4],
105 (void) strncpy(tmpbuf, result, MAXALIASLEN);
/illumos-gate/usr/src/uts/common/crypto/core/
H A Dkcf_mech_tabs.c181 (void) strncpy(kcf_digest_mechs_tab[0].me_name, SUN_CKM_MD5, in kcf_init_mech_tabs()
185 (void) strncpy(kcf_digest_mechs_tab[1].me_name, SUN_CKM_SHA1, in kcf_init_mech_tabs()
190 (void) strncpy(kcf_cipher_mechs_tab[0].me_name, SUN_CKM_DES_CBC, in kcf_init_mech_tabs()
198 (void) strncpy(kcf_cipher_mechs_tab[2].me_name, SUN_CKM_DES_ECB, in kcf_init_mech_tabs()
222 (void) strncpy(kcf_cipher_mechs_tab[8].me_name, SUN_CKM_RC4, in kcf_init_mech_tabs()
228 (void) strncpy(kcf_mac_mechs_tab[0].me_name, SUN_CKM_MD5_HMAC, in kcf_init_mech_tabs()
236 (void) strncpy(kcf_mac_mechs_tab[2].me_name, SUN_CKM_SHA1_HMAC, in kcf_init_mech_tabs()
244 (void) strncpy(kcf_mac_mechs_tab[4].me_name, SUN_CKM_AES_GMAC, in kcf_init_mech_tabs()
248 (void) strncpy(kcf_mac_mechs_tab[5].me_name, SUN_CKM_AES_CMAC, in kcf_init_mech_tabs()
253 (void) strncpy(kcf_misc_mechs_tab[0].me_name, SUN_RANDOM, in kcf_init_mech_tabs()
[all …]
/illumos-gate/usr/src/lib/krb5/kadm5/
H A Dchpass_util.c126 (void) strncpy(msg_ret, string_text(CHPASS_UTIL_NEW_PASSWORD_MISMATCH), in _kadm5_chpass_principal_util()
131 (void) strncpy(msg_ret, error_message(code), msg_len - 1); in _kadm5_chpass_principal_util()
145 strncpy(msg_ret, string_text(CHPASS_UTIL_NO_PASSWORD_READ), msg_len - 1); in _kadm5_chpass_principal_util()
187 strncpy(msg_ret, string_text(CHPASS_UTIL_PASSWORD_CHANGED), msg_len - 1); in _kadm5_chpass_principal_util()
206 strncpy(msg_ret, string_text(CHPASS_UTIL_PASSWORD_REUSE), msg_len - 1); in _kadm5_chpass_principal_util()
212 strncpy(msg_ret, string_text(CHPASS_UTIL_PASSWORD_IN_DICTIONARY), in _kadm5_chpass_principal_util()
223 strncpy(msg_ret, error_message(code2), msg_len - 1); in _kadm5_chpass_principal_util()
240 strncpy(msg_ret, error_message(code), msg_len - 1 - strlen(msg_ret)); in _kadm5_chpass_principal_util()
242 strncpy(msg_ret, string_text(CHPASS_UTIL_NO_POLICY_YET_Q_ERROR), in _kadm5_chpass_principal_util()
245 strncpy(msg_ret, string_text(CHPASS_UTIL_PASSWORD_NOT_CHANGED), in _kadm5_chpass_principal_util()
/illumos-gate/usr/src/cmd/abi/spectrans/spec2trace/
H A Ddb.c73 (void) strncpy(Database.Current_Library, p, in db_set_current_library()
90 (void) strncpy(Database.Current_Interface, p, in db_set_current_interface()
109 (void) strncpy(Database.Source_Directory, p, in db_set_source_directory()
128 (void) strncpy(Database.Target_Directory, p, in db_set_target_directory()
145 (void) strncpy(Database.Current_File, p, in db_set_current_file()
171 (void) strncpy(Database.Output_File, p, sizeof (Database.Output_File)); in db_set_output_file()
196 (void) strncpy(buffer, Database.Current_File, sizeof (buffer)); in db_get_output_file()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dan_to_ln.c87 strncpy(mname, fprincname, mlen); in aname_full_to_mapping_name()
135 strncpy(lname, contents.dptr, lnsize);
231 strncpy(regexp, startp, regexlen); in aname_do_match()
303 strncpy(op, cp, match_match.rm_so); in do_replacement()
318 strncpy(op, cp, MAX_FORMAT_BUFFER - 1 - (op - out)); in do_replacement()
343 strncpy(op, cp, sdispl); in do_replacement()
352 strncpy(op, cp, MAX_FORMAT_BUFFER - 1 - (op - out)); in do_replacement()
403 strncpy(out, string, MAX_FORMAT_BUFFER - 1); in aname_replacer()
443 strncpy(rule, &cp[2], rule_size); in aname_replacer()
444 strncpy(repl, &ep[1], repl_size); in aname_replacer()
[all …]
H A Dktdefname.c55 strncpy(name, krb5_overridekeyname, namesize); in krb5_kt_default_name()
61 strncpy(name, cp, namesize); in krb5_kt_default_name()
70 strncpy(name, retval, namesize); in krb5_kt_default_name()
88 strncpy(name, krb5_defkeyname, namesize); in krb5_kt_default_name()
/illumos-gate/usr/src/psm/stand/boot/sparc/common/
H A Dinetboot.c106 (void) strncpy(tmpname, fn, strlen(fn)+1); in post_mountroot_nfs()
112 (void) strncpy(tmpname, ctmpname, in post_mountroot_nfs()
127 (void) strncpy(tmpname, cmd_line_boot_archive, in post_mountroot_nfs()
132 (void) strncpy(tmpname, def_boot_archive, in post_mountroot_nfs()
136 (void) strncpy(tmpname, def_miniroot, in post_mountroot_nfs()
/illumos-gate/usr/src/lib/mpapi/libmpscsi_vhci/common/
H A DMP_GetMPLogicalUnitProperties.c186 (void) strncpy(deviceFileName, devLink, in getDeviceFileName()
197 (void) strncpy(deviceFileName, pathName, 255); in getDeviceFileName()
316 (void) strncpy(pProps->deviceFileName, in MP_GetMPLogicalUnitProperties()
326 (void) strncpy(pProps->name, luInfo.name, sizeof (pProps->name) - 1); in MP_GetMPLogicalUnitProperties()
342 (void) strncpy(pProps->vendor, in MP_GetMPLogicalUnitProperties()
346 (void) strncpy(pProps->product, in MP_GetMPLogicalUnitProperties()
350 (void) strncpy(pProps->revision, in MP_GetMPLogicalUnitProperties()
H A DMP_GetDeviceProductProperties.c120 (void) strncpy(pProps->vendor, in MP_GetDeviceProductProperties()
124 (void) strncpy(pProps->product, in MP_GetDeviceProductProperties()
128 (void) strncpy(pProps->revision, in MP_GetDeviceProductProperties()
/illumos-gate/usr/src/cmd/th_tools/
H A Dth_manage.c87 (void) strncpy(path, argv[1], MAXPATHLEN); in main()
108 (void) strncpy(errctl.name, buf, MAXNAMELEN); in main()
113 (void) strncpy(errctl.name, argv[1], MAXNAMELEN); in main()
189 (void) strncpy(get_handles.name, errctl.name, MAXNAMELEN); in main()
208 (void) strncpy(hdli.name, errctl.name, MAXNAMELEN); in main()
353 (void) strncpy(name, driver_name, namelen); in getnameinst()
380 (void) strncpy(warg->path, path, warg->pathlen); in walk_callback()
395 (void) strncpy(warg.name, name, MAXPATHLEN); in getpath()
/illumos-gate/usr/src/lib/efcode/engine/
H A Denv.c337 (void) strncpy(cdigs, dig1, nbytes); in validfmt()
556 (void) strncpy(tbuf, fmt, bytes); in fmt_str()
557 (void) strncpy(tbuf+bytes, "%", 1); in fmt_str()
558 (void) strncpy(tbuf+bytes+1, fmt+bytes, 1); in fmt_str()
566 (void) strncpy(fmtbuf, tbuf, bsize); in fmt_str()
572 (void) strncpy(tbuf, fmt, bytes); in fmt_str()
578 (void) strncpy(tbuf, fmt, bytes); in fmt_str()
582 (void) strncpy(tbuf, fmt, bytes); in fmt_str()
584 (void) strncpy(tbuf+bytes+1, fmt+bytes, 2); in fmt_str()
621 (void) strncpy(fmtbuf, fmt, bsize); in fmt_str()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ifconfig/
H A Difconfig.c386 (void) strncpy(name, "-a", sizeof (name)); in main()
394 (void) strncpy(name, *argv, sizeof (name)); in main()
562 (void) strncpy(origname, name, sizeof (origname)); in foreachinterface()
600 (void) strncpy(origname, name, sizeof (origname)); in plumball()
1451 (void) strncpy(lifr.lifr_name, name, in setifbroadaddr()
1792 (void) strncpy(lifrp->lifr_name, nip->ni_name, in find_all_interfaces()
1823 (void) strncpy(name, origname, sizeof (name)); in addif()
2806 (void) strncpy(lifr.lifr_name, arg, LIFNAMSIZ); in setifsrc()
3894 (void) strncpy(lifr.lifr_name, lifname, in ifconfig_use_libipadm()
4007 (void) strncpy(str, s, sizeof (str)); in in_getaddr()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/telnet/
H A Dkerberos5.c504 (void) strncpy(name, UserNameRequested, MAXNAMELEN); in kerberos5_status()
528 (void) strncpy((char *)buf, " REJECT ", buflen); in kerberos5_printsub()
532 (void) strncpy((char *)buf, " ACCEPT ", buflen); in kerberos5_printsub()
545 (void) strncpy((char *)buf, " AUTH", buflen); in kerberos5_printsub()
549 (void) strncpy((char *)buf, " RESPONSE", buflen); in kerberos5_printsub()
553 (void) strncpy((char *)buf, " FORWARD", buflen); in kerberos5_printsub()
557 (void) strncpy((char *)buf, " FORWARD_ACCEPT", buflen); in kerberos5_printsub()
562 (void) strncpy((char *)buf, " FORWARD_REJECT", buflen); in kerberos5_printsub()
569 (void) strncpy((char *)buf, lbuf, buflen); in kerberos5_printsub()
574 (void) strncpy((char *)buf, lbuf, buflen); in kerberos5_printsub()
/illumos-gate/usr/src/uts/common/io/bnx/
H A Dbnx_kstat.c47 (void) strncpy(pStats->version.value.c, pUM->version, in bnx_kstat_update()
49 (void) strncpy(pStats->versionFW.value.c, pUM->versionFW, in bnx_kstat_update()
51 (void) strncpy(pStats->chipName.value.c, pUM->chipName, in bnx_kstat_update()
53 (void) strncpy(pStats->intrAlloc.value.c, pUM->intrAlloc, in bnx_kstat_update()
/illumos-gate/usr/src/cmd/prstat/
H A Dprutil.c189 (void) strncpy(str, "sleep", length); in Format_state()
192 (void) strncpy(str, "run", length); in Format_state()
195 (void) strncpy(str, "zombie", length); in Format_state()
198 (void) strncpy(str, "stop", length); in Format_state()
201 (void) strncpy(str, "idle", length); in Format_state()
204 (void) strncpy(str, "wait", length); in Format_state()
210 (void) strncpy(str, "?", length); in Format_state()
/illumos-gate/usr/src/lib/libtsol/common/
H A Dgetpathbylabel.c249 (void) strncpy(zonematch, ZONE_OPT, sizeof (zonematch)); in getnfspathbyautofs()
271 (void) strncpy(mntopts, mnt->mnt_mntopts, MAXPATHLEN); in getnfspathbyautofs()
320 (void) strncpy(p, globalpath + zp_len, MAXPATHLEN); in getnfspathbyautofs()
326 (void) strncpy(globalpath, p, global_len); in getnfspathbyautofs()
329 (void) strncpy(p, globalpath, MAXPATHLEN); in getnfspathbyautofs()
330 (void) strncpy(globalpath, mnt->mnt_mountp, in getnfspathbyautofs()
365 (void) strncpy(zonepath, prefix, MAXPATHLEN); in getglobalpath()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/talk/
H A Dget_names.c148 strncpy(msg.l_name, my_name, NAME_SIZE);
151 strncpy(msg.r_name, rem_name, NAME_SIZE);
154 strncpy(msg.r_tty, rem_tty, TTY_SIZE);
/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dload_hash.c50 strncpy(op.iplo_name, iphp->iph_name, sizeof(op.iplo_name));
57 strncpy(iph.iph_name, iphp->iph_name, sizeof(iph.iph_name));
83 strncpy(op.iplo_name, iph.iph_name, sizeof(op.iplo_name));
84 strncpy(iphp->iph_name, iph.iph_name, sizeof(op.iplo_name));
/illumos-gate/usr/src/cmd/hal/hald/
H A Dids.c181 strncpy (store_svn, line + i, in ids_find_pci()
197 strncpy (store_vn, line + i, in ids_find_pci()
223 strncpy (store_pn, line + i, in ids_find_pci()
246 strncpy (store_spn, line + i, in ids_find_pci()
441 strncpy (store_vn, line + i, in ids_find_usb()
461 strncpy (store_pn, line + i, in ids_find_usb()
H A Ddevice_info.c197 strncpy (prop_result, path, prop_result_size); in resolve_udiprop_path()
240 strncpy (udi_result, newudi, udi_result_size); in resolve_udiprop_path()
688 strncpy (pc->merge_key, attr[1], MAX_KEY_SIZE); in handle_merge()
747 strncpy (pc->merge_key, attr[1], MAX_KEY_SIZE); in handle_append_prepend()
792 strncpy (pc->merge_key, attr[1], MAX_KEY_SIZE); in handle_spawn()
819 strncpy (pc->merge_key, attr[1], MAX_KEY_SIZE); in handle_remove()
1209 strncpy (buf, pc->cdata_buf, sizeof (buf)); in end()
1226 strncpy (buf2, buf, sizeof (buf2)); in end()
1247 strncpy (buf, pc->cdata_buf, sizeof (buf)); in end()
1261 strncpy (buf2, buf, sizeof (buf2)); in end()
[all …]
/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A Dpaths.c382 (void) strncpy(nptr, _optr, _len); in expand()
415 (void) strncpy(nptr, in expand()
517 (void) strncpy(nptr, uts->uts_osname, in expand()
545 (void) strncpy(nptr, uts->uts_osrel, in expand()
586 (void) strncpy(nptr, opt->isa_name, in expand()
611 (void) strncpy(lptr, *name, in expand()
614 (void) strncpy(lptr, in expand()
618 (void) strncpy(lptr, optr, in expand()
714 (void) strncpy(buf, oname, slen); in expand()
772 (void) strncpy(nptr, _optr, _len); in expand()
[all …]
/illumos-gate/usr/src/cmd/auditreduce/
H A Dtime.c434 (void) strncpy(strs, str, 4); in derive_date()
437 (void) strncpy(strs, str + 4, 2); in derive_date()
440 (void) strncpy(strs, str + 6, 2); in derive_date()
444 (void) strncpy(strs, str + 8, 2); in derive_date()
449 (void) strncpy(strs, str + 10, 2); in derive_date()
454 (void) strncpy(strs, str + 12, 2); in derive_date()
/illumos-gate/usr/src/cmd/crypt/
H A Dcrypt.c61 (void) strncpy(buf, pw, 8);
72 (void) strncpy(buf, ret, 13);
141 (void) strncpy(key, s, 8); in main()
151 (void) strncpy(keyvar+9, argv[optind], 8); in main()

12345678910>>...43