| /src/contrib/nvi/cl/ |
| H A D | cl_screen.c | 47 CL_PRIVATE *clp; in cl_screen() local 52 clp = CLP(sp); in cl_screen() 106 F_SET(clp, CL_IN_EX | CL_SCR_EX_INIT); in cl_screen() 112 if (F_ISSET(sp, SC_EX) && clp->cup != NULL) in cl_screen() 113 tputs(tgoto(clp->cup, in cl_screen() 118 F_CLR(clp, CL_IN_EX); in cl_screen() 119 F_SET(clp, CL_SCR_VI_INIT); in cl_screen() 133 CL_PRIVATE *clp; in cl_quit() local 137 clp = GCLP(gp); in cl_quit() 143 if (!F_ISSET(clp, CL_SCR_EX_INIT | CL_SCR_VI_INIT)) in cl_quit() [all …]
|
| H A D | cl_funcs.c | 37 CL_PRIVATE *clp; in addstr4() local 42 clp = CLP(sp); in addstr4() 104 CL_PRIVATE *clp; in cl_attr() local 107 clp = CLP(sp); in cl_attr() 142 if (clp->ti_te != TI_SENT) { in cl_attr() 143 clp->ti_te = TI_SENT; in cl_attr() 144 if (clp->smcup == NULL) in cl_attr() 145 (void)cl_getcap(sp, "smcup", &clp->smcup); in cl_attr() 146 if (clp->smcup != NULL) in cl_attr() 147 (void)tputs(clp->smcup, 1, cl_putchar); in cl_attr() [all …]
|
| H A D | cl_main.c | 51 CL_PRIVATE *clp; in main() local 82 clp = cl_init(gp); in main() 127 if (clp->tgw != TGW_UNKNOWN) in main() 128 (void)cl_omesg(NULL, clp, clp->tgw == TGW_SET); in main() 134 if (F_ISSET(clp, CL_RENAME)) in main() 135 cl_setname(gp, clp->oname); in main() 138 if (clp->killersig) { in main() 139 (void)signal(clp->killersig, SIG_DFL); in main() 140 (void)kill(getpid(), clp->killersig); in main() 146 free(clp->oname); in main() [all …]
|
| H A D | cl_read.c | 49 CL_PRIVATE *clp; in cl_event() local 60 clp = CLP(sp); in cl_event() 61 retest: if (LF_ISSET(EC_INTERRUPT) || F_ISSET(clp, CL_SIGINT)) { in cl_event() 62 if (F_ISSET(clp, CL_SIGINT)) { in cl_event() 63 F_CLR(clp, CL_SIGINT); in cl_event() 69 if (F_ISSET(clp, CL_SIGHUP | CL_SIGTERM | CL_SIGWINCH)) { in cl_event() 70 if (F_ISSET(clp, CL_SIGHUP)) { in cl_event() 74 if (F_ISSET(clp, CL_SIGTERM)) { in cl_event() 78 if (F_ISSET(clp, CL_SIGWINCH)) { in cl_event() 79 F_CLR(clp, CL_SIGWINCH); in cl_event() [all …]
|
| H A D | cl_term.c | 263 CL_PRIVATE *clp; in cl_optchange() local 265 clp = CLP(sp); in cl_optchange() 280 (void)cl_omesg(sp, clp, *valp); in cl_optchange() 284 F_SET(clp, CL_RENAME_OK); in cl_optchange() 293 F_CLR(clp, CL_RENAME_OK); in cl_optchange() 309 cl_omesg(SCR *sp, CL_PRIVATE *clp, int on) in cl_omesg() argument 327 if (clp->tgw == TGW_UNKNOWN) in cl_omesg() 328 clp->tgw = sb.st_mode & S_IWGRP ? TGW_SET : TGW_UNSET; in cl_omesg()
|
| /src/sys/contrib/openzfs/lib/libzfs/ |
| H A D | libzfs_changelist.c | 96 changelist_prefix(prop_changelist_t *clp) in changelist_prefix() argument 103 if (clp->cl_prop != ZFS_PROP_MOUNTPOINT && in changelist_prefix() 104 clp->cl_prop != ZFS_PROP_SHARESMB) in changelist_prefix() 113 if (clp->cl_gflags & CL_GATHER_DONT_UNMOUNT) in changelist_prefix() 116 for (cn = avl_first(&clp->cl_tree); cn != NULL; in changelist_prefix() 117 cn = AVL_NEXT(&clp->cl_tree, cn)) { in changelist_prefix() 136 switch (clp->cl_prop) { in changelist_prefix() 139 clp->cl_mflags) != 0) { in changelist_prefix() 160 (void) changelist_postfix(clp); in changelist_prefix() 174 changelist_postfix(prop_changelist_t *clp) in changelist_postfix() argument [all …]
|
| H A D | libzfs_mount.c | 670 prop_changelist_t *clp; in zfs_unmountall() local 673 clp = changelist_gather(zhp, ZFS_PROP_MOUNTPOINT, in zfs_unmountall() 675 if (clp == NULL) in zfs_unmountall() 678 ret = changelist_prefix(clp); in zfs_unmountall() 679 changelist_free(clp); in zfs_unmountall() 839 prop_changelist_t *clp; in zfs_unshareall() local 845 clp = changelist_gather(zhp, ZFS_PROP_SHARENFS, 0, 0); in zfs_unshareall() 846 if (clp == NULL) in zfs_unshareall() 849 ret = changelist_unshare(clp, proto); in zfs_unshareall() 850 changelist_free(clp); in zfs_unshareall()
|
| H A D | libzfs_sendrecv.c | 3003 prop_changelist_t *clp = NULL; in recv_rename() local 3011 clp = changelist_gather(zhp, ZFS_PROP_NAME, 0, in recv_rename() 3013 if (clp == NULL) { in recv_rename() 3017 err = changelist_prefix(clp); in recv_rename() 3029 changelist_rename(clp, name, tryname); in recv_rename() 3046 changelist_rename(clp, name, newname); in recv_rename() 3059 (void) changelist_postfix(clp); in recv_rename() 3062 if (clp != NULL) in recv_rename() 3063 changelist_free(clp); in recv_rename() 3125 prop_changelist_t *clp; in recv_destroy() local [all …]
|
| /src/sys/fs/nfsclient/ |
| H A D | nfs_clstate.c | 205 #define NETFAMILY(clp) \ argument 206 (((clp)->nfsc_flags & NFSCLFLAGS_AFINET6) ? AF_INET6 : AF_INET) 217 struct nfsclclient *clp; in nfscl_open() local 243 ret = nfscl_getcl(vp->v_mount, cred, p, false, firstref, &clp); in nfscl_open() 260 LIST_FOREACH(dp, NFSCLDELEGHASH(clp, nfhp, fhlen), nfsdl_hash) { in nfscl_open() 280 ohp = &clp->nfsc_owner; in nfscl_open() 290 nfscl_newopen(clp, dp, &owp, &nowp, &op, &nop, own, nfhp, fhlen, in nfscl_open() 347 nfscl_newopen(struct nfsclclient *clp, struct nfscldeleg *dp, in nfscl_newopen() argument 366 nowp->nfsow_clp = clp; in nfscl_newopen() 375 LIST_INSERT_HEAD(&clp->nfsc_owner, nowp, nfsow_list); in nfscl_newopen() [all …]
|
| H A D | nfs_clvfsops.c | 1520 struct nfsclclient *clp; in mountnfs() local 1532 clp = NULL; in mountnfs() 1691 error = nfscl_getcl(mp, cred, td, tryminvers, true, &clp); in mountnfs() 1792 clp->nfsc_renew = NFSCL_RENEW(lease); in mountnfs() 1793 clp->nfsc_expire = NFSD_MONOSEC + clp->nfsc_renew; in mountnfs() 1794 clp->nfsc_clientidrev++; in mountnfs() 1795 if (clp->nfsc_clientidrev == 0) in mountnfs() 1796 clp->nfsc_clientidrev++; in mountnfs() 1802 nfscl_start_renewthread(clp); in mountnfs() 1803 nfscl_clientrelease(clp); in mountnfs() [all …]
|
| H A D | nfs_clport.c | 775 struct nfsclclient *clp; in start_nfscl() local 778 clp = (struct nfsclclient *)arg; in start_nfscl() 779 td = TAILQ_FIRST(&clp->nfsc_renewthread->p_threads); in start_nfscl() 780 nfscl_renewthread(clp, td); in start_nfscl() 785 nfscl_start_renewthread(struct nfsclclient *clp) in nfscl_start_renewthread() argument 788 kproc_create(start_nfscl, (void *)clp, &clp->nfsc_renewthread, 0, 0, in nfscl_start_renewthread()
|
| /src/lib/libc/rpc/ |
| H A D | clnt_raw.c | 87 struct clntraw_private *clp; in clnt_raw_create() local 93 if ((clp = clntraw_private) == NULL) { in clnt_raw_create() 94 clp = (struct clntraw_private *)calloc(1, sizeof (*clp)); in clnt_raw_create() 95 if (clp == NULL) { in clnt_raw_create() 102 clp->_raw_buf = __rpc_rawcombuf; in clnt_raw_create() 103 clntraw_private = clp; in clnt_raw_create() 105 xdrs = &clp->xdr_stream; in clnt_raw_create() 106 client = &clp->client_object; in clnt_raw_create() 116 xdrmem_create(xdrs, clp->u.mashl_callmsg, MCALL_MSG_SIZE, XDR_ENCODE); in clnt_raw_create() 119 clp->mcnt = XDR_GETPOS(xdrs); in clnt_raw_create() [all …]
|
| /src/sys/fs/nfsserver/ |
| H A D | nfs_nfsdstate.c | 143 static void nfsrv_dumpaclient(struct nfsclient *clp, 156 static int nfsrv_getstate(struct nfsclient *clp, nfsv4stateid_t *stateidp, 171 static int nfsrv_checkgrace(struct nfsrv_descript *nd, struct nfsclient *clp, 173 static int nfsrv_docallback(struct nfsclient *clp, int procnum, 176 static int nfsrv_cbcallargs(struct nfsrv_descript *nd, struct nfsclient *clp, 180 static u_int32_t nfsrv_nextstateindex(struct nfsclient *clp); 181 static void nfsrv_markstable(struct nfsclient *clp); 182 static void nfsrv_markreclaim(struct nfsclient *clp); 183 static int nfsrv_checkstable(struct nfsclient *clp); 184 static int nfsrv_clientconflict(struct nfsclient *clp, int *haslockp, struct [all …]
|
| H A D | nfs_nfsdserv.c | 4215 struct nfsclient *clp = NULL; in nfsrvd_setclientid() local 4246 clp = malloc(sizeof(struct nfsclient) + i, M_NFSDCLIENT, M_WAITOK | in nfsrvd_setclientid() 4248 clp->lc_stateid = malloc(sizeof(struct nfsstatehead) * in nfsrvd_setclientid() 4250 NFSINITSOCKMUTEX(&clp->lc_req.nr_mtx); in nfsrvd_setclientid() 4252 clp->lc_req.nr_nam = malloc(sizeof(struct sockaddr_in6), M_SONAME, in nfsrvd_setclientid() 4254 clp->lc_req.nr_cred = NULL; in nfsrvd_setclientid() 4255 NFSBCOPY(verf, clp->lc_verf, NFSX_VERF); in nfsrvd_setclientid() 4256 clp->lc_idlen = idlen; in nfsrvd_setclientid() 4257 error = nfsrv_mtostr(nd, clp->lc_id, idlen); in nfsrvd_setclientid() 4261 clp->lc_flags = LCL_GSS; in nfsrvd_setclientid() [all …]
|
| H A D | nfs_nfsdsocket.c | 714 struct nfsclient *clp, *nclp; in nfsrvd_compound() local 793 LIST_FOREACH_SAFE(clp, &NFSD_VNET(nfsclienthash)[i], in nfsrvd_compound() 795 if (clp->lc_flags & LCL_EXPIREIT) { in nfsrvd_compound() 796 if (!LIST_EMPTY(&clp->lc_open) || in nfsrvd_compound() 797 !LIST_EMPTY(&clp->lc_deleg)) in nfsrvd_compound() 798 nfsrv_writestable(clp->lc_id, in nfsrvd_compound() 799 clp->lc_idlen, NFSNST_REVOKE, p); in nfsrvd_compound() 800 nfsrv_cleanclient(clp, p, false, NULL); in nfsrvd_compound() 801 nfsrv_freedeleglist(&clp->lc_deleg); in nfsrvd_compound() 802 nfsrv_freedeleglist(&clp->lc_olddeleg); in nfsrvd_compound() [all …]
|
| /src/crypto/krb5/src/lib/rpc/ |
| H A D | clnt_raw.c | 93 struct clntraw_private *clp; in clntraw_create() local 99 clntraw_private = calloc(1, sizeof(*clp)); in clntraw_create() 103 clp = clntraw_private; in clntraw_create() 104 xdrs = &clp->xdr_stream; in clntraw_create() 105 client = &clp->client_object; in clntraw_create() 113 xdrmem_create(xdrs, clp->u.mashl_callmsg, MCALL_MSG_SIZE, XDR_ENCODE); in clntraw_create() 117 clp->mcnt = XDR_GETPOS(xdrs); in clntraw_create() 123 xdrmem_create(xdrs, clp->_raw_buf, UDPMSGSIZE, XDR_FREE); in clntraw_create() 143 struct clntraw_private *clp = clntraw_private; in clntraw_call() local 144 XDR *xdrs = &clp->xdr_stream; in clntraw_call() [all …]
|
| /src/usr.sbin/rpc.umntall/ |
| H A D | rpc.umntall.c | 172 CLIENT *clp; in do_umntall() local 176 clp = clnt_create_timed(hostname, MOUNTPROG, MOUNTVERS, "udp", in do_umntall() 178 if (clp == NULL) { in do_umntall() 182 clp->cl_auth = authunix_create_default(); in do_umntall() 183 clnt_stat = clnt_call(clp, MOUNTPROC_UMNTALL, in do_umntall() 187 warnx("%s: %s", hostname, clnt_sperror(clp, "MOUNTPROC_UMNTALL")); in do_umntall() 188 auth_destroy(clp->cl_auth); in do_umntall() 189 clnt_destroy(clp); in do_umntall() 200 CLIENT *clp; in do_umount() local 204 clp = clnt_create_timed(hostname, MOUNTPROG, MOUNTVERS, "udp", in do_umount() [all …]
|
| /src/usr.bin/gprof/ |
| H A D | arcs.c | 449 cltype *clp; in cycleanalyze() local 496 for ( clp = cyclehead ; clp ; ) { in cycleanalyze() 497 endlist = &clp -> list[ clp -> size ]; in cycleanalyze() 498 for ( arcpp = clp -> list ; arcpp < endlist ; arcpp++ ) in cycleanalyze() 501 clp = clp -> next; in cycleanalyze() 502 free( clp ); in cycleanalyze() 557 cltype *clp; in addcycle() local 569 for ( clp = cyclehead ; clp ; clp = clp -> next ) { in addcycle() 570 if ( clp -> size != size ) in addcycle() 573 endlist = &clp -> list[ size ]; in addcycle() [all …]
|
| /src/sys/cam/ |
| H A D | cam_iosched.c | 603 static void cam_iosched_cl_maybe_steer(struct control_loop *clp); 661 cam_iosched_cl_init(struct control_loop *clp, struct cam_iosched_softc *isc) in cam_iosched_cl_init() argument 664 clp->next_steer = sbinuptime(); in cam_iosched_cl_init() 665 clp->softc = isc; in cam_iosched_cl_init() 666 clp->steer_interval = SBT_1S * 5; /* Let's start out steering every 5s */ in cam_iosched_cl_init() 667 clp->lolat = 5 * SBT_1MS; in cam_iosched_cl_init() 668 clp->hilat = 15 * SBT_1MS; in cam_iosched_cl_init() 669 clp->alpha = 20; /* Alpha == gain. 20 = .2 */ in cam_iosched_cl_init() 670 clp->type = set_max; in cam_iosched_cl_init() 674 cam_iosched_cl_maybe_steer(struct control_loop *clp) in cam_iosched_cl_maybe_steer() argument [all …]
|
| /src/sbin/mount_nfs/ |
| H A D | mount_nfs.c | 770 CLIENT *clp; in nfs_tryproto() local 852 clp = clnt_tli_create(RPC_ANYFD, nconf, &nfs_nb, NFS_PROGRAM, nfsvers, in nfs_tryproto() 854 if (clp == NULL) { in nfs_tryproto() 867 if (!clnt_control(clp, CLSET_CONNECT, (char *)&doconnect)) { in nfs_tryproto() 868 clnt_destroy(clp); in nfs_tryproto() 878 clntstat = clnt_call(clp, NFSPROC_NULL, (xdrproc_t)xdr_void, NULL, in nfs_tryproto() 882 clnt_destroy(clp); in nfs_tryproto() 886 clnt_geterr(clp, &rpcerr); in nfs_tryproto() 888 hostp, spec, clnt_sperror(clp, "NFSPROC_NULL")); in nfs_tryproto() 889 clnt_destroy(clp); in nfs_tryproto() [all …]
|
| /src/sbin/umount/ |
| H A D | umount.c | 341 CLIENT *clp; in umountfs() local 440 clp = clnt_create(hostp, MOUNTPROG, MOUNTVERS3, proto_ptr); in umountfs() 441 if (clp == NULL) { in umountfs() 447 clp->cl_auth = authsys_create_default(); in umountfs() 450 clnt_stat = clnt_call(clp, MOUNTPROC_UMNT, (xdrproc_t)xdr_dir, in umountfs() 454 clnt_sperror(clp, "RPCMNT_UMOUNT")); in umountfs() 468 auth_destroy(clp->cl_auth); in umountfs() 469 clnt_destroy(clp); in umountfs()
|
| /src/contrib/tcpdump/ |
| H A D | print-atm.c | 430 uint8_t cell_type, func_type, payload, clp; in oam_print() local 446 clp = cell_header&0x1; in oam_print() 452 clp, length); in oam_print()
|
| /src/sys/fs/nfs/ |
| H A D | nfs_commonkrpc.c | 670 struct nfsclient *clp, struct nfssockreq *nrp, vnode_t vp, in newnfs_request() argument 753 if (clp != NULL) { in newnfs_request() 755 if ((clp->lc_flags & LCL_GSS) && nfsrv_gsscallbackson) { in newnfs_request() 758 if (clp->lc_flags & LCL_GSSINTEGRITY) in newnfs_request() 760 else if (clp->lc_flags & LCL_GSSPRIVACY) in newnfs_request() 925 if (clp == NULL) { in newnfs_request() 971 if (clp != NULL && sep != NULL) in newnfs_request() 1129 (clp != NULL && i == NFSV4OP_CBSEQUENCE && j != 0)) { in newnfs_request() 1140 (clp != NULL && i == NFSV4OP_CBSEQUENCE && in newnfs_request() 1316 (nd->nd_flag & ND_NFSV4) && (clp != NULL || in newnfs_request()
|
| H A D | nfsrvstate.h | 60 #define NFSSTATEHASH(clp, id) \ argument 61 (&((clp)->lc_stateid[(id).other[2] % nfsrv_statehashsize]))
|
| /src/sys/powerpc/mpc85xx/ |
| H A D | fsl_sata.c | 991 struct fsl_sata_cmd_list *clp; in fsl_sata_execute_transaction() local 1010 clp = FSL_SATA_CLP(ch, slot); in fsl_sata_execute_transaction() 1011 clp->fis_length = htole16(fis_size); in fsl_sata_execute_transaction() 1012 clp->prd_length = htole16(slot->dma.nsegs); in fsl_sata_execute_transaction() 1028 clp->cmd_flags = htole32(cmd_flags | in fsl_sata_execute_transaction() 1031 clp->ttl = htole32(slot->ttl); in fsl_sata_execute_transaction() 1032 clp->cda = htole32(FSL_SATA_CTP_BUS(ch, slot)); in fsl_sata_execute_transaction() 1178 struct fsl_sata_cmd_list *clp; in fsl_sata_end_transaction() local 1184 clp = FSL_SATA_CLP(ch, slot); in fsl_sata_end_transaction() 1219 ccb->ataio.dxfer_len - le32toh(clp->ttl); in fsl_sata_end_transaction() [all …]
|