lib/libc/rpc/auth_none.c
99
authnone_marshal(AUTH *client, XDR *xdrs)
lib/libc/rpc/clnt_generic.c
100
return (client);
lib/libc/rpc/clnt_generic.c
53
CLIENT *client;
lib/libc/rpc/clnt_generic.c
84
client = clntudp_create(&sin, prog, vers, tv, &sock);
lib/libc/rpc/clnt_generic.c
85
if (client == NULL) {
lib/libc/rpc/clnt_generic.c
90
client = clnttcp_create(&sin, prog, vers, &sock, 0, 0);
lib/libc/rpc/clnt_generic.c
91
if (client == NULL) {
lib/libc/rpc/clnt_raw.c
120
client->cl_ops = &client_ops;
lib/libc/rpc/clnt_raw.c
121
client->cl_auth = authnone_create();
lib/libc/rpc/clnt_raw.c
122
if (client->cl_auth == NULL)
lib/libc/rpc/clnt_raw.c
124
return (client);
lib/libc/rpc/clnt_raw.c
89
CLIENT *client;
lib/libc/rpc/clnt_raw.c
98
client = &clp->client_object;
lib/libc/rpc/clnt_simple.c
105
if ((crp->client = clntudp_create(&server_addr, (u_long)prognum,
lib/libc/rpc/clnt_simple.c
115
clnt_stat = clnt_call(crp->client, procnum, inproc, in,
lib/libc/rpc/clnt_simple.c
49
CLIENT *client;
lib/libc/rpc/clnt_simple.c
91
if (crp->client) {
lib/libc/rpc/clnt_simple.c
92
CLNT_DESTROY(crp->client);
lib/libc/rpc/clnt_simple.c
93
crp->client = NULL;
lib/libc/rpc/pmap_clnt.c
102
client = clntudp_bufcreate(&myaddress, PMAPPROG, PMAPVERS,
lib/libc/rpc/pmap_clnt.c
104
if (client == NULL)
lib/libc/rpc/pmap_clnt.c
109
CLNT_CALL(client, PMAPPROC_UNSET, xdr_pmap, &parms, xdr_bool, &rslt,
lib/libc/rpc/pmap_clnt.c
111
CLNT_DESTROY(client);
lib/libc/rpc/pmap_clnt.c
57
CLIENT *client;
lib/libc/rpc/pmap_clnt.c
66
client = clntudp_bufcreate(&myaddress, PMAPPROG, PMAPVERS,
lib/libc/rpc/pmap_clnt.c
68
if (client == NULL)
lib/libc/rpc/pmap_clnt.c
74
if (CLNT_CALL(client, PMAPPROC_SET, xdr_pmap, &parms, xdr_bool, &rslt,
lib/libc/rpc/pmap_clnt.c
80
CLNT_DESTROY(client);
lib/libc/rpc/pmap_clnt.c
95
CLIENT *client;
lib/libc/rpc/pmap_getmaps.c
63
CLIENT *client;
lib/libc/rpc/pmap_getmaps.c
68
client = clnttcp_create(address, PMAPPROG,
lib/libc/rpc/pmap_getmaps.c
70
if (client != NULL) {
lib/libc/rpc/pmap_getmaps.c
71
if (CLNT_CALL(client, PMAPPROC_DUMP, xdr_void, NULL, xdr_pmaplist,
lib/libc/rpc/pmap_getmaps.c
73
CLNT_DESTROY(client);
lib/libc/rpc/pmap_getmaps.c
76
CLNT_DESTROY(client);
lib/libc/rpc/pmap_getport.c
60
CLIENT *client;
lib/libc/rpc/pmap_getport.c
64
client = clntudp_bufcreate(address, PMAPPROG,
lib/libc/rpc/pmap_getport.c
66
if (client != NULL) {
lib/libc/rpc/pmap_getport.c
71
if (CLNT_CALL(client, PMAPPROC_GETPORT, xdr_pmap, &parms,
lib/libc/rpc/pmap_getport.c
74
clnt_geterr(client, &rpc_createerr.cf_error);
lib/libc/rpc/pmap_getport.c
78
CLNT_DESTROY(client);
lib/libc/rpc/pmap_rmt.c
72
CLIENT *client;
lib/libc/rpc/pmap_rmt.c
78
client = clntudp_create(addr, PMAPPROG, PMAPVERS, timeout, &sock);
lib/libc/rpc/pmap_rmt.c
79
if (client != NULL) {
lib/libc/rpc/pmap_rmt.c
88
stat = CLNT_CALL(client, PMAPPROC_CALLIT, xdr_rmtcall_args, &a,
lib/libc/rpc/pmap_rmt.c
90
CLNT_DESTROY(client);
lib/libcrypto/bio/bio.h
447
#define BIO_set_ssl_mode(b,client) BIO_ctrl(b,BIO_C_SSL_MODE,client,NULL)
lib/libssl/bio_ssl.c
539
BIO_new_ssl(SSL_CTX *ctx, int client)
lib/libssl/bio_ssl.c
549
if (client)
lib/libssl/d1_lib.c
398
dtls1_listen(SSL *s, struct sockaddr *client)
lib/libssl/d1_lib.c
412
(void)BIO_dgram_get_peer(SSL_get_rbio(s), client);
lib/libssl/d1_lib.c
76
static int dtls1_listen(SSL *s, struct sockaddr *client);
lib/libssl/ssl.h
1082
BIO *BIO_new_ssl(SSL_CTX *ctx, int client);
lib/libssl/ssl.h
603
const unsigned char *in, unsigned int inlen, const unsigned char *client,
lib/libssl/ssl_tlsext.c
2158
struct tls_extension_funcs client;
lib/libssl/ssl_tlsext.c
2170
.client = {
lib/libssl/ssl_tlsext.c
2184
.client = {
lib/libssl/ssl_tlsext.c
2199
.client = {
lib/libssl/ssl_tlsext.c
2213
.client = {
lib/libssl/ssl_tlsext.c
2227
.client = {
lib/libssl/ssl_tlsext.c
2242
.client = {
lib/libssl/ssl_tlsext.c
2256
.client = {
lib/libssl/ssl_tlsext.c
2270
.client = {
lib/libssl/ssl_tlsext.c
2284
.client = {
lib/libssl/ssl_tlsext.c
2298
.client = {
lib/libssl/ssl_tlsext.c
2312
.client = {
lib/libssl/ssl_tlsext.c
2328
.client = {
lib/libssl/ssl_tlsext.c
2343
.client = {
lib/libssl/ssl_tlsext.c
2357
.client = {
lib/libssl/ssl_tlsext.c
2371
.client = {
lib/libssl/ssl_tlsext.c
2453
return &tlsext->client;
regress/lib/libpthread/close/close.c
76
int client;
regress/lib/libpthread/close/close.c
90
CHECKe(client = accept(sock, &client_addr, &client_addr_len ));
regress/lib/libpthread/close/close.c
92
discard(client);
regress/lib/libpthread/close/close.c
93
CHECKe(close(client));
regress/lib/libssl/api/apitest.c
202
do_client_server_loop(SSL *client, ssl_func client_func, SSL *server,
regress/lib/libssl/api/apitest.c
212
if (!client_func(client, "client", &client_done))
regress/lib/libssl/api/apitest.c
235
SSL *client = NULL, *server = NULL;
regress/lib/libssl/api/apitest.c
248
if ((client = tls_client(server_wbio, client_wbio)) == NULL)
regress/lib/libssl/api/apitest.c
251
if (!SSL_set_min_proto_version(client, tls_version))
regress/lib/libssl/api/apitest.c
253
if (!SSL_set_max_proto_version(client, tls_version))
regress/lib/libssl/api/apitest.c
266
if (!do_client_server_loop(client, do_connect, server, do_accept)) {
regress/lib/libssl/api/apitest.c
272
if (SSL_version(client) != tls_version) {
regress/lib/libssl/api/apitest.c
274
"want %x\n", SSL_version(client), tls_version);
regress/lib/libssl/api/apitest.c
293
peer_cert = SSL_get_peer_certificate(client);
regress/lib/libssl/api/apitest.c
294
peer_chain = SSL_get_peer_cert_chain(client);
regress/lib/libssl/api/apitest.c
339
SSL_free(client);
regress/lib/libssl/dtls/dtlstest.c
1008
if (!do_client_server_loop(client, connect_func, server, accept_func, pfd)) {
regress/lib/libssl/dtls/dtlstest.c
1019
if (!do_client_server_loop(client, do_read, server, do_write, pfd)) {
regress/lib/libssl/dtls/dtlstest.c
1027
if (!do_client_server_loop(client, do_write, server, do_read, pfd)) {
regress/lib/libssl/dtls/dtlstest.c
1035
if (!do_client_server_loop(client, do_shutdown, server, do_shutdown, pfd)) {
regress/lib/libssl/dtls/dtlstest.c
1051
SSL_free(client);
regress/lib/libssl/dtls/dtlstest.c
357
poll_timeout(SSL *client, SSL *server)
regress/lib/libssl/dtls/dtlstest.c
362
if (DTLSv1_get_timeout(client, &timeout))
regress/lib/libssl/dtls/dtlstest.c
701
do_client_server_loop(SSL *client, ssl_func *client_func, SSL *server,
regress/lib/libssl/dtls/dtlstest.c
714
if (DTLSv1_handle_timeout(client) > 0)
regress/lib/libssl/dtls/dtlstest.c
716
if (!client_func(client, "client", &client_done,
regress/lib/libssl/dtls/dtlstest.c
733
if (poll(pfd, 2, poll_timeout(client, server)) == -1)
regress/lib/libssl/dtls/dtlstest.c
962
SSL *client = NULL, *server = NULL;
regress/lib/libssl/dtls/dtlstest.c
975
if ((client = dtls_client(client_sock, &server_sin, dt->mtu)) == NULL)
regress/lib/libssl/dtls/dtlstest.c
981
tls12_record_layer_set_initial_epoch(client->rl, dt->initial_epoch);
regress/lib/libssl/dtls/dtlstest.c
985
SSL_set_info_callback(client, dtls_info_callback);
regress/lib/libssl/dtls/dtlstest.c
989
dtlstest_packet_monkey(client, dt->client_delays, dt->client_drops);
regress/lib/libssl/interop/botan/client.cpp
206
Botan::TLS::Client client(callbacks, session_mgr, creds,
regress/lib/libssl/interop/botan/client.cpp
208
callbacks.set_channel(client);
regress/lib/libssl/interop/botan/client.cpp
210
while (!client.is_closed()) {
regress/lib/libssl/interop/botan/client.cpp
218
client.received_data((uint8_t *)&buf, n);
regress/lib/libssl/quic/quictest.c
235
do_client_server_loop(SSL *client, ssl_func client_func, SSL *server,
regress/lib/libssl/quic/quictest.c
245
if (!client_func(client, "client", &client_done))
regress/lib/libssl/quic/quictest.c
267
SSL *client = NULL, *server = NULL;
regress/lib/libssl/quic/quictest.c
286
if ((client = quic_client(client_data)) == NULL)
regress/lib/libssl/quic/quictest.c
298
if (!do_client_server_loop(client, do_handshake, server, do_handshake)) {
regress/lib/libssl/quic/quictest.c
315
SSL_free(client);
regress/lib/libssl/renegotiation/renegotiation_test.c
213
do_client_server_loop(SSL *client, ssl_func client_func, SSL *server,
regress/lib/libssl/renegotiation/renegotiation_test.c
223
if (!client_func(client, "client", &client_done))
regress/lib/libssl/renegotiation/renegotiation_test.c
393
tls_check_reneg(SSL *client, SSL *server, int client_pending,
regress/lib/libssl/renegotiation/renegotiation_test.c
398
SSL_renegotiate_pending(client), SSL_num_renegotiations(client));
regress/lib/libssl/renegotiation/renegotiation_test.c
403
if (SSL_renegotiate_pending(client) != client_pending) {
regress/lib/libssl/renegotiation/renegotiation_test.c
405
SSL_renegotiate_pending(client), client_pending);
regress/lib/libssl/renegotiation/renegotiation_test.c
413
if (SSL_num_renegotiations(client) != client_num_reneg) {
regress/lib/libssl/renegotiation/renegotiation_test.c
415
SSL_num_renegotiations(client), client_num_reneg);
regress/lib/libssl/renegotiation/renegotiation_test.c
430
SSL *client = NULL, *server = NULL;
regress/lib/libssl/renegotiation/renegotiation_test.c
445
if ((client = tls_client(server_wbio, client_wbio)) == NULL)
regress/lib/libssl/renegotiation/renegotiation_test.c
448
SSL_set_options(client, trt->ssl_client_options);
regress/lib/libssl/renegotiation/renegotiation_test.c
449
SSL_set_info_callback(client, tls_client_info_callback);
regress/lib/libssl/renegotiation/renegotiation_test.c
463
if (!do_client_server_loop(client, do_connect, server, do_accept)) {
regress/lib/libssl/renegotiation/renegotiation_test.c
468
if (!do_client_server_loop(client, do_write, server, do_read)) {
regress/lib/libssl/renegotiation/renegotiation_test.c
473
if (!do_client_server_loop(client, do_read, server, do_write)) {
regress/lib/libssl/renegotiation/renegotiation_test.c
478
if (!tls_check_reneg(client, server, 0, 0, 0, 0))
regress/lib/libssl/renegotiation/renegotiation_test.c
499
if (!tls_check_reneg(client, server, 0, 1, 0, 0))
regress/lib/libssl/renegotiation/renegotiation_test.c
502
if (!do_client_server_loop(client, do_read, server, do_write)) {
regress/lib/libssl/renegotiation/renegotiation_test.c
507
if (!tls_check_reneg(client, server, (trt->client_ignored == 0), 1,
regress/lib/libssl/renegotiation/renegotiation_test.c
511
if (!do_client_server_loop(client, do_write, server, do_read)) {
regress/lib/libssl/renegotiation/renegotiation_test.c
539
if (!tls_check_reneg(client, server, 0, (trt->client_ignored != 0),
regress/lib/libssl/renegotiation/renegotiation_test.c
544
SSL_clear_num_renegotiations(client);
regress/lib/libssl/renegotiation/renegotiation_test.c
555
if (!SSL_renegotiate(client)) {
regress/lib/libssl/renegotiation/renegotiation_test.c
567
if (!tls_check_reneg(client, server, 1, 0, 0, 0))
regress/lib/libssl/renegotiation/renegotiation_test.c
570
if (!do_client_server_loop(client, do_read, server, do_write)) {
regress/lib/libssl/renegotiation/renegotiation_test.c
575
if (!tls_check_reneg(client, server, 1, 0, 1, 0))
regress/lib/libssl/renegotiation/renegotiation_test.c
578
if (!do_client_server_loop(client, do_write, server, do_read)) {
regress/lib/libssl/renegotiation/renegotiation_test.c
606
if (!tls_check_reneg(client, server, 0, 0, 1, 0))
regress/lib/libssl/renegotiation/renegotiation_test.c
610
if (!do_client_server_loop(client, do_shutdown, server, do_shutdown)) {
regress/lib/libssl/renegotiation/renegotiation_test.c
624
SSL_free(client);
regress/lib/libssl/shutdown/shutdowntest.c
208
do_client_server_loop(SSL *client, ssl_func client_func, SSL *server,
regress/lib/libssl/shutdown/shutdowntest.c
218
if (!client_func(client, "client", &client_done))
regress/lib/libssl/shutdown/shutdowntest.c
236
do_shutdown_loop(SSL *client, SSL *server)
regress/lib/libssl/shutdown/shutdowntest.c
245
if (!do_shutdown(client, "client", &client_done))
regress/lib/libssl/shutdown/shutdowntest.c
248
BIO_set_mem_eof_return(SSL_get_wbio(client), 0);
regress/lib/libssl/shutdown/shutdowntest.c
367
SSL *client = NULL, *server = NULL;
regress/lib/libssl/shutdown/shutdowntest.c
385
if ((client = tls_client(server_wbio, client_wbio)) == NULL)
regress/lib/libssl/shutdown/shutdowntest.c
387
if (!SSL_set_min_proto_version(client, ssl_version))
regress/lib/libssl/shutdown/shutdowntest.c
389
if (!SSL_set_max_proto_version(client, ssl_version))
regress/lib/libssl/shutdown/shutdowntest.c
399
if (!do_client_server_loop(client, do_connect, server, do_accept)) {
regress/lib/libssl/shutdown/shutdowntest.c
404
if (!do_client_server_loop(client, do_write, server, do_read)) {
regress/lib/libssl/shutdown/shutdowntest.c
409
if (!do_client_server_loop(client, do_read, server, do_write)) {
regress/lib/libssl/shutdown/shutdowntest.c
415
SSL_set_msg_callback(client, ssl_msg_callback);
regress/lib/libssl/shutdown/shutdowntest.c
416
SSL_set_msg_callback_arg(client, &client_close_notify);
regress/lib/libssl/shutdown/shutdowntest.c
420
SSL_set_shutdown(client, st->client_set_shutdown);
regress/lib/libssl/shutdown/shutdowntest.c
423
SSL_set_quiet_shutdown(client, st->client_quiet_shutdown);
regress/lib/libssl/shutdown/shutdowntest.c
426
if (!do_shutdown_loop(client, server)) {
regress/lib/libssl/shutdown/shutdowntest.c
431
if ((shutdown = SSL_get_shutdown(client)) != st->want_client_shutdown) {
regress/lib/libssl/shutdown/shutdowntest.c
454
if ((ssl_err = SSL_get_error(client, 0)) != SSL_ERROR_ZERO_RETURN) {
regress/lib/libssl/shutdown/shutdowntest.c
476
SSL_free(client);
regress/lib/libssl/shutdown/shutdowntest.c
486
SSL *client = NULL, *server = NULL;
regress/lib/libssl/shutdown/shutdowntest.c
503
if ((client = tls_client(server_wbio, client_wbio)) == NULL)
regress/lib/libssl/shutdown/shutdowntest.c
505
if (!SSL_set_min_proto_version(client, ssl_version))
regress/lib/libssl/shutdown/shutdowntest.c
507
if (!SSL_set_max_proto_version(client, ssl_version))
regress/lib/libssl/shutdown/shutdowntest.c
517
if (!do_client_server_loop(client, do_connect, server, do_accept)) {
regress/lib/libssl/shutdown/shutdowntest.c
522
if (!do_client_server_loop(client, do_write, server, do_read)) {
regress/lib/libssl/shutdown/shutdowntest.c
527
if (!do_client_server_loop(client, do_read, server, do_write)) {
regress/lib/libssl/shutdown/shutdowntest.c
540
if ((shutdown = SSL_get_shutdown(client)) != 0) {
regress/lib/libssl/shutdown/shutdowntest.c
551
if ((ret = SSL_shutdown(client)) != 0) {
regress/lib/libssl/shutdown/shutdowntest.c
556
if ((shutdown = SSL_get_shutdown(client)) != SSL_SENT_SHUTDOWN) {
regress/lib/libssl/shutdown/shutdowntest.c
573
if ((ret = SSL_shutdown(client)) != 1) {
regress/lib/libssl/shutdown/shutdowntest.c
578
if ((shutdown = SSL_get_shutdown(client)) !=
regress/lib/libssl/shutdown/shutdowntest.c
605
SSL_free(client);
regress/lib/libssl/ssl/ssltest.c
1109
BIO_free(client);
regress/lib/libssl/ssl/ssltest.c
270
verify_alpn(SSL *client, SSL *server)
regress/lib/libssl/ssl/ssltest.c
275
SSL_get0_alpn_selected(client, &client_proto, &client_proto_len);
regress/lib/libssl/ssl/ssltest.c
780
BIO *client = NULL, *client_io = NULL;
regress/lib/libssl/ssl/ssltest.c
787
if (!BIO_new_bio_pair(&client, bufsiz, &client_io, bufsiz))
regress/lib/libssl/ssl/ssltest.c
799
SSL_set_bio(c_ssl, client, client);
regress/lib/libssl/tls/tlstest.c
200
do_client_server_loop(SSL *client, ssl_func client_func, SSL *server,
regress/lib/libssl/tls/tlstest.c
210
if (!client_func(client, "client", &client_done))
regress/lib/libssl/tls/tlstest.c
301
SSL *client = NULL, *server = NULL;
regress/lib/libssl/tls/tlstest.c
316
if ((client = tls_client(server_wbio, client_wbio)) == NULL)
regress/lib/libssl/tls/tlstest.c
319
if (!SSL_set_min_proto_version(client, tt->client_min_version))
regress/lib/libssl/tls/tlstest.c
323
if (!SSL_set_max_proto_version(client, tt->client_max_version))
regress/lib/libssl/tls/tlstest.c
327
if (!SSL_set_cipher_list(client, tt->client_ciphers))
regress/lib/libssl/tls/tlstest.c
346
if (!do_client_server_loop(client, do_connect, server, do_accept)) {
regress/lib/libssl/tls/tlstest.c
351
if (!do_client_server_loop(client, do_write, server, do_read)) {
regress/lib/libssl/tls/tlstest.c
356
if (!do_client_server_loop(client, do_read, server, do_write)) {
regress/lib/libssl/tls/tlstest.c
361
if (!do_client_server_loop(client, do_shutdown, server, do_shutdown)) {
regress/lib/libssl/tls/tlstest.c
374
SSL_free(client);
regress/lib/libtls/signer/signertest.c
296
do_client_server_handshake(char *desc, struct tls *client,
regress/lib/libtls/signer/signertest.c
304
client_done = do_tls_handshake("client", client);
regress/lib/libtls/signer/signertest.c
318
test_tls_handshake_socket(struct tls *client, struct tls *server)
regress/lib/libtls/signer/signertest.c
331
if (tls_connect_socket(client, sv[1], "test") == -1)
regress/lib/libtls/signer/signertest.c
332
errx(1, "failed to connect: %s", tls_error(client));
regress/lib/libtls/signer/signertest.c
334
failure = do_client_server_handshake("socket", client, server_cctx);
regress/lib/libtls/signer/signertest.c
362
struct tls *client, *server;
regress/lib/libtls/signer/signertest.c
370
if ((client = tls_client()) == NULL)
regress/lib/libtls/signer/signertest.c
390
if (tls_configure(client, client_cfg) == -1)
regress/lib/libtls/signer/signertest.c
391
errx(1, "failed to configure client: %s", tls_error(client));
regress/lib/libtls/signer/signertest.c
398
failure |= test_tls_handshake_socket(client, server);
regress/lib/libtls/signer/signertest.c
401
tls_free(client);
regress/lib/libtls/tls/tlstest.c
154
do_client_server_handshake(char *desc, struct tls *client,
regress/lib/libtls/tls/tlstest.c
162
client_done = do_tls_handshake("client", client);
regress/lib/libtls/tls/tlstest.c
176
do_client_server_close(char *desc, struct tls *client, struct tls *server_cctx)
regress/lib/libtls/tls/tlstest.c
183
client_done = do_tls_close("client", client);
regress/lib/libtls/tls/tlstest.c
197
do_client_server_test(char *desc, struct tls *client, struct tls *server_cctx)
regress/lib/libtls/tls/tlstest.c
199
if (do_client_server_handshake(desc, client, server_cctx) != 0)
regress/lib/libtls/tls/tlstest.c
206
if (do_client_server_close(desc, client, server_cctx) != 0)
regress/lib/libtls/tls/tlstest.c
215
test_tls_cbs(struct tls *client, struct tls *server)
regress/lib/libtls/tls/tlstest.c
226
if (tls_connect_cbs(client, client_read, client_write, NULL,
regress/lib/libtls/tls/tlstest.c
228
errx(1, "failed to connect: %s", tls_error(client));
regress/lib/libtls/tls/tlstest.c
230
failure = do_client_server_test("callback", client, server_cctx);
regress/lib/libtls/tls/tlstest.c
238
test_tls_fds(struct tls *client, struct tls *server)
regress/lib/libtls/tls/tlstest.c
252
if (tls_connect_fds(client, cfds[0], sfds[1], "test") == -1)
regress/lib/libtls/tls/tlstest.c
253
errx(1, "failed to connect: %s", tls_error(client));
regress/lib/libtls/tls/tlstest.c
255
failure = do_client_server_test("file descriptor", client, server_cctx);
regress/lib/libtls/tls/tlstest.c
268
test_tls_socket(struct tls *client, struct tls *server)
regress/lib/libtls/tls/tlstest.c
281
if (tls_connect_socket(client, sv[1], "test") == -1)
regress/lib/libtls/tls/tlstest.c
282
errx(1, "failed to connect: %s", tls_error(client));
regress/lib/libtls/tls/tlstest.c
284
failure = do_client_server_test("socket", client, server_cctx);
regress/lib/libtls/tls/tlstest.c
298
struct tls *client, *server;
regress/lib/libtls/tls/tlstest.c
302
if ((client = tls_client()) == NULL)
regress/lib/libtls/tls/tlstest.c
330
if (tls_configure(client, client_cfg) == -1)
regress/lib/libtls/tls/tlstest.c
331
errx(1, "failed to configure client: %s", tls_error(client));
regress/lib/libtls/tls/tlstest.c
339
failure |= test_tls_cbs(client, server);
regress/lib/libtls/tls/tlstest.c
341
tls_free(client);
regress/lib/libtls/tls/tlstest.c
351
struct tls *client, *server;
regress/lib/libtls/tls/tlstest.c
356
if ((client = tls_client()) == NULL)
regress/lib/libtls/tls/tlstest.c
372
tls_reset(client);
regress/lib/libtls/tls/tlstest.c
373
if (tls_configure(client, client_cfg) == -1)
regress/lib/libtls/tls/tlstest.c
374
errx(1, "failed to configure client: %s", tls_error(client));
regress/lib/libtls/tls/tlstest.c
379
failure |= test_tls_cbs(client, server);
regress/lib/libtls/tls/tlstest.c
381
tls_reset(client);
regress/lib/libtls/tls/tlstest.c
382
if (tls_configure(client, client_cfg) == -1)
regress/lib/libtls/tls/tlstest.c
383
errx(1, "failed to configure client: %s", tls_error(client));
regress/lib/libtls/tls/tlstest.c
388
failure |= test_tls_fds(client, server);
regress/lib/libtls/tls/tlstest.c
390
tls_reset(client);
regress/lib/libtls/tls/tlstest.c
391
if (tls_configure(client, client_cfg) == -1)
regress/lib/libtls/tls/tlstest.c
392
errx(1, "failed to configure client: %s", tls_error(client));
regress/lib/libtls/tls/tlstest.c
400
failure |= test_tls_socket(client, server);
regress/lib/libtls/tls/tlstest.c
402
tls_free(client);
regress/lib/libtls/tls/tlstest.c
413
struct tls *client = NULL, *server = NULL, *server_cctx = NULL;
regress/lib/libtls/tls/tlstest.c
419
if ((client = tls_client()) == NULL)
regress/lib/libtls/tls/tlstest.c
435
if (tls_configure(client, client_cfg) == -1)
regress/lib/libtls/tls/tlstest.c
436
errx(1, "failed to configure client: %s", tls_error(client));
regress/lib/libtls/tls/tlstest.c
443
if (tls_handshake(client) != -1) {
regress/lib/libtls/tls/tlstest.c
456
if (tls_connect_cbs(client, client_read, client_write, NULL,
regress/lib/libtls/tls/tlstest.c
458
errx(1, "failed to connect: %s", tls_error(client));
regress/lib/libtls/tls/tlstest.c
460
if (do_client_server_handshake("ordering", client, server_cctx) != 0) {
regress/lib/libtls/tls/tlstest.c
465
if (tls_handshake(client) != -1) {
regress/lib/libtls/tls/tlstest.c
477
if (do_client_server_close("ordering", client, server_cctx) != 0) {
regress/lib/libtls/tls/tlstest.c
483
tls_free(client);
regress/lib/libtls/tls/tlstest.c
493
char *client;
regress/lib/libtls/tls/tlstest.c
526
"and server versions '%s'\n", i, tv->client, tv->server);
regress/lib/libtls/tls/tlstest.c
527
failure |= test_tls(tv->client, tv->server, "legacy");
regress/lib/libtls/tls/tlstest.c
539
struct tls *client, *server, *server_cctx;
regress/lib/libtls/tls/tlstest.c
543
if ((client = tls_client()) == NULL)
regress/lib/libtls/tls/tlstest.c
563
if (tls_configure(client, client_cfg) == -1)
regress/lib/libtls/tls/tlstest.c
564
errx(1, "failed to configure client: %s", tls_error(client));
regress/lib/libtls/tls/tlstest.c
578
if (tls_connect_cbs(client, client_read, client_write, NULL,
regress/lib/libtls/tls/tlstest.c
580
errx(1, "failed to connect: %s", tls_error(client));
regress/lib/libtls/tls/tlstest.c
582
if (do_client_server_test("alpn", client, server_cctx) != 0)
regress/lib/libtls/tls/tlstest.c
586
got_client = tls_conn_alpn_selected(client);
regress/lib/libtls/tls/tlstest.c
609
tls_free(client);
regress/lib/libtls/tls/tlstest.c
617
const char *client;
regress/lib/libtls/tls/tlstest.c
622
.client = "http/2,http/1.1",
regress/lib/libtls/tls/tlstest.c
627
.client = "http/2,http/1.1",
regress/lib/libtls/tls/tlstest.c
632
.client = "http/1.1,http/2",
regress/lib/libtls/tls/tlstest.c
637
.client = "http/2,http/1.1",
regress/lib/libtls/tls/tlstest.c
642
.client = "http/1.1",
regress/lib/libtls/tls/tlstest.c
662
"and server alpn '%s'\n", i, ta->client, ta->server);
regress/lib/libtls/tls/tlstest.c
663
failure |= test_tls_alpn(ta->client, ta->server, ta->selected);
regress/sys/kern/getpeereid/getpeereid_test.c
135
client(&sun);
regress/usr.bin/ssh/unittests/kex/test_kex.c
114
ASSERT_INT_EQ(ssh_init(&client, 0, &kex_params), 0);
regress/usr.bin/ssh/unittests/kex/test_kex.c
116
ASSERT_PTR_NE(client, NULL);
regress/usr.bin/ssh/unittests/kex/test_kex.c
122
ASSERT_INT_EQ(ssh_add_hostkey(client, public), 0);
regress/usr.bin/ssh/unittests/kex/test_kex.c
126
run_kex(client, server);
regress/usr.bin/ssh/unittests/kex/test_kex.c
130
ASSERT_INT_EQ(kex_send_kexinit(client), 0);
regress/usr.bin/ssh/unittests/kex/test_kex.c
131
run_kex(client, server);
regress/usr.bin/ssh/unittests/kex/test_kex.c
136
run_kex(client, server);
regress/usr.bin/ssh/unittests/kex/test_kex.c
174
run_kex(client, server2);
regress/usr.bin/ssh/unittests/kex/test_kex.c
175
ASSERT_INT_EQ(kex_send_kexinit(client), 0);
regress/usr.bin/ssh/unittests/kex/test_kex.c
176
run_kex(client, server2);
regress/usr.bin/ssh/unittests/kex/test_kex.c
183
ssh_free(client);
regress/usr.bin/ssh/unittests/kex/test_kex.c
54
run_kex(struct ssh *client, struct ssh *server)
regress/usr.bin/ssh/unittests/kex/test_kex.c
58
while (!server->kex->done || !client->kex->done) {
regress/usr.bin/ssh/unittests/kex/test_kex.c
61
if ((r = do_send_and_receive(server, client)))
regress/usr.bin/ssh/unittests/kex/test_kex.c
65
if ((r = do_send_and_receive(client, server)))
regress/usr.bin/ssh/unittests/kex/test_kex.c
72
ASSERT_INT_EQ(client->kex->done, 1);
regress/usr.bin/ssh/unittests/kex/test_kex.c
79
struct ssh *client = NULL, *server = NULL, *server2 = NULL;
sbin/iked/config.c
1384
struct iked_radclient client;
sbin/iked/config.c
1386
if (salen > sizeof(client.rc_sockaddr))
sbin/iked/config.c
1389
memcpy(&client.rc_sockaddr, sa, salen);
sbin/iked/config.c
1391
iov[0].iov_base = &client;
sbin/iked/config.c
1405
struct iked_radclient *client;
sbin/iked/config.c
1410
if (len < sizeof(*client))
sbin/iked/config.c
1413
if ((client = calloc(1, len + 1)) == NULL) {
sbin/iked/config.c
1417
memcpy(client, imsg->data, len);
sbin/iked/config.c
1419
TAILQ_INSERT_TAIL(&env->sc_raddaeclients, client, rc_entry);
sbin/iked/config.c
606
struct iked_radclient *client, *clientt;
sbin/iked/config.c
636
TAILQ_FOREACH_SAFE(client, &env->sc_raddaeclients, rc_entry,
sbin/iked/config.c
638
TAILQ_REMOVE(&env->sc_raddaeclients, client, rc_entry);
sbin/iked/config.c
639
free(client);
sbin/iked/radius.c
823
struct iked_radclient *client;
sbin/iked/radius.c
841
TAILQ_FOREACH(client, &env->sc_raddaeclients, rc_entry) {
sbin/iked/radius.c
842
if (sockaddr_cmp((struct sockaddr *)&client->rc_sockaddr,
sbin/iked/radius.c
846
if (client == NULL) {
sbin/iked/radius.c
853
client->rc_secret) != 0) {
sbin/iked/radius.c
955
radius_set_response_authenticator(res, client->rc_secret);
sys/arch/arm64/dev/rtkit.c
827
struct mbox_client client;
sys/arch/arm64/dev/rtkit.c
830
client.mc_rx_callback = rtkit_rx_callback;
sys/arch/arm64/dev/rtkit.c
831
client.mc_rx_arg = state;
sys/arch/arm64/dev/rtkit.c
833
client.mc_flags = MC_WAKEUP;
sys/arch/arm64/dev/rtkit.c
835
client.mc_flags = 0;
sys/arch/arm64/dev/rtkit.c
837
state->mc = mbox_channel(node, name, &client);
sys/dev/ic/aac.c
2596
aif->data.PR[0].jd.client.scsi_dh);
sys/dev/ic/aac.c
2601
aif->data.PR[0].jd.client.scsi_dh);
sys/dev/ic/aac.c
2606
aif->data.PR[0].jd.client.scsi_dh);
sys/dev/ic/aac.c
2611
aif->data.PR[0].jd.client.scsi_dh);
sys/dev/ic/aac.c
2616
aif->data.PR[0].jd.client.container.src);
sys/dev/ic/aac.c
2621
aif->data.PR[0].jd.client.container.src,
sys/dev/ic/aac.c
2622
aif->data.PR[0].jd.client.container.dst);
sys/dev/ic/aac.c
2627
aif->data.PR[0].jd.client.container.src);
sys/dev/ic/aac.c
2633
aif->data.PR[0].jd.client.container.src);
sys/dev/ic/aac.c
2639
aif->data.PR[0].jd.client.container.src);
sys/dev/ic/aac.c
2644
aif->data.PR[0].jd.client.container.src);
sys/dev/ic/aac.c
2649
aif->data.PR[0].jd.client.container.src);
sys/dev/ic/aac.c
2654
aif->data.PR[0].jd.client.container.src);
sys/dev/ic/aac.c
2660
aif->data.PR[0].jd.client.container.src,
sys/dev/ic/aac.c
2661
aif->data.PR[0].jd.client.container.dst);
sys/dev/ic/aac.c
2666
aif->data.PR[0].jd.client.container.src);
sys/dev/ic/aac.c
2671
aif->data.PR[0].jd.client.container.src);
sys/dev/ic/aacreg.h
715
union aac_AifJobClient client; /* Details */
sys/dev/ic/qwx.c
7729
pkt.client.node = htole32(0x01);
sys/dev/ic/qwx.c
7730
pkt.client.port = htole32(0x4000);
sys/dev/ic/qwxreg.h
6418
} client;
sys/dev/ic/qwz.c
5212
pkt.client.node = htole32(0x01);
sys/dev/ic/qwz.c
5213
pkt.client.port = htole32(0x4000);
sys/dev/ic/qwzreg.h
6472
} client;
sys/dev/ofw/ofw_misc.c
1243
mbox_channel_cells(uint32_t *cells, struct mbox_client *client)
sys/dev/ofw/ofw_misc.c
1256
cookie = md->md_channel(md->md_cookie, &cells[1], client);
sys/dev/ofw/ofw_misc.c
1283
mbox_channel_idx(int node, int idx, struct mbox_client *client)
sys/dev/ofw/ofw_misc.c
1300
mc = mbox_channel_cells(mbox, client);
sys/dev/ofw/ofw_misc.c
1312
mbox_channel(int node, const char *name, struct mbox_client *client)
sys/dev/ofw/ofw_misc.c
1320
return mbox_channel_idx(node, idx, client);
sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd.c
157
if (!adev->kfd.init_complete || adev->kfd.client.dev)
sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd.c
160
ret = drm_client_init(&adev->ddev, &adev->kfd.client, "kfd",
sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd.c
168
drm_client_register(&adev->kfd.client);
sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd.h
111
struct drm_client_dev client;
sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
1806
ret = drm_gem_handle_create(adev->kfd.client.file, gobj, &(*mem)->gem_handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
1860
drm_gem_handle_delete(adev->kfd.client.file, (*mem)->gem_handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
1975
drm_gem_handle_delete(adev->kfd.client.file, mem->gem_handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
2429
ret = drm_gem_prime_fd_to_handle(&adev->ddev, adev->kfd.client.file, fd,
sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
2433
obj = drm_gem_object_lookup(adev->kfd.client.file, handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
2451
drm_gem_handle_delete(adev->kfd.client.file, handle);
sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
825
dmabuf = drm_gem_prime_handle_to_dmabuf(&bo_adev->ddev, bo_adev->kfd.client.file,
sys/dev/pci/drm/amd/amdgpu/amdgpu_irq.c
132
if (!adev->irq.client[i].sources)
sys/dev/pci/drm/amd/amdgpu/amdgpu_irq.c
136
struct amdgpu_irq_src *src = adev->irq.client[i].sources[j];
sys/dev/pci/drm/amd/amdgpu/amdgpu_irq.c
367
if (!adev->irq.client[i].sources)
sys/dev/pci/drm/amd/amdgpu/amdgpu_irq.c
371
struct amdgpu_irq_src *src = adev->irq.client[i].sources[j];
sys/dev/pci/drm/amd/amdgpu/amdgpu_irq.c
379
kfree(adev->irq.client[i].sources);
sys/dev/pci/drm/amd/amdgpu/amdgpu_irq.c
380
adev->irq.client[i].sources = NULL;
sys/dev/pci/drm/amd/amdgpu/amdgpu_irq.c
410
if (!adev->irq.client[client_id].sources) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_irq.c
411
adev->irq.client[client_id].sources =
sys/dev/pci/drm/amd/amdgpu/amdgpu_irq.c
415
if (!adev->irq.client[client_id].sources)
sys/dev/pci/drm/amd/amdgpu/amdgpu_irq.c
419
if (adev->irq.client[client_id].sources[src_id] != NULL)
sys/dev/pci/drm/amd/amdgpu/amdgpu_irq.c
433
adev->irq.client[client_id].sources[src_id] = source;
sys/dev/pci/drm/amd/amdgpu/amdgpu_irq.c
486
} else if (!adev->irq.client[client_id].sources) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_irq.c
491
} else if ((src = adev->irq.client[client_id].sources[src_id])) {
sys/dev/pci/drm/amd/amdgpu/amdgpu_irq.c
578
if (!adev->irq.client[i].sources)
sys/dev/pci/drm/amd/amdgpu/amdgpu_irq.c
582
struct amdgpu_irq_src *src = adev->irq.client[i].sources[j];
sys/dev/pci/drm/amd/amdgpu/amdgpu_irq.h
86
struct amdgpu_irq_client client[AMDGPU_IRQ_CLIENTID_MAX];
sys/dev/pci/drm/amd/amdkfd/kfd_priv.h
1183
#define KFD_IRQ_IS_FENCE(client, source) \
sys/dev/pci/drm/amd/amdkfd/kfd_priv.h
1184
((client) == KFD_IRQ_FENCE_CLIENTID && \
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
100
spin_unlock(&client->lock);
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
105
ret = kfifo_out(&client->fifo, buf, to_copy);
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
106
spin_unlock(&client->lock);
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
129
struct kfd_smi_client *client = filep->private_data;
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
137
WRITE_ONCE(client->events, events);
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
152
struct kfd_smi_client *client = filep->private_data;
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
153
struct kfd_node *dev = client->dev;
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
156
list_del_rcu(&client->list);
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
159
call_rcu(&client->rcu, kfd_smi_ev_client_free);
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
163
static bool kfd_smi_ev_enabled(pid_t pid, struct kfd_smi_client *client,
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
166
uint64_t events = READ_ONCE(client->events);
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
168
if (pid && client->pid != pid && !client->suser)
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
177
struct kfd_smi_client *client;
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
181
list_for_each_entry_rcu(client, &dev->smi_clients, list) {
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
182
if (!kfd_smi_ev_enabled(pid, client, smi_event))
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
184
spin_lock(&client->lock);
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
185
if (kfifo_avail(&client->fifo) >= len) {
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
186
kfifo_in(&client->fifo, event_msg, len);
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
187
wake_up_all(&client->wait_queue);
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
192
spin_unlock(&client->lock);
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
370
struct kfd_smi_client *client;
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
373
client = kzalloc(sizeof(struct kfd_smi_client), GFP_KERNEL);
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
374
if (!client)
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
376
INIT_LIST_HEAD(&client->list);
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
378
ret = kfifo_alloc(&client->fifo, KFD_MAX_KFIFO_SIZE, GFP_KERNEL);
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
380
kfree(client);
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
384
init_waitqueue_head(&client->wait_queue);
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
385
spin_lock_init(&client->lock);
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
386
client->events = 0;
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
387
client->dev = dev;
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
388
client->pid = current->tgid;
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
389
client->suser = capable(CAP_SYS_ADMIN);
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
392
list_add_rcu(&client->list, &dev->smi_clients);
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
395
ret = anon_inode_getfd(kfd_smi_name, &kfd_smi_ev_fops, (void *)client,
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
399
list_del_rcu(&client->list);
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
404
kfifo_free(&client->fifo);
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
405
kfree(client);
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
68
struct kfd_smi_client *client = filep->private_data;
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
71
poll_wait(filep, &client->wait_queue, wait);
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
73
spin_lock(&client->lock);
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
74
if (!kfifo_is_empty(&client->fifo))
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
76
spin_unlock(&client->lock);
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
86
struct kfd_smi_client *client = filep->private_data;
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
97
spin_lock(&client->lock);
sys/dev/pci/drm/amd/amdkfd/kfd_smi_events.c
98
to_copy = kfifo_len(&client->fifo);
sys/dev/pci/drm/amd/display/dc/dce/dmub_hw_lock_mgr.c
42
cmd.lock_hw.lock_hw_data.client = HW_LOCK_CLIENT_DRIVER;
sys/dev/pci/drm/amd/display/dmub/inc/dmub_cmd.h
4670
enum hw_lock_client client;
sys/dev/pci/drm/apple/iomfb.h
275
struct dcp_iouserclient client;
sys/dev/pci/drm/apple/iomfb.h
283
struct dcp_iouserclient client;
sys/dev/pci/drm/apple/iomfb.h
396
struct io_user_client client;
sys/dev/pci/drm/apple/iomfb.h
402
struct io_user_client client;
sys/dev/pci/drm/apple/iomfb_template.c
861
.client = {
sys/dev/pci/drm/apple/iomfb_template.c
962
.client = {
sys/dev/pci/drm/clients/drm_fbdev_client.c
153
ret = drm_client_init(dev, &fb_helper->client, "fbdev", &drm_fbdev_client_funcs);
sys/dev/pci/drm/clients/drm_fbdev_client.c
159
drm_client_register(&fb_helper->client);
sys/dev/pci/drm/clients/drm_fbdev_client.c
16
static void drm_fbdev_client_unregister(struct drm_client_dev *client)
sys/dev/pci/drm/clients/drm_fbdev_client.c
18
struct drm_fb_helper *fb_helper = drm_fb_helper_from_client(client);
sys/dev/pci/drm/clients/drm_fbdev_client.c
23
drm_client_release(&fb_helper->client);
sys/dev/pci/drm/clients/drm_fbdev_client.c
29
static int drm_fbdev_client_restore(struct drm_client_dev *client)
sys/dev/pci/drm/clients/drm_fbdev_client.c
31
drm_fb_helper_lastclose(client->dev);
sys/dev/pci/drm/clients/drm_fbdev_client.c
36
static int drm_fbdev_client_hotplug(struct drm_client_dev *client)
sys/dev/pci/drm/clients/drm_fbdev_client.c
38
struct drm_fb_helper *fb_helper = drm_fb_helper_from_client(client);
sys/dev/pci/drm/clients/drm_fbdev_client.c
39
struct drm_device *dev = client->dev;
sys/dev/pci/drm/clients/drm_fbdev_client.c
65
static int drm_fbdev_client_suspend(struct drm_client_dev *client, bool holds_console_lock)
sys/dev/pci/drm/clients/drm_fbdev_client.c
67
struct drm_fb_helper *fb_helper = drm_fb_helper_from_client(client);
sys/dev/pci/drm/clients/drm_fbdev_client.c
77
static int drm_fbdev_client_resume(struct drm_client_dev *client, bool holds_console_lock)
sys/dev/pci/drm/clients/drm_fbdev_client.c
79
struct drm_fb_helper *fb_helper = drm_fb_helper_from_client(client);
sys/dev/pci/drm/clients/drm_log.c
190
static int drm_log_setup_modeset(struct drm_client_dev *client,
sys/dev/pci/drm/clients/drm_log.c
207
scanout->buffer = drm_client_framebuffer_create(client, width, height, format);
sys/dev/pci/drm/clients/drm_log.c
209
drm_warn(client->dev, "drm_log can't create framebuffer %d %d %p4cc\n",
sys/dev/pci/drm/clients/drm_log.c
223
static int drm_log_count_modeset(struct drm_client_dev *client)
sys/dev/pci/drm/clients/drm_log.c
228
mutex_lock(&client->modeset_mutex);
sys/dev/pci/drm/clients/drm_log.c
229
drm_client_for_each_modeset(mode_set, client)
sys/dev/pci/drm/clients/drm_log.c
231
mutex_unlock(&client->modeset_mutex);
sys/dev/pci/drm/clients/drm_log.c
237
struct drm_client_dev *client = &dlog->client;
sys/dev/pci/drm/clients/drm_log.c
244
if (drm_client_modeset_probe(client, 0, 0))
sys/dev/pci/drm/clients/drm_log.c
247
max_modeset = drm_log_count_modeset(client);
sys/dev/pci/drm/clients/drm_log.c
255
mutex_lock(&client->modeset_mutex);
sys/dev/pci/drm/clients/drm_log.c
256
drm_client_for_each_modeset(mode_set, client) {
sys/dev/pci/drm/clients/drm_log.c
259
if (drm_log_setup_modeset(client, mode_set, &dlog->scanout[n_modeset]))
sys/dev/pci/drm/clients/drm_log.c
263
mutex_unlock(&client->modeset_mutex);
sys/dev/pci/drm/clients/drm_log.c
267
if (drm_client_modeset_commit(client))
sys/dev/pci/drm/clients/drm_log.c
282
static void drm_log_free_scanout(struct drm_client_dev *client)
sys/dev/pci/drm/clients/drm_log.c
284
struct drm_log *dlog = client_to_drm_log(client);
sys/dev/pci/drm/clients/drm_log.c
296
static void drm_log_client_unregister(struct drm_client_dev *client)
sys/dev/pci/drm/clients/drm_log.c
298
struct drm_log *dlog = client_to_drm_log(client);
sys/dev/pci/drm/clients/drm_log.c
299
struct drm_device *dev = client->dev;
sys/dev/pci/drm/clients/drm_log.c
304
drm_log_free_scanout(client);
sys/dev/pci/drm/clients/drm_log.c
305
drm_client_release(client);
sys/dev/pci/drm/clients/drm_log.c
311
static int drm_log_client_hotplug(struct drm_client_dev *client)
sys/dev/pci/drm/clients/drm_log.c
313
struct drm_log *dlog = client_to_drm_log(client);
sys/dev/pci/drm/clients/drm_log.c
316
drm_log_free_scanout(client);
sys/dev/pci/drm/clients/drm_log.c
322
static int drm_log_client_suspend(struct drm_client_dev *client, bool _console_lock)
sys/dev/pci/drm/clients/drm_log.c
324
struct drm_log *dlog = client_to_drm_log(client);
sys/dev/pci/drm/clients/drm_log.c
331
static int drm_log_client_resume(struct drm_client_dev *client, bool _console_lock)
sys/dev/pci/drm/clients/drm_log.c
333
struct drm_log *dlog = client_to_drm_log(client);
sys/dev/pci/drm/clients/drm_log.c
357
if (drm_master_internal_acquire(dlog->client.dev)) {
sys/dev/pci/drm/clients/drm_log.c
358
drm_master_internal_release(dlog->client.dev);
sys/dev/pci/drm/clients/drm_log.c
406
if (drm_client_init(dev, &new->client, "drm_log", &drm_log_client_funcs))
sys/dev/pci/drm/clients/drm_log.c
409
drm_client_register(&new->client);
sys/dev/pci/drm/clients/drm_log.c
56
struct drm_client_dev client;
sys/dev/pci/drm/clients/drm_log.c
63
static struct drm_log *client_to_drm_log(struct drm_client_dev *client)
sys/dev/pci/drm/clients/drm_log.c
65
return container_of(client, struct drm_log, client);
sys/dev/pci/drm/drm_client.c
103
drm_client_modeset_free(client);
sys/dev/pci/drm/drm_client.c
122
void drm_client_register(struct drm_client_dev *client)
sys/dev/pci/drm/drm_client.c
124
struct drm_device *dev = client->dev;
sys/dev/pci/drm/drm_client.c
128
list_add(&client->list, &dev->clientlist);
sys/dev/pci/drm/drm_client.c
130
if (client->funcs && client->funcs->hotplug) {
sys/dev/pci/drm/drm_client.c
141
ret = client->funcs->hotplug(client);
sys/dev/pci/drm/drm_client.c
163
void drm_client_release(struct drm_client_dev *client)
sys/dev/pci/drm/drm_client.c
165
struct drm_device *dev = client->dev;
sys/dev/pci/drm/drm_client.c
167
drm_dbg_kms(dev, "%s\n", client->name);
sys/dev/pci/drm/drm_client.c
169
drm_client_modeset_free(client);
sys/dev/pci/drm/drm_client.c
170
drm_client_close(client);
sys/dev/pci/drm/drm_client.c
186
drm_client_buffer_create(struct drm_client_dev *client, u32 width, u32 height,
sys/dev/pci/drm/drm_client.c
191
struct drm_device *dev = client->dev;
sys/dev/pci/drm/drm_client.c
200
buffer->client = client;
sys/dev/pci/drm/drm_client.c
205
ret = drm_mode_create_dumb(dev, &dumb_args, client->file);
sys/dev/pci/drm/drm_client.c
209
obj = drm_gem_object_lookup(client->file, dumb_args.handle);
sys/dev/pci/drm/drm_client.c
34
static int drm_client_open(struct drm_client_dev *client)
sys/dev/pci/drm/drm_client.c
342
ret = drm_mode_rmfb(buffer->client->dev, buffer->fb->base.id, buffer->client->file);
sys/dev/pci/drm/drm_client.c
344
drm_err(buffer->client->dev,
sys/dev/pci/drm/drm_client.c
354
struct drm_client_dev *client = buffer->client;
sys/dev/pci/drm/drm_client.c
36
struct drm_device *dev = client->dev;
sys/dev/pci/drm/drm_client.c
364
ret = drm_mode_addfb2(client->dev, &fb_req, client->file);
sys/dev/pci/drm/drm_client.c
368
buffer->fb = drm_framebuffer_lookup(client->dev, buffer->client->file, fb_req.fb_id);
sys/dev/pci/drm/drm_client.c
375
strscpy(buffer->fb->comm, client->name, TASK_COMM_LEN);
sys/dev/pci/drm/drm_client.c
395
drm_client_framebuffer_create(struct drm_client_dev *client, u32 width, u32 height, u32 format)
sys/dev/pci/drm/drm_client.c
401
buffer = drm_client_buffer_create(client, width, height, format,
sys/dev/pci/drm/drm_client.c
414
drm_mode_destroy_dumb(client->dev, handle, client->file);
sys/dev/pci/drm/drm_client.c
463
return buffer->fb->funcs->dirty(buffer->fb, buffer->client->file,
sys/dev/pci/drm/drm_client.c
467
return buffer->fb->funcs->dirty(buffer->fb, buffer->client->file,
sys/dev/pci/drm/drm_client.c
47
client->file = file;
sys/dev/pci/drm/drm_client.c
52
static void drm_client_close(struct drm_client_dev *client)
sys/dev/pci/drm/drm_client.c
54
struct drm_device *dev = client->dev;
sys/dev/pci/drm/drm_client.c
57
list_del(&client->file->lhead);
sys/dev/pci/drm/drm_client.c
60
drm_file_free(client->file);
sys/dev/pci/drm/drm_client.c
78
int drm_client_init(struct drm_device *dev, struct drm_client_dev *client,
sys/dev/pci/drm/drm_client.c
86
client->dev = dev;
sys/dev/pci/drm/drm_client.c
87
client->name = name;
sys/dev/pci/drm/drm_client.c
88
client->funcs = funcs;
sys/dev/pci/drm/drm_client.c
90
ret = drm_client_modeset_create(client);
sys/dev/pci/drm/drm_client.c
94
ret = drm_client_open(client);
sys/dev/pci/drm/drm_client_event.c
106
struct drm_client_dev *client;
sys/dev/pci/drm/drm_client_event.c
113
list_for_each_entry(client, &dev->clientlist, list) {
sys/dev/pci/drm/drm_client_event.c
114
if (!client->funcs || !client->funcs->restore)
sys/dev/pci/drm/drm_client_event.c
117
ret = client->funcs->restore(client);
sys/dev/pci/drm/drm_client_event.c
118
drm_dbg_kms(dev, "%s: ret=%d\n", client->name, ret);
sys/dev/pci/drm/drm_client_event.c
125
static int drm_client_suspend(struct drm_client_dev *client, bool holds_console_lock)
sys/dev/pci/drm/drm_client_event.c
127
struct drm_device *dev = client->dev;
sys/dev/pci/drm/drm_client_event.c
130
if (drm_WARN_ON_ONCE(dev, client->suspended))
sys/dev/pci/drm/drm_client_event.c
133
if (client->funcs && client->funcs->suspend)
sys/dev/pci/drm/drm_client_event.c
134
ret = client->funcs->suspend(client, holds_console_lock);
sys/dev/pci/drm/drm_client_event.c
135
drm_dbg_kms(dev, "%s: ret=%d\n", client->name, ret);
sys/dev/pci/drm/drm_client_event.c
137
client->suspended = true;
sys/dev/pci/drm/drm_client_event.c
144
struct drm_client_dev *client;
sys/dev/pci/drm/drm_client_event.c
147
list_for_each_entry(client, &dev->clientlist, list) {
sys/dev/pci/drm/drm_client_event.c
148
if (!client->suspended)
sys/dev/pci/drm/drm_client_event.c
149
drm_client_suspend(client, holds_console_lock);
sys/dev/pci/drm/drm_client_event.c
155
static int drm_client_resume(struct drm_client_dev *client, bool holds_console_lock)
sys/dev/pci/drm/drm_client_event.c
157
struct drm_device *dev = client->dev;
sys/dev/pci/drm/drm_client_event.c
160
if (drm_WARN_ON_ONCE(dev, !client->suspended))
sys/dev/pci/drm/drm_client_event.c
163
if (client->funcs && client->funcs->resume)
sys/dev/pci/drm/drm_client_event.c
164
ret = client->funcs->resume(client, holds_console_lock);
sys/dev/pci/drm/drm_client_event.c
165
drm_dbg_kms(dev, "%s: ret=%d\n", client->name, ret);
sys/dev/pci/drm/drm_client_event.c
167
client->suspended = false;
sys/dev/pci/drm/drm_client_event.c
169
if (client->hotplug_pending)
sys/dev/pci/drm/drm_client_event.c
170
drm_client_hotplug(client);
sys/dev/pci/drm/drm_client_event.c
177
struct drm_client_dev *client;
sys/dev/pci/drm/drm_client_event.c
180
list_for_each_entry(client, &dev->clientlist, list) {
sys/dev/pci/drm/drm_client_event.c
181
if (client->suspended)
sys/dev/pci/drm/drm_client_event.c
182
drm_client_resume(client, holds_console_lock);
sys/dev/pci/drm/drm_client_event.c
194
struct drm_client_dev *client;
sys/dev/pci/drm/drm_client_event.c
197
list_for_each_entry(client, &dev->clientlist, list)
sys/dev/pci/drm/drm_client_event.c
198
drm_printf(&p, "%s\n", client->name);
sys/dev/pci/drm/drm_client_event.c
34
struct drm_client_dev *client, *tmp;
sys/dev/pci/drm/drm_client_event.c
40
list_for_each_entry_safe(client, tmp, &dev->clientlist, list) {
sys/dev/pci/drm/drm_client_event.c
41
list_del(&client->list);
sys/dev/pci/drm/drm_client_event.c
42
if (client->funcs && client->funcs->unregister) {
sys/dev/pci/drm/drm_client_event.c
43
client->funcs->unregister(client);
sys/dev/pci/drm/drm_client_event.c
45
drm_client_release(client);
sys/dev/pci/drm/drm_client_event.c
46
kfree(client);
sys/dev/pci/drm/drm_client_event.c
53
static void drm_client_hotplug(struct drm_client_dev *client)
sys/dev/pci/drm/drm_client_event.c
55
struct drm_device *dev = client->dev;
sys/dev/pci/drm/drm_client_event.c
58
if (!client->funcs || !client->funcs->hotplug)
sys/dev/pci/drm/drm_client_event.c
61
if (client->hotplug_failed)
sys/dev/pci/drm/drm_client_event.c
64
if (client->suspended) {
sys/dev/pci/drm/drm_client_event.c
65
client->hotplug_pending = true;
sys/dev/pci/drm/drm_client_event.c
69
client->hotplug_pending = false;
sys/dev/pci/drm/drm_client_event.c
70
ret = client->funcs->hotplug(client);
sys/dev/pci/drm/drm_client_event.c
71
drm_dbg_kms(dev, "%s: ret=%d\n", client->name, ret);
sys/dev/pci/drm/drm_client_event.c
73
client->hotplug_failed = true;
sys/dev/pci/drm/drm_client_event.c
87
struct drm_client_dev *client;
sys/dev/pci/drm/drm_client_event.c
98
list_for_each_entry(client, &dev->clientlist, list)
sys/dev/pci/drm/drm_client_event.c
99
drm_client_hotplug(client);
sys/dev/pci/drm/drm_client_modeset.c
100
drm_client_modeset_release(client);
sys/dev/pci/drm/drm_client_modeset.c
102
drm_client_for_each_modeset(modeset, client)
sys/dev/pci/drm/drm_client_modeset.c
1044
static int drm_client_modeset_commit_atomic(struct drm_client_dev *client, bool active, bool check)
sys/dev/pci/drm/drm_client_modeset.c
1046
struct drm_device *dev = client->dev;
sys/dev/pci/drm/drm_client_modeset.c
105
mutex_unlock(&client->modeset_mutex);
sys/dev/pci/drm/drm_client_modeset.c
107
mutex_destroy(&client->modeset_mutex);
sys/dev/pci/drm/drm_client_modeset.c
108
kfree(client->modesets);
sys/dev/pci/drm/drm_client_modeset.c
1083
drm_client_for_each_modeset(mode_set, client) {
sys/dev/pci/drm/drm_client_modeset.c
112
drm_client_find_modeset(struct drm_client_dev *client, struct drm_crtc *crtc)
sys/dev/pci/drm/drm_client_modeset.c
1134
static int drm_client_modeset_commit_legacy(struct drm_client_dev *client)
sys/dev/pci/drm/drm_client_modeset.c
1136
struct drm_device *dev = client->dev;
sys/dev/pci/drm/drm_client_modeset.c
1152
drm_client_for_each_modeset(mode_set, client) {
sys/dev/pci/drm/drm_client_modeset.c
116
drm_client_for_each_modeset(modeset, client)
sys/dev/pci/drm/drm_client_modeset.c
1184
int drm_client_modeset_check(struct drm_client_dev *client)
sys/dev/pci/drm/drm_client_modeset.c
1188
if (!drm_drv_uses_atomic_modeset(client->dev))
sys/dev/pci/drm/drm_client_modeset.c
1191
mutex_lock(&client->modeset_mutex);
sys/dev/pci/drm/drm_client_modeset.c
1192
ret = drm_client_modeset_commit_atomic(client, true, true);
sys/dev/pci/drm/drm_client_modeset.c
1193
mutex_unlock(&client->modeset_mutex);
sys/dev/pci/drm/drm_client_modeset.c
1210
int drm_client_modeset_commit_locked(struct drm_client_dev *client)
sys/dev/pci/drm/drm_client_modeset.c
1212
struct drm_device *dev = client->dev;
sys/dev/pci/drm/drm_client_modeset.c
1215
mutex_lock(&client->modeset_mutex);
sys/dev/pci/drm/drm_client_modeset.c
1217
ret = drm_client_modeset_commit_atomic(client, true, false);
sys/dev/pci/drm/drm_client_modeset.c
1219
ret = drm_client_modeset_commit_legacy(client);
sys/dev/pci/drm/drm_client_modeset.c
1220
mutex_unlock(&client->modeset_mutex);
sys/dev/pci/drm/drm_client_modeset.c
1235
int drm_client_modeset_commit(struct drm_client_dev *client)
sys/dev/pci/drm/drm_client_modeset.c
1237
struct drm_device *dev = client->dev;
sys/dev/pci/drm/drm_client_modeset.c
1243
ret = drm_client_modeset_commit_locked(client);
sys/dev/pci/drm/drm_client_modeset.c
1251
static void drm_client_modeset_dpms_legacy(struct drm_client_dev *client, int dpms_mode)
sys/dev/pci/drm/drm_client_modeset.c
1253
struct drm_device *dev = client->dev;
sys/dev/pci/drm/drm_client_modeset.c
1260
drm_client_for_each_modeset(modeset, client) {
sys/dev/pci/drm/drm_client_modeset.c
1286
int drm_client_modeset_dpms(struct drm_client_dev *client, int mode)
sys/dev/pci/drm/drm_client_modeset.c
1288
struct drm_device *dev = client->dev;
sys/dev/pci/drm/drm_client_modeset.c
1294
mutex_lock(&client->modeset_mutex);
sys/dev/pci/drm/drm_client_modeset.c
1296
ret = drm_client_modeset_commit_atomic(client, mode == DRM_MODE_DPMS_ON, false);
sys/dev/pci/drm/drm_client_modeset.c
1298
drm_client_modeset_dpms_legacy(client, mode);
sys/dev/pci/drm/drm_client_modeset.c
1299
mutex_unlock(&client->modeset_mutex);
sys/dev/pci/drm/drm_client_modeset.c
37
int drm_client_modeset_create(struct drm_client_dev *client)
sys/dev/pci/drm/drm_client_modeset.c
39
struct drm_device *dev = client->dev;
sys/dev/pci/drm/drm_client_modeset.c
47
client->modesets = kcalloc(num_crtc + 1, sizeof(*client->modesets), GFP_KERNEL);
sys/dev/pci/drm/drm_client_modeset.c
48
if (!client->modesets)
sys/dev/pci/drm/drm_client_modeset.c
51
rw_init(&client->modeset_mutex, "clmdset");
sys/dev/pci/drm/drm_client_modeset.c
54
client->modesets[i++].crtc = crtc;
sys/dev/pci/drm/drm_client_modeset.c
544
static int drm_client_pick_crtcs(struct drm_client_dev *client,
sys/dev/pci/drm/drm_client_modeset.c
551
struct drm_device *dev = client->dev;
sys/dev/pci/drm/drm_client_modeset.c
563
best_score = drm_client_pick_crtcs(client, connectors, connector_count,
sys/dev/pci/drm/drm_client_modeset.c
584
drm_client_for_each_modeset(modeset, client) {
sys/dev/pci/drm/drm_client_modeset.c
60
for (modeset = client->modesets; modeset->crtc; modeset++) {
sys/dev/pci/drm/drm_client_modeset.c
606
score = my_score + drm_client_pick_crtcs(client, connectors, connector_count,
sys/dev/pci/drm/drm_client_modeset.c
619
static bool drm_client_firmware_config(struct drm_client_dev *client,
sys/dev/pci/drm/drm_client_modeset.c
629
struct drm_device *dev = client->dev;
sys/dev/pci/drm/drm_client_modeset.c
70
drm_client_modeset_free(client);
sys/dev/pci/drm/drm_client_modeset.c
75
static void drm_client_modeset_release(struct drm_client_dev *client)
sys/dev/pci/drm/drm_client_modeset.c
79
drm_client_for_each_modeset(modeset, client) {
sys/dev/pci/drm/drm_client_modeset.c
817
int drm_client_modeset_probe(struct drm_client_dev *client, unsigned int width, unsigned int height)
sys/dev/pci/drm/drm_client_modeset.c
82
drm_mode_destroy(client->dev, modeset->mode);
sys/dev/pci/drm/drm_client_modeset.c
821
struct drm_device *dev = client->dev;
sys/dev/pci/drm/drm_client_modeset.c
875
mutex_lock(&client->modeset_mutex);
sys/dev/pci/drm/drm_client_modeset.c
884
if (!drm_client_firmware_config(client, connectors, connector_count, crtcs,
sys/dev/pci/drm/drm_client_modeset.c
899
drm_client_pick_crtcs(client, connectors, connector_count,
sys/dev/pci/drm/drm_client_modeset.c
905
drm_client_modeset_release(client);
sys/dev/pci/drm/drm_client_modeset.c
913
struct drm_mode_set *modeset = drm_client_find_modeset(client, crtc);
sys/dev/pci/drm/drm_client_modeset.c
94
void drm_client_modeset_free(struct drm_client_dev *client)
sys/dev/pci/drm/drm_client_modeset.c
940
mutex_unlock(&client->modeset_mutex);
sys/dev/pci/drm/drm_client_modeset.c
98
mutex_lock(&client->modeset_mutex);
sys/dev/pci/drm/drm_debugfs.c
358
char *client;
sys/dev/pci/drm/drm_debugfs.c
360
client = kasprintf(GFP_KERNEL, "client-%llu", file->client_id);
sys/dev/pci/drm/drm_debugfs.c
361
if (!client)
sys/dev/pci/drm/drm_debugfs.c
365
file->debugfs_client = debugfs_create_dir(client, drm_debugfs_root);
sys/dev/pci/drm/drm_debugfs.c
366
kfree(client);
sys/dev/pci/drm/drm_debugfs.c
371
client = kasprintf(GFP_KERNEL, "../%s", file->minor->dev->unique);
sys/dev/pci/drm/drm_debugfs.c
372
if (!client)
sys/dev/pci/drm/drm_debugfs.c
376
debugfs_create_symlink("device", file->debugfs_client, client);
sys/dev/pci/drm/drm_debugfs.c
377
kfree(client);
sys/dev/pci/drm/drm_fb_helper.c
1007
drm_client_for_each_modeset(modeset, &fb_helper->client) {
sys/dev/pci/drm/drm_fb_helper.c
1058
mutex_lock(&fb_helper->client.modeset_mutex);
sys/dev/pci/drm/drm_fb_helper.c
1065
mutex_unlock(&fb_helper->client.modeset_mutex);
sys/dev/pci/drm/drm_fb_helper.c
1116
crtc = fb_helper->client.modesets[0].crtc;
sys/dev/pci/drm/drm_fb_helper.c
1396
mutex_lock(&fb_helper->client.modeset_mutex);
sys/dev/pci/drm/drm_fb_helper.c
1397
drm_client_for_each_modeset(mode_set, &fb_helper->client) {
sys/dev/pci/drm/drm_fb_helper.c
1401
mutex_unlock(&fb_helper->client.modeset_mutex);
sys/dev/pci/drm/drm_fb_helper.c
1418
ret = drm_client_modeset_commit_locked(&fb_helper->client);
sys/dev/pci/drm/drm_fb_helper.c
1436
struct drm_client_dev *client = &fb_helper->client;
sys/dev/pci/drm/drm_fb_helper.c
1440
mutex_lock(&client->modeset_mutex);
sys/dev/pci/drm/drm_fb_helper.c
1442
drm_client_for_each_modeset(modeset, client) {
sys/dev/pci/drm/drm_fb_helper.c
145
mutex_lock(&helper->client.modeset_mutex);
sys/dev/pci/drm/drm_fb_helper.c
1455
mutex_unlock(&client->modeset_mutex);
sys/dev/pci/drm/drm_fb_helper.c
146
drm_client_for_each_modeset(mode_set, &helper->client) {
sys/dev/pci/drm/drm_fb_helper.c
1524
struct drm_client_dev *client = &fb_helper->client;
sys/dev/pci/drm/drm_fb_helper.c
1537
drm_client_for_each_modeset(mode_set, client) {
sys/dev/pci/drm/drm_fb_helper.c
1587
drm_client_for_each_modeset(mode_set, client) {
sys/dev/pci/drm/drm_fb_helper.c
163
mutex_unlock(&helper->client.modeset_mutex);
sys/dev/pci/drm/drm_fb_helper.c
1647
struct drm_client_dev *client = &fb_helper->client;
sys/dev/pci/drm/drm_fb_helper.c
1652
mutex_lock(&client->modeset_mutex);
sys/dev/pci/drm/drm_fb_helper.c
1654
mutex_unlock(&client->modeset_mutex);
sys/dev/pci/drm/drm_fb_helper.c
1677
struct drm_client_dev *client = &fb_helper->client;
sys/dev/pci/drm/drm_fb_helper.c
1689
drm_client_modeset_commit(client);
sys/dev/pci/drm/drm_fb_helper.c
177
struct drm_client_dev *client = &helper->client;
sys/dev/pci/drm/drm_fb_helper.c
1811
struct drm_client_dev *client = &fb_helper->client;
sys/dev/pci/drm/drm_fb_helper.c
1818
mutex_lock(&client->modeset_mutex);
sys/dev/pci/drm/drm_fb_helper.c
1819
drm_client_for_each_modeset(modeset, client) {
sys/dev/pci/drm/drm_fb_helper.c
1831
mutex_unlock(&client->modeset_mutex);
sys/dev/pci/drm/drm_fb_helper.c
186
mutex_lock(&client->modeset_mutex);
sys/dev/pci/drm/drm_fb_helper.c
187
drm_client_for_each_modeset(mode_set, client) {
sys/dev/pci/drm/drm_fb_helper.c
1880
drm_client_modeset_probe(&fb_helper->client, width, height);
sys/dev/pci/drm/drm_fb_helper.c
2021
drm_client_modeset_probe(&fb_helper->client, fb_helper->fb->width, fb_helper->fb->height);
sys/dev/pci/drm/drm_fb_helper.c
210
mutex_unlock(&client->modeset_mutex);
sys/dev/pci/drm/drm_fb_helper.c
240
ret = drm_client_modeset_commit_locked(&fb_helper->client);
sys/dev/pci/drm/drm_fb_helper.c
242
ret = drm_client_modeset_commit(&fb_helper->client);
sys/dev/pci/drm/drm_fb_helper.c
290
drm_client_modeset_commit_locked(&helper->client);
sys/dev/pci/drm/drm_fb_helper.c
317
drm_client_modeset_dpms(&fb_helper->client, dpms_mode);
sys/dev/pci/drm/drm_fb_helper.c
488
if (!fb_helper->client.funcs) {
sys/dev/pci/drm/drm_fb_helper.c
489
ret = drm_client_init(dev, &fb_helper->client, "drm_fb_helper", NULL);
sys/dev/pci/drm/drm_fb_helper.c
616
if (!fb_helper->client.funcs)
sys/dev/pci/drm/drm_fb_helper.c
617
drm_client_release(&fb_helper->client);
sys/dev/pci/drm/drm_fb_helper.c
875
drm_client_for_each_modeset(modeset, &fb_helper->client) {
sys/dev/pci/drm/drm_fb_helper.c
973
drm_client_for_each_modeset(modeset, &fb_helper->client) {
sys/dev/pci/drm/drm_fbdev_dma.c
103
drm_client_release(&fb_helper->client);
sys/dev/pci/drm/drm_fbdev_dma.c
293
struct drm_client_dev *client = &fb_helper->client;
sys/dev/pci/drm/drm_fbdev_dma.c
308
buffer = drm_client_framebuffer_create(client, sizes->surface_width,
sys/dev/pci/drm/drm_fbdev_dma.c
61
drm_client_release(&fb_helper->client);
sys/dev/pci/drm/drm_fbdev_shmem.c
137
struct drm_client_dev *client = &fb_helper->client;
sys/dev/pci/drm/drm_fbdev_shmem.c
152
buffer = drm_client_framebuffer_create(client, sizes->surface_width,
sys/dev/pci/drm/drm_fbdev_shmem.c
67
drm_client_release(&fb_helper->client);
sys/dev/pci/drm/drm_fbdev_ttm.c
183
struct drm_client_dev *client = &fb_helper->client;
sys/dev/pci/drm/drm_fbdev_ttm.c
198
buffer = drm_client_framebuffer_create(client, sizes->surface_width,
sys/dev/pci/drm/drm_fbdev_ttm.c
56
drm_client_release(&fb_helper->client);
sys/dev/pci/drm/drm_ioc32.c
180
struct drm_client client;
sys/dev/pci/drm/drm_ioc32.c
186
memset(&client, 0, sizeof(client));
sys/dev/pci/drm/drm_ioc32.c
188
client.idx = c32.idx;
sys/dev/pci/drm/drm_ioc32.c
190
err = drm_ioctl_kernel(file, drm_getclient, &client, 0);
sys/dev/pci/drm/drm_ioc32.c
194
c32.idx = client.idx;
sys/dev/pci/drm/drm_ioc32.c
195
c32.auth = client.auth;
sys/dev/pci/drm/drm_ioc32.c
196
c32.pid = client.pid;
sys/dev/pci/drm/drm_ioc32.c
197
c32.uid = client.uid;
sys/dev/pci/drm/drm_ioc32.c
198
c32.magic = client.magic;
sys/dev/pci/drm/drm_ioc32.c
199
c32.iocs = client.iocs;
sys/dev/pci/drm/drm_ioctl.c
190
struct drm_client *client = data;
sys/dev/pci/drm/drm_ioctl.c
203
if (client->idx == 0) {
sys/dev/pci/drm/drm_ioctl.c
204
client->auth = file_priv->authenticated;
sys/dev/pci/drm/drm_ioctl.c
206
client->pid = task_pid_vnr(current);
sys/dev/pci/drm/drm_ioctl.c
207
client->uid = overflowuid;
sys/dev/pci/drm/drm_ioctl.c
209
client->pid = curproc->p_p->ps_pid;
sys/dev/pci/drm/drm_ioctl.c
210
client->uid = 0xfffe;
sys/dev/pci/drm/drm_ioctl.c
212
client->magic = 0;
sys/dev/pci/drm/drm_ioctl.c
213
client->iocs = 0;
sys/dev/pci/drm/i915/display/intel_fbdev.c
150
drm_client_release(&fb_helper->client);
sys/dev/pci/drm/i915/display/intel_fbdev.c
70
struct intel_display *display = to_intel_display(fb_helper->client.dev);
sys/dev/pci/drm/i915/gem/i915_gem_context.c
1062
static void accumulate_runtime(struct i915_drm_client *client,
sys/dev/pci/drm/i915/gem/i915_gem_context.c
1068
if (!client)
sys/dev/pci/drm/i915/gem/i915_gem_context.c
1075
GEM_BUG_ON(class >= ARRAY_SIZE(client->past_runtime));
sys/dev/pci/drm/i915/gem/i915_gem_context.c
1077
&client->past_runtime[class]);
sys/dev/pci/drm/i915/gem/i915_gem_context.c
1097
accumulate_runtime(ctx->client, engines);
sys/dev/pci/drm/i915/gem/i915_gem_context.c
1312
if (ctx->client)
sys/dev/pci/drm/i915/gem/i915_gem_context.c
1313
i915_drm_client_put(ctx->client);
sys/dev/pci/drm/i915/gem/i915_gem_context.c
1539
struct i915_drm_client *client;
sys/dev/pci/drm/i915/gem/i915_gem_context.c
1561
client = ctx->client;
sys/dev/pci/drm/i915/gem/i915_gem_context.c
1562
if (client) {
sys/dev/pci/drm/i915/gem/i915_gem_context.c
1563
spin_lock(&client->ctx_lock);
sys/dev/pci/drm/i915/gem/i915_gem_context.c
1565
spin_unlock(&client->ctx_lock);
sys/dev/pci/drm/i915/gem/i915_gem_context.c
1747
ctx->client = i915_drm_client_get(fpriv->client);
sys/dev/pci/drm/i915/gem/i915_gem_context.c
1753
ctx->client = i915_drm_client_get(fpriv->client);
sys/dev/pci/drm/i915/gem/i915_gem_context.c
1759
spin_lock(&ctx->client->ctx_lock);
sys/dev/pci/drm/i915/gem/i915_gem_context.c
1760
list_add_tail_rcu(&ctx->client_link, &ctx->client->ctx_list);
sys/dev/pci/drm/i915/gem/i915_gem_context.c
1761
spin_unlock(&ctx->client->ctx_lock);
sys/dev/pci/drm/i915/gem/i915_gem_context_types.h
303
struct i915_drm_client *client;
sys/dev/pci/drm/i915/gem/i915_gem_object_types.h
312
struct i915_drm_client *client;
sys/dev/pci/drm/i915/gt/intel_context.c
88
if (ctx->client)
sys/dev/pci/drm/i915/gt/intel_context.c
89
i915_drm_client_add_context_objects(ctx->client,
sys/dev/pci/drm/i915/gt/intel_gpu_commands.h
32
#define __INSTR(client) ((client) << INSTR_CLIENT_SHIFT)
sys/dev/pci/drm/i915/gt/intel_gtt.c
69
i915_drm_client_add_object(vm->fpriv->client, obj);
sys/dev/pci/drm/i915/gt/intel_gtt.c
93
i915_drm_client_add_object(vm->fpriv->client, obj);
sys/dev/pci/drm/i915/gt/selftest_execlists.c
3281
struct i915_request *client[3] = {};
sys/dev/pci/drm/i915/gt/selftest_execlists.c
3298
for (i = 0; i < ARRAY_SIZE(client); i++) {
sys/dev/pci/drm/i915/gt/selftest_execlists.c
3308
client[i] = rq;
sys/dev/pci/drm/i915/gt/selftest_execlists.c
3325
for (i = 0; i < ARRAY_SIZE(client); i++) {
sys/dev/pci/drm/i915/gt/selftest_execlists.c
3328
if (i915_request_wait(client[i], 0, HZ / 2) < 0) {
sys/dev/pci/drm/i915/gt/selftest_execlists.c
3345
for (i = 0; i < ARRAY_SIZE(client); i++) {
sys/dev/pci/drm/i915/gt/selftest_execlists.c
3346
if (!client[i])
sys/dev/pci/drm/i915/gt/selftest_execlists.c
3349
i915_request_put(client[i]);
sys/dev/pci/drm/i915/gt/selftest_execlists.c
713
struct i915_request *client[ARRAY_SIZE(phases->error)];
sys/dev/pci/drm/i915/gt/selftest_execlists.c
717
memset(client, 0, sizeof(*client));
sys/dev/pci/drm/i915/gt/selftest_execlists.c
718
for (i = 0; i < ARRAY_SIZE(client); i++) {
sys/dev/pci/drm/i915/gt/selftest_execlists.c
758
client[i] = i915_request_get(rq);
sys/dev/pci/drm/i915/gt/selftest_execlists.c
762
err = wait_for_submit(engine, client[0], HZ / 2);
sys/dev/pci/drm/i915/gt/selftest_execlists.c
770
for (i = 0; i < ARRAY_SIZE(client); i++) {
sys/dev/pci/drm/i915/gt/selftest_execlists.c
771
if (i915_request_wait(client[i], 0, HZ / 5) < 0)
sys/dev/pci/drm/i915/gt/selftest_execlists.c
776
if (!i915_request_started(client[i])) {
sys/dev/pci/drm/i915/gt/selftest_execlists.c
786
if (client[i]->fence.error != p->error[i]) {
sys/dev/pci/drm/i915/gt/selftest_execlists.c
790
i915_request_completed(client[i]) ? "completed" : "running",
sys/dev/pci/drm/i915/gt/selftest_execlists.c
791
client[i]->fence.error);
sys/dev/pci/drm/i915/gt/selftest_execlists.c
798
for (i = 0; i < ARRAY_SIZE(client); i++)
sys/dev/pci/drm/i915/gt/selftest_execlists.c
799
if (client[i])
sys/dev/pci/drm/i915/gt/selftest_execlists.c
800
i915_request_put(client[i]);
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
1062
} client[2] = {};
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
1075
for (i = 0; i < ARRAY_SIZE(client); i++) {
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
1076
client[i].scratch[0] =
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
1078
if (IS_ERR(client[i].scratch[0])) {
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
1079
err = PTR_ERR(client[i].scratch[0]);
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
1083
client[i].scratch[1] =
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
1085
if (IS_ERR(client[i].scratch[1])) {
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
1086
err = PTR_ERR(client[i].scratch[1]);
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
1087
i915_vma_unpin_and_release(&client[i].scratch[0], 0);
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
1114
err = read_whitelisted_registers(ce[0], client[0].scratch[0]);
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
1124
err = read_whitelisted_registers(ce[1], client[1].scratch[0]);
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
1130
client[0].scratch[0],
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
1131
client[1].scratch[0],
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
1137
err = read_whitelisted_registers(ce[0], client[0].scratch[1]);
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
1143
client[0].scratch[0],
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
1144
client[0].scratch[1],
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
1154
for (i = 0; i < ARRAY_SIZE(client); i++) {
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
1155
i915_vma_unpin_and_release(&client[i].scratch[1], 0);
sys/dev/pci/drm/i915/gt/selftest_workarounds.c
1156
i915_vma_unpin_and_release(&client[i].scratch[0], 0);
sys/dev/pci/drm/i915/i915_cmd_parser.c
738
u32 client = cmd_header >> INSTR_CLIENT_SHIFT;
sys/dev/pci/drm/i915/i915_cmd_parser.c
742
if (client == INSTR_MI_CLIENT)
sys/dev/pci/drm/i915/i915_cmd_parser.c
744
else if (client == INSTR_RC_CLIENT) {
sys/dev/pci/drm/i915/i915_cmd_parser.c
757
u32 client = cmd_header >> INSTR_CLIENT_SHIFT;
sys/dev/pci/drm/i915/i915_cmd_parser.c
762
if (client == INSTR_MI_CLIENT)
sys/dev/pci/drm/i915/i915_cmd_parser.c
764
else if (client == INSTR_RC_CLIENT) {
sys/dev/pci/drm/i915/i915_cmd_parser.c
780
u32 client = cmd_header >> INSTR_CLIENT_SHIFT;
sys/dev/pci/drm/i915/i915_cmd_parser.c
782
if (client == INSTR_MI_CLIENT)
sys/dev/pci/drm/i915/i915_cmd_parser.c
784
else if (client == INSTR_BC_CLIENT)
sys/dev/pci/drm/i915/i915_cmd_parser.c
793
u32 client = cmd_header >> INSTR_CLIENT_SHIFT;
sys/dev/pci/drm/i915/i915_cmd_parser.c
795
if (client == INSTR_MI_CLIENT || client == INSTR_BC_CLIENT)
sys/dev/pci/drm/i915/i915_driver.c
987
i915_drm_client_put(file_priv->client);
sys/dev/pci/drm/i915/i915_drm_client.c
138
struct i915_drm_client *client,
sys/dev/pci/drm/i915/i915_drm_client.c
142
u64 total = atomic64_read(&client->past_runtime[class]);
sys/dev/pci/drm/i915/i915_drm_client.c
146
list_for_each_entry_rcu(ctx, &client->ctx_list, client_link)
sys/dev/pci/drm/i915/i915_drm_client.c
178
show_client_class(p, i915, file_priv->client, i);
sys/dev/pci/drm/i915/i915_drm_client.c
181
void i915_drm_client_add_object(struct i915_drm_client *client,
sys/dev/pci/drm/i915/i915_drm_client.c
186
GEM_WARN_ON(obj->client);
sys/dev/pci/drm/i915/i915_drm_client.c
189
spin_lock_irqsave(&client->objects_lock, flags);
sys/dev/pci/drm/i915/i915_drm_client.c
190
obj->client = i915_drm_client_get(client);
sys/dev/pci/drm/i915/i915_drm_client.c
191
list_add_tail_rcu(&obj->client_link, &client->objects_list);
sys/dev/pci/drm/i915/i915_drm_client.c
192
spin_unlock_irqrestore(&client->objects_lock, flags);
sys/dev/pci/drm/i915/i915_drm_client.c
197
struct i915_drm_client *client = fetch_and_zero(&obj->client);
sys/dev/pci/drm/i915/i915_drm_client.c
201
if (!client)
sys/dev/pci/drm/i915/i915_drm_client.c
204
spin_lock_irqsave(&client->objects_lock, flags);
sys/dev/pci/drm/i915/i915_drm_client.c
206
spin_unlock_irqrestore(&client->objects_lock, flags);
sys/dev/pci/drm/i915/i915_drm_client.c
208
i915_drm_client_put(client);
sys/dev/pci/drm/i915/i915_drm_client.c
211
void i915_drm_client_add_context_objects(struct i915_drm_client *client,
sys/dev/pci/drm/i915/i915_drm_client.c
215
i915_drm_client_add_object(client, ce->state->obj);
sys/dev/pci/drm/i915/i915_drm_client.c
218
i915_drm_client_add_object(client, ce->ring->vma->obj);
sys/dev/pci/drm/i915/i915_drm_client.c
22
struct i915_drm_client *client;
sys/dev/pci/drm/i915/i915_drm_client.c
24
client = kzalloc(sizeof(*client), GFP_KERNEL);
sys/dev/pci/drm/i915/i915_drm_client.c
25
if (!client)
sys/dev/pci/drm/i915/i915_drm_client.c
28
kref_init(&client->kref);
sys/dev/pci/drm/i915/i915_drm_client.c
29
mtx_init(&client->ctx_lock, IPL_NONE);
sys/dev/pci/drm/i915/i915_drm_client.c
30
INIT_LIST_HEAD(&client->ctx_list);
sys/dev/pci/drm/i915/i915_drm_client.c
32
spin_lock_init(&client->objects_lock);
sys/dev/pci/drm/i915/i915_drm_client.c
33
INIT_LIST_HEAD(&client->objects_list);
sys/dev/pci/drm/i915/i915_drm_client.c
36
return client;
sys/dev/pci/drm/i915/i915_drm_client.c
41
struct i915_drm_client *client =
sys/dev/pci/drm/i915/i915_drm_client.c
42
container_of(kref, typeof(*client), kref);
sys/dev/pci/drm/i915/i915_drm_client.c
44
kfree(client);
sys/dev/pci/drm/i915/i915_drm_client.c
77
struct i915_drm_client *client = fpriv->client;
sys/dev/pci/drm/i915/i915_drm_client.c
92
list_for_each_rcu(pos, &client->objects_list) {
sys/dev/pci/drm/i915/i915_drm_client.h
51
i915_drm_client_get(struct i915_drm_client *client)
sys/dev/pci/drm/i915/i915_drm_client.h
53
kref_get(&client->kref);
sys/dev/pci/drm/i915/i915_drm_client.h
54
return client;
sys/dev/pci/drm/i915/i915_drm_client.h
59
static inline void i915_drm_client_put(struct i915_drm_client *client)
sys/dev/pci/drm/i915/i915_drm_client.h
61
kref_put(&client->kref, __i915_drm_client_free);
sys/dev/pci/drm/i915/i915_drm_client.h
69
void i915_drm_client_add_object(struct i915_drm_client *client,
sys/dev/pci/drm/i915/i915_drm_client.h
72
void i915_drm_client_add_context_objects(struct i915_drm_client *client,
sys/dev/pci/drm/i915/i915_drm_client.h
75
static inline void i915_drm_client_add_object(struct i915_drm_client *client,
sys/dev/pci/drm/i915/i915_drm_client.h
86
i915_drm_client_add_context_objects(struct i915_drm_client *client,
sys/dev/pci/drm/i915/i915_file_private.h
108
struct i915_drm_client *client;
sys/dev/pci/drm/i915/i915_gem.c
1314
struct i915_drm_client *client;
sys/dev/pci/drm/i915/i915_gem.c
1323
client = i915_drm_client_alloc();
sys/dev/pci/drm/i915/i915_gem.c
1324
if (!client)
sys/dev/pci/drm/i915/i915_gem.c
1330
file_priv->client = client;
sys/dev/pci/drm/i915/i915_gem.c
1342
i915_drm_client_put(client);
sys/dev/pci/drm/include/drm/drm_client.h
162
int drm_client_init(struct drm_device *dev, struct drm_client_dev *client,
sys/dev/pci/drm/include/drm/drm_client.h
164
void drm_client_release(struct drm_client_dev *client);
sys/dev/pci/drm/include/drm/drm_client.h
165
void drm_client_register(struct drm_client_dev *client);
sys/dev/pci/drm/include/drm/drm_client.h
174
struct drm_client_dev *client;
sys/dev/pci/drm/include/drm/drm_client.h
205
drm_client_framebuffer_create(struct drm_client_dev *client, u32 width, u32 height, u32 format);
sys/dev/pci/drm/include/drm/drm_client.h
215
int drm_client_modeset_create(struct drm_client_dev *client);
sys/dev/pci/drm/include/drm/drm_client.h
216
void drm_client_modeset_free(struct drm_client_dev *client);
sys/dev/pci/drm/include/drm/drm_client.h
217
int drm_client_modeset_probe(struct drm_client_dev *client, unsigned int width, unsigned int height);
sys/dev/pci/drm/include/drm/drm_client.h
219
int drm_client_modeset_check(struct drm_client_dev *client);
sys/dev/pci/drm/include/drm/drm_client.h
220
int drm_client_modeset_commit_locked(struct drm_client_dev *client);
sys/dev/pci/drm/include/drm/drm_client.h
221
int drm_client_modeset_commit(struct drm_client_dev *client);
sys/dev/pci/drm/include/drm/drm_client.h
222
int drm_client_modeset_dpms(struct drm_client_dev *client, int mode);
sys/dev/pci/drm/include/drm/drm_client.h
229
#define drm_client_for_each_modeset(modeset, client) \
sys/dev/pci/drm/include/drm/drm_client.h
230
for (({ lockdep_assert_held(&(client)->modeset_mutex); }), \
sys/dev/pci/drm/include/drm/drm_client.h
231
modeset = (client)->modesets; modeset->crtc; modeset++)
sys/dev/pci/drm/include/drm/drm_client.h
39
void (*unregister)(struct drm_client_dev *client);
sys/dev/pci/drm/include/drm/drm_client.h
55
int (*restore)(struct drm_client_dev *client);
sys/dev/pci/drm/include/drm/drm_client.h
65
int (*hotplug)(struct drm_client_dev *client);
sys/dev/pci/drm/include/drm/drm_client.h
79
int (*suspend)(struct drm_client_dev *client, bool holds_console_lock);
sys/dev/pci/drm/include/drm/drm_client.h
93
int (*resume)(struct drm_client_dev *client, bool holds_console_lock);
sys/dev/pci/drm/include/drm/drm_fb_helper.h
138
struct drm_client_dev client;
sys/dev/pci/drm/include/drm/drm_fb_helper.h
222
drm_fb_helper_from_client(struct drm_client_dev *client)
sys/dev/pci/drm/include/drm/drm_fb_helper.h
224
return container_of(client, struct drm_fb_helper, client);
sys/dev/pci/drm/radeon/radeon_fbdev.c
187
drm_client_release(&fb_helper->client);
sys/dev/pci/if_iwx.c
8021
cmd.client.assoc_id = htole32(IEEE80211_AID(ni->ni_associd));
sys/dev/pci/if_iwx.c
8022
cmd.client.is_assoc = assoc ? 1 : 0;
sys/dev/pci/if_iwxreg.h
4925
struct iwx_mac_client_data client;
usr.bin/netstat/inet.c
824
CLIENT *client;
usr.bin/netstat/inet.c
840
if ((client = clnttcp_create(&server_addr, PMAPPROG,
usr.bin/netstat/inet.c
843
if (clnt_call(client, PMAPPROC_DUMP, xdr_void, NULL,
usr.bin/netstat/inet.c
845
clnt_destroy(client);
usr.bin/netstat/inet.c
866
clnt_destroy(client);
usr.bin/pkgconf/cli/main.c
128
filter_cflags(const pkgconf_client_t *client, const pkgconf_fragment_t *frag, void *data)
usr.bin/pkgconf/cli/main.c
131
(void) client;
usr.bin/pkgconf/cli/main.c
134
if (!(want_flags & PKG_KEEP_SYSTEM_CFLAGS) && pkgconf_fragment_has_system_dir(client, frag))
usr.bin/pkgconf/cli/main.c
149
filter_libs(const pkgconf_client_t *client, const pkgconf_fragment_t *frag, void *data)
usr.bin/pkgconf/cli/main.c
152
(void) client;
usr.bin/pkgconf/cli/main.c
155
if (!(want_flags & PKG_KEEP_SYSTEM_LIBS) && pkgconf_fragment_has_system_dir(client, frag))
usr.bin/pkgconf/cli/main.c
239
apply_provides(pkgconf_client_t *client, pkgconf_pkg_t *world, void *unused, int maxdepth)
usr.bin/pkgconf/cli/main.c
242
(void) client;
usr.bin/pkgconf/cli/main.c
259
print_digraph_node(pkgconf_client_t *client, pkgconf_pkg_t *pkg, void *data)
usr.bin/pkgconf/cli/main.c
262
(void) client;
usr.bin/pkgconf/cli/main.c
302
apply_digraph(pkgconf_client_t *client, pkgconf_pkg_t *world, void *data, int maxdepth)
usr.bin/pkgconf/cli/main.c
317
pkgconf_pkg_t *pkg = pkgconf_pkg_find(client, pkgq->package);
usr.bin/pkgconf/cli/main.c
320
pkgconf_pkg_unref(client, pkg);
usr.bin/pkgconf/cli/main.c
323
eflag = pkgconf_pkg_traverse(client, world, print_digraph_node, &last_seen, maxdepth, 0);
usr.bin/pkgconf/cli/main.c
333
print_solution_node(pkgconf_client_t *client, pkgconf_pkg_t *pkg, void *unused)
usr.bin/pkgconf/cli/main.c
335
(void) client;
usr.bin/pkgconf/cli/main.c
342
apply_print_solution(pkgconf_client_t *client, pkgconf_pkg_t *world, void *unused, int maxdepth)
usr.bin/pkgconf/cli/main.c
346
eflag = pkgconf_pkg_traverse(client, world, print_solution_node, unused, maxdepth, 0);
usr.bin/pkgconf/cli/main.c
353
apply_modversion(pkgconf_client_t *client, pkgconf_pkg_t *world, void *data, int maxdepth)
usr.bin/pkgconf/cli/main.c
357
(void) client;
usr.bin/pkgconf/cli/main.c
393
apply_variables(pkgconf_client_t *client, pkgconf_pkg_t *world, void *unused, int maxdepth)
usr.bin/pkgconf/cli/main.c
396
(void) client;
usr.bin/pkgconf/cli/main.c
412
apply_path(pkgconf_client_t *client, pkgconf_pkg_t *world, void *unused, int maxdepth)
usr.bin/pkgconf/cli/main.c
415
(void) client;
usr.bin/pkgconf/cli/main.c
433
apply_variable(pkgconf_client_t *client, pkgconf_pkg_t *world, void *variable, int maxdepth)
usr.bin/pkgconf/cli/main.c
444
var = pkgconf_tuple_find(client, &pkg->vars, variable);
usr.bin/pkgconf/cli/main.c
456
apply_env_var(const char *prefix, pkgconf_client_t *client, pkgconf_pkg_t *world, int maxdepth,
usr.bin/pkgconf/cli/main.c
457
unsigned int (*collect_fn)(pkgconf_client_t *client, pkgconf_pkg_t *world, pkgconf_list_t *list, int maxdepth),
usr.bin/pkgconf/cli/main.c
458
bool (*filter_fn)(const pkgconf_client_t *client, const pkgconf_fragment_t *frag, void *data),
usr.bin/pkgconf/cli/main.c
459
void (*postprocess_fn)(pkgconf_client_t *client, pkgconf_pkg_t *world, pkgconf_list_t *fragment_list))
usr.bin/pkgconf/cli/main.c
466
eflag = collect_fn(client, world, &unfiltered_list, maxdepth);
usr.bin/pkgconf/cli/main.c
470
pkgconf_fragment_filter(client, &filtered_list, &unfiltered_list, filter_fn, NULL);
usr.bin/pkgconf/cli/main.c
473
postprocess_fn(client, world, &filtered_list);
usr.bin/pkgconf/cli/main.c
490
maybe_add_module_definitions(pkgconf_client_t *client, pkgconf_pkg_t *world, pkgconf_list_t *fragment_list)
usr.bin/pkgconf/cli/main.c
525
pkgconf_fragment_insert(client, fragment_list, 'D', havebuf, false);
usr.bin/pkgconf/cli/main.c
530
apply_env_variables(pkgconf_client_t *client, pkgconf_pkg_t *world, const char *env_prefix)
usr.bin/pkgconf/cli/main.c
532
(void) client;
usr.bin/pkgconf/cli/main.c
578
apply_env(pkgconf_client_t *client, pkgconf_pkg_t *world, void *env_prefix_p, int maxdepth)
usr.bin/pkgconf/cli/main.c
589
if (!apply_env_var(workbuf, client, world, maxdepth, pkgconf_pkg_cflags, filter_cflags, maybe_add_module_definitions))
usr.bin/pkgconf/cli/main.c
593
if (!apply_env_var(workbuf, client, world, maxdepth, pkgconf_pkg_libs, filter_libs, NULL))
usr.bin/pkgconf/cli/main.c
597
apply_env_variables(client, world, want_env_prefix);
usr.bin/pkgconf/cli/main.c
603
apply_cflags(pkgconf_client_t *client, pkgconf_pkg_t *world, void *unused, int maxdepth)
usr.bin/pkgconf/cli/main.c
611
eflag = pkgconf_pkg_cflags(client, world, &unfiltered_list, maxdepth);
usr.bin/pkgconf/cli/main.c
615
pkgconf_fragment_filter(client, &filtered_list, &unfiltered_list, filter_cflags, NULL);
usr.bin/pkgconf/cli/main.c
616
maybe_add_module_definitions(client, world, &filtered_list);
usr.bin/pkgconf/cli/main.c
633
apply_libs(pkgconf_client_t *client, pkgconf_pkg_t *world, void *unused, int maxdepth)
usr.bin/pkgconf/cli/main.c
641
eflag = pkgconf_pkg_libs(client, world, &unfiltered_list, maxdepth);
usr.bin/pkgconf/cli/main.c
645
pkgconf_fragment_filter(client, &filtered_list, &unfiltered_list, filter_libs, NULL);
usr.bin/pkgconf/cli/main.c
662
apply_requires(pkgconf_client_t *client, pkgconf_pkg_t *world, void *unused, int maxdepth)
usr.bin/pkgconf/cli/main.c
665
(void) client;
usr.bin/pkgconf/cli/main.c
681
apply_requires_private(pkgconf_client_t *client, pkgconf_pkg_t *world, void *unused, int maxdepth)
usr.bin/pkgconf/cli/main.c
684
(void) client;
usr.bin/pkgconf/cli/main.c
699
check_uninstalled(pkgconf_client_t *client, pkgconf_pkg_t *pkg, void *data)
usr.bin/pkgconf/cli/main.c
702
(void) client;
usr.bin/pkgconf/cli/main.c
709
apply_uninstalled(pkgconf_client_t *client, pkgconf_pkg_t *world, void *data, int maxdepth)
usr.bin/pkgconf/cli/main.c
713
eflag = pkgconf_pkg_traverse(client, world, check_uninstalled, data, maxdepth, 0);
usr.bin/pkgconf/cli/main.c
723
print_graph_node(pkgconf_client_t *client, pkgconf_pkg_t *pkg, void *data)
usr.bin/pkgconf/cli/main.c
727
(void) client;
usr.bin/pkgconf/cli/main.c
754
apply_simulate(pkgconf_client_t *client, pkgconf_pkg_t *world, void *data, int maxdepth)
usr.bin/pkgconf/cli/main.c
758
eflag = pkgconf_pkg_traverse(client, world, print_graph_node, data, maxdepth, 0);
usr.bin/pkgconf/cli/main.c
789
apply_fragment_tree(pkgconf_client_t *client, pkgconf_pkg_t *world, void *data, int maxdepth)
usr.bin/pkgconf/cli/main.c
796
eflag = pkgconf_pkg_cflags(client, world, &unfiltered_list, maxdepth);
usr.bin/pkgconf/cli/main.c
800
eflag = pkgconf_pkg_libs(client, world, &unfiltered_list, maxdepth);
usr.bin/pkgconf/cli/main.c
811
print_license(pkgconf_client_t *client, pkgconf_pkg_t *pkg, void *data)
usr.bin/pkgconf/cli/main.c
813
(void) client;
usr.bin/pkgconf/cli/main.c
824
apply_license(pkgconf_client_t *client, pkgconf_pkg_t *world, void *data, int maxdepth)
usr.bin/pkgconf/cli/main.c
828
eflag = pkgconf_pkg_traverse(client, world, print_license, data, maxdepth, 0);
usr.bin/pkgconf/cli/main.c
93
error_handler(const char *msg, const pkgconf_client_t *client, void *data)
usr.bin/pkgconf/cli/main.c
95
(void) client;
usr.bin/pkgconf/libpkgconf/audit.c
44
pkgconf_audit_set_log(pkgconf_client_t *client, FILE *auditf)
usr.bin/pkgconf/libpkgconf/audit.c
46
client->auditf = auditf;
usr.bin/pkgconf/libpkgconf/audit.c
61
pkgconf_audit_log(pkgconf_client_t *client, const char *format, ...)
usr.bin/pkgconf/libpkgconf/audit.c
65
if (client->auditf == NULL)
usr.bin/pkgconf/libpkgconf/audit.c
69
vfprintf(client->auditf, format, va);
usr.bin/pkgconf/libpkgconf/audit.c
86
pkgconf_audit_log_dependency(pkgconf_client_t *client, const pkgconf_pkg_t *dep, const pkgconf_dependency_t *depnode)
usr.bin/pkgconf/libpkgconf/audit.c
88
if (client->auditf == NULL)
usr.bin/pkgconf/libpkgconf/audit.c
91
fprintf(client->auditf, "%s ", dep->id);
usr.bin/pkgconf/libpkgconf/audit.c
94
fprintf(client->auditf, "%s %s ", pkgconf_pkg_get_comparator(depnode), depnode->version);
usr.bin/pkgconf/libpkgconf/audit.c
97
fprintf(client->auditf, "[%s]\n", dep->version);
usr.bin/pkgconf/libpkgconf/cache.c
102
PKGCONF_TRACE(client, "found: %s @%p", id, *pkg);
usr.bin/pkgconf/libpkgconf/cache.c
103
return pkgconf_pkg_ref(client, *pkg);
usr.bin/pkgconf/libpkgconf/cache.c
106
PKGCONF_TRACE(client, "miss: %s", id);
usr.bin/pkgconf/libpkgconf/cache.c
123
pkgconf_cache_add(pkgconf_client_t *client, pkgconf_pkg_t *pkg)
usr.bin/pkgconf/libpkgconf/cache.c
128
pkgconf_pkg_ref(client, pkg);
usr.bin/pkgconf/libpkgconf/cache.c
130
PKGCONF_TRACE(client, "added @%p to cache", pkg);
usr.bin/pkgconf/libpkgconf/cache.c
135
++client->cache_count;
usr.bin/pkgconf/libpkgconf/cache.c
136
client->cache_table = pkgconf_reallocarray(client->cache_table,
usr.bin/pkgconf/libpkgconf/cache.c
137
client->cache_count, sizeof (void *));
usr.bin/pkgconf/libpkgconf/cache.c
138
client->cache_table[client->cache_count - 1] = pkg;
usr.bin/pkgconf/libpkgconf/cache.c
140
qsort(client->cache_table, client->cache_count,
usr.bin/pkgconf/libpkgconf/cache.c
156
pkgconf_cache_remove(pkgconf_client_t *client, pkgconf_pkg_t *pkg)
usr.bin/pkgconf/libpkgconf/cache.c
158
if (client->cache_table == NULL)
usr.bin/pkgconf/libpkgconf/cache.c
167
PKGCONF_TRACE(client, "removed @%p from cache", pkg);
usr.bin/pkgconf/libpkgconf/cache.c
171
slot = bsearch(pkg->id, client->cache_table,
usr.bin/pkgconf/libpkgconf/cache.c
172
client->cache_count, sizeof (void *),
usr.bin/pkgconf/libpkgconf/cache.c
179
pkgconf_pkg_unref(client, *slot);
usr.bin/pkgconf/libpkgconf/cache.c
182
qsort(client->cache_table, client->cache_count,
usr.bin/pkgconf/libpkgconf/cache.c
185
if (client->cache_table[client->cache_count - 1] != NULL)
usr.bin/pkgconf/libpkgconf/cache.c
187
PKGCONF_TRACE(client, "end of cache table refers to %p, not NULL",
usr.bin/pkgconf/libpkgconf/cache.c
188
client->cache_table[client->cache_count - 1]);
usr.bin/pkgconf/libpkgconf/cache.c
189
cache_dump(client);
usr.bin/pkgconf/libpkgconf/cache.c
193
client->cache_count--;
usr.bin/pkgconf/libpkgconf/cache.c
194
if (client->cache_count > 0)
usr.bin/pkgconf/libpkgconf/cache.c
196
client->cache_table = pkgconf_reallocarray(client->cache_table,
usr.bin/pkgconf/libpkgconf/cache.c
197
client->cache_count, sizeof(void *));
usr.bin/pkgconf/libpkgconf/cache.c
201
free(client->cache_table);
usr.bin/pkgconf/libpkgconf/cache.c
202
client->cache_table = NULL;
usr.bin/pkgconf/libpkgconf/cache.c
218
pkgconf_cache_free(pkgconf_client_t *client)
usr.bin/pkgconf/libpkgconf/cache.c
220
if (client->cache_table == NULL)
usr.bin/pkgconf/libpkgconf/cache.c
223
while (client->cache_count > 0)
usr.bin/pkgconf/libpkgconf/cache.c
224
pkgconf_cache_remove(client, client->cache_table[0]);
usr.bin/pkgconf/libpkgconf/cache.c
226
free(client->cache_table);
usr.bin/pkgconf/libpkgconf/cache.c
227
client->cache_table = NULL;
usr.bin/pkgconf/libpkgconf/cache.c
228
client->cache_count = 0;
usr.bin/pkgconf/libpkgconf/cache.c
230
PKGCONF_TRACE(client, "cleared package cache");
usr.bin/pkgconf/libpkgconf/cache.c
59
cache_dump(const pkgconf_client_t *client)
usr.bin/pkgconf/libpkgconf/cache.c
63
PKGCONF_TRACE(client, "dumping package cache contents");
usr.bin/pkgconf/libpkgconf/cache.c
65
for (i = 0; i < client->cache_count; i++)
usr.bin/pkgconf/libpkgconf/cache.c
67
const pkgconf_pkg_t *pkg = client->cache_table[i];
usr.bin/pkgconf/libpkgconf/cache.c
69
PKGCONF_TRACE(client, SIZE_FMT_SPECIFIER": %p(%s)",
usr.bin/pkgconf/libpkgconf/cache.c
89
pkgconf_cache_lookup(pkgconf_client_t *client, const char *id)
usr.bin/pkgconf/libpkgconf/cache.c
91
if (client->cache_table == NULL)
usr.bin/pkgconf/libpkgconf/cache.c
96
pkg = bsearch(id, client->cache_table,
usr.bin/pkgconf/libpkgconf/cache.c
97
client->cache_count, sizeof (void *),
usr.bin/pkgconf/libpkgconf/client.c
100
client->auditf = NULL;
usr.bin/pkgconf/libpkgconf/client.c
101
client->cache_table = NULL;
usr.bin/pkgconf/libpkgconf/client.c
102
client->cache_count = 0;
usr.bin/pkgconf/libpkgconf/client.c
105
if (client->trace_handler == NULL)
usr.bin/pkgconf/libpkgconf/client.c
106
pkgconf_client_set_trace_handler(client, NULL, NULL);
usr.bin/pkgconf/libpkgconf/client.c
109
pkgconf_client_set_error_handler(client, error_handler, error_handler_data);
usr.bin/pkgconf/libpkgconf/client.c
110
pkgconf_client_set_warn_handler(client, NULL, NULL);
usr.bin/pkgconf/libpkgconf/client.c
112
pkgconf_client_set_sysroot_dir(client, personality->sysroot_dir);
usr.bin/pkgconf/libpkgconf/client.c
113
pkgconf_client_set_buildroot_dir(client, NULL);
usr.bin/pkgconf/libpkgconf/client.c
114
pkgconf_client_set_prefix_varname(client, NULL);
usr.bin/pkgconf/libpkgconf/client.c
117
pkgconf_path_copy_list(&client->filter_libdirs, &personality->filter_libdirs);
usr.bin/pkgconf/libpkgconf/client.c
119
pkgconf_path_build_from_environ("PKG_CONFIG_SYSTEM_LIBRARY_PATH", NULL, &client->filter_libdirs, false);
usr.bin/pkgconf/libpkgconf/client.c
122
pkgconf_path_copy_list(&client->filter_includedirs, &personality->filter_includedirs);
usr.bin/pkgconf/libpkgconf/client.c
124
pkgconf_path_build_from_environ("PKG_CONFIG_SYSTEM_INCLUDE_PATH", NULL, &client->filter_includedirs, false);
usr.bin/pkgconf/libpkgconf/client.c
128
pkgconf_path_build_from_environ("BELIBRARIES", NULL, &client->filter_libdirs, false);
usr.bin/pkgconf/libpkgconf/client.c
130
pkgconf_path_build_from_environ("LIBRARY_PATH", NULL, &client->filter_libdirs, false);
usr.bin/pkgconf/libpkgconf/client.c
132
pkgconf_path_build_from_environ("CPATH", NULL, &client->filter_includedirs, false);
usr.bin/pkgconf/libpkgconf/client.c
133
pkgconf_path_build_from_environ("C_INCLUDE_PATH", NULL, &client->filter_includedirs, false);
usr.bin/pkgconf/libpkgconf/client.c
134
pkgconf_path_build_from_environ("CPLUS_INCLUDE_PATH", NULL, &client->filter_includedirs, false);
usr.bin/pkgconf/libpkgconf/client.c
135
pkgconf_path_build_from_environ("OBJC_INCLUDE_PATH", NULL, &client->filter_includedirs, false);
usr.bin/pkgconf/libpkgconf/client.c
139
pkgconf_path_build_from_environ("INCLUDE", NULL, &client->filter_includedirs, false);
usr.bin/pkgconf/libpkgconf/client.c
142
PKGCONF_TRACE(client, "initialized client @%p", client);
usr.bin/pkgconf/libpkgconf/client.c
144
trace_path_list(client, "filtered library paths", &client->filter_libdirs);
usr.bin/pkgconf/libpkgconf/client.c
145
trace_path_list(client, "filtered include paths", &client->filter_includedirs);
usr.bin/pkgconf/libpkgconf/client.c
180
pkgconf_client_deinit(pkgconf_client_t *client)
usr.bin/pkgconf/libpkgconf/client.c
182
PKGCONF_TRACE(client, "deinit @%p", client);
usr.bin/pkgconf/libpkgconf/client.c
184
if (client->prefix_varname != NULL)
usr.bin/pkgconf/libpkgconf/client.c
185
free(client->prefix_varname);
usr.bin/pkgconf/libpkgconf/client.c
187
if (client->sysroot_dir != NULL)
usr.bin/pkgconf/libpkgconf/client.c
188
free(client->sysroot_dir);
usr.bin/pkgconf/libpkgconf/client.c
190
if (client->buildroot_dir != NULL)
usr.bin/pkgconf/libpkgconf/client.c
191
free(client->buildroot_dir);
usr.bin/pkgconf/libpkgconf/client.c
193
pkgconf_path_free(&client->filter_libdirs);
usr.bin/pkgconf/libpkgconf/client.c
194
pkgconf_path_free(&client->filter_includedirs);
usr.bin/pkgconf/libpkgconf/client.c
196
pkgconf_tuple_free_global(client);
usr.bin/pkgconf/libpkgconf/client.c
197
pkgconf_path_free(&client->dir_list);
usr.bin/pkgconf/libpkgconf/client.c
198
pkgconf_cache_free(client);
usr.bin/pkgconf/libpkgconf/client.c
212
pkgconf_client_free(pkgconf_client_t *client)
usr.bin/pkgconf/libpkgconf/client.c
214
pkgconf_client_deinit(client);
usr.bin/pkgconf/libpkgconf/client.c
215
free(client);
usr.bin/pkgconf/libpkgconf/client.c
230
pkgconf_client_get_sysroot_dir(const pkgconf_client_t *client)
usr.bin/pkgconf/libpkgconf/client.c
232
return client->sysroot_dir;
usr.bin/pkgconf/libpkgconf/client.c
250
pkgconf_client_set_sysroot_dir(pkgconf_client_t *client, const char *sysroot_dir)
usr.bin/pkgconf/libpkgconf/client.c
252
if (client->sysroot_dir != NULL)
usr.bin/pkgconf/libpkgconf/client.c
253
free(client->sysroot_dir);
usr.bin/pkgconf/libpkgconf/client.c
255
client->sysroot_dir = sysroot_dir != NULL ? strdup(sysroot_dir) : NULL;
usr.bin/pkgconf/libpkgconf/client.c
257
PKGCONF_TRACE(client, "set sysroot_dir to: %s", client->sysroot_dir != NULL ? client->sysroot_dir : "<default>");
usr.bin/pkgconf/libpkgconf/client.c
259
pkgconf_tuple_add_global(client, "pc_sysrootdir", client->sysroot_dir != NULL ? client->sysroot_dir : "/");
usr.bin/pkgconf/libpkgconf/client.c
274
pkgconf_client_get_buildroot_dir(const pkgconf_client_t *client)
usr.bin/pkgconf/libpkgconf/client.c
276
return client->buildroot_dir;
usr.bin/pkgconf/libpkgconf/client.c
294
pkgconf_client_set_buildroot_dir(pkgconf_client_t *client, const char *buildroot_dir)
usr.bin/pkgconf/libpkgconf/client.c
296
if (client->buildroot_dir != NULL)
usr.bin/pkgconf/libpkgconf/client.c
297
free(client->buildroot_dir);
usr.bin/pkgconf/libpkgconf/client.c
299
client->buildroot_dir = buildroot_dir != NULL ? strdup(buildroot_dir) : NULL;
usr.bin/pkgconf/libpkgconf/client.c
301
PKGCONF_TRACE(client, "set buildroot_dir to: %s", client->buildroot_dir != NULL ? client->buildroot_dir : "<default>");
usr.bin/pkgconf/libpkgconf/client.c
303
pkgconf_tuple_add_global(client, "pc_top_builddir", client->buildroot_dir != NULL ? client->buildroot_dir : "$(top_builddir)");
usr.bin/pkgconf/libpkgconf/client.c
319
pkgconf_error(const pkgconf_client_t *client, const char *format, ...)
usr.bin/pkgconf/libpkgconf/client.c
328
return client->error_handler(errbuf, client, client->error_handler_data);
usr.bin/pkgconf/libpkgconf/client.c
344
pkgconf_warn(const pkgconf_client_t *client, const char *format, ...)
usr.bin/pkgconf/libpkgconf/client.c
35
trace_path_list(const pkgconf_client_t *client, const char *desc, pkgconf_list_t *list)
usr.bin/pkgconf/libpkgconf/client.c
353
return client->warn_handler(errbuf, client, client->warn_handler_data);
usr.bin/pkgconf/libpkgconf/client.c
372
pkgconf_trace(const pkgconf_client_t *client, const char *filename, size_t lineno, const char *funcname, const char *format, ...)
usr.bin/pkgconf/libpkgconf/client.c
378
if (client == NULL || client->trace_handler == NULL)
usr.bin/pkgconf/libpkgconf/client.c
389
return client->trace_handler(errbuf, client, client->trace_handler_data);
usr.bin/pkgconf/libpkgconf/client.c
39
PKGCONF_TRACE(client, "%s:", desc);
usr.bin/pkgconf/libpkgconf/client.c
406
pkgconf_default_error_handler(const char *msg, const pkgconf_client_t *client, void *data)
usr.bin/pkgconf/libpkgconf/client.c
409
(void) client;
usr.bin/pkgconf/libpkgconf/client.c
427
pkgconf_client_get_flags(const pkgconf_client_t *client)
usr.bin/pkgconf/libpkgconf/client.c
429
return client->flags;
usr.bin/pkgconf/libpkgconf/client.c
44
PKGCONF_TRACE(client, " - '%s'", p->path);
usr.bin/pkgconf/libpkgconf/client.c
443
pkgconf_client_set_flags(pkgconf_client_t *client, unsigned int flags)
usr.bin/pkgconf/libpkgconf/client.c
445
client->flags = flags;
usr.bin/pkgconf/libpkgconf/client.c
461
pkgconf_client_get_prefix_varname(const pkgconf_client_t *client)
usr.bin/pkgconf/libpkgconf/client.c
463
return client->prefix_varname;
usr.bin/pkgconf/libpkgconf/client.c
479
pkgconf_client_set_prefix_varname(pkgconf_client_t *client, const char *prefix_varname)
usr.bin/pkgconf/libpkgconf/client.c
484
if (client->prefix_varname != NULL)
usr.bin/pkgconf/libpkgconf/client.c
485
free(client->prefix_varname);
usr.bin/pkgconf/libpkgconf/client.c
487
client->prefix_varname = strdup(prefix_varname);
usr.bin/pkgconf/libpkgconf/client.c
489
PKGCONF_TRACE(client, "set prefix_varname to: %s", client->prefix_varname);
usr.bin/pkgconf/libpkgconf/client.c
503
pkgconf_client_get_warn_handler(const pkgconf_client_t *client)
usr.bin/pkgconf/libpkgconf/client.c
505
return client->warn_handler;
usr.bin/pkgconf/libpkgconf/client.c
521
pkgconf_client_set_warn_handler(pkgconf_client_t *client, pkgconf_error_handler_func_t warn_handler, void *warn_handler_data)
usr.bin/pkgconf/libpkgconf/client.c
523
client->warn_handler = warn_handler;
usr.bin/pkgconf/libpkgconf/client.c
524
client->warn_handler_data = warn_handler_data;
usr.bin/pkgconf/libpkgconf/client.c
526
if (client->warn_handler == NULL)
usr.bin/pkgconf/libpkgconf/client.c
528
PKGCONF_TRACE(client, "installing default warn handler");
usr.bin/pkgconf/libpkgconf/client.c
529
client->warn_handler = pkgconf_default_error_handler;
usr.bin/pkgconf/libpkgconf/client.c
544
pkgconf_client_get_error_handler(const pkgconf_client_t *client)
usr.bin/pkgconf/libpkgconf/client.c
546
return client->error_handler;
usr.bin/pkgconf/libpkgconf/client.c
562
pkgconf_client_set_error_handler(pkgconf_client_t *client, pkgconf_error_handler_func_t error_handler, void *error_handler_data)
usr.bin/pkgconf/libpkgconf/client.c
564
client->error_handler = error_handler;
usr.bin/pkgconf/libpkgconf/client.c
565
client->error_handler_data = error_handler_data;
usr.bin/pkgconf/libpkgconf/client.c
567
if (client->error_handler == NULL)
usr.bin/pkgconf/libpkgconf/client.c
569
PKGCONF_TRACE(client, "installing default error handler");
usr.bin/pkgconf/libpkgconf/client.c
570
client->error_handler = pkgconf_default_error_handler;
usr.bin/pkgconf/libpkgconf/client.c
586
pkgconf_client_get_trace_handler(const pkgconf_client_t *client)
usr.bin/pkgconf/libpkgconf/client.c
588
return client->trace_handler;
usr.bin/pkgconf/libpkgconf/client.c
604
pkgconf_client_set_trace_handler(pkgconf_client_t *client, pkgconf_error_handler_func_t trace_handler, void *trace_handler_data)
usr.bin/pkgconf/libpkgconf/client.c
606
client->trace_handler = trace_handler;
usr.bin/pkgconf/libpkgconf/client.c
607
client->trace_handler_data = trace_handler_data;
usr.bin/pkgconf/libpkgconf/client.c
609
if (client->trace_handler == NULL)
usr.bin/pkgconf/libpkgconf/client.c
61
pkgconf_client_dir_list_build(pkgconf_client_t *client, const pkgconf_cross_personality_t *personality)
usr.bin/pkgconf/libpkgconf/client.c
611
client->trace_handler = pkgconf_default_error_handler;
usr.bin/pkgconf/libpkgconf/client.c
612
PKGCONF_TRACE(client, "installing default trace handler");
usr.bin/pkgconf/libpkgconf/client.c
63
pkgconf_path_build_from_environ("PKG_CONFIG_PATH", NULL, &client->dir_list, true);
usr.bin/pkgconf/libpkgconf/client.c
65
if (!(client->flags & PKGCONF_PKG_PKGF_ENV_ONLY))
usr.bin/pkgconf/libpkgconf/client.c
77
pkgconf_path_copy_list(&client->dir_list, prepend_list);
usr.bin/pkgconf/libpkgconf/client.c
96
pkgconf_client_init(pkgconf_client_t *client, pkgconf_error_handler_func_t error_handler, void *error_handler_data, const pkgconf_cross_personality_t *personality)
usr.bin/pkgconf/libpkgconf/client.c
98
client->error_handler_data = error_handler_data;
usr.bin/pkgconf/libpkgconf/client.c
99
client->error_handler = error_handler;
usr.bin/pkgconf/libpkgconf/dependency.c
100
PKGCONF_TRACE(client, "dropping dependency [%s]@%p because of collision", depbuf2, dep2);
usr.bin/pkgconf/libpkgconf/dependency.c
112
PKGCONF_TRACE(client, "keeping both dependencies (harmless)");
usr.bin/pkgconf/libpkgconf/dependency.c
115
PKGCONF_TRACE(client, "added dependency [%s] to list @%p; flags=%x", dependency_to_str(dep, depbuf, sizeof depbuf), list, dep->flags);
usr.bin/pkgconf/libpkgconf/dependency.c
129
pkgconf_dependency_addraw(pkgconf_client_t *client, pkgconf_list_t *list, const char *package, size_t package_sz, const char *version, size_t version_sz, pkgconf_pkg_comparator_t compare, unsigned int flags)
usr.bin/pkgconf/libpkgconf/dependency.c
141
dep->owner = client;
usr.bin/pkgconf/libpkgconf/dependency.c
144
return add_or_replace_dependency_node(client, dep, list);
usr.bin/pkgconf/libpkgconf/dependency.c
164
pkgconf_dependency_add(pkgconf_client_t *client, pkgconf_list_t *list, const char *package, const char *version, pkgconf_pkg_comparator_t compare, unsigned int flags)
usr.bin/pkgconf/libpkgconf/dependency.c
167
dep = pkgconf_dependency_addraw(client, list, package, strlen(package), version,
usr.bin/pkgconf/libpkgconf/dependency.c
226
pkgconf_dependency_ref(pkgconf_client_t *client, pkgconf_dependency_t *dep)
usr.bin/pkgconf/libpkgconf/dependency.c
228
if (client != dep->owner)
usr.bin/pkgconf/libpkgconf/dependency.c
232
PKGCONF_TRACE(client, "%s refcount@%p: %d", dep->package, dep, dep->refcount);
usr.bin/pkgconf/libpkgconf/dependency.c
248
pkgconf_dependency_unref(pkgconf_client_t *client, pkgconf_dependency_t *dep)
usr.bin/pkgconf/libpkgconf/dependency.c
250
if (client != dep->owner)
usr.bin/pkgconf/libpkgconf/dependency.c
254
PKGCONF_TRACE(client, "%s refcount@%p: %d", dep->package, dep, dep->refcount);
usr.bin/pkgconf/libpkgconf/dependency.c
302
pkgconf_dependency_parse_str(pkgconf_client_t *client, pkgconf_list_t *deplist_head, const char *depends, unsigned int flags)
usr.bin/pkgconf/libpkgconf/dependency.c
370
pkgconf_dependency_addraw(client, deplist_head, package, package_sz, NULL, 0, compare, flags);
usr.bin/pkgconf/libpkgconf/dependency.c
415
pkgconf_dependency_addraw(client, deplist_head, package, package_sz, version, version_sz, compare, flags);
usr.bin/pkgconf/libpkgconf/dependency.c
449
pkgconf_dependency_parse(pkgconf_client_t *client, pkgconf_pkg_t *pkg, pkgconf_list_t *deplist, const char *depends, unsigned int flags)
usr.bin/pkgconf/libpkgconf/dependency.c
451
char *kvdepends = pkgconf_tuple_parse(client, &pkg->vars, depends, pkg->flags);
usr.bin/pkgconf/libpkgconf/dependency.c
453
pkgconf_dependency_parse_str(client, deplist, kvdepends, flags);
usr.bin/pkgconf/libpkgconf/dependency.c
469
pkgconf_dependency_copy(pkgconf_client_t *client, const pkgconf_dependency_t *dep)
usr.bin/pkgconf/libpkgconf/dependency.c
481
new_dep->owner = client;
usr.bin/pkgconf/libpkgconf/dependency.c
485
new_dep->match = pkgconf_pkg_ref(client, dep->match);
usr.bin/pkgconf/libpkgconf/dependency.c
487
return pkgconf_dependency_ref(client, new_dep);
usr.bin/pkgconf/libpkgconf/dependency.c
76
add_or_replace_dependency_node(pkgconf_client_t *client, pkgconf_dependency_t *dep, pkgconf_list_t *list)
usr.bin/pkgconf/libpkgconf/dependency.c
86
PKGCONF_TRACE(client, "dependency collision: [%s/%x] -- [%s/%x]",
usr.bin/pkgconf/libpkgconf/dependency.c
93
PKGCONF_TRACE(client, "dropping dependency [%s]@%p because of collision", depbuf, dep);
usr.bin/pkgconf/libpkgconf/fragment.c
129
pkgconf_fragment_munge(const pkgconf_client_t *client, char *buf, size_t buflen, const char *source, const char *sysroot_dir, unsigned int flags)
usr.bin/pkgconf/libpkgconf/fragment.c
133
if (!(flags & PKGCONF_PKG_PROPF_UNINSTALLED) || (client->flags & PKGCONF_PKG_PKGF_PKGCONF1_SYSROOT_RULES))
usr.bin/pkgconf/libpkgconf/fragment.c
136
sysroot_dir = pkgconf_tuple_find_global(client, "pc_sysrootdir");
usr.bin/pkgconf/libpkgconf/fragment.c
144
if (*buf == '/' && !(client->flags & PKGCONF_PKG_PKGF_DONT_RELOCATE_PATHS))
usr.bin/pkgconf/libpkgconf/fragment.c
149
pkgconf_fragment_copy_munged(const pkgconf_client_t *client, const char *source, unsigned int flags)
usr.bin/pkgconf/libpkgconf/fragment.c
152
pkgconf_fragment_munge(client, mungebuf, sizeof mungebuf, source, client->sysroot_dir, flags);
usr.bin/pkgconf/libpkgconf/fragment.c
171
pkgconf_fragment_insert(const pkgconf_client_t *client, pkgconf_list_t *list, char type, const char *data, bool tail)
usr.bin/pkgconf/libpkgconf/fragment.c
177
frag->data = pkgconf_fragment_copy_munged(client, data, 0);
usr.bin/pkgconf/libpkgconf/fragment.c
202
pkgconf_fragment_add(const pkgconf_client_t *client, pkgconf_list_t *list, const char *string, unsigned int flags)
usr.bin/pkgconf/libpkgconf/fragment.c
211
!(client->flags & PKGCONF_PKG_PKGF_DONT_MERGE_SPECIAL_FRAGMENTS))
usr.bin/pkgconf/libpkgconf/fragment.c
226
PKGCONF_TRACE(client, "adding fragment as child to list @%p", target);
usr.bin/pkgconf/libpkgconf/fragment.c
235
frag->data = pkgconf_fragment_copy_munged(client, string + 2, flags);
usr.bin/pkgconf/libpkgconf/fragment.c
237
PKGCONF_TRACE(client, "added fragment {%c, '%s'} to list @%p", frag->type, frag->data, list);
usr.bin/pkgconf/libpkgconf/fragment.c
244
frag->data = pkgconf_fragment_copy_munged(client, string, flags);
usr.bin/pkgconf/libpkgconf/fragment.c
246
PKGCONF_TRACE(client, "created special fragment {'%s'} in list @%p", frag->data, target);
usr.bin/pkgconf/libpkgconf/fragment.c
359
pkgconf_fragment_has_system_dir(const pkgconf_client_t *client, const pkgconf_fragment_t *frag)
usr.bin/pkgconf/libpkgconf/fragment.c
366
check_paths = &client->filter_libdirs;
usr.bin/pkgconf/libpkgconf/fragment.c
369
check_paths = &client->filter_includedirs;
usr.bin/pkgconf/libpkgconf/fragment.c
393
pkgconf_fragment_copy(const pkgconf_client_t *client, pkgconf_list_t *list, const pkgconf_fragment_t *base, bool is_private)
usr.bin/pkgconf/libpkgconf/fragment.c
397
if ((frag = pkgconf_fragment_exists(list, base, client->flags, is_private)) != NULL)
usr.bin/pkgconf/libpkgconf/fragment.c
402
else if (!is_private && !pkgconf_fragment_can_merge_back(base, client->flags, is_private) && (pkgconf_fragment_lookup(list, base) != NULL))
usr.bin/pkgconf/libpkgconf/fragment.c
408
pkgconf_fragment_copy_list(client, &frag->children, &base->children);
usr.bin/pkgconf/libpkgconf/fragment.c
429
pkgconf_fragment_copy_list(const pkgconf_client_t *client, pkgconf_list_t *list, const pkgconf_list_t *base)
usr.bin/pkgconf/libpkgconf/fragment.c
437
pkgconf_fragment_copy(client, list, frag, true);
usr.bin/pkgconf/libpkgconf/fragment.c
456
pkgconf_fragment_filter(const pkgconf_client_t *client, pkgconf_list_t *dest, pkgconf_list_t *src, pkgconf_fragment_filter_func_t filter_func, void *data)
usr.bin/pkgconf/libpkgconf/fragment.c
464
if (filter_func(client, frag, data))
usr.bin/pkgconf/libpkgconf/fragment.c
465
pkgconf_fragment_copy(client, dest, frag, true);
usr.bin/pkgconf/libpkgconf/fragment.c
752
pkgconf_fragment_parse(const pkgconf_client_t *client, pkgconf_list_t *list, pkgconf_list_t *vars, const char *value, unsigned int flags)
usr.bin/pkgconf/libpkgconf/fragment.c
756
char *repstr = pkgconf_tuple_parse(client, vars, value, flags);
usr.bin/pkgconf/libpkgconf/fragment.c
758
PKGCONF_TRACE(client, "post-subst: [%s] -> [%s]", value, repstr);
usr.bin/pkgconf/libpkgconf/fragment.c
763
PKGCONF_TRACE(client, "unable to parse fragment string [%s]", repstr);
usr.bin/pkgconf/libpkgconf/fragment.c
770
PKGCONF_TRACE(client, "processing %s", argv[i]);
usr.bin/pkgconf/libpkgconf/fragment.c
774
PKGCONF_TRACE(client, "parsed fragment string is inconsistent: argc = %d while argv[%d] == NULL", argc, i);
usr.bin/pkgconf/libpkgconf/fragment.c
780
pkgconf_fragment_add(client, list, argv[i], flags);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
191
typedef void (*pkgconf_pkg_traverse_func_t)(pkgconf_client_t *client, pkgconf_pkg_t *pkg, void *data);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
192
typedef bool (*pkgconf_queue_apply_func_t)(pkgconf_client_t *client, pkgconf_pkg_t *world, void *data, int maxdepth);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
193
typedef bool (*pkgconf_error_handler_func_t)(const char *msg, const pkgconf_client_t *client, void *data);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
244
PKGCONF_API void pkgconf_client_init(pkgconf_client_t *client, pkgconf_error_handler_func_t error_handler, void *error_handler_data, const pkgconf_cross_personality_t *personality);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
246
PKGCONF_API void pkgconf_client_deinit(pkgconf_client_t *client);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
247
PKGCONF_API void pkgconf_client_free(pkgconf_client_t *client);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
248
PKGCONF_API const char *pkgconf_client_get_sysroot_dir(const pkgconf_client_t *client);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
249
PKGCONF_API void pkgconf_client_set_sysroot_dir(pkgconf_client_t *client, const char *sysroot_dir);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
250
PKGCONF_API const char *pkgconf_client_get_buildroot_dir(const pkgconf_client_t *client);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
251
PKGCONF_API void pkgconf_client_set_buildroot_dir(pkgconf_client_t *client, const char *buildroot_dir);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
252
PKGCONF_API unsigned int pkgconf_client_get_flags(const pkgconf_client_t *client);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
253
PKGCONF_API void pkgconf_client_set_flags(pkgconf_client_t *client, unsigned int flags);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
254
PKGCONF_API const char *pkgconf_client_get_prefix_varname(const pkgconf_client_t *client);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
255
PKGCONF_API void pkgconf_client_set_prefix_varname(pkgconf_client_t *client, const char *prefix_varname);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
256
PKGCONF_API pkgconf_error_handler_func_t pkgconf_client_get_warn_handler(const pkgconf_client_t *client);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
257
PKGCONF_API void pkgconf_client_set_warn_handler(pkgconf_client_t *client, pkgconf_error_handler_func_t warn_handler, void *warn_handler_data);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
258
PKGCONF_API pkgconf_error_handler_func_t pkgconf_client_get_error_handler(const pkgconf_client_t *client);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
259
PKGCONF_API void pkgconf_client_set_error_handler(pkgconf_client_t *client, pkgconf_error_handler_func_t error_handler, void *error_handler_data);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
260
PKGCONF_API pkgconf_error_handler_func_t pkgconf_client_get_trace_handler(const pkgconf_client_t *client);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
261
PKGCONF_API void pkgconf_client_set_trace_handler(pkgconf_client_t *client, pkgconf_error_handler_func_t trace_handler, void *trace_handler_data);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
262
PKGCONF_API void pkgconf_client_dir_list_build(pkgconf_client_t *client, const pkgconf_cross_personality_t *personality);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
318
PKGCONF_API bool pkgconf_error(const pkgconf_client_t *client, const char *format, ...) PRINTFLIKE(2, 3);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
319
PKGCONF_API bool pkgconf_warn(const pkgconf_client_t *client, const char *format, ...) PRINTFLIKE(2, 3);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
320
PKGCONF_API bool pkgconf_trace(const pkgconf_client_t *client, const char *filename, size_t lineno, const char *funcname, const char *format, ...) PRINTFLIKE(5, 6);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
321
PKGCONF_API bool pkgconf_default_error_handler(const char *msg, const pkgconf_client_t *client, void *data);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
325
#define PKGCONF_TRACE(client, ...) do { \
usr.bin/pkgconf/libpkgconf/libpkgconf.h
326
pkgconf_trace(client, __FILE__, __LINE__, __PRETTY_FUNCTION__, __VA_ARGS__); \
usr.bin/pkgconf/libpkgconf/libpkgconf.h
329
#define PKGCONF_TRACE(client, ...) do { \
usr.bin/pkgconf/libpkgconf/libpkgconf.h
330
pkgconf_trace(client, __FILE__, __LINE__, __func__, __VA_ARGS__); \
usr.bin/pkgconf/libpkgconf/libpkgconf.h
334
#define PKGCONF_TRACE(client, ...)
usr.bin/pkgconf/libpkgconf/libpkgconf.h
337
PKGCONF_API pkgconf_pkg_t *pkgconf_pkg_ref(pkgconf_client_t *client, pkgconf_pkg_t *pkg);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
338
PKGCONF_API void pkgconf_pkg_unref(pkgconf_client_t *client, pkgconf_pkg_t *pkg);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
339
PKGCONF_API void pkgconf_pkg_free(pkgconf_client_t *client, pkgconf_pkg_t *pkg);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
340
PKGCONF_API pkgconf_pkg_t *pkgconf_pkg_find(pkgconf_client_t *client, const char *name);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
341
PKGCONF_API unsigned int pkgconf_pkg_traverse(pkgconf_client_t *client, pkgconf_pkg_t *root, pkgconf_pkg_traverse_func_t func, void *data, int maxdepth, unsigned int skip_flags);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
342
PKGCONF_API unsigned int pkgconf_pkg_verify_graph(pkgconf_client_t *client, pkgconf_pkg_t *root, int depth);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
343
PKGCONF_API pkgconf_pkg_t *pkgconf_pkg_verify_dependency(pkgconf_client_t *client, pkgconf_dependency_t *pkgdep, unsigned int *eflags);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
345
PKGCONF_API unsigned int pkgconf_pkg_cflags(pkgconf_client_t *client, pkgconf_pkg_t *root, pkgconf_list_t *list, int maxdepth);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
346
PKGCONF_API unsigned int pkgconf_pkg_libs(pkgconf_client_t *client, pkgconf_pkg_t *root, pkgconf_list_t *list, int maxdepth);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
351
PKGCONF_API pkgconf_pkg_t *pkgconf_scan_all(pkgconf_client_t *client, void *ptr, pkgconf_pkg_iteration_func_t func);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
354
PKGCONF_API pkgconf_pkg_t *pkgconf_pkg_new_from_file(pkgconf_client_t *client, const char *path, FILE *f, unsigned int flags);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
355
PKGCONF_API void pkgconf_dependency_parse_str(pkgconf_client_t *client, pkgconf_list_t *deplist_head, const char *depends, unsigned int flags);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
356
PKGCONF_API void pkgconf_dependency_parse(pkgconf_client_t *client, pkgconf_pkg_t *pkg, pkgconf_list_t *deplist_head, const char *depends, unsigned int flags);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
360
PKGCONF_API pkgconf_dependency_t *pkgconf_dependency_add(pkgconf_client_t *client, pkgconf_list_t *list, const char *package, const char *version, pkgconf_pkg_comparator_t compare, unsigned int flags);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
361
PKGCONF_API pkgconf_dependency_t *pkgconf_dependency_ref(pkgconf_client_t *client, pkgconf_dependency_t *dep);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
362
PKGCONF_API void pkgconf_dependency_unref(pkgconf_client_t *client, pkgconf_dependency_t *dep);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
363
PKGCONF_API pkgconf_dependency_t *pkgconf_dependency_copy(pkgconf_client_t *client, const pkgconf_dependency_t *dep);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
375
typedef bool (*pkgconf_fragment_filter_func_t)(const pkgconf_client_t *client, const pkgconf_fragment_t *frag, void *data);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
376
PKGCONF_API bool pkgconf_fragment_parse(const pkgconf_client_t *client, pkgconf_list_t *list, pkgconf_list_t *vars, const char *value, unsigned int flags);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
377
PKGCONF_API void pkgconf_fragment_insert(const pkgconf_client_t *client, pkgconf_list_t *list, char type, const char *data, bool tail);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
378
PKGCONF_API void pkgconf_fragment_add(const pkgconf_client_t *client, pkgconf_list_t *list, const char *string, unsigned int flags);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
379
PKGCONF_API void pkgconf_fragment_copy(const pkgconf_client_t *client, pkgconf_list_t *list, const pkgconf_fragment_t *base, bool is_private);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
380
PKGCONF_API void pkgconf_fragment_copy_list(const pkgconf_client_t *client, pkgconf_list_t *list, const pkgconf_list_t *base);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
383
PKGCONF_API void pkgconf_fragment_filter(const pkgconf_client_t *client, pkgconf_list_t *dest, pkgconf_list_t *src, pkgconf_fragment_filter_func_t filter_func, void *data);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
387
PKGCONF_API bool pkgconf_fragment_has_system_dir(const pkgconf_client_t *client, const pkgconf_fragment_t *frag);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
390
PKGCONF_API pkgconf_tuple_t *pkgconf_tuple_add(const pkgconf_client_t *client, pkgconf_list_t *parent, const char *key, const char *value, bool parse, unsigned int flags);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
391
PKGCONF_API char *pkgconf_tuple_find(const pkgconf_client_t *client, pkgconf_list_t *list, const char *key);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
392
PKGCONF_API char *pkgconf_tuple_parse(const pkgconf_client_t *client, pkgconf_list_t *list, const char *value, unsigned int flags);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
395
PKGCONF_API void pkgconf_tuple_add_global(pkgconf_client_t *client, const char *key, const char *value);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
396
PKGCONF_API char *pkgconf_tuple_find_global(const pkgconf_client_t *client, const char *key);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
397
PKGCONF_API void pkgconf_tuple_free_global(pkgconf_client_t *client);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
398
PKGCONF_API void pkgconf_tuple_define_global(pkgconf_client_t *client, const char *kv);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
402
PKGCONF_API bool pkgconf_queue_compile(pkgconf_client_t *client, pkgconf_pkg_t *world, pkgconf_list_t *list);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
403
PKGCONF_API bool pkgconf_queue_solve(pkgconf_client_t *client, pkgconf_list_t *list, pkgconf_pkg_t *world, int maxdepth);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
405
PKGCONF_API bool pkgconf_queue_apply(pkgconf_client_t *client, pkgconf_list_t *list, pkgconf_queue_apply_func_t func, int maxdepth, void *data);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
406
PKGCONF_API bool pkgconf_queue_validate(pkgconf_client_t *client, pkgconf_list_t *list, int maxdepth);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
407
PKGCONF_API void pkgconf_solution_free(pkgconf_client_t *client, pkgconf_pkg_t *world);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
410
PKGCONF_API pkgconf_pkg_t *pkgconf_cache_lookup(pkgconf_client_t *client, const char *id);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
411
PKGCONF_API void pkgconf_cache_add(pkgconf_client_t *client, pkgconf_pkg_t *pkg);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
412
PKGCONF_API void pkgconf_cache_remove(pkgconf_client_t *client, pkgconf_pkg_t *pkg);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
413
PKGCONF_API void pkgconf_cache_free(pkgconf_client_t *client);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
416
PKGCONF_API void pkgconf_audit_set_log(pkgconf_client_t *client, FILE *auditf);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
417
PKGCONF_API void pkgconf_audit_log(pkgconf_client_t *client, const char *format, ...) PRINTFLIKE(2, 3);
usr.bin/pkgconf/libpkgconf/libpkgconf.h
418
PKGCONF_API void pkgconf_audit_log_dependency(pkgconf_client_t *client, const pkgconf_pkg_t *dep, const pkgconf_dependency_t *depnode);
usr.bin/pkgconf/libpkgconf/pkg.c
1417
pkgconf_pkg_scan_providers(pkgconf_client_t *client, pkgconf_dependency_t *pkgdep, unsigned int *eflags)
usr.bin/pkgconf/libpkgconf/pkg.c
1424
pkg = pkgconf_scan_all(client, &ctx, (pkgconf_pkg_iteration_func_t) pkgconf_pkg_scan_provides_entry);
usr.bin/pkgconf/libpkgconf/pkg.c
1427
pkgdep->match = pkgconf_pkg_ref(client, pkg);
usr.bin/pkgconf/libpkgconf/pkg.c
143
typedef void (*pkgconf_pkg_parser_keyword_func_t)(pkgconf_client_t *client, pkgconf_pkg_t *pkg, const char *keyword, const size_t lineno, const ptrdiff_t offset, const char *value);
usr.bin/pkgconf/libpkgconf/pkg.c
1452
pkgconf_pkg_verify_dependency(pkgconf_client_t *client, pkgconf_dependency_t *pkgdep, unsigned int *eflags)
usr.bin/pkgconf/libpkgconf/pkg.c
1459
PKGCONF_TRACE(client, "trying to verify dependency: %s", pkgdep->package);
usr.bin/pkgconf/libpkgconf/pkg.c
1463
PKGCONF_TRACE(client, "cached dependency: %s -> %s@%p", pkgdep->package, pkgdep->match->id, pkgdep->match);
usr.bin/pkgconf/libpkgconf/pkg.c
1464
return pkgconf_pkg_ref(client, pkgdep->match);
usr.bin/pkgconf/libpkgconf/pkg.c
1467
pkg = pkgconf_pkg_find(client, pkgdep->package);
usr.bin/pkgconf/libpkgconf/pkg.c
1470
if (client->flags & PKGCONF_PKG_PKGF_SKIP_PROVIDES)
usr.bin/pkgconf/libpkgconf/pkg.c
1478
pkg = pkgconf_pkg_scan_providers(client, pkgdep, eflags);
usr.bin/pkgconf/libpkgconf/pkg.c
1491
pkgdep->match = pkgconf_pkg_ref(client, pkg);
usr.bin/pkgconf/libpkgconf/pkg.c
1515
pkgconf_pkg_verify_graph(pkgconf_client_t *client, pkgconf_pkg_t *root, int depth)
usr.bin/pkgconf/libpkgconf/pkg.c
1517
return pkgconf_pkg_traverse(client, root, NULL, NULL, depth, 0);
usr.bin/pkgconf/libpkgconf/pkg.c
1521
pkgconf_pkg_report_graph_error(pkgconf_client_t *client, pkgconf_pkg_t *parent, pkgconf_pkg_t *pkg, pkgconf_dependency_t *node, unsigned int eflags)
usr.bin/pkgconf/libpkgconf/pkg.c
1525
if (!(client->flags & PKGCONF_PKG_PKGF_SIMPLIFY_ERRORS) & !client->already_sent_notice)
usr.bin/pkgconf/libpkgconf/pkg.c
1527
pkgconf_error(client, "Package %s was not found in the pkg-config search path.\n", node->package);
usr.bin/pkgconf/libpkgconf/pkg.c
1528
pkgconf_error(client, "Perhaps you should add the directory containing `%s.pc'\n", node->package);
usr.bin/pkgconf/libpkgconf/pkg.c
1529
pkgconf_error(client, "to the PKG_CONFIG_PATH environment variable\n");
usr.bin/pkgconf/libpkgconf/pkg.c
1530
client->already_sent_notice = true;
usr.bin/pkgconf/libpkgconf/pkg.c
1534
pkgconf_error(client, "Package '%s' not found\n", node->package);
usr.bin/pkgconf/libpkgconf/pkg.c
1536
pkgconf_error(client, "Package '%s', required by '%s', not found\n", node->package, parent->id);
usr.bin/pkgconf/libpkgconf/pkg.c
1538
pkgconf_audit_log(client, "%s NOT-FOUND\n", node->package);
usr.bin/pkgconf/libpkgconf/pkg.c
1542
pkgconf_error(client, "Package dependency requirement '%s %s %s' could not be satisfied.\n",
usr.bin/pkgconf/libpkgconf/pkg.c
1546
pkgconf_error(client, "Package '%s' has version '%s', required version is '%s %s'\n",
usr.bin/pkgconf/libpkgconf/pkg.c
1551
pkgconf_pkg_unref(client, pkg);
usr.bin/pkgconf/libpkgconf/pkg.c
1557
pkgconf_pkg_walk_list(pkgconf_client_t *client,
usr.bin/pkgconf/libpkgconf/pkg.c
157
pkgconf_pkg_parser_tuple_func(pkgconf_client_t *client, pkgconf_pkg_t *pkg, const char *keyword, const size_t lineno, const ptrdiff_t offset, const char *value)
usr.bin/pkgconf/libpkgconf/pkg.c
1579
pkgdep = pkgconf_pkg_verify_dependency(client, depnode, &eflags_local);
usr.bin/pkgconf/libpkgconf/pkg.c
1582
if (eflags_local != PKGCONF_PKG_ERRF_OK && !(client->flags & PKGCONF_PKG_PKGF_SKIP_ERRORS))
usr.bin/pkgconf/libpkgconf/pkg.c
1584
pkgconf_pkg_report_graph_error(client, parent, pkgdep, depnode, eflags_local);
usr.bin/pkgconf/libpkgconf/pkg.c
1604
pkgconf_warn(client, "%s: breaking circular reference (%s -> %s -> %s)\n",
usr.bin/pkgconf/libpkgconf/pkg.c
1608
pkgconf_dependency_unref(client, depnode);
usr.bin/pkgconf/libpkgconf/pkg.c
1617
pkgconf_audit_log_dependency(client, pkgdep, depnode);
usr.bin/pkgconf/libpkgconf/pkg.c
1619
eflags |= pkgconf_pkg_traverse_main(client, pkgdep, func, data, depth - 1, skip_flags);
usr.bin/pkgconf/libpkgconf/pkg.c
1621
pkgconf_pkg_unref(client, pkgdep);
usr.bin/pkgconf/libpkgconf/pkg.c
163
*dest = pkgconf_tuple_parse(client, &pkg->vars, value, pkg->flags);
usr.bin/pkgconf/libpkgconf/pkg.c
1630
pkgconf_pkg_walk_conflicts_list(pkgconf_client_t *client,
usr.bin/pkgconf/libpkgconf/pkg.c
1651
pkgdep = pkgconf_pkg_verify_dependency(client, parentnode, &eflags);
usr.bin/pkgconf/libpkgconf/pkg.c
1654
pkgconf_error(client, "Version '%s' of '%s' conflicts with '%s' due to satisfying conflict rule '%s %s%s%s'.\n",
usr.bin/pkgconf/libpkgconf/pkg.c
1658
if (!(client->flags & PKGCONF_PKG_PKGF_SIMPLIFY_ERRORS))
usr.bin/pkgconf/libpkgconf/pkg.c
1660
pkgconf_error(client, "It may be possible to ignore this conflict and continue, try the\n");
usr.bin/pkgconf/libpkgconf/pkg.c
1661
pkgconf_error(client, "PKG_CONFIG_IGNORE_CONFLICTS environment variable.\n");
usr.bin/pkgconf/libpkgconf/pkg.c
1664
pkgconf_pkg_unref(client, pkgdep);
usr.bin/pkgconf/libpkgconf/pkg.c
1669
pkgconf_pkg_unref(client, pkgdep);
usr.bin/pkgconf/libpkgconf/pkg.c
167
pkgconf_pkg_parser_version_func(pkgconf_client_t *client, pkgconf_pkg_t *pkg, const char *keyword, const size_t lineno, const ptrdiff_t offset, const char *value)
usr.bin/pkgconf/libpkgconf/pkg.c
1693
pkgconf_pkg_traverse_main(pkgconf_client_t *client,
usr.bin/pkgconf/libpkgconf/pkg.c
1707
if (root->serial == client->serial)
usr.bin/pkgconf/libpkgconf/pkg.c
1710
root->serial = client->serial;
usr.bin/pkgconf/libpkgconf/pkg.c
1713
root->identifier = ++client->identifier;
usr.bin/pkgconf/libpkgconf/pkg.c
1715
PKGCONF_TRACE(client, "%s: level %d, serial %"PRIu64, root->id, maxdepth, client->serial);
usr.bin/pkgconf/libpkgconf/pkg.c
1717
if ((root->flags & PKGCONF_PKG_PROPF_VIRTUAL) != PKGCONF_PKG_PROPF_VIRTUAL || (client->flags & PKGCONF_PKG_PKGF_SKIP_ROOT_VIRTUAL) != PKGCONF_PKG_PKGF_SKIP_ROOT_VIRTUAL)
usr.bin/pkgconf/libpkgconf/pkg.c
1720
func(client, root, data);
usr.bin/pkgconf/libpkgconf/pkg.c
1723
if (!(client->flags & PKGCONF_PKG_PKGF_SKIP_CONFLICTS) && root->conflicts.head != NULL)
usr.bin/pkgconf/libpkgconf/pkg.c
1725
PKGCONF_TRACE(client, "%s: walking 'Conflicts' list", root->id);
usr.bin/pkgconf/libpkgconf/pkg.c
1727
eflags = pkgconf_pkg_walk_conflicts_list(client, root, &root->conflicts);
usr.bin/pkgconf/libpkgconf/pkg.c
1732
PKGCONF_TRACE(client, "%s: walking 'Requires' list", root->id);
usr.bin/pkgconf/libpkgconf/pkg.c
1733
eflags = pkgconf_pkg_walk_list(client, root, &root->required, func, data, maxdepth, skip_flags);
usr.bin/pkgconf/libpkgconf/pkg.c
1737
PKGCONF_TRACE(client, "%s: walking 'Requires.private' list", root->id);
usr.bin/pkgconf/libpkgconf/pkg.c
1740
client->flags |= PKGCONF_PKG_PKGF_ITER_PKG_IS_PRIVATE;
usr.bin/pkgconf/libpkgconf/pkg.c
1741
eflags = pkgconf_pkg_walk_list(client, root, &root->requires_private, func, data, maxdepth, skip_flags);
usr.bin/pkgconf/libpkgconf/pkg.c
1742
client->flags &= ~PKGCONF_PKG_PKGF_ITER_PKG_IS_PRIVATE;
usr.bin/pkgconf/libpkgconf/pkg.c
1751
pkgconf_pkg_traverse(pkgconf_client_t *client,
usr.bin/pkgconf/libpkgconf/pkg.c
1759
client->serial++;
usr.bin/pkgconf/libpkgconf/pkg.c
176
p = pkgconf_tuple_parse(client, &pkg->vars, value, pkg->flags);
usr.bin/pkgconf/libpkgconf/pkg.c
1761
if ((client->flags & PKGCONF_PKG_PKGF_SEARCH_PRIVATE) == 0)
usr.bin/pkgconf/libpkgconf/pkg.c
1764
return pkgconf_pkg_traverse_main(client, root, func, data, maxdepth, skip_flags);
usr.bin/pkgconf/libpkgconf/pkg.c
1768
pkgconf_pkg_cflags_collect(pkgconf_client_t *client, pkgconf_pkg_t *pkg, void *data)
usr.bin/pkgconf/libpkgconf/pkg.c
1776
pkgconf_fragment_copy(client, list, frag, false);
usr.bin/pkgconf/libpkgconf/pkg.c
1781
pkgconf_pkg_cflags_private_collect(pkgconf_client_t *client, pkgconf_pkg_t *pkg, void *data)
usr.bin/pkgconf/libpkgconf/pkg.c
1789
pkgconf_fragment_copy(client, list, frag, true);
usr.bin/pkgconf/libpkgconf/pkg.c
1808
pkgconf_pkg_cflags(pkgconf_client_t *client, pkgconf_pkg_t *root, pkgconf_list_t *list, int maxdepth)
usr.bin/pkgconf/libpkgconf/pkg.c
1811
unsigned int skip_flags = (client->flags & PKGCONF_PKG_PKGF_DONT_FILTER_INTERNAL_CFLAGS) == 0 ? PKGCONF_PKG_DEPF_INTERNAL : 0;
usr.bin/pkgconf/libpkgconf/pkg.c
1814
eflag = pkgconf_pkg_traverse(client, root, pkgconf_pkg_cflags_collect, &frags, maxdepth, skip_flags);
usr.bin/pkgconf/libpkgconf/pkg.c
1816
if (eflag == PKGCONF_PKG_ERRF_OK && client->flags & PKGCONF_PKG_PKGF_MERGE_PRIVATE_FRAGMENTS)
usr.bin/pkgconf/libpkgconf/pkg.c
1817
eflag = pkgconf_pkg_traverse(client, root, pkgconf_pkg_cflags_private_collect, &frags, maxdepth, skip_flags);
usr.bin/pkgconf/libpkgconf/pkg.c
1825
pkgconf_fragment_copy_list(client, list, &frags);
usr.bin/pkgconf/libpkgconf/pkg.c
1832
pkgconf_pkg_libs_collect(pkgconf_client_t *client, pkgconf_pkg_t *pkg, void *data)
usr.bin/pkgconf/libpkgconf/pkg.c
1837
if (!(client->flags & PKGCONF_PKG_PKGF_SEARCH_PRIVATE) && pkg->flags & PKGCONF_PKG_PROPF_VISITED_PRIVATE)
usr.bin/pkgconf/libpkgconf/pkg.c
184
pkgconf_warn(client, "%s:" SIZE_FMT_SPECIFIER ": warning: malformed version field with whitespace, trimming to [%s]\n", pkg->filename,
usr.bin/pkgconf/libpkgconf/pkg.c
1843
pkgconf_fragment_copy(client, list, frag, (client->flags & PKGCONF_PKG_PKGF_ITER_PKG_IS_PRIVATE) != 0);
usr.bin/pkgconf/libpkgconf/pkg.c
1846
if (client->flags & PKGCONF_PKG_PKGF_MERGE_PRIVATE_FRAGMENTS)
usr.bin/pkgconf/libpkgconf/pkg.c
1851
pkgconf_fragment_copy(client, list, frag, true);
usr.bin/pkgconf/libpkgconf/pkg.c
1871
pkgconf_pkg_libs(pkgconf_client_t *client, pkgconf_pkg_t *root, pkgconf_list_t *list, int maxdepth)
usr.bin/pkgconf/libpkgconf/pkg.c
1875
eflag = pkgconf_pkg_traverse(client, root, pkgconf_pkg_libs_collect, list, maxdepth, 0);
usr.bin/pkgconf/libpkgconf/pkg.c
192
pkgconf_pkg_parser_fragment_func(pkgconf_client_t *client, pkgconf_pkg_t *pkg, const char *keyword, const size_t lineno, const ptrdiff_t offset, const char *value)
usr.bin/pkgconf/libpkgconf/pkg.c
197
char *sysroot_dir = client->sysroot_dir;
usr.bin/pkgconf/libpkgconf/pkg.c
198
char *pkg_sysroot_dir = pkgconf_tuple_find(client, &pkg->vars, "pc_sysrootdir");
usr.bin/pkgconf/libpkgconf/pkg.c
200
client->sysroot_dir = pkg_sysroot_dir;
usr.bin/pkgconf/libpkgconf/pkg.c
202
bool ret = pkgconf_fragment_parse(client, dest, &pkg->vars, value, pkg->flags);
usr.bin/pkgconf/libpkgconf/pkg.c
203
client->sysroot_dir = sysroot_dir;
usr.bin/pkgconf/libpkgconf/pkg.c
207
pkgconf_warn(client, "%s:" SIZE_FMT_SPECIFIER ": warning: unable to parse field '%s' into an argument vector, value [%s]\n", pkg->filename,
usr.bin/pkgconf/libpkgconf/pkg.c
213
pkgconf_pkg_parser_dependency_func(pkgconf_client_t *client, pkgconf_pkg_t *pkg, const char *keyword, const size_t lineno, const ptrdiff_t offset, const char *value)
usr.bin/pkgconf/libpkgconf/pkg.c
219
pkgconf_dependency_parse(client, pkg, dest, value, 0);
usr.bin/pkgconf/libpkgconf/pkg.c
224
pkgconf_pkg_parser_internal_dependency_func(pkgconf_client_t *client, pkgconf_pkg_t *pkg, const char *keyword, const size_t lineno, const ptrdiff_t offset, const char *value)
usr.bin/pkgconf/libpkgconf/pkg.c
230
pkgconf_dependency_parse(client, pkg, dest, value, PKGCONF_PKG_DEPF_INTERNAL);
usr.bin/pkgconf/libpkgconf/pkg.c
235
pkgconf_pkg_parser_private_dependency_func(pkgconf_client_t *client, pkgconf_pkg_t *pkg, const char *keyword, const size_t lineno, const ptrdiff_t offset, const char *value)
usr.bin/pkgconf/libpkgconf/pkg.c
241
pkgconf_dependency_parse(client, pkg, dest, value, PKGCONF_PKG_DEPF_PRIVATE);
usr.bin/pkgconf/libpkgconf/pkg.c
459
pkgconf_pkg_validate(const pkgconf_client_t *client, const pkgconf_pkg_t *pkg)
usr.bin/pkgconf/libpkgconf/pkg.c
471
pkgconf_warn(client, "%s: warning: file does not declare a `%s' field\n", pkg->filename, pkgconf_pkg_validations[i].field);
usr.bin/pkgconf/libpkgconf/pkg.c
493
pkgconf_pkg_new_from_file(pkgconf_client_t *client, const char *filename, FILE *f, unsigned int flags)
usr.bin/pkgconf/libpkgconf/pkg.c
499
pkg->owner = client;
usr.bin/pkgconf/libpkgconf/pkg.c
50
pkgconf_pkg_traverse_main(pkgconf_client_t *client,
usr.bin/pkgconf/libpkgconf/pkg.c
505
pkgconf_tuple_add(client, &pkg->vars, "pcfiledir", pc_filedir_value, true, pkg->flags);
usr.bin/pkgconf/libpkgconf/pkg.c
512
if (client->sysroot_dir && strncmp(pkg->pc_filedir, client->sysroot_dir, strlen(client->sysroot_dir)))
usr.bin/pkgconf/libpkgconf/pkg.c
513
pkgconf_tuple_add(client, &pkg->vars, "pc_sysrootdir", "", false, pkg->flags);
usr.bin/pkgconf/libpkgconf/pkg.c
545
if (!pkgconf_pkg_validate(client, pkg))
usr.bin/pkgconf/libpkgconf/pkg.c
547
pkgconf_warn(client, "%s: warning: skipping invalid file\n", pkg->filename);
usr.bin/pkgconf/libpkgconf/pkg.c
548
pkgconf_pkg_free(client, pkg);
usr.bin/pkgconf/libpkgconf/pkg.c
552
pkgconf_dependency_t *dep = pkgconf_dependency_add(client, &pkg->provides, pkg->id, pkg->version, PKGCONF_CMP_EQUAL, 0);
usr.bin/pkgconf/libpkgconf/pkg.c
555
return pkgconf_pkg_ref(client, pkg);
usr.bin/pkgconf/libpkgconf/pkg.c
570
pkgconf_pkg_free(pkgconf_client_t *client, pkgconf_pkg_t *pkg)
usr.bin/pkgconf/libpkgconf/pkg.c
578
pkgconf_cache_remove(client, pkg);
usr.bin/pkgconf/libpkgconf/pkg.c
644
pkgconf_pkg_ref(pkgconf_client_t *client, pkgconf_pkg_t *pkg)
usr.bin/pkgconf/libpkgconf/pkg.c
646
if (pkg->owner != NULL && pkg->owner != client)
usr.bin/pkgconf/libpkgconf/pkg.c
647
PKGCONF_TRACE(client, "WTF: client %p refers to package %p owned by other client %p", client, pkg, pkg->owner);
usr.bin/pkgconf/libpkgconf/pkg.c
650
PKGCONF_TRACE(client, "%s refcount@%p: %d", pkg->id, pkg, pkg->refcount);
usr.bin/pkgconf/libpkgconf/pkg.c
667
pkgconf_pkg_unref(pkgconf_client_t *client, pkgconf_pkg_t *pkg)
usr.bin/pkgconf/libpkgconf/pkg.c
669
if (pkg->owner != NULL && pkg->owner != client)
usr.bin/pkgconf/libpkgconf/pkg.c
670
PKGCONF_TRACE(client, "WTF: client %p unrefs package %p owned by other client %p", client, pkg, pkg->owner);
usr.bin/pkgconf/libpkgconf/pkg.c
680
pkgconf_pkg_try_specific_path(pkgconf_client_t *client, const char *path, const char *name)
usr.bin/pkgconf/libpkgconf/pkg.c
687
PKGCONF_TRACE(client, "trying path: %s for %s", path, name);
usr.bin/pkgconf/libpkgconf/pkg.c
692
if (!(client->flags & PKGCONF_PKG_PKGF_NO_UNINSTALLED) && (f = fopen(uninst_locbuf, "r")) != NULL)
usr.bin/pkgconf/libpkgconf/pkg.c
694
PKGCONF_TRACE(client, "found (uninstalled): %s", uninst_locbuf);
usr.bin/pkgconf/libpkgconf/pkg.c
695
pkg = pkgconf_pkg_new_from_file(client, uninst_locbuf, f, PKGCONF_PKG_PROPF_UNINSTALLED);
usr.bin/pkgconf/libpkgconf/pkg.c
699
PKGCONF_TRACE(client, "found: %s", locbuf);
usr.bin/pkgconf/libpkgconf/pkg.c
700
pkg = pkgconf_pkg_new_from_file(client, locbuf, f, 0);
usr.bin/pkgconf/libpkgconf/pkg.c
707
pkgconf_pkg_scan_dir(pkgconf_client_t *client, const char *path, void *data, pkgconf_pkg_iteration_func_t func)
usr.bin/pkgconf/libpkgconf/pkg.c
717
PKGCONF_TRACE(client, "scanning dir [%s]", path);
usr.bin/pkgconf/libpkgconf/pkg.c
732
PKGCONF_TRACE(client, "trying file [%s]", filebuf);
usr.bin/pkgconf/libpkgconf/pkg.c
738
pkg = pkgconf_pkg_new_from_file(client, filebuf, f, 0);
usr.bin/pkgconf/libpkgconf/pkg.c
747
pkgconf_pkg_unref(client, pkg);
usr.bin/pkgconf/libpkgconf/pkg.c
772
pkgconf_scan_all(pkgconf_client_t *client, void *data, pkgconf_pkg_iteration_func_t func)
usr.bin/pkgconf/libpkgconf/pkg.c
777
PKGCONF_FOREACH_LIST_ENTRY(client->dir_list.head, n)
usr.bin/pkgconf/libpkgconf/pkg.c
781
PKGCONF_TRACE(client, "scanning directory: %s", pnode->path);
usr.bin/pkgconf/libpkgconf/pkg.c
783
if ((pkg = pkgconf_pkg_scan_dir(client, pnode->path, data, func)) != NULL)
usr.bin/pkgconf/libpkgconf/pkg.c
792
pkgconf_pkg_find_in_registry_key(pkgconf_client_t *client, HKEY hkey, const char *name)
usr.bin/pkgconf/libpkgconf/pkg.c
815
pkg = pkgconf_pkg_try_specific_path(client, pathbuf, name);
usr.bin/pkgconf/libpkgconf/pkg.c
841
pkgconf_pkg_find(pkgconf_client_t *client, const char *name)
usr.bin/pkgconf/libpkgconf/pkg.c
847
PKGCONF_TRACE(client, "looking for: %s", name);
usr.bin/pkgconf/libpkgconf/pkg.c
854
PKGCONF_TRACE(client, "%s is a file", name);
usr.bin/pkgconf/libpkgconf/pkg.c
856
pkg = pkgconf_pkg_new_from_file(client, name, f, 0);
usr.bin/pkgconf/libpkgconf/pkg.c
859
pkgconf_path_add(pkg->pc_filedir, &client->dir_list, true);
usr.bin/pkgconf/libpkgconf/pkg.c
868
PKGCONF_TRACE(client, "%s is a builtin", name);
usr.bin/pkgconf/libpkgconf/pkg.c
873
if (!(client->flags & PKGCONF_PKG_PKGF_NO_CACHE))
usr.bin/pkgconf/libpkgconf/pkg.c
875
if ((pkg = pkgconf_cache_lookup(client, name)) != NULL)
usr.bin/pkgconf/libpkgconf/pkg.c
877
PKGCONF_TRACE(client, "%s is cached", name);
usr.bin/pkgconf/libpkgconf/pkg.c
882
PKGCONF_FOREACH_LIST_ENTRY(client->dir_list.head, n)
usr.bin/pkgconf/libpkgconf/pkg.c
886
pkg = pkgconf_pkg_try_specific_path(client, pnode->path, name);
usr.bin/pkgconf/libpkgconf/pkg.c
893
pkg = pkgconf_pkg_find_in_registry_key(client, HKEY_CURRENT_USER, name);
usr.bin/pkgconf/libpkgconf/pkg.c
895
pkg = pkgconf_pkg_find_in_registry_key(client, HKEY_LOCAL_MACHINE, name);
usr.bin/pkgconf/libpkgconf/pkg.c
899
pkgconf_cache_add(client, pkg);
usr.bin/pkgconf/libpkgconf/queue.c
106
pkgconf_queue_mark_public(pkgconf_client_t *client, pkgconf_pkg_t *pkg, void *data)
usr.bin/pkgconf/libpkgconf/queue.c
122
PKGCONF_TRACE(client, "%s: updated, public", pkg->id);
usr.bin/pkgconf/libpkgconf/queue.c
127
pkgconf_queue_collect_dependencies_main(pkgconf_client_t *client,
usr.bin/pkgconf/libpkgconf/queue.c
133
pkgconf_queue_collect_dependencies_walk(pkgconf_client_t *client,
usr.bin/pkgconf/libpkgconf/queue.c
153
PKGCONF_TRACE(client, "WTF: unmatched dependency %p <%s>", dep, dep->package);
usr.bin/pkgconf/libpkgconf/queue.c
157
if (pkg->serial == client->serial)
usr.bin/pkgconf/libpkgconf/queue.c
160
if (client->flags & PKGCONF_PKG_PKGF_ITER_PKG_IS_PRIVATE)
usr.bin/pkgconf/libpkgconf/queue.c
165
eflags |= pkgconf_queue_collect_dependencies_main(client, pkg, data, depth - 1);
usr.bin/pkgconf/libpkgconf/queue.c
167
flattened_dep = pkgconf_dependency_copy(client, dep);
usr.bin/pkgconf/libpkgconf/queue.c
175
pkgconf_queue_collect_dependencies_main(pkgconf_client_t *client,
usr.bin/pkgconf/libpkgconf/queue.c
187
if (root->serial == client->serial)
usr.bin/pkgconf/libpkgconf/queue.c
190
root->serial = client->serial;
usr.bin/pkgconf/libpkgconf/queue.c
192
PKGCONF_TRACE(client, "%s: collecting private dependencies, level %d", root->id, maxdepth);
usr.bin/pkgconf/libpkgconf/queue.c
195
const unsigned int saved_flags = client->flags;
usr.bin/pkgconf/libpkgconf/queue.c
196
client->flags |= PKGCONF_PKG_PKGF_ITER_PKG_IS_PRIVATE;
usr.bin/pkgconf/libpkgconf/queue.c
197
eflags = pkgconf_queue_collect_dependencies_walk(client, &root->requires_private, data, maxdepth);
usr.bin/pkgconf/libpkgconf/queue.c
198
client->flags = saved_flags;
usr.bin/pkgconf/libpkgconf/queue.c
202
PKGCONF_TRACE(client, "%s: collecting public dependencies, level %d", root->id, maxdepth);
usr.bin/pkgconf/libpkgconf/queue.c
204
eflags = pkgconf_queue_collect_dependencies_walk(client, &root->required, data, maxdepth);
usr.bin/pkgconf/libpkgconf/queue.c
208
PKGCONF_TRACE(client, "%s: finished, %s", root->id, (root->flags & PKGCONF_PKG_PROPF_VISITED_PRIVATE) ? "private" : "public");
usr.bin/pkgconf/libpkgconf/queue.c
214
pkgconf_queue_collect_dependencies(pkgconf_client_t *client,
usr.bin/pkgconf/libpkgconf/queue.c
219
++client->serial;
usr.bin/pkgconf/libpkgconf/queue.c
220
return pkgconf_queue_collect_dependencies_main(client, root, data, maxdepth);
usr.bin/pkgconf/libpkgconf/queue.c
224
pkgconf_queue_verify(pkgconf_client_t *client, pkgconf_pkg_t *world, pkgconf_list_t *list, int maxdepth)
usr.bin/pkgconf/libpkgconf/queue.c
227
const unsigned int saved_flags = client->flags;
usr.bin/pkgconf/libpkgconf/queue.c
234
if (!pkgconf_queue_compile(client, &initial_world, list))
usr.bin/pkgconf/libpkgconf/queue.c
236
pkgconf_solution_free(client, &initial_world);
usr.bin/pkgconf/libpkgconf/queue.c
240
PKGCONF_TRACE(client, "solving");
usr.bin/pkgconf/libpkgconf/queue.c
241
result = pkgconf_pkg_traverse(client, &initial_world, NULL, NULL, maxdepth, 0);
usr.bin/pkgconf/libpkgconf/queue.c
244
pkgconf_solution_free(client, &initial_world);
usr.bin/pkgconf/libpkgconf/queue.c
248
PKGCONF_TRACE(client, "flattening");
usr.bin/pkgconf/libpkgconf/queue.c
249
result = pkgconf_queue_collect_dependencies(client, &initial_world, world, maxdepth);
usr.bin/pkgconf/libpkgconf/queue.c
252
pkgconf_solution_free(client, &initial_world);
usr.bin/pkgconf/libpkgconf/queue.c
256
if (client->flags & PKGCONF_PKG_PKGF_SEARCH_PRIVATE)
usr.bin/pkgconf/libpkgconf/queue.c
258
PKGCONF_TRACE(client, "marking public deps");
usr.bin/pkgconf/libpkgconf/queue.c
259
client->flags &= ~PKGCONF_PKG_PKGF_SEARCH_PRIVATE;
usr.bin/pkgconf/libpkgconf/queue.c
260
client->flags |= PKGCONF_PKG_PKGF_SKIP_CONFLICTS;
usr.bin/pkgconf/libpkgconf/queue.c
261
result = pkgconf_pkg_traverse(client, &initial_world, pkgconf_queue_mark_public, &world->required, maxdepth, 0);
usr.bin/pkgconf/libpkgconf/queue.c
262
client->flags = saved_flags;
usr.bin/pkgconf/libpkgconf/queue.c
265
pkgconf_solution_free(client, &initial_world);
usr.bin/pkgconf/libpkgconf/queue.c
271
pkgconf_solution_free(client, &initial_world);
usr.bin/pkgconf/libpkgconf/queue.c
288
pkgconf_solution_free(pkgconf_client_t *client, pkgconf_pkg_t *world)
usr.bin/pkgconf/libpkgconf/queue.c
290
(void) client;
usr.bin/pkgconf/libpkgconf/queue.c
314
pkgconf_queue_solve(pkgconf_client_t *client, pkgconf_list_t *list, pkgconf_pkg_t *world, int maxdepth)
usr.bin/pkgconf/libpkgconf/queue.c
320
unsigned int flags = client->flags;
usr.bin/pkgconf/libpkgconf/queue.c
321
client->flags |= PKGCONF_PKG_PKGF_SEARCH_PRIVATE;
usr.bin/pkgconf/libpkgconf/queue.c
323
unsigned int ret = pkgconf_queue_verify(client, world, list, maxdepth);
usr.bin/pkgconf/libpkgconf/queue.c
324
client->flags = flags;
usr.bin/pkgconf/libpkgconf/queue.c
348
pkgconf_queue_apply(pkgconf_client_t *client, pkgconf_list_t *list, pkgconf_queue_apply_func_t func, int maxdepth, void *data)
usr.bin/pkgconf/libpkgconf/queue.c
361
if (!pkgconf_queue_solve(client, list, &world, maxdepth))
usr.bin/pkgconf/libpkgconf/queue.c
365
if (!func(client, &world, data, maxdepth))
usr.bin/pkgconf/libpkgconf/queue.c
371
pkgconf_pkg_free(client, &world);
usr.bin/pkgconf/libpkgconf/queue.c
389
pkgconf_queue_validate(pkgconf_client_t *client, pkgconf_list_t *list, int maxdepth)
usr.bin/pkgconf/libpkgconf/queue.c
402
if (pkgconf_queue_verify(client, &world, list, maxdepth) != PKGCONF_PKG_ERRF_OK)
usr.bin/pkgconf/libpkgconf/queue.c
405
pkgconf_pkg_free(client, &world);
usr.bin/pkgconf/libpkgconf/queue.c
66
pkgconf_queue_compile(pkgconf_client_t *client, pkgconf_pkg_t *world, pkgconf_list_t *list)
usr.bin/pkgconf/libpkgconf/queue.c
75
pkgconf_dependency_parse(client, world, &world->required, pkgq->package, PKGCONF_PKG_DEPF_QUERY);
usr.bin/pkgconf/libpkgconf/tuple.c
102
pkgconf_tuple_free_global(pkgconf_client_t *client)
usr.bin/pkgconf/libpkgconf/tuple.c
104
pkgconf_tuple_free(&client->global_vars);
usr.bin/pkgconf/libpkgconf/tuple.c
119
pkgconf_tuple_define_global(pkgconf_client_t *client, const char *kv)
usr.bin/pkgconf/libpkgconf/tuple.c
131
tuple = pkgconf_tuple_add(client, &client->global_vars, workbuf, value, false, 0);
usr.bin/pkgconf/libpkgconf/tuple.c
182
find_sysroot(const pkgconf_client_t *client, pkgconf_list_t *vars)
usr.bin/pkgconf/libpkgconf/tuple.c
186
sysroot_dir = pkgconf_tuple_find(client, vars, "pc_sysrootdir");
usr.bin/pkgconf/libpkgconf/tuple.c
188
sysroot_dir = client->sysroot_dir;
usr.bin/pkgconf/libpkgconf/tuple.c
194
should_rewrite_sysroot(const pkgconf_client_t *client, pkgconf_list_t *vars, const char *buf, unsigned int flags)
usr.bin/pkgconf/libpkgconf/tuple.c
198
if (flags & PKGCONF_PKG_PROPF_UNINSTALLED && !(client->flags & PKGCONF_PKG_PKGF_FDO_SYSROOT_RULES))
usr.bin/pkgconf/libpkgconf/tuple.c
201
sysroot_dir = find_sysroot(client, vars);
usr.bin/pkgconf/libpkgconf/tuple.c
236
pkgconf_tuple_add(const pkgconf_client_t *client, pkgconf_list_t *list, const char *key, const char *value, bool parse, unsigned int flags)
usr.bin/pkgconf/libpkgconf/tuple.c
247
tuple->value = pkgconf_tuple_parse(client, list, dequote_value, flags);
usr.bin/pkgconf/libpkgconf/tuple.c
251
PKGCONF_TRACE(client, "adding tuple to @%p: %s => %s (parsed? %d)", list, key, tuple->value, parse);
usr.bin/pkgconf/libpkgconf/tuple.c
274
pkgconf_tuple_find(const pkgconf_client_t *client, pkgconf_list_t *list, const char *key)
usr.bin/pkgconf/libpkgconf/tuple.c
279
global_tuple = lookup_global_tuple(client, key);
usr.bin/pkgconf/libpkgconf/tuple.c
312
pkgconf_tuple_parse(const pkgconf_client_t *client, pkgconf_list_t *vars, const char *value, unsigned int flags)
usr.bin/pkgconf/libpkgconf/tuple.c
318
if (!(client->flags & PKGCONF_PKG_PKGF_FDO_SYSROOT_RULES) &&
usr.bin/pkgconf/libpkgconf/tuple.c
319
(!(flags & PKGCONF_PKG_PROPF_UNINSTALLED) || (client->flags & PKGCONF_PKG_PKGF_PKGCONF1_SYSROOT_RULES)))
usr.bin/pkgconf/libpkgconf/tuple.c
321
if (*value == '/' && client->sysroot_dir != NULL && strncmp(value, client->sysroot_dir, strlen(client->sysroot_dir)))
usr.bin/pkgconf/libpkgconf/tuple.c
322
bptr += pkgconf_strlcpy(buf, client->sysroot_dir, sizeof buf);
usr.bin/pkgconf/libpkgconf/tuple.c
358
PKGCONF_TRACE(client, "lookup tuple %s", varname);
usr.bin/pkgconf/libpkgconf/tuple.c
362
kv = pkgconf_tuple_find_global(client, varname);
usr.bin/pkgconf/libpkgconf/tuple.c
368
pkgconf_warn(client, "warning: truncating very long variable to 64KB\n");
usr.bin/pkgconf/libpkgconf/tuple.c
378
kv = pkgconf_tuple_find(client, vars, varname);
usr.bin/pkgconf/libpkgconf/tuple.c
384
parsekv = pkgconf_tuple_parse(client, vars, kv, flags);
usr.bin/pkgconf/libpkgconf/tuple.c
390
pkgconf_warn(client, "warning: truncating very long variable to 64KB\n");
usr.bin/pkgconf/libpkgconf/tuple.c
421
if (should_rewrite_sysroot(client, vars, buf, flags))
usr.bin/pkgconf/libpkgconf/tuple.c
424
const char *sysroot_dir = find_sysroot(client, vars);
usr.bin/pkgconf/libpkgconf/tuple.c
46
pkgconf_tuple_add_global(pkgconf_client_t *client, const char *key, const char *value)
usr.bin/pkgconf/libpkgconf/tuple.c
48
pkgconf_tuple_add(client, &client->global_vars, key, value, false, 0);
usr.bin/pkgconf/libpkgconf/tuple.c
52
lookup_global_tuple(const pkgconf_client_t *client, const char *key)
usr.bin/pkgconf/libpkgconf/tuple.c
56
PKGCONF_FOREACH_LIST_ENTRY(client->global_vars.head, node)
usr.bin/pkgconf/libpkgconf/tuple.c
80
pkgconf_tuple_find_global(const pkgconf_client_t *client, const char *key)
usr.bin/pkgconf/libpkgconf/tuple.c
84
tuple = lookup_global_tuple(client, key);
usr.bin/quota/quota.c
653
CLIENT *client = NULL;
usr.bin/quota/quota.c
666
if ((client = clntudp_create(&server_addr, prognum,
usr.bin/quota/quota.c
670
client->cl_auth = authunix_create_default();
usr.bin/quota/quota.c
673
clnt_stat = clnt_call(client, procnum, inproc, in,
usr.bin/rpcinfo/rpcinfo.c
210
CLIENT *client;
usr.bin/rpcinfo/rpcinfo.c
241
if ((client = clntudp_create(&addr, prognum, (u_long)0,
usr.bin/rpcinfo/rpcinfo.c
250
rpc_stat = clnt_call(client, NULLPROC, xdr_void, (char *)NULL,
usr.bin/rpcinfo/rpcinfo.c
253
clnt_geterr(client, &rpcerr);
usr.bin/rpcinfo/rpcinfo.c
264
if ((client = clntudp_create(&addr, prognum, MAX_VERS,
usr.bin/rpcinfo/rpcinfo.c
273
rpc_stat = clnt_call(client, NULLPROC, xdr_void,
usr.bin/rpcinfo/rpcinfo.c
276
clnt_geterr(client, &rpcerr);
usr.bin/rpcinfo/rpcinfo.c
289
(void) pstatus(client, prognum, MAX_VERS);
usr.bin/rpcinfo/rpcinfo.c
293
(void) pstatus(client, prognum, (u_long)0);
usr.bin/rpcinfo/rpcinfo.c
296
clnt_destroy(client);
usr.bin/rpcinfo/rpcinfo.c
301
if ((client = clntudp_create(&addr, prognum, vers,
usr.bin/rpcinfo/rpcinfo.c
310
rpc_stat = clnt_call(client, NULLPROC, xdr_void,
usr.bin/rpcinfo/rpcinfo.c
312
if (pstatus(client, prognum, vers) < 0)
usr.bin/rpcinfo/rpcinfo.c
314
clnt_destroy(client);
usr.bin/rpcinfo/rpcinfo.c
321
if ((client = clntudp_create(&addr, prognum, vers,
usr.bin/rpcinfo/rpcinfo.c
330
rpc_stat = clnt_call(client, 0, xdr_void, (char *)NULL,
usr.bin/rpcinfo/rpcinfo.c
332
if (pstatus(client, prognum, vers) < 0)
usr.bin/rpcinfo/rpcinfo.c
346
CLIENT *client;
usr.bin/rpcinfo/rpcinfo.c
367
if ((client = clnttcp_create(&addr, prognum, MIN_VERS,
usr.bin/rpcinfo/rpcinfo.c
376
rpc_stat = clnt_call(client, NULLPROC, xdr_void, (char *)NULL,
usr.bin/rpcinfo/rpcinfo.c
379
clnt_geterr(client, &rpcerr);
usr.bin/rpcinfo/rpcinfo.c
388
if ((client = clnttcp_create(&addr, prognum, MAX_VERS,
usr.bin/rpcinfo/rpcinfo.c
397
rpc_stat = clnt_call(client, NULLPROC, xdr_void,
usr.bin/rpcinfo/rpcinfo.c
400
clnt_geterr(client, &rpcerr);
usr.bin/rpcinfo/rpcinfo.c
413
(void) pstatus(client, prognum, MAX_VERS);
usr.bin/rpcinfo/rpcinfo.c
417
(void) pstatus(client, prognum, MIN_VERS);
usr.bin/rpcinfo/rpcinfo.c
420
clnt_destroy(client);
usr.bin/rpcinfo/rpcinfo.c
425
if ((client = clnttcp_create(&addr, prognum, vers,
usr.bin/rpcinfo/rpcinfo.c
434
rpc_stat = clnt_call(client, 0, xdr_void, (char *)NULL,
usr.bin/rpcinfo/rpcinfo.c
436
if (pstatus(client, prognum, vers) < 0)
usr.bin/rpcinfo/rpcinfo.c
438
clnt_destroy(client);
usr.bin/rpcinfo/rpcinfo.c
445
if ((client = clnttcp_create(&addr, prognum, vers, &sock,
usr.bin/rpcinfo/rpcinfo.c
454
rpc_stat = clnt_call(client, 0, xdr_void, (char *)NULL,
usr.bin/rpcinfo/rpcinfo.c
456
if (pstatus(client, prognum, vers) < 0)
usr.bin/rpcinfo/rpcinfo.c
471
pstatus(CLIENT *client, u_long prognum, u_long vers)
usr.bin/rpcinfo/rpcinfo.c
475
clnt_geterr(client, &rpcerr);
usr.bin/rpcinfo/rpcinfo.c
477
clnt_perror(client, "rpcinfo");
usr.bin/rpcinfo/rpcinfo.c
495
CLIENT *client;
usr.bin/rpcinfo/rpcinfo.c
509
if ((client = clnttcp_create(&server_addr, PMAPPROG,
usr.bin/rpcinfo/rpcinfo.c
514
if (clnt_call(client, PMAPPROC_DUMP, xdr_void, NULL,
usr.bin/rpcinfo/rpcinfo.c
517
clnt_perror(client, "rpcinfo");
usr.bin/rpcinfo/rpcinfo.c
62
int pstatus(CLIENT *client, u_long prognum, u_long vers);
usr.bin/showmount/showmount.c
102
CLIENT *client;
usr.bin/showmount/showmount.c
153
client = clnttcp_create(&clnt_sin, RPCPROG_MNT, mntvers,
usr.bin/showmount/showmount.c
155
if (client == NULL) {
usr.bin/showmount/showmount.c
166
estat = clnt_call(client, RPCMNT_DUMP, xdr_void, NULL,
usr.bin/showmount/showmount.c
175
estat = clnt_call(client, RPCMNT_EXPORT, xdr_void, NULL,
usr.bin/ssh/gss-genr.c
167
(*ctx)->client = GSS_C_NO_NAME;
usr.bin/ssh/gss-genr.c
190
if ((*ctx)->client != GSS_C_NO_NAME)
usr.bin/ssh/gss-genr.c
191
gss_release_name(&ms, &(*ctx)->client);
usr.bin/ssh/gss-serv-krb5.c
108
ssh_gssapi_krb5_storecreds(ssh_gssapi_client *client)
usr.bin/ssh/gss-serv-krb5.c
116
if (client->creds == NULL) {
usr.bin/ssh/gss-serv-krb5.c
133
client->exportedname.value, &princ))) {
usr.bin/ssh/gss-serv-krb5.c
153
client->creds, ccache))) {
usr.bin/ssh/gss-serv-krb5.c
159
client->store.filename = xstrdup(krb5_cc_get_name(krb_context, ccache));
usr.bin/ssh/gss-serv-krb5.c
160
client->store.envvar = "KRB5CCNAME";
usr.bin/ssh/gss-serv-krb5.c
161
client->store.envval = xstrdup(client->store.filename);
usr.bin/ssh/gss-serv-krb5.c
76
ssh_gssapi_krb5_userok(ssh_gssapi_client *client, char *name)
usr.bin/ssh/gss-serv-krb5.c
85
if ((retval = krb5_parse_name(krb_context, client->exportedname.value,
usr.bin/ssh/gss-serv-krb5.c
95
name, (char *)client->displayname.value);
usr.bin/ssh/gss-serv.c
184
GSS_C_NO_CHANNEL_BINDINGS, &ctx->client, &mech,
usr.bin/ssh/gss-serv.c
276
ssh_gssapi_getclient(Gssctxt *ctx, ssh_gssapi_client *client)
usr.bin/ssh/gss-serv.c
282
client->mech = NULL;
usr.bin/ssh/gss-serv.c
288
client->mech = supported_mechs[i];
usr.bin/ssh/gss-serv.c
292
if (client->mech == NULL)
usr.bin/ssh/gss-serv.c
295
if ((ctx->major = gss_display_name(&ctx->minor, ctx->client,
usr.bin/ssh/gss-serv.c
296
&client->displayname, NULL))) {
usr.bin/ssh/gss-serv.c
301
if ((ctx->major = gss_export_name(&ctx->minor, ctx->client,
usr.bin/ssh/gss-serv.c
308
&client->exportedname))) {
usr.bin/ssh/gss-serv.c
313
client->creds = ctx->client_creds;
usr.bin/ssh/kex.c
798
choose_enc(struct sshenc *enc, char *client, char *server)
usr.bin/ssh/kex.c
800
char *name = match_list(client, server, NULL);
usr.bin/ssh/kex.c
820
choose_mac(struct ssh *ssh, struct sshmac *mac, char *client, char *server)
usr.bin/ssh/kex.c
822
char *name = match_list(client, server, NULL);
usr.bin/ssh/kex.c
838
choose_comp(struct sshcomp *comp, char *client, char *server)
usr.bin/ssh/kex.c
840
char *name = match_list(client, server, NULL);
usr.bin/ssh/kex.c
861
choose_kex(struct kex *k, char *client, char *server)
usr.bin/ssh/kex.c
863
k->name = match_list(client, server, NULL);
usr.bin/ssh/kex.c
879
choose_hostkeyalg(struct kex *k, char *client, char *server)
usr.bin/ssh/kex.c
882
k->hostkey_alg = match_list(client, server, NULL);
usr.bin/ssh/match.c
267
match_list(const char *client, const char *server, u_int *next)
usr.bin/ssh/match.c
273
c = cp = xstrdup(client);
usr.bin/ssh/ssh-gss.h
75
gss_name_t client; /* server */
usr.bin/tmux/alerts.c
296
struct client *c;
usr.bin/tmux/arguments.c
766
struct client *tc = cmdq_get_target_client(item);
usr.bin/tmux/cfg.c
157
struct client *c, struct cmdq_item *item, struct cmd_find_state *current,
usr.bin/tmux/cfg.c
225
struct client *c = cmdq_get_client(item);
usr.bin/tmux/cfg.c
244
struct client *c = TAILQ_FIRST(&clients);
usr.bin/tmux/cfg.c
30
struct client *cfg_client;
usr.bin/tmux/cfg.c
68
struct client *c;
usr.bin/tmux/cfg.c
97
load_cfg(const char *path, struct client *c, struct cmdq_item *item,
usr.bin/tmux/client.c
567
client_file_check_cb(__unused struct client *c, __unused const char *path,
usr.bin/tmux/cmd-attach-session.c
58
struct client *c = cmdq_get_client(item), *c_loop;
usr.bin/tmux/cmd-break-pane.c
55
struct client *tc = cmdq_get_target_client(item);
usr.bin/tmux/cmd-capture-pane.c
216
struct client *c = cmdq_get_client(item);
usr.bin/tmux/cmd-command-prompt.c
178
cmd_command_prompt_callback(struct client *c, void *data, const char *s,
usr.bin/tmux/cmd-command-prompt.c
37
static int cmd_command_prompt_callback(struct client *, void *,
usr.bin/tmux/cmd-command-prompt.c
84
struct client *tc = cmdq_get_target_client(item);
usr.bin/tmux/cmd-confirm-before.c
122
cmd_confirm_before_callback(struct client *c, void *data, const char *s,
usr.bin/tmux/cmd-confirm-before.c
36
static int cmd_confirm_before_callback(struct client *, void *,
usr.bin/tmux/cmd-confirm-before.c
71
struct client *tc = cmdq_get_target_client(item);
usr.bin/tmux/cmd-copy-mode.c
63
struct client *c = cmdq_get_client(item);
usr.bin/tmux/cmd-detach-client.c
62
struct client *tc = cmdq_get_target_client(item), *loop;
usr.bin/tmux/cmd-display-menu.c
290
struct client *tc = cmdq_get_target_client(item);
usr.bin/tmux/cmd-display-menu.c
393
struct client *tc = cmdq_get_target_client(item);
usr.bin/tmux/cmd-display-menu.c
96
cmd_display_menu_get_pos(struct client *tc, struct cmdq_item *item,
usr.bin/tmux/cmd-display-message.c
65
struct client *tc = cmdq_get_target_client(item), *c;
usr.bin/tmux/cmd-display-panes.c
198
cmd_display_panes_draw(struct client *c, __unused void *data,
usr.bin/tmux/cmd-display-panes.c
213
cmd_display_panes_free(__unused struct client *c, void *data)
usr.bin/tmux/cmd-display-panes.c
224
cmd_display_panes_key(struct client *c, void *data, struct key_event *event)
usr.bin/tmux/cmd-display-panes.c
273
struct client *tc = cmdq_get_target_client(item);
usr.bin/tmux/cmd-display-panes.c
62
struct client *c = ctx->c;
usr.bin/tmux/cmd-find.c
105
cmd_find_client_better(struct client *c, struct client *than)
usr.bin/tmux/cmd-find.c
113
struct client *
usr.bin/tmux/cmd-find.c
116
struct client *c_loop, *c;
usr.bin/tmux/cmd-find.c
1258
static struct client *
usr.bin/tmux/cmd-find.c
1261
struct client *c = NULL, *found;
usr.bin/tmux/cmd-find.c
1289
struct client *
usr.bin/tmux/cmd-find.c
1292
struct client *c;
usr.bin/tmux/cmd-find.c
252
struct client *c;
usr.bin/tmux/cmd-find.c
81
cmd_find_inside_pane(struct client *c)
usr.bin/tmux/cmd-find.c
860
cmd_find_from_client(struct cmd_find_state *fs, struct client *c, int flags)
usr.bin/tmux/cmd-find.c
928
struct client *c;
usr.bin/tmux/cmd-if-shell.c
114
cdata->client = cmdq_get_client(item);
usr.bin/tmux/cmd-if-shell.c
117
cdata->client = tc;
usr.bin/tmux/cmd-if-shell.c
118
if (cdata->client != NULL)
usr.bin/tmux/cmd-if-shell.c
119
cdata->client->references++;
usr.bin/tmux/cmd-if-shell.c
141
struct client *c = cdata->client;
usr.bin/tmux/cmd-if-shell.c
182
if (cdata->client != NULL)
usr.bin/tmux/cmd-if-shell.c
183
server_client_unref(cdata->client);
usr.bin/tmux/cmd-if-shell.c
59
struct client *client;
usr.bin/tmux/cmd-if-shell.c
80
struct client *tc = cmdq_get_target_client(item);
usr.bin/tmux/cmd-list-clients.c
58
struct client **l;
usr.bin/tmux/cmd-list-keys.c
170
struct client *tc = cmdq_get_target_client(item);
usr.bin/tmux/cmd-load-buffer.c
104
cdata->client = tc;
usr.bin/tmux/cmd-load-buffer.c
105
cdata->client->references++;
usr.bin/tmux/cmd-load-buffer.c
48
struct client *client;
usr.bin/tmux/cmd-load-buffer.c
54
cmd_load_buffer_done(__unused struct client *c, const char *path, int error,
usr.bin/tmux/cmd-load-buffer.c
58
struct client *tc = cdata->client;
usr.bin/tmux/cmd-load-buffer.c
94
struct client *tc = cmdq_get_target_client(item);
usr.bin/tmux/cmd-lock-server.c
68
struct client *tc = cmdq_get_target_client(item);
usr.bin/tmux/cmd-new-session.c
73
struct client *c = cmdq_get_client(item);
usr.bin/tmux/cmd-new-window.c
56
struct client *c = cmdq_get_client(item);
usr.bin/tmux/cmd-new-window.c
60
struct client *tc = cmdq_get_target_client(item);
usr.bin/tmux/cmd-parse.y
200
struct client *c = pi->c;
usr.bin/tmux/cmd-parse.y
999
struct client *c, struct cmdq_state *state, char **error)
usr.bin/tmux/cmd-pipe-pane.c
61
struct client *tc = cmdq_get_target_client(item);
usr.bin/tmux/cmd-queue.c
112
cmdq_get(struct client *c)
usr.bin/tmux/cmd-queue.c
152
struct client *
usr.bin/tmux/cmd-queue.c
155
return (item->client);
usr.bin/tmux/cmd-queue.c
159
struct client *
usr.bin/tmux/cmd-queue.c
302
cmdq_append(struct client *c, struct cmdq_item *item)
usr.bin/tmux/cmd-queue.c
313
item->client = c;
usr.bin/tmux/cmd-queue.c
328
struct client *c = after->client;
usr.bin/tmux/cmd-queue.c
339
item->client = c;
usr.bin/tmux/cmd-queue.c
457
if (item->client != NULL)
usr.bin/tmux/cmd-queue.c
458
server_client_unref(item->client);
usr.bin/tmux/cmd-queue.c
47
struct client *client;
usr.bin/tmux/cmd-queue.c
48
struct client *target_client;
usr.bin/tmux/cmd-queue.c
564
struct client *c = item->client;
usr.bin/tmux/cmd-queue.c
600
const char *name = cmdq_name(item->client);
usr.bin/tmux/cmd-queue.c
605
struct client *tc, *saved = item->client;
usr.bin/tmux/cmd-queue.c
622
if (item->client == NULL)
usr.bin/tmux/cmd-queue.c
623
item->client = cmd_find_client(item, NULL, 1);
usr.bin/tmux/cmd-queue.c
659
else if (cmd_find_from_client(&fs, item->client, 0) == 0)
usr.bin/tmux/cmd-queue.c
667
item->client = saved;
usr.bin/tmux/cmd-queue.c
674
else if (cmd_find_from_client(&fs, item->client, 0) == 0)
usr.bin/tmux/cmd-queue.c
731
cmdq_next(struct client *c)
usr.bin/tmux/cmd-queue.c
813
cmdq_running(struct client *c)
usr.bin/tmux/cmd-queue.c
828
struct client *c = item->client;
usr.bin/tmux/cmd-queue.c
840
server_client_print(item->client, 1, evb);
usr.bin/tmux/cmd-queue.c
866
struct client *c = item->client;
usr.bin/tmux/cmd-queue.c
97
cmdq_name(struct client *c)
usr.bin/tmux/cmd-refresh-client.c
134
cmd_refresh_client_update_offset(struct client *tc, const char *value)
usr.bin/tmux/cmd-refresh-client.c
198
struct client *tc = cmdq_get_target_client(item);
usr.bin/tmux/cmd-refresh-client.c
47
cmd_refresh_client_update_subscription(struct client *tc, const char *value)
usr.bin/tmux/cmd-refresh-client.c
85
struct client *tc = cmdq_get_target_client(item);
usr.bin/tmux/cmd-resize-pane.c
152
cmd_resize_pane_mouse_update(struct client *c, struct mouse_event *m)
usr.bin/tmux/cmd-resize-pane.c
32
static void cmd_resize_pane_mouse_update(struct client *,
usr.bin/tmux/cmd-resize-pane.c
58
struct client *c = cmdq_get_client(item);
usr.bin/tmux/cmd-respawn-window.c
53
struct client *tc = cmdq_get_target_client(item);
usr.bin/tmux/cmd-run-shell.c
113
struct client *c = cmdq_get_client(item);
usr.bin/tmux/cmd-run-shell.c
114
struct client *tc = cmdq_get_target_client(item);
usr.bin/tmux/cmd-run-shell.c
148
cdata->client = c;
usr.bin/tmux/cmd-run-shell.c
151
cdata->client = tc;
usr.bin/tmux/cmd-run-shell.c
154
if (cdata->client != NULL)
usr.bin/tmux/cmd-run-shell.c
155
cdata->client->references++;
usr.bin/tmux/cmd-run-shell.c
186
struct client *c = cdata->client;
usr.bin/tmux/cmd-run-shell.c
286
if (cdata->client != NULL)
usr.bin/tmux/cmd-run-shell.c
287
server_client_unref(cdata->client);
usr.bin/tmux/cmd-run-shell.c
58
struct client *client;
usr.bin/tmux/cmd-run-shell.c
93
if (cdata->item != NULL && cdata->client != NULL)
usr.bin/tmux/cmd-run-shell.c
94
wp = server_client_get_pane(cdata->client);
usr.bin/tmux/cmd-save-buffer.c
60
cmd_save_buffer_done(__unused struct client *c, const char *path, int error,
usr.bin/tmux/cmd-save-buffer.c
77
struct client *c = cmdq_get_client(item);
usr.bin/tmux/cmd-select-pane.c
61
struct client *c;
usr.bin/tmux/cmd-select-pane.c
90
struct client *c = cmdq_get_client(item);
usr.bin/tmux/cmd-select-window.c
88
struct client *c = cmdq_get_client(item);
usr.bin/tmux/cmd-send-keys.c
158
struct client *tc = cmdq_get_target_client(item);
usr.bin/tmux/cmd-send-keys.c
65
struct client *tc = cmdq_get_target_client(item);
usr.bin/tmux/cmd-server-access.c
50
struct client *loop;
usr.bin/tmux/cmd-server-access.c
75
struct client *c = cmdq_get_target_client(item);
usr.bin/tmux/cmd-set-buffer.c
59
struct client *tc = cmdq_get_target_client(item);
usr.bin/tmux/cmd-show-messages.c
54
struct client *tc = cmdq_get_target_client(item);
usr.bin/tmux/cmd-show-messages.c
67
term->name, term->tty->client->name, term->flags);
usr.bin/tmux/cmd-source-file.c
103
cmd_source_file_done(struct client *c, const char *path, int error,
usr.bin/tmux/cmd-source-file.c
165
struct client *c = cmdq_get_client(item);
usr.bin/tmux/cmd-source-file.c
67
struct client *c = cmdq_get_client(item);
usr.bin/tmux/cmd-source-file.c
82
cmd_source_file_complete(struct client *c, struct cmd_source_file_data *cdata)
usr.bin/tmux/cmd-split-window.c
61
struct client *tc = cmdq_get_target_client(item);
usr.bin/tmux/cmd-switch-client.c
56
struct client *tc = cmdq_get_target_client(item);
usr.bin/tmux/cmd-wait-for.c
170
struct client *c = cmdq_get_client(item);
usr.bin/tmux/control-notify.c
109
struct client *c;
usr.bin/tmux/control-notify.c
127
struct client *c;
usr.bin/tmux/control-notify.c
146
control_notify_client_session_changed(struct client *cc)
usr.bin/tmux/control-notify.c
148
struct client *c;
usr.bin/tmux/control-notify.c
170
control_notify_client_detached(struct client *cc)
usr.bin/tmux/control-notify.c
172
struct client *c;
usr.bin/tmux/control-notify.c
183
struct client *c;
usr.bin/tmux/control-notify.c
196
struct client *c;
usr.bin/tmux/control-notify.c
209
struct client *c;
usr.bin/tmux/control-notify.c
222
struct client *c;
usr.bin/tmux/control-notify.c
236
struct client *c;
usr.bin/tmux/control-notify.c
249
struct client *c;
usr.bin/tmux/control-notify.c
32
struct client *c;
usr.bin/tmux/control-notify.c
45
struct client *c;
usr.bin/tmux/control-notify.c
77
struct client *c;
usr.bin/tmux/control-notify.c
91
struct client *c;
usr.bin/tmux/control.c
1035
struct client *c = data;
usr.bin/tmux/control.c
1130
control_add_sub(struct client *c, const char *name, enum control_sub_type type,
usr.bin/tmux/control.c
1159
control_remove_sub(struct client *c, const char *name)
usr.bin/tmux/control.c
236
control_get_pane(struct client *c, struct window_pane *wp)
usr.bin/tmux/control.c
246
control_add_pane(struct client *c, struct window_pane *wp)
usr.bin/tmux/control.c
268
control_discard_pane(struct client *c, struct control_pane *cp)
usr.bin/tmux/control.c
281
control_window_pane(struct client *c, u_int pane)
usr.bin/tmux/control.c
296
control_reset_offsets(struct client *c)
usr.bin/tmux/control.c
312
control_pane_offset(struct client *c, struct window_pane *wp, int *off)
usr.bin/tmux/control.c
337
control_set_pane_on(struct client *c, struct window_pane *wp)
usr.bin/tmux/control.c
351
control_set_pane_off(struct client *c, struct window_pane *wp)
usr.bin/tmux/control.c
361
control_continue_pane(struct client *c, struct window_pane *wp)
usr.bin/tmux/control.c
376
control_pause_pane(struct client *c, struct window_pane *wp)
usr.bin/tmux/control.c
390
control_vwrite(struct client *c, const char *fmt, va_list ap)
usr.bin/tmux/control.c
407
control_write(struct client *c, const char *fmt, ...)
usr.bin/tmux/control.c
434
control_check_age(struct client *c, struct window_pane *wp,
usr.bin/tmux/control.c
469
control_write_output(struct client *c, struct window_pane *wp)
usr.bin/tmux/control.c
525
struct client *c = cmdq_get_client(item);
usr.bin/tmux/control.c
541
struct client *c = data;
usr.bin/tmux/control.c
550
struct client *c = data;
usr.bin/tmux/control.c
580
control_all_done(struct client *c)
usr.bin/tmux/control.c
591
control_flush_all_blocks(struct client *c)
usr.bin/tmux/control.c
610
control_append_data(struct client *c, struct control_pane *cp, uint64_t age,
usr.bin/tmux/control.c
650
control_write_data(struct client *c, struct evbuffer *message)
usr.bin/tmux/control.c
664
control_write_pending(struct client *c, struct control_pane *cp, size_t limit)
usr.bin/tmux/control.c
731
struct client *c = data;
usr.bin/tmux/control.c
766
control_start(struct client *c)
usr.bin/tmux/control.c
807
control_ready(struct client *c)
usr.bin/tmux/control.c
814
control_discard(struct client *c)
usr.bin/tmux/control.c
826
control_stop(struct client *c)
usr.bin/tmux/control.c
850
control_check_subs_session(struct client *c, struct control_sub *csub,
usr.bin/tmux/control.c
871
control_check_subs_pane(struct client *c, struct control_sub *csub)
usr.bin/tmux/control.c
919
control_check_subs_all_panes_one(struct client *c, struct control_sub *csub,
usr.bin/tmux/control.c
953
control_check_subs_window(struct client *c, struct control_sub *csub)
usr.bin/tmux/control.c
999
control_check_subs_all_windows_one(struct client *c, struct control_sub *csub,
usr.bin/tmux/file.c
109
file_create_with_client(struct client *c, int stream, client_file_cb cb,
usr.bin/tmux/file.c
162
struct client *c = cf->c;
usr.bin/tmux/file.c
187
file_can_print(struct client *c)
usr.bin/tmux/file.c
198
file_print(struct client *c, const char *fmt, ...)
usr.bin/tmux/file.c
209
file_vprint(struct client *c, const char *fmt, va_list ap)
usr.bin/tmux/file.c
236
file_print_buffer(struct client *c, void *data, size_t size)
usr.bin/tmux/file.c
263
file_error(struct client *c, const char *fmt, ...)
usr.bin/tmux/file.c
295
file_write(struct client *c, const char *path, int flags, const void *bdata,
usr.bin/tmux/file.c
369
file_read(struct client *c, const char *path, client_file_cb cb, void *cbdata)
usr.bin/tmux/file.c
45
file_get_path(struct client *c, const char *file)
usr.bin/tmux/format.c
1075
struct client *loop;
usr.bin/tmux/format.c
146
struct client *c;
usr.bin/tmux/format.c
154
struct client *client;
usr.bin/tmux/format.c
318
if (fj->client != NULL)
usr.bin/tmux/format.c
319
server_status_client(fj->client);
usr.bin/tmux/format.c
354
if (fj->client != NULL)
usr.bin/tmux/format.c
355
server_status_client(fj->client);
usr.bin/tmux/format.c
372
if (ft->client == NULL)
usr.bin/tmux/format.c
374
else if (ft->client->jobs != NULL)
usr.bin/tmux/format.c
3746
format_create(struct client *c, struct cmdq_item *item, int tag, int flags)
usr.bin/tmux/format.c
375
jobs = ft->client->jobs;
usr.bin/tmux/format.c
3754
ft->client = c;
usr.bin/tmux/format.c
3755
ft->client->references++;
usr.bin/tmux/format.c
377
jobs = ft->client->jobs = xmalloc(sizeof *ft->client->jobs);
usr.bin/tmux/format.c
3781
if (ft->client != NULL)
usr.bin/tmux/format.c
3782
server_client_unref(ft->client);
usr.bin/tmux/format.c
385
fj->client = ft->client;
usr.bin/tmux/format.c
408
server_client_get_cwd(ft->client, NULL), format_job_update,
usr.bin/tmux/format.c
4519
struct client *c = ft->client;
usr.bin/tmux/format.c
457
struct client *c;
usr.bin/tmux/format.c
4629
struct client *c = ft->client;
usr.bin/tmux/format.c
468
format_lost_client(struct client *c)
usr.bin/tmux/format.c
4701
struct client *c = ft->client;
usr.bin/tmux/format.c
4760
struct client *c, **l;
usr.bin/tmux/format.c
50
static void format_defaults_client(struct format_tree *, struct client *);
usr.bin/tmux/format.c
527
struct client *loop;
usr.bin/tmux/format.c
56
struct client *client;
usr.bin/tmux/format.c
5697
format_single(struct cmdq_item *item, const char *fmt, struct client *c,
usr.bin/tmux/format.c
5712
struct client *c, struct cmd_find_state *fs)
usr.bin/tmux/format.c
5721
struct client *tc = cmdq_get_target_client(item);
usr.bin/tmux/format.c
5728
format_create_defaults(struct cmdq_item *item, struct client *c,
usr.bin/tmux/format.c
5743
format_create_from_state(struct cmdq_item *item, struct client *c,
usr.bin/tmux/format.c
5753
struct client *tc = cmdq_get_target_client(item);
usr.bin/tmux/format.c
5760
format_defaults(struct format_tree *ft, struct client *c, struct session *s,
usr.bin/tmux/format.c
5824
format_defaults_client(struct format_tree *ft, struct client *c)
usr.bin/tmux/format.c
751
struct client *loop;
usr.bin/tmux/format.c
778
struct client *loop;
usr.bin/tmux/input.c
104
struct client *c;
usr.bin/tmux/input.c
3360
struct client *c = NULL, *loop;
usr.bin/tmux/input.c
3440
input_request_reply(struct client *c, enum input_request_type type, void *data)
usr.bin/tmux/input.c
3485
input_cancel_requests(struct client *c)
usr.bin/tmux/input.c
62
struct client *c;
usr.bin/tmux/input.c
859
struct colour_palette *palette, struct client *c)
usr.bin/tmux/key-bindings.c
296
struct client *c;
usr.bin/tmux/key-bindings.c
681
struct client *c, struct key_event *event, struct cmd_find_state *fs)
usr.bin/tmux/menu.c
179
menu_mode_cb(__unused struct client *c, void *data, u_int *cx, u_int *cy)
usr.bin/tmux/menu.c
194
menu_check_cb(__unused struct client *c, void *data, u_int px, u_int py,
usr.bin/tmux/menu.c
206
menu_reapply_styles(struct menu_data *md, struct client *c)
usr.bin/tmux/menu.c
260
menu_draw_cb(struct client *c, void *data,
usr.bin/tmux/menu.c
291
menu_free_cb(__unused struct client *c, void *data)
usr.bin/tmux/menu.c
312
menu_key_cb(struct client *c, void *data, struct key_event *event)
usr.bin/tmux/menu.c
513
menu_resize_cb(struct client *c, void *data)
usr.bin/tmux/menu.c
546
struct cmdq_item *item, u_int px, u_int py, struct client *c,
usr.bin/tmux/menu.c
55
struct cmdq_item *qitem, struct client *c, struct cmd_find_state *fs)
usr.bin/tmux/menu.c
629
struct cmdq_item *item, u_int px, u_int py, struct client *c,
usr.bin/tmux/menu.c
65
struct cmdq_item *qitem, struct client *c, struct cmd_find_state *fs)
usr.bin/tmux/mode-tree.c
1038
mode_tree_search_callback(__unused struct client *c, void *data, const char *s,
usr.bin/tmux/mode-tree.c
1065
mode_tree_filter_callback(__unused struct client *c, void *data, const char *s,
usr.bin/tmux/mode-tree.c
1114
mode_tree_display_menu(struct mode_tree_data *mtd, struct client *c, u_int x,
usr.bin/tmux/mode-tree.c
1160
mode_tree_display_help(__unused struct mode_tree_data *mtd, struct client *c)
usr.bin/tmux/mode-tree.c
121
struct client *c;
usr.bin/tmux/mode-tree.c
1211
mode_tree_key(struct mode_tree_data *mtd, struct client *c, key_code *key,
usr.bin/tmux/mode-tree.c
1454
mode_tree_run_command(struct client *c, struct cmd_find_state *fs,
usr.bin/tmux/mode-tree.c
462
struct client *c, key_code key, int current)
usr.bin/tmux/notify.c
143
control_notify_client_session_changed(ne->client);
usr.bin/tmux/notify.c
145
control_notify_client_detached(ne->client);
usr.bin/tmux/notify.c
161
if (ne->client != NULL)
usr.bin/tmux/notify.c
162
server_client_unref(ne->client);
usr.bin/tmux/notify.c
180
notify_add(const char *name, struct cmd_find_state *fs, struct client *c,
usr.bin/tmux/notify.c
194
ne->client = c;
usr.bin/tmux/notify.c
241
ne.client = cmdq_get_client(item);
usr.bin/tmux/notify.c
255
notify_client(const char *name, struct client *c)
usr.bin/tmux/notify.c
32
struct client *client;
usr.bin/tmux/options.c
1182
struct client *loop;
usr.bin/tmux/popup.c
110
struct client *c = pd->c;
usr.bin/tmux/popup.c
159
popup_set_client_cb(struct tty_ctx *ttyctx, struct client *c)
usr.bin/tmux/popup.c
198
popup_mode_cb(__unused struct client *c, void *data, u_int *cx, u_int *cy)
usr.bin/tmux/popup.c
217
popup_check_cb(struct client* c, void *data, u_int px, u_int py, u_int nx)
usr.bin/tmux/popup.c
270
popup_draw_cb(struct client *c, void *data, struct screen_redraw_ctx *rctx)
usr.bin/tmux/popup.c
31
struct client *c;
usr.bin/tmux/popup.c
330
popup_free_cb(struct client *c, void *data)
usr.bin/tmux/popup.c
366
popup_resize_cb(__unused struct client *c, void *data)
usr.bin/tmux/popup.c
409
struct client *c = pd->c;
usr.bin/tmux/popup.c
455
struct client *c = pd->c;
usr.bin/tmux/popup.c
497
popup_handle_drag(struct client *c, struct popup_data *pd,
usr.bin/tmux/popup.c
555
popup_key_cb(struct client *c, void *data, struct key_event *event)
usr.bin/tmux/popup.c
669
struct client *c = pd->c;
usr.bin/tmux/popup.c
712
popup_present(struct client *c)
usr.bin/tmux/popup.c
718
popup_modify(struct client *c, const char *title, const char *style,
usr.bin/tmux/popup.c
769
int argc, char **argv, const char *cwd, const char *title, struct client *c,
usr.bin/tmux/popup.c
871
popup_write(struct client *c, const char *data, size_t size)
usr.bin/tmux/popup.c
927
popup_editor(struct client *c, const char *buf, size_t len,
usr.bin/tmux/resize.c
101
struct client *loop;
usr.bin/tmux/resize.c
114
clients_calculate_size(int type, int current, struct client *c,
usr.bin/tmux/resize.c
115
struct session *s, struct window *w, int (*skip_client)(struct client *,
usr.bin/tmux/resize.c
119
struct client *loop;
usr.bin/tmux/resize.c
267
default_window_size_skip_client(struct client *loop, __unused int type,
usr.bin/tmux/resize.c
278
default_window_size(struct client *c, struct session *s, struct window *w,
usr.bin/tmux/resize.c
337
recalculate_size_skip_client(struct client *loop, __unused int type,
usr.bin/tmux/resize.c
429
struct client *c;
usr.bin/tmux/resize.c
69
ignore_client_size(struct client *c)
usr.bin/tmux/resize.c
71
struct client *loop;
usr.bin/tmux/screen-redraw.c
1014
struct client *c = ctx->c;
usr.bin/tmux/screen-redraw.c
1083
struct client *c = ctx->c;
usr.bin/tmux/screen-redraw.c
218
struct client *c = ctx->c;
usr.bin/tmux/screen-redraw.c
255
struct client *c = ctx->c;
usr.bin/tmux/screen-redraw.c
31
static void screen_redraw_set_context(struct client *,
usr.bin/tmux/screen-redraw.c
338
struct client *c = ctx->c;
usr.bin/tmux/screen-redraw.c
446
screen_redraw_make_pane_status(struct client *c, struct window_pane *wp,
usr.bin/tmux/screen-redraw.c
519
struct client *c = ctx->c;
usr.bin/tmux/screen-redraw.c
580
struct client *c = ctx->c;
usr.bin/tmux/screen-redraw.c
614
screen_redraw_set_context(struct client *c, struct screen_redraw_ctx *ctx)
usr.bin/tmux/screen-redraw.c
648
screen_redraw_screen(struct client *c)
usr.bin/tmux/screen-redraw.c
692
screen_redraw_pane(struct client *c, struct window_pane *wp,
usr.bin/tmux/screen-redraw.c
718
struct client *c = ctx->c;
usr.bin/tmux/screen-redraw.c
745
struct client *c = ctx->c;
usr.bin/tmux/screen-redraw.c
815
struct client *c = ctx->c;
usr.bin/tmux/screen-redraw.c
886
struct client *c = ctx->c;
usr.bin/tmux/screen-redraw.c
907
struct client *c = ctx->c;
usr.bin/tmux/screen-redraw.c
923
struct client *c = ctx->c;
usr.bin/tmux/screen-redraw.c
945
struct client *c = ctx->c;
usr.bin/tmux/screen-write.c
132
screen_write_set_client_cb(struct tty_ctx *ttyctx, struct client *c)
usr.bin/tmux/server-acl.c
126
struct client *c;
usr.bin/tmux/server-acl.c
145
struct client *c;
usr.bin/tmux/server-acl.c
164
server_acl_join(struct client *c)
usr.bin/tmux/server-client.c
1035
server_client_is_bracket_paste(struct client *c, key_code key)
usr.bin/tmux/server-client.c
1054
server_client_is_assume_paste(struct client *c)
usr.bin/tmux/server-client.c
1082
server_client_update_latest(struct client *c)
usr.bin/tmux/server-client.c
1102
server_client_repeat_time(struct client *c, struct key_binding *bd)
usr.bin/tmux/server-client.c
1127
struct client *c = cmdq_get_client(item);
usr.bin/tmux/server-client.c
130
server_client_clear_overlay(struct client *c)
usr.bin/tmux/server-client.c
1396
server_client_handle_key(struct client *c, struct key_event *event)
usr.bin/tmux/server-client.c
1458
struct client *c;
usr.bin/tmux/server-client.c
1619
struct client *c;
usr.bin/tmux/server-client.c
1712
server_client_reset_state(struct client *c)
usr.bin/tmux/server-client.c
1816
struct client *c = data;
usr.bin/tmux/server-client.c
1829
struct client *c = data;
usr.bin/tmux/server-client.c
1852
server_client_check_exit(struct client *c)
usr.bin/tmux/server-client.c
1913
server_client_check_modes(struct client *c)
usr.bin/tmux/server-client.c
1932
server_client_check_redraw(struct client *c)
usr.bin/tmux/server-client.c
2086
server_client_set_title(struct client *c)
usr.bin/tmux/server-client.c
2111
server_client_set_path(struct client *c)
usr.bin/tmux/server-client.c
2133
struct client *c = arg;
usr.bin/tmux/server-client.c
2252
struct client *c = cmdq_get_client(item);
usr.bin/tmux/server-client.c
226
server_client_check_nested(struct client *c)
usr.bin/tmux/server-client.c
2270
struct client *c = cmdq_get_client(item);
usr.bin/tmux/server-client.c
2284
server_client_dispatch_command(struct client *c, struct imsg *imsg)
usr.bin/tmux/server-client.c
2354
server_client_dispatch_identify(struct client *c, struct imsg *imsg)
usr.bin/tmux/server-client.c
244
server_client_set_key_table(struct client *c, const char *name)
usr.bin/tmux/server-client.c
2498
server_client_dispatch_shell(struct client *c)
usr.bin/tmux/server-client.c
2513
server_client_get_cwd(struct client *c, struct session *s)
usr.bin/tmux/server-client.c
2532
server_client_control_flags(struct client *c, const char *next)
usr.bin/tmux/server-client.c
2551
server_client_set_flags(struct client *c, const char *flags)
usr.bin/tmux/server-client.c
257
server_client_key_table_activity_diff(struct client *c)
usr.bin/tmux/server-client.c
2594
server_client_get_flags(struct client *c)
usr.bin/tmux/server-client.c
2634
server_client_get_client_window(struct client *c, u_int id)
usr.bin/tmux/server-client.c
2643
server_client_add_client_window(struct client *c, u_int id)
usr.bin/tmux/server-client.c
2658
server_client_get_pane(struct client *c)
usr.bin/tmux/server-client.c
267
server_client_get_key_table(struct client *c)
usr.bin/tmux/server-client.c
2676
server_client_set_pane(struct client *c, struct window_pane *wp)
usr.bin/tmux/server-client.c
2693
struct client *c;
usr.bin/tmux/server-client.c
2708
server_client_print(struct client *c, int parse, struct evbuffer *evb)
usr.bin/tmux/server-client.c
2777
server_client_report_theme(struct client *c, enum client_theme theme)
usr.bin/tmux/server-client.c
283
server_client_is_default_key_table(struct client *c, struct key_table *table)
usr.bin/tmux/server-client.c
289
struct client *
usr.bin/tmux/server-client.c
292
struct client *c;
usr.bin/tmux/server-client.c
337
server_client_open(struct client *c, char **cause)
usr.bin/tmux/server-client.c
371
server_client_attached_lost(struct client *c)
usr.bin/tmux/server-client.c
375
struct client *loop;
usr.bin/tmux/server-client.c
376
struct client *found;
usr.bin/tmux/server-client.c
40
static key_code server_client_check_mouse(struct client *, struct key_event *);
usr.bin/tmux/server-client.c
404
server_client_set_session(struct client *c, struct session *s)
usr.bin/tmux/server-client.c
43
static void server_client_check_exit(struct client *);
usr.bin/tmux/server-client.c
438
server_client_lost(struct client *c)
usr.bin/tmux/server-client.c
44
static void server_client_check_redraw(struct client *);
usr.bin/tmux/server-client.c
45
static void server_client_check_modes(struct client *);
usr.bin/tmux/server-client.c
46
static void server_client_set_title(struct client *);
usr.bin/tmux/server-client.c
47
static void server_client_set_path(struct client *);
usr.bin/tmux/server-client.c
48
static void server_client_reset_state(struct client *);
usr.bin/tmux/server-client.c
49
static void server_client_update_latest(struct client *);
usr.bin/tmux/server-client.c
51
static int server_client_dispatch_command(struct client *, struct imsg *);
usr.bin/tmux/server-client.c
519
server_client_unref(struct client *c)
usr.bin/tmux/server-client.c
52
static int server_client_dispatch_identify(struct client *, struct imsg *);
usr.bin/tmux/server-client.c
53
static int server_client_dispatch_shell(struct client *);
usr.bin/tmux/server-client.c
532
struct client *c = arg;
usr.bin/tmux/server-client.c
54
static void server_client_report_theme(struct client *, enum client_theme);
usr.bin/tmux/server-client.c
547
server_client_suspend(struct client *c)
usr.bin/tmux/server-client.c
561
server_client_detach(struct client *c, enum msgtype msgtype)
usr.bin/tmux/server-client.c
577
server_client_exec(struct client *c, const char *cmd)
usr.bin/tmux/server-client.c
699
server_client_check_mouse(struct client *c, struct key_event *event)
usr.bin/tmux/server-client.c
73
struct client *c;
usr.bin/tmux/server-client.c
93
server_client_set_overlay(struct client *c, u_int delay,
usr.bin/tmux/server-fn.c
110
struct client *c;
usr.bin/tmux/server-fn.c
140
struct client *c;
usr.bin/tmux/server-fn.c
151
struct client *c;
usr.bin/tmux/server-fn.c
160
server_lock_client(struct client *c)
usr.bin/tmux/server-fn.c
35
server_redraw_client(struct client *c)
usr.bin/tmux/server-fn.c
41
server_status_client(struct client *c)
usr.bin/tmux/server-fn.c
436
struct client *c;
usr.bin/tmux/server-fn.c
49
struct client *c;
usr.bin/tmux/server-fn.c
73
struct client *c;
usr.bin/tmux/server-fn.c
97
struct client *c;
usr.bin/tmux/server.c
174
server_start(struct tmuxproc *client, uint64_t flags, struct event_base *base,
usr.bin/tmux/server.c
179
struct client *c = NULL;
usr.bin/tmux/server.c
192
proc_clear_signals(client, 0);
usr.bin/tmux/server.c
260
struct client *c;
usr.bin/tmux/server.c
306
struct client *c, *c1;
usr.bin/tmux/server.c
368
struct client *c;
usr.bin/tmux/sort.c
418
struct client **
usr.bin/tmux/sort.c
421
struct client *c;
usr.bin/tmux/sort.c
423
static struct client **l = NULL;
usr.bin/tmux/sort.c
93
const struct client *const *a = a0;
usr.bin/tmux/sort.c
94
const struct client *const *b = b0;
usr.bin/tmux/sort.c
95
const struct client *ca = *a;
usr.bin/tmux/sort.c
96
const struct client *cb = *b;
usr.bin/tmux/spawn.c
209
struct client *c = cmdq_get_client(item);
usr.bin/tmux/spawn.c
80
struct client *c = cmdq_get_client(item);
usr.bin/tmux/status.c
1126
status_prompt_paste(struct client *c)
usr.bin/tmux/status.c
1189
status_prompt_replace_complete(struct client *c, const char *s)
usr.bin/tmux/status.c
1260
status_prompt_forward_word(struct client *c, size_t size, int vi,
usr.bin/tmux/status.c
1302
status_prompt_end_word(struct client *c, size_t size, const char *separators)
usr.bin/tmux/status.c
1339
status_prompt_backward_word(struct client *c, const char *separators)
usr.bin/tmux/status.c
1369
status_prompt_key(struct client *c, key_code key)
usr.bin/tmux/status.c
182
struct client *c = arg;
usr.bin/tmux/status.c
1872
struct client *c = spm->c;
usr.bin/tmux/status.c
1899
status_prompt_complete_list_menu(struct client *c, char **list, u_int size,
usr.bin/tmux/status.c
1958
status_prompt_complete_window_menu(struct client *c, struct session *s,
usr.bin/tmux/status.c
204
status_timer_start(struct client *c)
usr.bin/tmux/status.c
2100
status_prompt_complete(struct client *c, const char *word, u_int offset)
usr.bin/tmux/status.c
221
struct client *c;
usr.bin/tmux/status.c
242
status_at_line(struct client *c)
usr.bin/tmux/status.c
255
status_line_size(struct client *c)
usr.bin/tmux/status.c
268
status_prompt_line_at(struct client *c)
usr.bin/tmux/status.c
284
status_get_range(struct client *c, u_int x, u_int y)
usr.bin/tmux/status.c
295
status_push_screen(struct client *c)
usr.bin/tmux/status.c
308
status_pop_screen(struct client *c)
usr.bin/tmux/status.c
321
status_init(struct client *c)
usr.bin/tmux/status.c
335
status_free(struct client *c)
usr.bin/tmux/status.c
357
status_redraw(struct client *c)
usr.bin/tmux/status.c
40
static char *status_prompt_complete(struct client *, const char *, u_int);
usr.bin/tmux/status.c
41
static char *status_prompt_complete_window_menu(struct client *,
usr.bin/tmux/status.c
45
struct client *c;
usr.bin/tmux/status.c
460
status_message_set(struct client *c, int delay, int ignore_styles,
usr.bin/tmux/status.c
513
status_message_clear(struct client *c)
usr.bin/tmux/status.c
532
struct client *c = data;
usr.bin/tmux/status.c
542
status_prompt_area(struct client *c, u_int *area_x, u_int *area_w)
usr.bin/tmux/status.c
604
status_message_redraw(struct client *c)
usr.bin/tmux/status.c
672
struct client *c = data;
usr.bin/tmux/status.c
683
status_prompt_set(struct client *c, struct cmd_find_state *fs,
usr.bin/tmux/status.c
744
status_prompt_clear(struct client *c)
usr.bin/tmux/status.c
775
status_prompt_update(struct client *c, const char *msg, const char *input)
usr.bin/tmux/status.c
828
status_prompt_redraw_quote(const struct client *c, u_int pcursor,
usr.bin/tmux/status.c
844
status_prompt_redraw(struct client *c)
usr.bin/tmux/status.c
980
status_prompt_translate_key(struct client *c, key_code key, key_code *new_key)
usr.bin/tmux/tmux.h
1066
struct client *c;
usr.bin/tmux/tmux.h
1121
void (*key)(struct window_mode_entry *, struct client *,
usr.bin/tmux/tmux.h
1126
void (*command)(struct window_mode_entry *, struct client *,
usr.bin/tmux/tmux.h
1594
struct client *client;
usr.bin/tmux/tmux.h
1666
void (*mouse_drag_update)(struct client *,
usr.bin/tmux/tmux.h
1668
void (*mouse_drag_release)(struct client *,
usr.bin/tmux/tmux.h
1677
typedef int (*tty_ctx_set_client_cb)(struct tty_ctx *, struct client *);
usr.bin/tmux/tmux.h
1845
struct client *c;
usr.bin/tmux/tmux.h
1913
struct client *c;
usr.bin/tmux/tmux.h
1958
struct client {
usr.bin/tmux/tmux.h
2143
TAILQ_ENTRY(client) entry;
usr.bin/tmux/tmux.h
2257
struct client *tc;
usr.bin/tmux/tmux.h
2352
extern struct client *cfg_client;
usr.bin/tmux/tmux.h
2389
struct client **sort_get_clients(u_int *, struct sort_criteria *);
usr.bin/tmux/tmux.h
2759
struct client *cmd_find_best_client(struct session *);
usr.bin/tmux/tmux.h
2760
struct client *cmd_find_client(struct cmdq_item *, const char *, int);
usr.bin/tmux/tmux.h
2859
struct client *cmdq_get_client(struct cmdq_item *);
usr.bin/tmux/tmux.h
2860
struct client *cmdq_get_target_client(struct cmdq_item *);
usr.bin/tmux/tmux.h
2986
struct client *server_client_create(int);
usr.bin/tmux/tmux.h
42
struct client;
usr.bin/tmux/tty-acs.c
224
if (tty->client->flags & CLIENT_UTF8)
usr.bin/tmux/tty-draw.c
60
if (tty->client->overlay_check == NULL &&
usr.bin/tmux/tty-keys.c
1047
struct client *c = tty->client;
usr.bin/tmux/tty-keys.c
1168
struct client *c = tty->client;
usr.bin/tmux/tty-keys.c
1311
struct client *c = tty->client;
usr.bin/tmux/tty-keys.c
1426
struct client *c = tty->client;
usr.bin/tmux/tty-keys.c
1510
struct client *c = tty->client;
usr.bin/tmux/tty-keys.c
1590
struct client *c = tty->client;
usr.bin/tmux/tty-keys.c
1662
struct client *c = tty->client;
usr.bin/tmux/tty-keys.c
1736
struct client *c = tty->client;
usr.bin/tmux/tty-keys.c
613
struct client *c = tty->client;
usr.bin/tmux/tty-keys.c
666
struct client *c = tty->client;
usr.bin/tmux/tty-keys.c
734
struct client *c = tty->client;
usr.bin/tmux/tty-term.c
600
envent = environ_find(tty->client->environ, "COLORTERM");
usr.bin/tmux/tty-term.c
602
log_debug("%s COLORTERM=%s", tty->client->name, envent->value);
usr.bin/tmux/tty.c
101
tty->client = c;
usr.bin/tmux/tty.c
1012
struct client *c;
usr.bin/tmux/tty.c
1024
tty_update_client_offset(struct client *c)
usr.bin/tmux/tty.c
1083
struct client *c = tty->client;
usr.bin/tmux/tty.c
115
struct client *c = tty->client;
usr.bin/tmux/tty.c
1159
struct client *c = tty->client;
usr.bin/tmux/tty.c
1213
struct client *c = tty->client;
usr.bin/tmux/tty.c
1289
struct client *c = tty->client;
usr.bin/tmux/tty.c
1375
log_debug("%s: %s %u %d", __func__, tty->client->name, py, ctx->bigger);
usr.bin/tmux/tty.c
1415
if (tty->client->flags & CLIENT_UTF8)
usr.bin/tmux/tty.c
1453
struct client *c = tty->client;
usr.bin/tmux/tty.c
1475
log_debug("%s sync start", tty->client->name);
usr.bin/tmux/tty.c
1490
log_debug("%s sync end", tty->client->name);
usr.bin/tmux/tty.c
1496
tty_client_ready(const struct tty_ctx *ctx, struct client *c)
usr.bin/tmux/tty.c
1521
struct client *c;
usr.bin/tmux/tty.c
1541
struct client *c = tty->client;
usr.bin/tmux/tty.c
1564
struct client *c = tty->client;
usr.bin/tmux/tty.c
1596
struct client *c = tty->client;
usr.bin/tmux/tty.c
1624
struct client *c = tty->client;
usr.bin/tmux/tty.c
165
struct client *c = tty->client;
usr.bin/tmux/tty.c
1681
struct client *c = tty->client;
usr.bin/tmux/tty.c
1715
struct client *c = tty->client;
usr.bin/tmux/tty.c
1758
struct client *c = tty->client;
usr.bin/tmux/tty.c
177
server_client_lost(tty->client);
usr.bin/tmux/tty.c
1798
struct client *c = tty->client;
usr.bin/tmux/tty.c
190
struct client *c = tty->client;
usr.bin/tmux/tty.c
2064
if (ctx->num || tty->client->overlay_draw != NULL)
usr.bin/tmux/tty.c
210
struct client *c = tty->client;
usr.bin/tmux/tty.c
240
struct client *c = tty->client;
usr.bin/tmux/tty.c
266
struct client *c = tty->client;
usr.bin/tmux/tty.c
303
struct client *c = tty->client;
usr.bin/tmux/tty.c
317
struct client *c = tty->client;
usr.bin/tmux/tty.c
328
struct client *c = tty->client;
usr.bin/tmux/tty.c
405
struct client *c = tty->client;
usr.bin/tmux/tty.c
431
struct client *c = tty->client;
usr.bin/tmux/tty.c
526
struct client *c = tty->client;
usr.bin/tmux/tty.c
552
struct client *c = tty->client;
usr.bin/tmux/tty.c
618
struct client *c = tty->client;
usr.bin/tmux/tty.c
856
struct client *c = tty->client;
usr.bin/tmux/tty.c
926
struct client *c = tty->client;
usr.bin/tmux/tty.c
948
struct client *c = tty->client;
usr.bin/tmux/tty.c
95
tty_init(struct tty *tty, struct client *c)
usr.bin/tmux/window-buffer.c
277
window_buffer_menu(void *modedata, struct client *c, key_code key)
usr.bin/tmux/window-buffer.c
37
struct client *, struct session *,
usr.bin/tmux/window-buffer.c
430
__unused struct client *c, __unused key_code key)
usr.bin/tmux/window-buffer.c
452
window_buffer_do_paste(void *modedata, void *itemdata, struct client *c,
usr.bin/tmux/window-buffer.c
514
struct window_buffer_itemdata *item, struct client *c)
usr.bin/tmux/window-buffer.c
535
window_buffer_key(struct window_mode_entry *wme, struct client *c,
usr.bin/tmux/window-client.c
123
struct client *c, **l;
usr.bin/tmux/window-client.c
169
struct client *c = item->c;
usr.bin/tmux/window-client.c
203
window_client_menu(void *modedata, struct client *c, key_code key)
usr.bin/tmux/window-client.c
341
__unused struct client *c, key_code key)
usr.bin/tmux/window-client.c
35
struct client *, struct session *,
usr.bin/tmux/window-client.c
357
window_client_key(struct window_mode_entry *wme, struct client *c,
usr.bin/tmux/window-client.c
75
struct client *c;
usr.bin/tmux/window-clock.c
214
window_clock_key(struct window_mode_entry *wme, __unused struct client *c,
usr.bin/tmux/window-clock.c
31
static void window_clock_key(struct window_mode_entry *, struct client *,
usr.bin/tmux/window-copy.c
1125
struct client *c = cs->c;
usr.bin/tmux/window-copy.c
1185
struct client *c = cs->c;
usr.bin/tmux/window-copy.c
1271
struct client *c = cs->c;
usr.bin/tmux/window-copy.c
1358
struct client *c = cs->c;
usr.bin/tmux/window-copy.c
145
static void window_copy_drag_update(struct client *, struct mouse_event *);
usr.bin/tmux/window-copy.c
146
static void window_copy_drag_release(struct client *, struct mouse_event *);
usr.bin/tmux/window-copy.c
1505
struct client *c = cs->c;
usr.bin/tmux/window-copy.c
216
struct client *c;
usr.bin/tmux/window-copy.c
2350
struct client *c = cs->c;
usr.bin/tmux/window-copy.c
2397
struct client *c = cs->c;
usr.bin/tmux/window-copy.c
32
static void window_copy_command(struct window_mode_entry *, struct client *,
usr.bin/tmux/window-copy.c
3325
window_copy_command(struct window_mode_entry *wme, struct client *c,
usr.bin/tmux/window-copy.c
6013
window_copy_start_drag(struct client *c, struct mouse_event *m)
usr.bin/tmux/window-copy.c
6066
window_copy_drag_update(struct client *c, struct mouse_event *m)
usr.bin/tmux/window-copy.c
6111
window_copy_drag_release(struct client *c, struct mouse_event *m)
usr.bin/tmux/window-customize.c
1030
window_customize_set_option(struct client *c,
usr.bin/tmux/window-customize.c
1194
window_customize_set_command_callback(struct client *c, void *itemdata,
usr.bin/tmux/window-customize.c
1233
window_customize_set_note_callback(__unused struct client *c, void *itemdata,
usr.bin/tmux/window-customize.c
1256
window_customize_set_key(struct client *c,
usr.bin/tmux/window-customize.c
1347
__unused struct client *c, __unused key_code key)
usr.bin/tmux/window-customize.c
1371
window_customize_change_current_callback(__unused struct client *c,
usr.bin/tmux/window-customize.c
1407
window_customize_change_tagged_callback(struct client *c, void *modedata,
usr.bin/tmux/window-customize.c
1427
window_customize_key(struct window_mode_entry *wme, struct client *c,
usr.bin/tmux/window-customize.c
33
struct client *, struct session *,
usr.bin/tmux/window-customize.c
853
window_customize_menu(void *modedata, struct client *c, key_code key)
usr.bin/tmux/window-customize.c
980
window_customize_set_option_callback(struct client *c, void *itemdata,
usr.bin/tmux/window-tree.c
1026
window_tree_command_each(void *modedata, void *itemdata, struct client *c,
usr.bin/tmux/window-tree.c
1055
window_tree_command_callback(struct client *c, void *modedata, const char *s,
usr.bin/tmux/window-tree.c
1084
__unused struct client *c, __unused key_code key)
usr.bin/tmux/window-tree.c
1114
window_tree_kill_current_callback(struct client *c, void *modedata,
usr.bin/tmux/window-tree.c
1135
window_tree_kill_tagged_callback(struct client *c, void *modedata,
usr.bin/tmux/window-tree.c
1217
window_tree_key(struct window_mode_entry *wme, struct client *c,
usr.bin/tmux/window-tree.c
34
struct client *, struct session *,
usr.bin/tmux/window-tree.c
763
window_tree_menu(void *modedata, struct client *c, key_code key)
usr.bin/tmux/window.c
1052
struct client *c;
usr.bin/tmux/window.c
1261
window_pane_key(struct window_pane *wp, struct client *c, struct session *s,
usr.bin/tmux/window.c
1698
window_pane_input_callback(struct client *c, __unused const char *path,
usr.bin/tmux/window.c
1726
struct client *c = cmdq_get_client(item);
usr.bin/tmux/window.c
1840
struct client *loop;
usr.bin/tmux/window.c
1861
struct client *c;
usr.bin/tmux/window.c
1881
struct client *loop;
usr.bin/tmux/window.c
1902
struct client *c;
usr.bin/tmux/window.c
1918
struct client *loop;
usr.bin/tmux/window.c
479
struct client *c;
usr.bin/ypwhich/ypwhich.c
103
r = clnt_call(client, YPBINDPROC_DOMAIN,
usr.bin/ypwhich/ypwhich.c
108
clnt_destroy(client);
usr.bin/ypwhich/ypwhich.c
114
clnt_destroy(client);
usr.bin/ypwhich/ypwhich.c
118
clnt_destroy(client);
usr.bin/ypwhich/ypwhich.c
141
CLIENT *client = NULL;
usr.bin/ypwhich/ypwhich.c
208
client = yp_bind_host(host, YPPROG, YPVERS, 0, 1);
usr.bin/ypwhich/ypwhich.c
217
r = yp_master_host(client, domain, map, &master);
usr.bin/ypwhich/ypwhich.c
239
r = yp_maplist_host(client, domain, &ypml);
usr.bin/ypwhich/ypwhich.c
249
r = yp_master_host(client,
usr.bin/ypwhich/ypwhich.c
87
CLIENT *client;
usr.bin/ypwhich/ypwhich.c
93
client = clntudp_create(sin, YPBINDPROG, YPBINDVERS, tv, &sock);
usr.bin/ypwhich/ypwhich.c
95
if (client == NULL) {
usr.sbin/amd/amd/host_ops.c
157
fetch_fhandle(CLIENT *client, char *dir, fhstatus *fhp)
usr.sbin/amd/amd/host_ops.c
176
clnt_stat = clnt_call(client, MOUNTPROC_MNT, xdr_dirpath, &dir, xdr_fhstatus, fhp, tv);
usr.sbin/amd/amd/host_ops.c
216
CLIENT *client;
usr.sbin/amd/amd/host_ops.c
252
if ((client = clnttcp_create(&sin, MOUNTPROG, MOUNTVERS, &sock, 0, 0)) == NULL &&
usr.sbin/amd/amd/host_ops.c
253
(client = clntudp_create(&sin, MOUNTPROG, MOUNTVERS, tv, &sock)) == NULL) {
usr.sbin/amd/amd/host_ops.c
265
client->cl_auth = nfs_auth;
usr.sbin/amd/amd/host_ops.c
275
clnt_stat = clnt_call(client, MOUNTPROC_EXPORT, xdr_void, 0, xdr_exports, &exlist, tv2);
usr.sbin/amd/amd/host_ops.c
333
if ((error = fetch_fhandle(client, ep[j]->ex_dir, &fp[j])))
usr.sbin/amd/amd/host_ops.c
368
if (client)
usr.sbin/amd/amd/host_ops.c
369
clnt_destroy(client);
usr.sbin/httpd/httpd.h
361
SPLAY_ENTRY(client) clt_nodes;
usr.sbin/httpd/httpd.h
363
SPLAY_HEAD(client_tree, client);
usr.sbin/httpd/httpd.h
644
void server_log(struct client *, const char *);
usr.sbin/httpd/httpd.h
647
void server_close(struct client *, const char *);
usr.sbin/httpd/httpd.h
648
void server_dump(struct client *, const void *, size_t);
usr.sbin/httpd/httpd.h
649
int server_client_cmp(struct client *, struct client *);
usr.sbin/httpd/httpd.h
650
int server_bufferevent_printf(struct client *, const char *, ...)
usr.sbin/httpd/httpd.h
652
int server_bufferevent_print(struct client *, const char *);
usr.sbin/httpd/httpd.h
653
int server_bufferevent_write_buffer(struct client *,
usr.sbin/httpd/httpd.h
655
int server_bufferevent_write_chunk(struct client *,
usr.sbin/httpd/httpd.h
658
int server_bufferevent_write(struct client *, void *, size_t);
usr.sbin/httpd/httpd.h
668
SPLAY_PROTOTYPE(client_tree, client, clt_nodes, server_client_cmp);
usr.sbin/httpd/httpd.h
672
int server_httpdesc_init(struct client *);
usr.sbin/httpd/httpd.h
674
void server_abort_http(struct client *, unsigned int, const char *);
usr.sbin/httpd/httpd.h
684
int server_writeheader_http(struct client *clt, struct kv *, void *);
usr.sbin/httpd/httpd.h
685
int server_headers(struct client *, void *,
usr.sbin/httpd/httpd.h
686
int (*)(struct client *, struct kv *, void *), void *);
usr.sbin/httpd/httpd.h
687
int server_writeresponse_http(struct client *);
usr.sbin/httpd/httpd.h
688
int server_response_http(struct client *, unsigned int,
usr.sbin/httpd/httpd.h
690
void server_reset_http(struct client *);
usr.sbin/httpd/httpd.h
691
void server_close_http(struct client *);
usr.sbin/httpd/httpd.h
692
int server_response(struct httpd *, struct client *);
usr.sbin/httpd/httpd.h
696
server_getlocation(struct client *, const char *);
usr.sbin/httpd/httpd.h
702
int server_log_http(struct client *, unsigned int, size_t);
usr.sbin/httpd/httpd.h
705
int server_file(struct httpd *, struct client *);
usr.sbin/httpd/httpd.h
709
int server_fcgi(struct httpd *, struct client *);
usr.sbin/httpd/httpd.h
710
int fcgi_add_stdin(struct client *, struct evbuffer *);
usr.sbin/httpd/server.c
1010
struct client *clt = arg;
usr.sbin/httpd/server.c
1055
struct client *clt = NULL;
usr.sbin/httpd/server.c
1165
struct client *clt = (struct client *)arg;
usr.sbin/httpd/server.c
1196
server_inflight_dec(struct client *clt, const char *why)
usr.sbin/httpd/server.c
1251
server_log(struct client *clt, const char *msg)
usr.sbin/httpd/server.c
1296
server_close(struct client *clt, const char *msg)
usr.sbin/httpd/server.c
1421
server_bufferevent_printf(struct client *clt, const char *fmt, ...)
usr.sbin/httpd/server.c
1441
server_bufferevent_print(struct client *clt, const char *str)
usr.sbin/httpd/server.c
1449
server_bufferevent_write_buffer(struct client *clt, struct evbuffer *buf)
usr.sbin/httpd/server.c
1457
server_bufferevent_write_chunk(struct client *clt,
usr.sbin/httpd/server.c
1468
server_bufferevent_write(struct client *clt, void *data, size_t size)
usr.sbin/httpd/server.c
1476
server_client_cmp(struct client *a, struct client *b)
usr.sbin/httpd/server.c
1481
SPLAY_GENERATE(client_tree, client, clt_nodes, server_client_cmp);
usr.sbin/httpd/server.c
433
struct client *clt;
usr.sbin/httpd/server.c
70
void server_input(struct client *);
usr.sbin/httpd/server.c
71
void server_inflight_dec(struct client *, const char *);
usr.sbin/httpd/server.c
784
struct client *clt = bufev->cbarg;
usr.sbin/httpd/server.c
846
struct client *clt = bufev->cbarg;
usr.sbin/httpd/server.c
887
server_input(struct client *clt)
usr.sbin/httpd/server.c
937
struct client *clt = arg;
usr.sbin/httpd/server.c
961
server_dump(struct client *clt, const void *buf, size_t len)
usr.sbin/httpd/server.c
981
struct client *clt = arg;
usr.sbin/httpd/server_fcgi.c
417
fcgi_add_stdin(struct client *clt, struct evbuffer *evbuf)
usr.sbin/httpd/server_fcgi.c
443
const char *val, struct client *clt)
usr.sbin/httpd/server_fcgi.c
500
struct client *clt = arg;
usr.sbin/httpd/server_fcgi.c
520
struct client *clt = (struct client *) arg;
usr.sbin/httpd/server_fcgi.c
642
server_fcgi_header(struct client *clt, unsigned int code)
usr.sbin/httpd/server_fcgi.c
744
server_fcgi_writeheader(struct client *clt, struct kv *hdr, void *arg)
usr.sbin/httpd/server_fcgi.c
793
server_fcgi_writechunk(struct client *clt)
usr.sbin/httpd/server_fcgi.c
80
int server_fcgi_header(struct client *, unsigned int);
usr.sbin/httpd/server_fcgi.c
818
server_fcgi_getheaders(struct client *clt)
usr.sbin/httpd/server_fcgi.c
83
int server_fcgi_writeheader(struct client *, struct kv *, void *);
usr.sbin/httpd/server_fcgi.c
84
int server_fcgi_writechunk(struct client *);
usr.sbin/httpd/server_fcgi.c
85
int server_fcgi_getheaders(struct client *);
usr.sbin/httpd/server_fcgi.c
87
struct client *);
usr.sbin/httpd/server_fcgi.c
90
server_fcgi(struct httpd *env, struct client *clt)
usr.sbin/httpd/server_file.c
215
server_file(struct httpd *env, struct client *clt)
usr.sbin/httpd/server_file.c
254
server_file_method(struct client *clt)
usr.sbin/httpd/server_file.c
271
server_file_request(struct httpd *env, struct client *clt, struct media_type
usr.sbin/httpd/server_file.c
346
server_partial_file_request(struct httpd *env, struct client *clt,
usr.sbin/httpd/server_file.c
43
int server_file_access(struct httpd *, struct client *,
usr.sbin/httpd/server_file.c
45
int server_file_request(struct httpd *, struct client *,
usr.sbin/httpd/server_file.c
47
int server_partial_file_request(struct httpd *, struct client *,
usr.sbin/httpd/server_file.c
482
server_file_index(struct httpd *env, struct client *clt, int fd,
usr.sbin/httpd/server_file.c
50
int server_file_index(struct httpd *, struct client *, int,
usr.sbin/httpd/server_file.c
54
int server_file_method(struct client *);
usr.sbin/httpd/server_file.c
56
int parse_ranges(struct client *, char *, size_t);
usr.sbin/httpd/server_file.c
60
server_file_access(struct httpd *env, struct client *clt,
usr.sbin/httpd/server_file.c
658
struct client *clt = arg;
usr.sbin/httpd/server_file.c
741
parse_ranges(struct client *clt, char *str, size_t file_sz)
usr.sbin/httpd/server_http.c
1105
server_close_http(struct client *clt)
usr.sbin/httpd/server_http.c
1125
server_expand_http(struct client *clt, const char *val, char *buf,
usr.sbin/httpd/server_http.c
124
server_http_authenticate(struct server_config *srv_conf, struct client *clt)
usr.sbin/httpd/server_http.c
1287
server_response(struct httpd *httpd, struct client *clt)
usr.sbin/httpd/server_http.c
1500
server_getlocation(struct client *clt, const char *path)
usr.sbin/httpd/server_http.c
1564
server_response_http(struct client *clt, unsigned int code,
usr.sbin/httpd/server_http.c
1656
server_writeresponse_http(struct client *clt)
usr.sbin/httpd/server_http.c
1674
server_writeheader_http(struct client *clt, struct kv *hdr, void *arg)
usr.sbin/httpd/server_http.c
1699
server_headers(struct client *clt, void *descp,
usr.sbin/httpd/server_http.c
1700
int (*hdr_cb)(struct client *, struct kv *, void *), void *arg)
usr.sbin/httpd/server_http.c
1849
server_log_http(struct client *clt, unsigned int code, size_t len)
usr.sbin/httpd/server_http.c
221
struct client *clt = arg;
usr.sbin/httpd/server_http.c
513
struct client *clt = arg;
usr.sbin/httpd/server_http.c
52
struct client *);
usr.sbin/httpd/server_http.c
54
char *server_expand_http(struct client *, const char *,
usr.sbin/httpd/server_http.c
562
struct client *clt = arg;
usr.sbin/httpd/server_http.c
676
struct client *clt = arg;
usr.sbin/httpd/server_http.c
77
server_httpdesc_init(struct client *clt)
usr.sbin/httpd/server_http.c
770
server_reset_http(struct client *clt)
usr.sbin/httpd/server_http.c
884
server_abort_http(struct client *clt, unsigned int code, const char *msg)
usr.sbin/identd/identd.c
1026
gethost(&c->client.ss));
usr.sbin/identd/identd.c
1182
memcpy(&tir.faddr, &c->client.ss, sizeof(tir.faddr));
usr.sbin/identd/identd.c
1188
s4->sin_port = htons(c->client.port);
usr.sbin/identd/identd.c
1195
s6->sin6_port = htons(c->client.port);
usr.sbin/identd/identd.c
573
c->server.port, c->client.port, reply.buf);
usr.sbin/identd/identd.c
577
c->server.port, c->client.port,
usr.sbin/identd/identd.c
582
c->server.port, c->client.port);
usr.sbin/identd/identd.c
586
c->server.port, c->client.port);
usr.sbin/identd/identd.c
744
memcpy(&c->client.ss, &ss, len);
usr.sbin/identd/identd.c
745
c->client.len = len;
usr.sbin/identd/identd.c
791
lwarn("%s read", gethost(&c->client.ss));
usr.sbin/identd/identd.c
797
ldebug("%s closed connection", gethost(&c->client.ss));
usr.sbin/identd/identd.c
815
if (c->server.port < 1 || c->client.port < 1)
usr.sbin/identd/identd.c
84
} client, server;
usr.sbin/identd/identd.c
850
c->server.port, c->client.port, errstr);
usr.sbin/identd/identd.c
902
gethost(&c->client.ss));
usr.sbin/identd/identd.c
967
c->client.port = ch - '0';
usr.sbin/identd/identd.c
979
c->client.port *= 10;
usr.sbin/identd/identd.c
980
c->client.port += ch - '0';
usr.sbin/identd/identd.c
981
if (c->client.port > 65535)
usr.sbin/npppd/npppd/npppd_radius.c
698
struct radclientconf *client;
usr.sbin/npppd/npppd/npppd_radius.c
718
TAILQ_FOREACH(client, &_this->conf.raddaeclientconfs, entry) {
usr.sbin/npppd/npppd/npppd_radius.c
721
client->addr.sin4.sin_addr.s_addr)
usr.sbin/npppd/npppd/npppd_radius.c
725
&client->addr.sin6.sin6_addr))
usr.sbin/npppd/npppd/npppd_radius.c
729
if (client == NULL) {
usr.sbin/npppd/npppd/npppd_radius.c
737
client->secret) != 0) {
usr.sbin/npppd/npppd/npppd_radius.c
845
radius_set_response_authenticator(res, client->secret);
usr.sbin/npppd/npppd/parse.y
531
struct radclientconf *client;
usr.sbin/npppd/npppd/parse.y
535
if ((client = calloc(1, offsetof(struct radclientconf,
usr.sbin/npppd/npppd/parse.y
541
strlcpy(client->secret, $6, secretsiz);
usr.sbin/npppd/npppd/parse.y
545
memcpy(&client->addr, &$4,
usr.sbin/npppd/npppd/parse.y
549
memcpy(&client->addr, &$4,
usr.sbin/npppd/npppd/parse.y
559
TAILQ_INSERT_TAIL(&conf->raddaeclientconfs, client,
usr.sbin/portmap/portmap.c
585
CLIENT *client;
usr.sbin/portmap/portmap.c
624
client = clntudp_create(&me, a.rmt_prog, a.rmt_vers, timeout, &so);
usr.sbin/portmap/portmap.c
625
if (client != NULL) {
usr.sbin/portmap/portmap.c
627
client->cl_auth = authunix_create(au->aup_machname,
usr.sbin/portmap/portmap.c
630
if (clnt_call(client, a.rmt_proc, xdr_opaque_parms, &a,
usr.sbin/portmap/portmap.c
633
AUTH_DESTROY(client->cl_auth);
usr.sbin/portmap/portmap.c
634
clnt_destroy(client);
usr.sbin/pppd/auth.c
1109
scan_authfile(FILE *f, char *client, char *server, u_int32_t ipaddr,
usr.sbin/pppd/auth.c
1140
if (client != NULL && strcmp(word, client) != 0 && !ISWILD(word)) {
usr.sbin/pppd/auth.c
879
have_chap_secret(char *client, char *server, u_int32_t remote)
usr.sbin/pppd/auth.c
890
if (client[0] == 0)
usr.sbin/pppd/auth.c
891
client = NULL;
usr.sbin/pppd/auth.c
895
ret = scan_authfile(f, client, server, remote, NULL, NULL, filename);
usr.sbin/pppd/auth.c
910
get_secret(int unit, char *client, char *server,
usr.sbin/pppd/auth.c
930
ret = scan_authfile(f, client, server, (u_int32_t)0,
usr.sbin/pppd/auth.c
941
syslog(LOG_ERR, "Secret for %s on %s is too long", client, server);
usr.sbin/radiusd/parse.y
116
| grammar client '\n'
usr.sbin/radiusd/parse.y
190
client : CLIENT {
usr.sbin/radiusd/parse.y
191
radiusd_client_init(&client);
usr.sbin/radiusd/parse.y
195
if (client.secret[0] == '\0') {
usr.sbin/radiusd/parse.y
203
strlcpy(client0->secret, client.secret,
usr.sbin/radiusd/parse.y
205
client0->msgauth_required = client.msgauth_required;
usr.sbin/radiusd/parse.y
209
TAILQ_INSERT_TAIL(&conf->client, client0, next);
usr.sbin/radiusd/parse.y
217
if (client.secret[0] != '\0') {
usr.sbin/radiusd/parse.y
221
} else if (strlcpy(client.secret, $2,
usr.sbin/radiusd/parse.y
222
sizeof(client.secret)) >= sizeof(client.secret)) {
usr.sbin/radiusd/parse.y
230
client.msgauth_required = $2;
usr.sbin/radiusd/parse.y
42
static struct radiusd_client client;
usr.sbin/radiusd/parse.y
902
radiusd_client_init(&client);
usr.sbin/radiusd/radiusd.c
1021
TAILQ_INIT(&conf->client);
usr.sbin/radiusd/radiusd.c
1040
client_secret = (islast)? q->client->secret :
usr.sbin/radiusd/radiusd.c
1773
q->client->secret) == 0) {
usr.sbin/radiusd/radiusd.c
341
struct radiusd_client *client, *clientt;
usr.sbin/radiusd/radiusd.c
376
TAILQ_FOREACH_SAFE(client, &radiusd->client, next, clientt) {
usr.sbin/radiusd/radiusd.c
377
TAILQ_REMOVE(&radiusd->client, client, next);
usr.sbin/radiusd/radiusd.c
378
explicit_bzero(client->secret, sizeof(client->secret));
usr.sbin/radiusd/radiusd.c
379
free(client);
usr.sbin/radiusd/radiusd.c
444
struct radiusd_client *client;
usr.sbin/radiusd/radiusd.c
462
TAILQ_FOREACH(client, &listn->radiusd->client, next) {
usr.sbin/radiusd/radiusd.c
463
if (client->af != peer->sa_family)
usr.sbin/radiusd/radiusd.c
466
&in(peer), &client->addr, &client->mask))
usr.sbin/radiusd/radiusd.c
469
&in6(peer), &client->addr, &client->mask))
usr.sbin/radiusd/radiusd.c
472
if (client == NULL) {
usr.sbin/radiusd/radiusd.c
482
client->secret) != 0) {
usr.sbin/radiusd/radiusd.c
490
if (client->msgauth_required && !listn->accounting &&
usr.sbin/radiusd/radiusd.c
499
radius_check_message_authenticator(packet, client->secret) != 0) {
usr.sbin/radiusd/radiusd.c
546
q->client = client;
usr.sbin/radiusd/radiusd.c
732
radius_put_message_authenticator(q->res, q->client->secret);
usr.sbin/radiusd/radiusd.c
733
radius_set_response_authenticator(q->res, q->client->secret);
usr.sbin/radiusd/radiusd.c
781
radius_set_response_authenticator(q->res, q->client->secret);
usr.sbin/radiusd/radiusd.c
803
if (q0->client != NULL)
usr.sbin/radiusd/radiusd.c
804
client_secret = q0->client->secret;
usr.sbin/radiusd/radiusd_ipcp.c
1725
struct radiusctl_client *client;
usr.sbin/radiusd/radiusd_ipcp.c
1731
TAILQ_FOREACH(client, &assign->dae_clients, entry)
usr.sbin/radiusd/radiusd_ipcp.c
1733
client->peerid, 0, -1, NULL, 0);
usr.sbin/radiusd/radiusd_ipcp.c
1750
struct radiusctl_client *client;
usr.sbin/radiusd/radiusd_ipcp.c
1813
TAILQ_FOREACH(client, &assign->dae_clients, entry) {
usr.sbin/radiusd/radiusd_ipcp.c
1817
? IMSG_OK : IMSG_NG, client->peerid, 0, -1,
usr.sbin/radiusd/radiusd_ipcp.c
1822
? IMSG_OK : IMSG_NG, client->peerid, 0, -1,
usr.sbin/radiusd/radiusd_ipcp.c
1834
struct radiusctl_client *client, *clientt;
usr.sbin/radiusd/radiusd_ipcp.c
1851
TAILQ_FOREACH_SAFE(client, &assign->dae_clients, entry, clientt) {
usr.sbin/radiusd/radiusd_ipcp.c
1852
TAILQ_REMOVE(&assign->dae_clients, client, entry);
usr.sbin/radiusd/radiusd_ipcp.c
1853
free(client);
usr.sbin/radiusd/radiusd_ipcp.c
580
struct radiusctl_client *client;
usr.sbin/radiusd/radiusd_ipcp.c
680
if ((client = calloc(1, sizeof(struct
usr.sbin/radiusd/radiusd_ipcp.c
686
client->peerid = imsg->hdr.peerid;
usr.sbin/radiusd/radiusd_ipcp.c
691
client, entry);
usr.sbin/radiusd/radiusd_local.h
123
TAILQ_HEAD(,radiusd_client) client;
usr.sbin/radiusd/radiusd_local.h
137
struct radiusd_client *client;
usr.sbin/rbootd/parseconf.c
132
if ((client = NewClient(addr)) == NULL) /* alloc new client */
usr.sbin/rbootd/parseconf.c
145
client->files[i] = BootFiles[i];
usr.sbin/rbootd/parseconf.c
162
client->files[i++] =
usr.sbin/rbootd/parseconf.c
180
FreeClient(client);
usr.sbin/rbootd/parseconf.c
190
client->next = Clients;
usr.sbin/rbootd/parseconf.c
191
Clients = client;
usr.sbin/rbootd/parseconf.c
78
CLIENT *client;
usr.sbin/rbootd/rbootd.c
230
CLIENT *client;
usr.sbin/rbootd/rbootd.c
247
client = NULL;
usr.sbin/rbootd/rbootd.c
248
} else if ((client=FindClient(&rconn))==NULL) {
usr.sbin/rbootd/rbootd.c
255
ProcessPacket(&rconn,client);
usr.sbin/rbootd/rmpproto.c
109
client ? client->files : BootFiles);
usr.sbin/rbootd/rmpproto.c
113
client? client->files: BootFiles))
usr.sbin/rbootd/rmpproto.c
79
ProcessPacket(RMPCONN *rconn, CLIENT *client)
usr.sbin/rpc.bootparamd/bootparamd.c
267
lookup_bootparam(char *client, char *client_canonical, char *id,
usr.sbin/rpc.bootparamd/bootparamd.c
300
if (strcasecmp(word, client) != 0) {
usr.sbin/rpc.bootparamd/bootparamd.c
308
if (hp == NULL || strcasecmp(hp->h_name, client))
usr.sbin/rpc.bootparamd/bootparamd.c
41
int lookup_bootparam(char *client, char *client_canonical, char *id,
usr.sbin/rpc.lockd/lockd_lock.c
152
newfl->client.svid != fl->client.svid)
usr.sbin/rpc.lockd/lockd_lock.c
197
return (&fl->client);
usr.sbin/rpc.lockd/lockd_lock.c
249
newfl->client.exclusive = lckarg->exclusive;
usr.sbin/rpc.lockd/lockd_lock.c
250
newfl->client.svid = lckarg->alock.svid;
usr.sbin/rpc.lockd/lockd_lock.c
251
newfl->client.oh.n_bytes = malloc(lckarg->alock.oh.n_len);
usr.sbin/rpc.lockd/lockd_lock.c
252
if (newfl->client.oh.n_bytes == NULL) {
usr.sbin/rpc.lockd/lockd_lock.c
258
newfl->client.oh.n_len = lckarg->alock.oh.n_len;
usr.sbin/rpc.lockd/lockd_lock.c
259
memcpy(newfl->client.oh.n_bytes, lckarg->alock.oh.n_bytes,
usr.sbin/rpc.lockd/lockd_lock.c
261
newfl->client.l_offset = lckarg->alock.l_offset;
usr.sbin/rpc.lockd/lockd_lock.c
262
newfl->client.l_len = lckarg->alock.l_len;
usr.sbin/rpc.lockd/lockd_lock.c
286
newfl->client_name, newfl->client.svid);
usr.sbin/rpc.lockd/lockd_lock.c
372
fl->client.oh.n_len != lck->oh.n_len ||
usr.sbin/rpc.lockd/lockd_lock.c
373
memcmp(fl->client.oh.n_bytes, lck->oh.n_bytes,
usr.sbin/rpc.lockd/lockd_lock.c
374
fl->client.oh.n_len) != 0 ||
usr.sbin/rpc.lockd/lockd_lock.c
375
fl->client.svid != lck->svid)
usr.sbin/rpc.lockd/lockd_lock.c
425
free(fl->client.oh.n_bytes);
usr.sbin/rpc.lockd/lockd_lock.c
533
fl->client_name, fl->client.svid,
usr.sbin/rpc.lockd/lockd_lock.c
534
fl->client.exclusive ? " (exclusive)":"", block ? " (block)":"",
usr.sbin/rpc.lockd/lockd_lock.c
537
if (fl->client.exclusive == 0)
usr.sbin/rpc.lockd/lockd_lock.c
556
fl->client_name, fl->client.svid);
usr.sbin/rpc.lockd/lockd_lock.c
568
fl->client_name, fl->client.svid, fl->locker);
usr.sbin/rpc.lockd/lockd_lock.c
618
fl->client_name, fl->client.svid);
usr.sbin/rpc.lockd/lockd_lock.c
632
result.exclusive = fl->client.exclusive;
usr.sbin/rpc.lockd/lockd_lock.c
636
result.alock.oh = fl->client.oh;
usr.sbin/rpc.lockd/lockd_lock.c
637
result.alock.svid = fl->client.svid;
usr.sbin/rpc.lockd/lockd_lock.c
638
result.alock.l_offset = fl->client.l_offset;
usr.sbin/rpc.lockd/lockd_lock.c
639
result.alock.l_len = fl->client.l_len;
usr.sbin/rpc.lockd/lockd_lock.c
654
result.exclusive = fl->client.exclusive;
usr.sbin/rpc.lockd/lockd_lock.c
658
result.alock.oh = fl->client.oh;
usr.sbin/rpc.lockd/lockd_lock.c
659
result.alock.svid = fl->client.svid;
usr.sbin/rpc.lockd/lockd_lock.c
661
(unsigned int)fl->client.l_offset;
usr.sbin/rpc.lockd/lockd_lock.c
663
(unsigned int)fl->client.l_len;
usr.sbin/rpc.lockd/lockd_lock.c
98
struct nlm4_holder client; /* lock holder */
usr.sbin/rpc.lockd/procs.c
118
CLIENT *client;
usr.sbin/rpc.lockd/procs.c
129
client = clnt_cache_ptr[i];
usr.sbin/rpc.lockd/procs.c
130
if (client && ((clnt_cache_time[i] + CLIENT_CACHE_LIFETIME)
usr.sbin/rpc.lockd/procs.c
136
clnt_destroy(client);
usr.sbin/rpc.lockd/procs.c
138
client = NULL;
usr.sbin/rpc.lockd/procs.c
140
if (client && !memcmp(&clnt_cache_addr[i], &host_addr->sin_addr,
usr.sbin/rpc.lockd/procs.c
145
return client;
usr.sbin/rpc.lockd/procs.c
159
client = clntudp_create(host_addr, NLM_PROG, vers, retry_time, &sock_no);
usr.sbin/rpc.lockd/procs.c
160
if (!client) {
usr.sbin/rpc.lockd/procs.c
168
clnt_cache_ptr[clnt_cache_next_to_use] = client;
usr.sbin/rpc.lockd/procs.c
181
clnt_control(client, CLSET_TIMEOUT, (char *)(void *)&retry_time);
usr.sbin/rpc.lockd/procs.c
186
return client;
usr.sbin/tcpdump/print-nfs.c
746
struct in6_addr client; /* client IP address (net order) */
usr.sbin/tcpdump/print-nfs.c
784
memcpy(&xmep->client, &ip->ip_src, sizeof(ip->ip_src));
usr.sbin/tcpdump/print-nfs.c
789
memcpy(&xmep->client, &ip6->ip6_src, sizeof(ip6->ip6_src));
usr.sbin/tcpdump/print-nfs.c
825
memcmp(&ip->ip_dst, &xmep->client,
usr.sbin/tcpdump/print-nfs.c
833
memcmp(&ip6->ip6_dst, &xmep->client,
usr.sbin/tftpd/tftpd.c
1006
getip(&client->ss), requested);
usr.sbin/tftpd/tftpd.c
1072
client->file = fdopen(fd, mode == RRQ ? "r" : "w");
usr.sbin/tftpd/tftpd.c
1073
if (client->file == NULL) {
usr.sbin/tftpd/tftpd.c
1082
fget_octet(struct tftp_client *client)
usr.sbin/tftpd/tftpd.c
1084
return (getc(client->file));
usr.sbin/tftpd/tftpd.c
1088
fput_octet(struct tftp_client *client, int c)
usr.sbin/tftpd/tftpd.c
1090
return (putc(c, client->file));
usr.sbin/tftpd/tftpd.c
1094
fget_netascii(struct tftp_client *client)
usr.sbin/tftpd/tftpd.c
1098
switch (client->newline) {
usr.sbin/tftpd/tftpd.c
1100
c = getc(client->file);
usr.sbin/tftpd/tftpd.c
1105
client->newline = c;
usr.sbin/tftpd/tftpd.c
1110
client->newline = 0;
usr.sbin/tftpd/tftpd.c
1114
client->newline = 0;
usr.sbin/tftpd/tftpd.c
1123
fput_netascii(struct tftp_client *client, int c)
usr.sbin/tftpd/tftpd.c
1125
if (client->newline == '\r') {
usr.sbin/tftpd/tftpd.c
1126
client->newline = 0;
usr.sbin/tftpd/tftpd.c
1132
client->newline = c;
usr.sbin/tftpd/tftpd.c
1136
return (putc(c, client->file));
usr.sbin/tftpd/tftpd.c
1140
sendfile(struct tftp_client *client)
usr.sbin/tftpd/tftpd.c
1142
event_set(&client->sev, client->sock, EV_READ, tftp_rrq_ack, client);
usr.sbin/tftpd/tftpd.c
1143
client->block = 1;
usr.sbin/tftpd/tftpd.c
1145
file_read(client);
usr.sbin/tftpd/tftpd.c
1149
file_read(struct tftp_client *client)
usr.sbin/tftpd/tftpd.c
1156
dp = (struct tftphdr *)client->buf;
usr.sbin/tftpd/tftpd.c
1158
dp->th_block = htons(client->block);
usr.sbin/tftpd/tftpd.c
1161
for (i = 0; i < client->segment_size; i++) {
usr.sbin/tftpd/tftpd.c
1162
c = client->fgetc(client);
usr.sbin/tftpd/tftpd.c
1164
if (ferror(client->file)) {
usr.sbin/tftpd/tftpd.c
1165
nak(client, 100 + EIO);
usr.sbin/tftpd/tftpd.c
1174
client->buflen = i + 4;
usr.sbin/tftpd/tftpd.c
1175
client->retries = RETRIES;
usr.sbin/tftpd/tftpd.c
1177
tftp_send(client);
usr.sbin/tftpd/tftpd.c
1181
tftp_send(struct tftp_client *client)
usr.sbin/tftpd/tftpd.c
1183
if (send(client->sock, client->buf, client->buflen, 0) == -1) {
usr.sbin/tftpd/tftpd.c
1185
client_free(client);
usr.sbin/tftpd/tftpd.c
1189
event_add(&client->sev, &client->tv);
usr.sbin/tftpd/tftpd.c
1195
struct tftp_client *client = arg;
usr.sbin/tftpd/tftpd.c
1201
if (retry(client) == -1) {
usr.sbin/tftpd/tftpd.c
1202
lwarn("%s: retry", getip(&client->ss));
usr.sbin/tftpd/tftpd.c
1214
event_add(&client->sev, &client->tv);
usr.sbin/tftpd/tftpd.c
1218
lwarn("%s: recv", getip(&client->ss));
usr.sbin/tftpd/tftpd.c
1235
if (ap->th_block != client->block) {
usr.sbin/tftpd/tftpd.c
1236
if (tftp_flush(client) == -1) {
usr.sbin/tftpd/tftpd.c
1237
lwarnx("%s: flush", getip(&client->ss));
usr.sbin/tftpd/tftpd.c
1241
if (ap->th_block != (client->block - 1))
usr.sbin/tftpd/tftpd.c
1244
tftp_send(client);
usr.sbin/tftpd/tftpd.c
1248
if (client->buflen != client->packet_size) {
usr.sbin/tftpd/tftpd.c
1253
client->block++;
usr.sbin/tftpd/tftpd.c
1254
file_read(client);
usr.sbin/tftpd/tftpd.c
1258
client_free(client);
usr.sbin/tftpd/tftpd.c
1262
tftp_flush(struct tftp_client *client)
usr.sbin/tftpd/tftpd.c
1268
n = recv(client->sock, rbuf, sizeof(rbuf), 0);
usr.sbin/tftpd/tftpd.c
1285
recvfile(struct tftp_client *client)
usr.sbin/tftpd/tftpd.c
1287
event_set(&client->sev, client->sock, EV_READ, tftp_wrq, client);
usr.sbin/tftpd/tftpd.c
1288
tftp_wrq_ack(client);
usr.sbin/tftpd/tftpd.c
1292
tftp_wrq_ack_packet(struct tftp_client *client)
usr.sbin/tftpd/tftpd.c
1296
ap = (struct tftphdr *)client->buf;
usr.sbin/tftpd/tftpd.c
1298
ap->th_block = htons(client->block);
usr.sbin/tftpd/tftpd.c
1300
client->buflen = 4;
usr.sbin/tftpd/tftpd.c
1301
client->retries = RETRIES;
usr.sbin/tftpd/tftpd.c
1303
return (send(client->sock, client->buf, client->buflen, 0) != 4);
usr.sbin/tftpd/tftpd.c
1307
tftp_wrq_ack(struct tftp_client *client)
usr.sbin/tftpd/tftpd.c
1309
if (tftp_wrq_ack_packet(client) != 0) {
usr.sbin/tftpd/tftpd.c
1311
client_free(client);
usr.sbin/tftpd/tftpd.c
1315
client->block++;
usr.sbin/tftpd/tftpd.c
1316
event_add(&client->sev, &client->tv);
usr.sbin/tftpd/tftpd.c
1323
struct tftp_client *client = arg;
usr.sbin/tftpd/tftpd.c
1329
if (retry(client) == -1) {
usr.sbin/tftpd/tftpd.c
1330
lwarn("%s", getip(&client->ss));
usr.sbin/tftpd/tftpd.c
1337
n = recv(fd, wbuf, client->packet_size, 0);
usr.sbin/tftpd/tftpd.c
1366
if (dp->th_block != client->block) {
usr.sbin/tftpd/tftpd.c
1367
if (tftp_flush(client) == -1) {
usr.sbin/tftpd/tftpd.c
1368
lwarnx("%s: flush", getip(&client->ss));
usr.sbin/tftpd/tftpd.c
1372
if (dp->th_block != (client->block - 1))
usr.sbin/tftpd/tftpd.c
1379
if (client->fputc(client, wbuf[i]) == EOF) {
usr.sbin/tftpd/tftpd.c
1385
if (n < client->packet_size) {
usr.sbin/tftpd/tftpd.c
1386
tftp_wrq_ack_packet(client);
usr.sbin/tftpd/tftpd.c
1387
fclose(client->file);
usr.sbin/tftpd/tftpd.c
1388
client->file = NULL;
usr.sbin/tftpd/tftpd.c
1389
event_set(&client->sev, client->sock, EV_READ,
usr.sbin/tftpd/tftpd.c
1390
tftp_wrq_end, client);
usr.sbin/tftpd/tftpd.c
1391
event_add(&client->sev, &client->tv);
usr.sbin/tftpd/tftpd.c
1395
tftp_wrq_ack(client);
usr.sbin/tftpd/tftpd.c
1399
event_add(&client->sev, &client->tv);
usr.sbin/tftpd/tftpd.c
1402
client_free(client);
usr.sbin/tftpd/tftpd.c
1409
struct tftp_client *client = arg;
usr.sbin/tftpd/tftpd.c
1418
n = recv(fd, wbuf, client->packet_size, 0);
usr.sbin/tftpd/tftpd.c
1447
if (dp->th_block != client->block)
usr.sbin/tftpd/tftpd.c
1451
if (retry(client) == -1) {
usr.sbin/tftpd/tftpd.c
1452
lwarn("%s", getip(&client->ss));
usr.sbin/tftpd/tftpd.c
1457
client_free(client);
usr.sbin/tftpd/tftpd.c
1469
nak(struct tftp_client *client, int error)
usr.sbin/tftpd/tftpd.c
1476
tp = (struct tftphdr *)client->buf;
usr.sbin/tftpd/tftpd.c
1489
length = strlcpy(tp->th_msg, pe->e_msg, client->packet_size - 5) + 5;
usr.sbin/tftpd/tftpd.c
1490
if (length > client->packet_size)
usr.sbin/tftpd/tftpd.c
1491
length = client->packet_size;
usr.sbin/tftpd/tftpd.c
1493
linfo("%s: nak: %s", getip(&client->ss), tp->th_msg);
usr.sbin/tftpd/tftpd.c
1495
rslt = send(client->sock, client->buf, length, 0);
usr.sbin/tftpd/tftpd.c
1497
lwarn("%s: nak", getip(&client->ss));
usr.sbin/tftpd/tftpd.c
1499
lwarnx("%s: nak: sent %zd of %zu bytes", getip(&client->ss),
usr.sbin/tftpd/tftpd.c
1502
client_free(client);
usr.sbin/tftpd/tftpd.c
1509
oack(struct tftp_client *client)
usr.sbin/tftpd/tftpd.c
1511
struct opt_client *options = client->options;
usr.sbin/tftpd/tftpd.c
1516
tp = (struct tftphdr *)client->buf;
usr.sbin/tftpd/tftpd.c
1518
size = sizeof(client->buf) - 2;
usr.sbin/tftpd/tftpd.c
1540
client->buflen = bp - client->buf;
usr.sbin/tftpd/tftpd.c
1541
client->retries = RETRIES;
usr.sbin/tftpd/tftpd.c
1543
if (send(client->sock, client->buf, client->buflen, 0) == -1) {
usr.sbin/tftpd/tftpd.c
1549
if (client->opcode == WRQ) {
usr.sbin/tftpd/tftpd.c
1550
client->block = 1;
usr.sbin/tftpd/tftpd.c
1551
event_set(&client->sev, client->sock, EV_READ,
usr.sbin/tftpd/tftpd.c
1552
tftp_wrq, client);
usr.sbin/tftpd/tftpd.c
1554
event_set(&client->sev, client->sock, EV_READ,
usr.sbin/tftpd/tftpd.c
1555
oack_done, client);
usr.sbin/tftpd/tftpd.c
1557
event_add(&client->sev, &client->tv);
usr.sbin/tftpd/tftpd.c
1565
retry(struct tftp_client *client)
usr.sbin/tftpd/tftpd.c
1567
if (--client->retries == 0) {
usr.sbin/tftpd/tftpd.c
1572
tftp_send(client);
usr.sbin/tftpd/tftpd.c
1580
struct tftp_client *client = arg;
usr.sbin/tftpd/tftpd.c
1585
if (retry(client) == -1) {
usr.sbin/tftpd/tftpd.c
1586
lwarn("%s", getip(&client->ss));
usr.sbin/tftpd/tftpd.c
1593
n = recv(client->sock, client->buf, client->packet_size, 0);
usr.sbin/tftpd/tftpd.c
1598
event_add(&client->sev, &client->tv);
usr.sbin/tftpd/tftpd.c
1602
lwarn("%s: recv", getip(&client->ss));
usr.sbin/tftpd/tftpd.c
1610
ap = (struct tftphdr *)client->buf;
usr.sbin/tftpd/tftpd.c
1617
sendfile(client);
usr.sbin/tftpd/tftpd.c
1621
client_free(client);
usr.sbin/tftpd/tftpd.c
186
void tftp_wrq_ack(struct tftp_client *client);
usr.sbin/tftpd/tftpd.c
196
void client_free(struct tftp_client *client);
usr.sbin/tftpd/tftpd.c
479
rewrite_map(struct tftp_client *client, const char *filename)
usr.sbin/tftpd/tftpd.c
486
if (evbuffer_add_printf(rwmap->wrbuf, "%s %s %s\n", getip(&client->ss),
usr.sbin/tftpd/tftpd.c
487
client->opcode == WRQ ? "write" : "read", nicebuf) == -1)
usr.sbin/tftpd/tftpd.c
492
TAILQ_INSERT_TAIL(&rwmap->clients, client, entry);
usr.sbin/tftpd/tftpd.c
518
struct tftp_client *client;
usr.sbin/tftpd/tftpd.c
538
client = TAILQ_FIRST(&rwmap->clients);
usr.sbin/tftpd/tftpd.c
539
if (client == NULL)
usr.sbin/tftpd/tftpd.c
542
TAILQ_REMOVE(&rwmap->clients, client, entry);
usr.sbin/tftpd/tftpd.c
544
tftp_open(client, filename);
usr.sbin/tftpd/tftpd.c
635
struct tftp_client *client;
usr.sbin/tftpd/tftpd.c
637
client = calloc(1, sizeof(*client));
usr.sbin/tftpd/tftpd.c
638
if (client == NULL)
usr.sbin/tftpd/tftpd.c
641
client->segment_size = SEGSIZE;
usr.sbin/tftpd/tftpd.c
642
client->packet_size = SEGSIZE + 4;
usr.sbin/tftpd/tftpd.c
644
client->tv.tv_sec = TIMEOUT;
usr.sbin/tftpd/tftpd.c
645
client->tv.tv_usec = 0;
usr.sbin/tftpd/tftpd.c
647
client->sock = -1;
usr.sbin/tftpd/tftpd.c
648
client->file = NULL;
usr.sbin/tftpd/tftpd.c
649
client->newline = 0;
usr.sbin/tftpd/tftpd.c
651
return (client);
usr.sbin/tftpd/tftpd.c
655
client_free(struct tftp_client *client)
usr.sbin/tftpd/tftpd.c
657
free(client->options);
usr.sbin/tftpd/tftpd.c
659
if (client->file != NULL)
usr.sbin/tftpd/tftpd.c
660
fclose(client->file);
usr.sbin/tftpd/tftpd.c
662
close(client->sock);
usr.sbin/tftpd/tftpd.c
664
free(client);
usr.sbin/tftpd/tftpd.c
685
struct tftp_client *client;
usr.sbin/tftpd/tftpd.c
687
client = client_alloc();
usr.sbin/tftpd/tftpd.c
688
if (client == NULL) {
usr.sbin/tftpd/tftpd.c
697
iov.iov_base = client->buf;
usr.sbin/tftpd/tftpd.c
698
iov.iov_len = client->packet_size;
usr.sbin/tftpd/tftpd.c
699
msg.msg_name = &client->ss;
usr.sbin/tftpd/tftpd.c
700
msg.msg_namelen = sizeof(client->ss);
usr.sbin/tftpd/tftpd.c
714
client->sock = socket(client->ss.ss_family,
usr.sbin/tftpd/tftpd.c
716
if (client->sock == -1) {
usr.sbin/tftpd/tftpd.c
721
s_in.ss_family = client->ss.ss_family;
usr.sbin/tftpd/tftpd.c
722
s_in.ss_len = client->ss.ss_len;
usr.sbin/tftpd/tftpd.c
751
setsockopt(client->sock, SOL_SOCKET, SO_REUSEADDR,
usr.sbin/tftpd/tftpd.c
753
setsockopt(client->sock, SOL_SOCKET, SO_REUSEPORT,
usr.sbin/tftpd/tftpd.c
756
if (bind(client->sock, (struct sockaddr *)&s_in,
usr.sbin/tftpd/tftpd.c
762
if (connect(client->sock, (struct sockaddr *)&client->ss,
usr.sbin/tftpd/tftpd.c
763
client->ss.ss_len) == -1) {
usr.sbin/tftpd/tftpd.c
764
lwarn("connect to %s", getip(&client->ss));
usr.sbin/tftpd/tftpd.c
768
tp = (struct tftphdr *)client->buf;
usr.sbin/tftpd/tftpd.c
769
client->opcode = ntohs(tp->th_opcode);
usr.sbin/tftpd/tftpd.c
770
if (client->opcode != RRQ && client->opcode != WRQ) {
usr.sbin/tftpd/tftpd.c
775
tftp(client, tp, n);
usr.sbin/tftpd/tftpd.c
780
client_free(client);
usr.sbin/tftpd/tftpd.c
784
parse_options(struct tftp_client *client, char *cp, size_t size,
usr.sbin/tftpd/tftpd.c
792
while (++cp < client->buf + size) {
usr.sbin/tftpd/tftpd.c
794
if (ccp >= client->buf + size) {
usr.sbin/tftpd/tftpd.c
826
tftp(struct tftp_client *client, struct tftphdr *tp, size_t size)
usr.sbin/tftpd/tftpd.c
844
while (cp < client->buf + size) {
usr.sbin/tftpd/tftpd.c
876
client->fgetc = pf->f_getc;
usr.sbin/tftpd/tftpd.c
877
client->fputc = pf->f_putc;
usr.sbin/tftpd/tftpd.c
879
client->options = options = calloc(NOPT, sizeof(*client->options));
usr.sbin/tftpd/tftpd.c
885
if (parse_options(client, cp, size, options)) {
usr.sbin/tftpd/tftpd.c
893
options[OPT_TIMEOUT].o_reply = client->tv.tv_sec = to;
usr.sbin/tftpd/tftpd.c
897
client->segment_size = strtonum(
usr.sbin/tftpd/tftpd.c
904
client->packet_size = client->segment_size + 4;
usr.sbin/tftpd/tftpd.c
905
options[OPT_BLKSIZE].o_reply = client->segment_size;
usr.sbin/tftpd/tftpd.c
909
client->options = NULL;
usr.sbin/tftpd/tftpd.c
918
linfo("%s: %s request for '%s'", getip(&client->ss),
usr.sbin/tftpd/tftpd.c
919
client->opcode == WRQ ? "write" : "read", nicebuf);
usr.sbin/tftpd/tftpd.c
923
rewrite_map(client, filename);
usr.sbin/tftpd/tftpd.c
925
tftp_open(client, filename);
usr.sbin/tftpd/tftpd.c
930
nak(client, ecode);
usr.sbin/tftpd/tftpd.c
934
tftp_open(struct tftp_client *client, const char *filename)
usr.sbin/tftpd/tftpd.c
938
ecode = validate_access(client, filename);
usr.sbin/tftpd/tftpd.c
942
if (client->options) {
usr.sbin/tftpd/tftpd.c
943
if (oack(client) == -1)
usr.sbin/tftpd/tftpd.c
946
free(client->options);
usr.sbin/tftpd/tftpd.c
947
client->options = NULL;
usr.sbin/tftpd/tftpd.c
948
} else if (client->opcode == WRQ) {
usr.sbin/tftpd/tftpd.c
949
recvfile(client);
usr.sbin/tftpd/tftpd.c
951
sendfile(client);
usr.sbin/tftpd/tftpd.c
955
nak(client, ecode);
usr.sbin/tftpd/tftpd.c
970
validate_access(struct tftp_client *client, const char *requested)
usr.sbin/tftpd/tftpd.c
972
int mode = client->opcode;
usr.sbin/tftpd/tftpd.c
973
struct opt_client *options = client->options;
usr.sbin/tftpd/tftpd.c
987
buf = client->buf + sizeof(client->buf) - 512;
usr.sbin/tftpd/tftpd.c
991
client->file = fmemopen(buf, 512, "r");
usr.sbin/tftpd/tftpd.c
992
if (client->file == NULL)
usr.sbin/yppoll/yppoll.c
101
r = clnt_call(client, YPPROC_ORDER, xdr_ypreq_nokey, &yprnk,
usr.sbin/yppoll/yppoll.c
104
clnt_perror(client, "yp_order: clnt_call");
usr.sbin/yppoll/yppoll.c
113
r = clnt_call(client, YPPROC_MASTER, xdr_ypreq_nokey,
usr.sbin/yppoll/yppoll.c
116
clnt_perror(client, "yp_master: clnt_call");
usr.sbin/yppoll/yppoll.c
122
clnt_destroy(client);
usr.sbin/yppoll/yppoll.c
67
CLIENT *client;
usr.sbin/yppoll/yppoll.c
89
client = clntudp_create(&rsrv_sin, YPPROG, YPVERS, tv, &rsrv_sock);
usr.sbin/yppoll/yppoll.c
90
if (client == NULL) {
usr.sbin/ypserv/common/yplib_host.c
100
static CLIENT *client;
usr.sbin/ypserv/common/yplib_host.c
113
client = clntudp_create(&rsrv_sin, program, version, tv, &rsrv_sock);
usr.sbin/ypserv/common/yplib_host.c
114
if (client == NULL) {
usr.sbin/ypserv/common/yplib_host.c
118
return(client);
usr.sbin/ypserv/common/yplib_host.c
122
yp_match_host(CLIENT *client, char *indomain, char *inmap, const char *inkey,
usr.sbin/ypserv/common/yplib_host.c
143
r = clnt_call(client, YPPROC_MATCH,
usr.sbin/ypserv/common/yplib_host.c
146
clnt_perror(client, "yp_match_host: clnt_call");
usr.sbin/ypserv/common/yplib_host.c
158
yp_first_host(CLIENT *client, char *indomain, char *inmap, char **outkey,
usr.sbin/ypserv/common/yplib_host.c
176
r = clnt_call(client, YPPROC_FIRST,
usr.sbin/ypserv/common/yplib_host.c
179
clnt_perror(client, "yp_first_host: clnt_call");
usr.sbin/ypserv/common/yplib_host.c
195
yp_next_host(CLIENT *client, char *indomain, char *inmap, char *inkey,
usr.sbin/ypserv/common/yplib_host.c
215
r = clnt_call(client, YPPROC_NEXT,
usr.sbin/ypserv/common/yplib_host.c
218
clnt_perror(client, "yp_next_host: clnt_call");
usr.sbin/ypserv/common/yplib_host.c
293
yp_all_host(CLIENT *client, char *indomain, char *inmap,
usr.sbin/ypserv/common/yplib_host.c
308
(void) clnt_call(client, YPPROC_ALL,
usr.sbin/ypserv/common/yplib_host.c
316
yp_order_host(CLIENT *client, char *indomain, char *inmap, u_int32_t *outorder)
usr.sbin/ypserv/common/yplib_host.c
331
r = clnt_call(client, YPPROC_ORDER,
usr.sbin/ypserv/common/yplib_host.c
334
clnt_perror(client, "yp_order_host: clnt_call");
usr.sbin/ypserv/common/yplib_host.c
341
yp_master_host(CLIENT *client, char *indomain, char *inmap, char **outname)
usr.sbin/ypserv/common/yplib_host.c
355
r = clnt_call(client, YPPROC_MASTER,
usr.sbin/ypserv/common/yplib_host.c
358
clnt_perror(client, "yp_master: clnt_call");
usr.sbin/ypserv/common/yplib_host.c
366
yp_maplist_host(CLIENT *client, char *indomain, struct ypmaplist **outmaplist)
usr.sbin/ypserv/common/yplib_host.c
377
r = clnt_call(client, YPPROC_MAPLIST,
usr.sbin/ypserv/common/yplib_host.c
380
clnt_perror(client, "yp_maplist: clnt_call");
usr.sbin/ypserv/common/yplib_host.c
50
static CLIENT *client;
usr.sbin/ypserv/common/yplib_host.c
82
client = clnttcp_create(&rsrv_sin, program, version,
usr.sbin/ypserv/common/yplib_host.c
85
client = clntudp_create(&rsrv_sin, program, version, tv,
usr.sbin/ypserv/common/yplib_host.c
88
if (client == NULL) {
usr.sbin/ypserv/common/yplib_host.c
93
return(client);
usr.sbin/ypserv/common/yplib_host.h
32
int yp_match_host(CLIENT *client, char *indomain, char *inmap,
usr.sbin/ypserv/common/yplib_host.h
34
int yp_first_host(CLIENT *client, char *indomain, char *inmap,
usr.sbin/ypserv/common/yplib_host.h
36
int yp_next_host(CLIENT *client, char *indomain, char *inmap, char *inkey,
usr.sbin/ypserv/common/yplib_host.h
39
int yp_master_host(CLIENT *client, char *indomain, char *inmap,
usr.sbin/ypserv/common/yplib_host.h
41
int yp_order_host(CLIENT *client, char *indomain, char *inmap,
usr.sbin/ypserv/common/yplib_host.h
43
int yp_all_host(CLIENT *client, char *indomain, char *inmap,
usr.sbin/ypserv/common/yplib_host.h
45
int yp_maplist_host(CLIENT *client, char *indomain,
usr.sbin/ypserv/yppush/yppush.c
107
req_xfr(pid_t pid, u_int prog, SVCXPRT *transp, char *host, CLIENT *client)
usr.sbin/ypserv/yppush/yppush.c
128
switch (clnt_call(client, YPPROC_XFR, xdr_ypreq_xfr, &request,
usr.sbin/ypserv/yppush/yppush.c
134
clnt_perror(client, "yppush: Cannot call YPPROC_XFR");
usr.sbin/ypserv/yppush/yppush.c
144
CLIENT *client;
usr.sbin/ypserv/yppush/yppush.c
154
client = clnt_create(host, YPPROG, YPVERS, "tcp");
usr.sbin/ypserv/yppush/yppush.c
155
if (client == NULL) {
usr.sbin/ypserv/yppush/yppush.c
194
req_xfr(pid, prog, transp, host, client);
usr.sbin/ypserv/yppush/yppush.c
197
if (client != NULL)
usr.sbin/ypserv/yppush/yppush.c
198
clnt_destroy(client);
usr.sbin/ypserv/yppush/yppush.c
223
CLIENT *client;
usr.sbin/ypserv/yppush/yppush.c
320
client = yp_bind_host(master, YPPROG, YPVERS, 0, 1);
usr.sbin/ypserv/yppush/yppush.c
324
r = yp_all_host(client, Domain, ypmap, &ypcb);
usr.sbin/ypserv/ypxfr/ypxfr.c
137
get_remote_ordernum(CLIENT *client, char *domain, char *map,
usr.sbin/ypserv/ypxfr/ypxfr.c
142
status = yp_order_host(client, domain, map, rordernum);
usr.sbin/ypserv/ypxfr/ypxfr.c
154
get_map(CLIENT *client, char *domain, char *map,
usr.sbin/ypserv/ypxfr/ypxfr.c
159
status = yp_all_host(client, domain, map, incallback);
usr.sbin/ypserv/ypxfr/ypxfr.c
209
add_master(CLIENT *client, char *domain, char *map, DBM *db)
usr.sbin/ypserv/ypxfr/ypxfr.c
216
status = yp_master_host(client, domain, map, &master);
usr.sbin/ypserv/ypxfr/ypxfr.c
235
add_interdomain(CLIENT *client, char *domain, char *map, DBM *db)
usr.sbin/ypserv/ypxfr/ypxfr.c
246
status = yp_match_host(client, domain, map,
usr.sbin/ypserv/ypxfr/ypxfr.c
264
add_secure(CLIENT *client, char *domain, char *map, DBM *db)
usr.sbin/ypserv/ypxfr/ypxfr.c
275
status = yp_match_host(client, domain, map,
usr.sbin/ypserv/ypxfr/ypxfr.c
293
send_clear(CLIENT *client)
usr.sbin/ypserv/ypxfr/ypxfr.c
304
r = clnt_call(client, YPPROC_CLEAR, xdr_void, 0, xdr_void, 0, tv);
usr.sbin/ypserv/ypxfr/ypxfr.c
306
clnt_perror(client, "yp_clear: clnt_call");
usr.sbin/ypserv/ypxfr/ypxfr.c
312
send_reply(CLIENT *client, u_long status, u_long tid)
usr.sbin/ypserv/ypxfr/ypxfr.c
325
r = clnt_call(client, 1, xdr_ypresp_xfr, &resp, xdr_void, 0, tv);
usr.sbin/ypserv/ypxfr/ypxfr.c
327
clnt_perror(client, "yppushresp_xdr: clnt_call");
usr.sbin/ypserv/ypxfr/ypxfr.c
352
CLIENT *client = NULL;
usr.sbin/ypserv/ypxfr/ypxfr.c
450
client = yp_bind_host(host, YPPROG, YPVERS, 0, 1);
usr.sbin/ypserv/ypxfr/ypxfr.c
452
status = get_remote_ordernum(client, domain, map,
usr.sbin/ypserv/ypxfr/ypxfr.c
481
status = add_master(client, domain, map, db);
usr.sbin/ypserv/ypxfr/ypxfr.c
485
status = add_interdomain(client, domain, map, db);
usr.sbin/ypserv/ypxfr/ypxfr.c
489
status = add_secure(client, domain, map, db);
usr.sbin/ypserv/ypxfr/ypxfr.c
493
status = get_map(client, domain, map, &callback);
usr.sbin/ypserv/ypxfr/ypxfr.c
511
if (client != NULL)
usr.sbin/ypserv/ypxfr/ypxfr.c
512
clnt_destroy(client);
usr.sbin/ypserv/ypxfr/ypxfr.c
517
client = yp_bind_local(YPPROG, YPVERS);
usr.sbin/ypserv/ypxfr/ypxfr.c
518
status = send_clear(client);
usr.sbin/ypserv/ypxfr/ypxfr.c
519
clnt_destroy(client);
usr.sbin/ypserv/ypxfr/ypxfr.c
524
client = yp_bind_host(ipadd, atoi(prog), 1, atoi(port), 0);
usr.sbin/ypserv/ypxfr/ypxfr.c
525
status = send_reply(client, xfr_status, atoi(tid));
usr.sbin/ypserv/ypxfr/ypxfr.c
526
clnt_destroy(client);
usr.sbin/ypset/ypset.c
102
clnt_destroy(client);
usr.sbin/ypset/ypset.c
59
CLIENT *client;
usr.sbin/ypset/ypset.c
87
client = clntudp_create(sin, YPBINDPROG, YPBINDVERS, tv, &sock);
usr.sbin/ypset/ypset.c
88
if (client == NULL) {
usr.sbin/ypset/ypset.c
92
client->cl_auth = authunix_create_default();
usr.sbin/ypset/ypset.c
94
r = clnt_call(client, YPBINDPROC_SETDOM,
usr.sbin/ypset/ypset.c
99
clnt_destroy(client);