/illumos-gate/usr/src/lib/libast/common/sfio/ |
H A D | sfmove.c | 47 Sfoff_t n_move, sk, cur; local 98 { sk = n > 0 ? SFSEEK(fr, n, SEEK_CUR) : SFSEEK(fr, 0, SEEK_END); 99 if(sk > cur) /* safe to skip over data in current stream */ 100 { n_move += sk - cur; 102 n -= sk - cur;
|
/illumos-gate/usr/src/lib/libast/common/disc/ |
H A D | sfdcseekable.c | 63 Seek_t* sk; local 68 sk = (Seek_t*)disc; 69 sf = sk->shadow; 70 if(sk->eof) 75 if(addr+n <= sk->extent) 78 if((r = (ssize_t)(sk->extent-addr)) > 0) 87 { sk->eof = 1; 93 sk->eof = 1; 95 sk->extent += p; 111 Seek_t* sk; local 173 Seek_t* sk; local 201 reg Seek_t* sk; local [all...] |
/illumos-gate/usr/src/lib/gss_mechs/mech_dh/dh_common/ |
H A D | generic_key.c | 111 MINT *sk = mp_itom(0); /* Initial private key */ local 143 mp_mult(sk, base, sk); 145 mp_madd(sk, tmp, sk); 153 mp_mdiv(sk, modulus, tmp, sk); 156 /* The public key is root^sk % modulus */ 157 mp_pow(root, sk, modulus, pk); 159 xkey = mp_mtox(sk); 249 MINT *sk = mp_xtom(skey); local [all...] |
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/ |
H A D | bind.c | 256 struct rsock *sk = (struct rsock *)proto_handle; local 258 struct rdsv3_sock *rs = rdsv3_sk_to_rs(sk);
|
H A D | rds_recv.c | 84 rdsv3_recv_rcvbuf_delta(struct rdsv3_sock *rs, struct rsock *sk, argument 195 struct rsock *sk; local 255 sk = rdsv3_rs_to_sk(rs); 259 if (!rdsv3_sk_sock_flag(sk, SOCK_DEAD)) { 264 rdsv3_recv_rcvbuf_delta(rs, sk, inc->i_conn->c_lcong, 272 __rdsv3_wake_sk_sleep(sk); 275 sk->sk_upcalls->su_recv(sk->sk_upper_handle, NULL, 314 struct rsock *sk = rdsv3_rs_to_sk(rs); local 325 rdsv3_recv_rcvbuf_delta(rs, sk, in 458 struct rsock *sk = rdsv3_rs_to_sk(rs); local 631 struct rsock *sk = rdsv3_rs_to_sk(rs); local [all...] |
H A D | send.c | 509 struct rsock *sk = rdsv3_rs_to_sk(rs); local 515 sk->sk_upcalls->su_recv(sk->sk_upper_handle, NULL, 937 struct rsock *sk = rdsv3_rs_to_sk(rs); local 946 long timeo = rdsv3_sndtimeo(sk, nonblock); 962 mutex_enter(&sk->sk_lock); 965 mutex_exit(&sk->sk_lock); 1074 ret = rdsv3_wait_sig(sk->sk_sleep, 1085 mutex_enter(&sk->sk_sleep->waitq_mutex); 1086 sk [all...] |
H A D | af_rds.c | 89 struct rsock *sk = (struct rsock *)proto_handle; local 92 if (!sk) 95 rs = rdsv3_sk_to_rs(sk); 96 RDSV3_DPRINTF4("rdsv3_release", "Enter(rs: %p, sk: %p)", rs, sk); 98 rdsv3_sk_sock_orphan(sk); 121 while (sk->sk_refcount > 1) { 126 /* this will free the rs and sk */ 127 rdsv3_sk_sock_put(sk); 135 __rdsv3_wake_sk_sleep(struct rsock *sk) argument 166 struct rsock *sk = (struct rsock *)proto_handle; local 204 struct rsock *sk = (struct rsock *)proto_handle; local 522 struct rsock *sk = (struct rsock *)proto_handle; local 572 struct rsock *sk = (struct rsock *)proto_handle; local 622 struct rsock *sk = (struct rsock *)proto_handle; local 662 struct rsock *sk = (struct rsock *)proto_handle; local 676 struct rsock *sk = (struct rsock *)proto_handle; local 693 struct rsock *sk = (struct rsock *)proto_handle; local 713 struct rsock *sk = (struct rsock *)proto_handle; local 735 struct rsock *sk = (struct rsock *)proto_handle; local 758 struct rsock *sk = (struct rsock *)proto_handle; local 811 struct rsock *sk; local [all...] |
H A D | rdsv3_impl.c | 807 rdsv3_sock_exit_data(struct rsock *sk) argument 809 struct rdsv3_sock *rs = sk->sk_protinfo; 811 RDSV3_DPRINTF4("rdsv3_sock_exit_data", "rs: %p sk: %p", rs, sk); 814 ASSERT(rdsv3_sk_sock_flag(sk, SOCK_DEAD)); 832 rdsv3_exit_waitqueue(sk->sk_sleep); 833 kmem_free(sk->sk_sleep, sizeof (rdsv3_wait_queue_t)); 834 mutex_destroy(&sk->sk_lock); 836 kmem_cache_free(rdsv3_alloc_cache, sk); 837 RDSV3_DPRINTF4("rdsv3_sock_exit_data", "rs: %p sk 849 struct rsock *sk; local 862 rdsv3_sock_init_data(struct rsock *sk) argument [all...] |
/illumos-gate/usr/src/lib/libnsl/key/ |
H A D | gen_dhkeys.c | 123 MINT *sk = mp_itom(0); local 141 mp_mult(sk, base, sk); 142 mp_madd(sk, tmp, sk); 146 mp_mdiv(sk, modulus, tmp, sk); 148 mp_pow(root, sk, modulus, pk); 149 xkey = mp_mtox(sk); 153 mp_mfree(sk); [all...] |
/illumos-gate/usr/src/cmd/keyserv/ |
H A D | keyserv_cache.c | 866 struct dhkey *sk; local 875 (sk = keybuf3_2_dhkey(secret)) == 0) { 882 free(sk); 898 memcpy(&(skck->secret), sk, DHKEYSIZE(sk)); 900 free(sk);
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | netstack.c | 1179 struct shared_kstat_list *sk; local 1193 for (sk = netstack_shared_kstats; sk != NULL; sk = sk->sk_next) { 1194 kstat_zone_add(sk->sk_kstat, zoneid); 1203 struct shared_kstat_list *sk; local 1224 for (sk = netstack_shared_kstats; sk != NULL; sk 1236 struct shared_kstat_list *sk; local 1260 struct shared_kstat_list **skp, *sk; local [all...] |
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/ |
H A D | kernelAttributeUtil.c | 3541 secret_key_obj_t *sk; local 3543 sk = malloc(sizeof (secret_key_obj_t)); 3544 if (sk == NULL) { 3547 (void) memcpy(sk, old_secret_key_obj_p, sizeof (secret_key_obj_t)); 3550 sk->sk_value = malloc((sizeof (CK_BYTE) * sk->sk_value_len)); 3551 if (sk->sk_value == NULL) { 3552 free(sk); 3555 (void) memcpy(sk->sk_value, old_secret_key_obj_p->sk_value, 3556 (sizeof (CK_BYTE) * sk [all...] |
/illumos-gate/usr/src/lib/fm/libdiskstatus/common/ |
H A D | ds_scsi.c | 537 uint_t sk, asc, ascq; local 548 PC_CUMULATIVE, (caddr_t)sp, buflen, &sk, &asc, &ascq)) == 0) { 594 "(KEY=0x%x ASC=0x%x ASCq=0x%x)\n", sk, asc, ascq);
|
/illumos-gate/usr/src/cmd/dc/ |
H A D | dc.c | 104 int sk, sk1, sk2; local 163 sk = sk1; 164 if (sk < sk2) 165 sk = sk2; 166 if (sk < k) 167 sk = k; 168 p = removc(p, n - sk); 169 savk = sk;
|
/illumos-gate/usr/src/uts/common/sys/ib/clients/rdsv3/ |
H A D | rdsv3_impl.h | 358 void rdsv3_sock_init_data(struct rsock *sk); 359 void rdsv3_sock_exit_data(struct rsock *sk); 376 rdsv3_sk_sock_hold(struct rsock *sk) argument 378 atomic_inc_32(&sk->sk_refcount); 381 rdsv3_sk_sock_put(struct rsock *sk) argument 383 if (atomic_dec_and_test(&sk->sk_refcount)) 384 rdsv3_sock_exit_data(sk); 387 rdsv3_sk_sock_flag(struct rsock *sk, uint_t flag) argument 389 return (test_bit(flag, &sk->sk_flag)); 392 rdsv3_sk_sock_orphan(struct rsock *sk) argument [all...] |
H A D | rdsv3.h | 471 rdsv3_sk_to_rs(const struct rsock *sk) argument 473 return ((struct rdsv3_sock *)sk->sk_protinfo); 541 void __rdsv3_wake_sk_sleep(struct rsock *sk);
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softAttributeUtil.c | 6313 secret_key_obj_t *sk; local 6315 sk = malloc(sizeof (secret_key_obj_t)); 6316 if (sk == NULL) { 6319 (void) memcpy(sk, old_secret_key_obj_p, sizeof (secret_key_obj_t)); 6322 sk->sk_value = malloc((sizeof (CK_BYTE) * sk->sk_value_len)); 6323 if (sk->sk_value == NULL) { 6324 free(sk); 6327 (void) memcpy(sk->sk_value, old_secret_key_obj_p->sk_value, 6328 (sizeof (CK_BYTE) * sk [all...] |