| /illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.talkd/ |
| H A D | in.talkd.c | 36 * University Acknowledgment- Portions of this document are derived from 71 struct sockaddr_in from; local 72 socklen_t from_size = (socklen_t)sizeof (from); 88 (struct sockaddr *)&from, &from_size); 129 pid_t val, pid; local 149 val = wait(0); 150 if (val == (pid_t)-1) { 157 } while (val != pid);
|
| /illumos-gate/usr/src/uts/sun4v/io/ |
| H A D | vnet_common.c | 37 /* convert mac address from string to uint64_t */ 41 uint64_t val = 0; local 45 val <<= 8; 46 val |= macaddr[i]; 49 return (val); 52 /* convert mac address from uint64_t to string */ 54 vnet_macaddr_ultostr(uint64_t val, uint8_t *macaddr) argument 59 value = val; 186 vnet_dring_entry_copy(vnet_public_desc_t *from, vnet_public_desc_t *to, argument 195 *to = *from; [all...] |
| /illumos-gate/usr/src/cmd/oamuser/user/ |
| H A D | userdefs.c | 213 dup_to_nl(char *from) argument 215 char *res = strdup(from); 318 time_t timeval; /* time value from time */ 412 char *val; local 414 (val = getsetdefval(tab[i].uakey, NULL)) != NULL) 415 FIELD(ud, &tab[i], char *) = val; 427 char *val = FIELD(ud, &tab[i], char *); local 428 if (val == getsetdefval(tab[i].uakey, val))
|
| /illumos-gate/usr/src/uts/sun4u/enchilada/os/ |
| H A D | enchilada.c | 116 * can cause data corruption. Will be invoked from the IDE HBA driver for 123 uint8_t val; local 130 val = pci_config_get8(isa_handle, 0x58); 145 pci_config_put8(isa_handle, 0x58, val & 0xFB); 147 pci_config_put8(isa_handle, 0x58, val); 154 pci_config_put8(isa_handle, 0x58, val & 0xF7); 156 pci_config_put8(isa_handle, 0x58, val); 235 * Macro for extracting the CPU number from the CPU id 319 * Return latency between "from" and "to" lgroups 330 plat_lgrp_latency(lgrp_handle_t from, lgrp_handle_ argument [all...] |
| /illumos-gate/usr/src/uts/sun4u/schumacher/os/ |
| H A D | schumacher.c | 104 * can cause data corruption. Will be invoked from the IDE HBA driver for 111 uint8_t val; local 118 val = pci_config_get8(isa_handle, 0x58); 133 pci_config_put8(isa_handle, 0x58, val & 0xFB); 135 pci_config_put8(isa_handle, 0x58, val); 142 pci_config_put8(isa_handle, 0x58, val & 0xF7); 144 pci_config_put8(isa_handle, 0x58, val); 218 * Macro for extracting the CPU number from the CPU id 302 * Return latency between "from" and "to" lgroups 313 plat_lgrp_latency(lgrp_handle_t from, lgrp_handle_ argument [all...] |
| /illumos-gate/usr/src/cmd/fm/eversholt/common/ |
| H A D | check.c | 473 check_propnames(enum nodetype t, struct node *np, int from, int to) argument 498 if (!from) { 501 "from flag", 513 if (!from) 516 "from flag", 527 if (!from) { 530 "from flag", 536 if (!from && !to) 538 "%s has error without from or to flags", 543 if (from) { 762 check_cycle_level(long long val) argument [all...] |
| /illumos-gate/usr/src/stand/lib/fs/nfs/ |
| H A D | pmap.c | 113 * bpmap_delport: deletes an existing entry from the list. Caution - don't 152 int c, val; local 154 for (val = 0, c = *str++; c >= '0' && c <= '9'; c = *str++) { 155 val *= 10; 156 val += c - '0'; 159 return (val); 163 * (from dlboot_inet.c) (kernel) 164 * Convert a port number from a sockaddr_in expressed 328 * Code adapted from bpmap_rmtcall() in dlboot_inet.c (kernel) 343 struct sockaddr_in *from, /* fille 332 bpmap_rmtcall( rpcprog_t prog, rpcvers_t vers, rpcproc_t proc, xdrproc_t in_xdr, caddr_t args, xdrproc_t out_xdr, caddr_t ret, int rexmit, int wait, struct sockaddr_in *to, struct sockaddr_in *from, uint_t auth) argument 423 bpmap_getport(rpcprog_t prog, rpcvers_t vers, enum clnt_stat *rpc_stat, struct sockaddr_in *to, struct sockaddr_in *from) argument [all...] |
| /illumos-gate/usr/src/cmd/pools/poold/com/sun/solaris/domain/pools/ |
| H A D | Objective.java | 315 * which are heavily loaded. The weighting is determined from the 356 Value val = new Value("type", "pset"); 359 valueList.add(val); 362 val.close(); 501 * share. The current difference from desired is already 614 * The FromResult is the quotient when a cpu is taken from it. 645 void setFromResult(double from) { argument 646 FromResult = from; 945 * to, from and without any move. 1010 * If it is a cpu from 1299 checkShort(ResourceMonitor mon, Element elem, double val) argument [all...] |
| /illumos-gate/usr/src/cmd/csh/ |
| H A D | sh.tchar.c | 56 * strtots(to, from): convert a char string 'from' into a tchar buffer 'to'. 67 strtots(tchar *to, char *from) argument 74 i = mbstotcs(NOSTR, from, 0); 82 i = mbstotcs(to, from, INT_MAX); 90 tstostr(char *to, tchar *from) argument 102 /* Get sum of byte counts for each char in from. */ 104 ptc = from; 116 ptc = from; 130 * mbstotcs(to, from, tosiz 140 mbstotcs(tchar *to, char *from, int tosize) argument 344 char *val; local [all...] |
| /illumos-gate/usr/src/cmd/hal/hald/ |
| H A D | device.c | 185 /** Merge all properties from source where the key starts with 190 * @param source Device to retrieve properties from 859 hal_device_copy_property (HalDevice *from_device, const char *from, HalDevice *to_device, const char *to) argument 865 if (hal_device_has_property (from_device, from)) { 866 switch (hal_device_property_get_type (from_device, from)) { 869 to_device, to, hal_device_property_get_string (from_device, from)); 873 to_device, to, hal_device_property_get_int (from_device, from)); 877 to_device, to, hal_device_property_get_uint64 (from_device, from)); 881 to_device, to, hal_device_property_get_bool (from_device, from)); 885 to_device, to, hal_device_property_get_double (from_device, from)); 914 hal_device_property_set_attribute(HalDevice *device, const char *key, enum PropertyAttribute attr, gboolean val) argument [all...] |
| /illumos-gate/usr/src/cmd/sgs/m4/common/ |
| H A D | m4.c | 477 install(wchar_t *nam, wchar_t *val, int mode) argument 494 cp = xcalloc((l = wcslen(val))+1, sizeof (*val)); 498 while (*val) 499 *--cp = *val++; 1050 wstr2str(wchar_t *from, int alloc) argument 1057 ret = p = xmalloc(wcslen(from) * mb_cur_max + 1); 1059 while (bsiz < (wcslen(from) * mb_cur_max + 1)) { 1069 while (*from) { 1072 if (*from 1094 str2wstr(char *from, int alloc) argument [all...] |
| /illumos-gate/usr/src/uts/common/avs/ns/nsctl/ |
| H A D | nsc_dev.c | 1027 * detached from the file descriptor, released 1105 * value (as returned from nsc_strhash()) against the pathname of 1121 _nsc_setval(nsc_dev_t *dev, char *path, char *name, int val, int do_ncall) argument 1181 vp->sv_value = val; 1190 vp->sv_value = val; 1216 rval->value = val; 1370 * nsc_setval (nsc_fd_t *fd, char *name, int val) 1382 nsc_setval(nsc_fd_t *fd, char *name, int val) argument 1390 return (_nsc_setval(fd->sf_dev, NULL, name, val, TRUE)); 1397 * Get value from devic 1412 nsc_val_t *val; local 1808 _nsc_relink_fd(nsc_fd_t *fd, nsc_fd_t **from, nsc_fd_t **to, nsc_iodev_t *iodev) argument [all...] |
| /illumos-gate/usr/src/lib/libscf/common/ |
| H A D | notify_params.c | 89 { "from-uninitialized", SCF_TRANS(SCF_STATE_UNINIT, 0) }, 91 { "from-maintenance", SCF_TRANS(SCF_STATE_MAINT, 0) }, 93 { "from-offline", SCF_TRANS(SCF_STATE_OFFLINE, 0) }, 95 { "from-disabled", SCF_TRANS(SCF_STATE_DISABLED, 0) }, 97 { "from-online", SCF_TRANS(SCF_STATE_ONLINE, 0) }, 99 { "from-degraded", SCF_TRANS(SCF_STATE_DEGRADED, 0) }, 188 * Get the pg from the running snapshot of the instance (composed or not) 343 add_entry(scf_transaction_entry_t *te, scf_value_t *val) argument 345 if (scf_entry_add_value(te, val) != 0) { 346 scf_value_destroy(val); 356 scf_value_t *val = scf_value_create(h); local 369 scf_value_t *val = scf_value_create(h); local 382 scf_value_t *val = scf_value_create(h); local 395 scf_value_t *val = scf_value_create(h); local 411 scf_value_t *val = scf_value_create(h); local 906 get_value(scf_value_t *val, scf_values_t *v, int c, char *buf, int sz) argument 944 scf_value_t *val = scf_value_create(h); local 1172 get_mech_name(const char *name, char **mech, char **val) argument 1430 char *val; local 1816 char *from; /* from state */ local [all...] |
| /illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
| H A D | deltat.c | 3 /* A Bison parser, made from ./x-deltat.y 90 #define yylex(U, P) mylex (&(U)->val, (P)) 99 typedef union { int val; } YYSTYPE; member in union:__anon2529 239 /* This file comes from bison-1.28. */ 388 from coexisting. */ 422 __yy_memcpy (to, from, count) 424 char *from; 427 register char *f = from; 440 __yy_memcpy (char *to, char *from, unsigned int count) 443 register char *f = from; 439 __yy_memcpy(char *to, char *from, unsigned int count) argument [all...] |
| /illumos-gate/usr/src/lib/libdhcputil/common/ |
| H A D | dhcp_inittab.c | 72 * use them as indexes into the array returned from parse_entry(). 373 * remove any whitespace from the fields. 474 int dig, val; local 484 dig = val = 0; 491 val = (val << 4) + chr - '0'; 493 val = (val << 4) + chr - 504 *outbuf++ = val; 506 dig = val 648 int dig, val, inchr; local 1433 decode_number(uint8_t n_entries, uint8_t size, boolean_t is_signed, uint8_t granularity, const uint8_t *from, char *to, int *ierrnop) argument 1511 encode_number(uint8_t n_entries, uint8_t size, boolean_t is_signed, uint8_t granularity, const char *from, uint8_t *to, int *ierrnop) argument [all...] |
| /illumos-gate/usr/src/cmd/picl/plugins/sun4v/lib/snmp/ |
| H A D | snmplib.c | 55 * Data from the MIB is fetched based on the hints about object 56 * groups received from (possibly many threads in) the application. 96 * from snmplib.h should also be in units of 10 seconds. 103 * from the cache - which is quite a bit faster than an SNMP query - but the 326 snmp_get_int(picl_snmphdl_t hdl, char *prefix, int row, int *val, argument 334 if (smd == NULL || prefix == NULL || val == NULL) 338 * If this item should not be cached, fetch it directly from 342 ret = fetch_single_int(smd, prefix, row, val, &err); 353 if (lookup_int(prefix, row, val, grp->is_volatile) == 0) 357 * fetch it from th 385 char *val; local 449 uchar_t *val; local 1087 struct sockaddr_in from; local [all...] |
| /illumos-gate/usr/src/grub/grub-0.97/stage2/ |
| H A D | char_io.c | 204 unsigned long long val; local 226 val = *(unsigned long long *)dataptr; 230 val = (long long)*(long *)dataptr++; 232 val = *(unsigned long *)dataptr++; 234 *convert_to_ascii (str, c, val) = 0; 411 only LEN characters from LPOS. */ 517 /* Distinguish us from other lines and error messages! */ 931 unsigned long long val; local 950 val = *(unsigned long long *)dataptr; 954 val 1409 grub_memmove(void *to, const void *from, int len) argument [all...] |
| /illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.rdisc/ |
| H A D | in.rdisc.c | 17 * from this software without specific prior written permission. 190 static void pr_pack(char *buf, int cc, struct sockaddr_in *from); 288 struct sockaddr_in from; local 291 ulong_t val; local 327 val = strtol(av[0], (char **)NULL, 0); 328 if (val < 4 || val > 1800) { 333 max_adv_int = val; 344 val = strtoul(av[0], (char **)NULL, 0); 345 g_preference = val; 763 pr_pack(char *buf, int cc, struct sockaddr_in *from) argument [all...] |
| /illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/traceroute/ |
| H A D | traceroute.c | 20 * or promote products derived from this software without specific prior 95 struct sockaddr *from; member in struct:pr_set 250 * not necessarily received reply from the target (this behavior is from 255 int longjmp_return; /* return value from longjump */ 823 struct sockaddr_in *sin_from = (struct sockaddr_in *)pr->from; 825 struct sockaddr_in6 *sin6_from = (struct sockaddr_in6 *)pr->from; 919 set_sin(pr->from, &(tmp1_al->addr), pr->family); 925 set_sin(pr->from, ap, pr->family); 954 set_sin(pr->from, a 2121 double val; local 2150 int val; local [all...] |
| /illumos-gate/usr/src/cmd/ldap/ns_ldap/ |
| H A D | ldapclient.c | 33 * init Initialze (create) an LDAP client from a profile stored 36 * reads from file). 253 * clientopts_t is used to hold and pass around the param values from 313 static int file_move(const char *from, const char *to); 740 * is freed and we return from the function with the offending 741 * error return code. This macro keeps us from having to 840 /* Set additional valid params from command line */ 1130 /* Set additional valid params from command line */ 1375 /* Set additional valid params from command line */ 1676 "authentication method from " 3343 char *val = NULL; local 3579 file_move(const char *from, const char *to) argument [all...] |
| /illumos-gate/usr/src/uts/sun4v/os/ |
| H A D | mpo.c | 86 * Recover the PA page coloring bits from an RA. 112 * Build mblocks based on mblock nodes read from the MD. 138 /* Save CPU info from the MD and associate CPUs with lgroups */ 141 /* Save lgroup info from the MD */ 149 /* Save mblocks from the MD */ 155 /* Save mem_node stripes calculate from mblocks and lgroups. */ 204 /* Record status message, viewable from mdb */ 236 * Routine to read a uint64_t from a given md 239 get_int(md_t md, mde_cookie_t node, char *propname, uint64_t *val) argument 241 int err = md_get_prop_val(md, node, propname, val); 981 plat_lgrp_latency(lgrp_handle_t from, lgrp_handle_t to) argument [all...] |
| /illumos-gate/usr/src/cmd/make/bin/ |
| H A D | main.cc | 453 * stderr separately from stdout. 572 * Called from exit(), performs cleanup actions. 858 * cause return from wait3. 952 * with double hyphen appear here, from -$(MAKEFLAGS) 1078 char *from; local 1081 for (from = str; *from; from++) { 1082 switch (*from) { 1110 *to++ = *from; 1119 char *from; local 2644 Property val; local [all...] |
| /illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
| H A D | smb_share.c | 381 * case the share is removed from the cache. 465 * Removes the specified share from cache, removes it from AD 955 * Derive the real path for a share from the path provided by a client. 1411 * Delete the specified share from the cache. 1439 * Load shares from sharemgr 1524 * Load a share definition from sharemgr and add it to the cache. 1568 char *val = NULL; local 1572 val = sa_get_property_attr(prop, "value"); 1574 return (val); 1587 char *val = NULL; local 2108 smb_shr_zfs_rename(smb_share_t *from, smb_share_t *to) argument [all...] |
| /illumos-gate/usr/src/lib/libsldap/common/ |
| H A D | ns_reads.c | 167 /* Reconstruct RDN from type=value pairs */ 248 * Don't bother to reconstruct DN from RDN. Copy DN directly. 254 * Reconstruct dn from RDNs. 295 * Convert a single ldap entry from a LDAPMessage 735 * ap with the data from the "gecos" 849 const char *from, char **to) 871 if (from == NULL || from[0] == '\0' || to == NULL) 883 from); 899 const char *from, cons 848 __s_api_get_cachemgr_data(const char *type, const char *from, char **to) argument 898 __s_api_set_cachemgr_data(const char *type, const char *from, const char *to) argument 5110 unescape_filterval(char *val) argument 5172 adj_substring_filter(char *val) argument [all...] |
| /illumos-gate/usr/src/common/mpi/ |
| H A D | mpi.c | 169 /* {{{ mp_init_copy(mp, from) */ 172 mp_init_copy(mp, from) 174 Initialize mp as an exact copy of from. Returns MP_OKAY if 179 mp_err mp_init_copy(mp_int *mp, const mp_int *from) argument 181 ARGCHK(mp != NULL && from != NULL, MP_BADARG); 183 if(mp == from) 186 if((DIGITS(mp) = s_mp_alloc(ALLOC(from), sizeof(mp_digit), FLAG(from))) == NULL) 189 s_mp_copy(DIGITS(from), DIGITS(mp), USED(from)); 211 mp_copy(const mp_int *from, mp_int *to) argument 2296 mp_int t0, t1, val, tmp, two2k; local 2578 int ix = 0, val = 0; local 4604 int val, xch; local 4644 s_mp_todigit(mp_digit val, int r, int low) argument [all...] |