/titanic_44/usr/src/cmd/sendmail/src/ |
H A D | bf.c | 110 struct bf *bfp; local 134 bfp = (struct bf *) sm_malloc(sizeof(struct bf)); 135 if (bfp == NULL) 145 bfp->bf_buf = (char *) sm_malloc(bsize); 146 if (bfp->bf_buf == NULL) 148 bfp->bf_bufsize = 0; 149 sm_free(bfp); 155 bfp->bf_buf = NULL; 158 bfp->bf_committed = false; 159 bfp->bf_ondisk = false; [all …]
|
/titanic_44/usr/src/uts/common/io/ |
H A D | bridge.c | 412 bridge_fwd_t *bfp, match; in bridge_ioc_listfwd() local 422 if ((bfp = avl_find(&bip->bi_fwd, &match, &where)) == NULL) in bridge_ioc_listfwd() 423 bfp = avl_nearest(&bip->bi_fwd, where, AVL_AFTER); in bridge_ioc_listfwd() 425 bfp = AVL_NEXT(&bip->bi_fwd, bfp); in bridge_ioc_listfwd() 426 if (bfp == NULL) { in bridge_ioc_listfwd() 429 bcopy(bfp->bf_dest, blf->blf_dest, ETHERADDRL); in bridge_ioc_listfwd() 430 blf->blf_trill_nick = bfp->bf_trill_nick; in bridge_ioc_listfwd() 432 drv_hztousec(ddi_get_lbolt() - bfp->bf_lastheard) / 1000; in bridge_ioc_listfwd() 434 (bfp->bf_flags & BFF_LOCALADDR) != 0; in bridge_ioc_listfwd() 435 blf->blf_linkid = bfp->bf_links[0]->bl_linkid; in bridge_ioc_listfwd() [all …]
|
/titanic_44/usr/src/uts/common/fs/ |
H A D | fs_subr.c | 224 fs_frlock(vnode_t *vp, int cmd, struct flock64 *bfp, int flag, offset_t offset, in fs_frlock() argument 244 bfp->l_pid = ttoproc(curthread)->p_pid; in fs_frlock() 245 bfp->l_sysid = 0; in fs_frlock() 271 bfp->l_pid = ttoproc(curthread)->p_pid; in fs_frlock() 272 bfp->l_sysid = 0; in fs_frlock() 275 (bfp->l_type == F_RDLCK || bfp->l_type == F_WRLCK)) { in fs_frlock() 283 mode = (bfp->l_type == F_RDLCK) ? in fs_frlock() 300 bfp->l_pid = ttoproc(curthread)->p_pid; in fs_frlock() 301 bfp->l_sysid = 0; in fs_frlock() 311 nlmid = GETNLMID(bfp->l_sysid); in fs_frlock() [all …]
|
H A D | fem.c | 1142 vhead_frlock(vnode_t *vp, int cmd, struct flock64 *bfp, int flag, in vhead_frlock() argument 1156 errc = (*func)(arg0, cmd, bfp, flag, offset, flk_cbp, cr, ct); in vhead_frlock() 1164 errc = (*func)(arg0, cmd, bfp, flag, offset, flk_cbp, cr, ct); in vhead_frlock() 1171 vhead_space(vnode_t *vp, int cmd, struct flock64 *bfp, int flag, in vhead_space() argument 1184 errc = (*func)(arg0, cmd, bfp, flag, offset, cr, ct); in vhead_space() 1191 errc = (*func)(arg0, cmd, bfp, flag, offset, cr, ct); in vhead_space() 2428 vnext_frlock(femarg_t *vf, int cmd, struct flock64 *bfp, int flag, in vnext_frlock() argument 2440 return ((*func)(arg0, cmd, bfp, flag, offset, flk_cbp, cr, ct)); in vnext_frlock() 2444 vnext_space(femarg_t *vf, int cmd, struct flock64 *bfp, int flag, in vnext_space() argument 2455 return ((*func)(arg0, cmd, bfp, flag, offset, cr, ct)); in vnext_space()
|
/titanic_44/usr/src/uts/common/io/cpqary3/ |
H A D | cpqary3_scsi.c | 76 struct buf *bfp; in cpqary3_build_cmdlist() local 85 bfp = (struct buf *)cpqary3_cmdpvtp->pvt_pkt->bf; in cpqary3_build_cmdlist() 124 DTRACE_PROBE2(build_cmdlist_buf, struct buf *, bfp, in cpqary3_build_cmdlist() 127 if (bfp && (bfp->b_flags & B_READ)) in cpqary3_build_cmdlist() 129 else if (bfp && (bfp->b_flags & B_WRITE)) in cpqary3_build_cmdlist()
|
/titanic_44/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_deleg_ops.c | 293 deleg_rd_space(femarg_t *arg, int cmd, flock64_t *bfp, int flag, in deleg_rd_space() argument 304 return (vnext_space(arg, cmd, bfp, flag, offset, cr, ct)); in deleg_rd_space() 308 deleg_wr_space(femarg_t *arg, int cmd, flock64_t *bfp, int flag, in deleg_wr_space() argument 322 return (vnext_space(arg, cmd, bfp, flag, offset, cr, ct)); in deleg_wr_space()
|
H A D | nfs_vnops.c | 4434 nfs_frlock(vnode_t *vp, int cmd, struct flock64 *bfp, int flag, offset_t offset, in nfs_frlock() argument 4450 switch (bfp->l_type) { in nfs_frlock() 4468 if (rc = flk_convert_lock_data(vp, bfp, &start, &end, offset)) in nfs_frlock() 4489 if (!lm_safelock(vp, bfp, cr)) in nfs_frlock() 4492 return (fs_frlock(vp, cmd, bfp, flag, offset, flk_cbp, cr, ct)); in nfs_frlock() 4504 if (!lm_safelock(vp, bfp, cr)) { in nfs_frlock() 4550 if (bfp->l_type != F_UNLCK) { in nfs_frlock() 4564 rc = lm_frlock(vp, cmd, bfp, flag, offset, cr, &lm_fh, flk_cbp); in nfs_frlock() 4585 nfs_space(vnode_t *vp, int cmd, struct flock64 *bfp, int flag, in nfs_space() argument 4597 if ((bfp->l_start > MAXOFF32_T) || (bfp->l_end > MAXOFF32_T) || in nfs_space() [all …]
|
H A D | nfs4_vnops.c | 10888 nfs4_frlock(vnode_t *vp, int cmd, struct flock64 *bfp, int flag, in nfs4_frlock() argument 10921 if (bfp->l_whence == 2) /* SEEK_END */ in nfs4_frlock() 10938 if (!nfs4_safelock(vp, bfp, cr)) in nfs4_frlock() 10941 return (fs_frlock(vp, cmd, bfp, flag, offset, flk_cbp, cr, ct)); in nfs4_frlock() 10954 rc = convoff(vp, bfp, 0, offset); in nfs4_frlock() 10958 if (bfp->l_type == F_UNLCK) { in nfs4_frlock() 10993 rc = flk_convert_lock_data(vp, bfp, &start, &end, offset); in nfs4_frlock() 11007 rc = nfs4frlock_get_sysid(&ls, vp, bfp); in nfs4_frlock() 11018 bfp->l_sysid |= LM_SYSID_CLIENT; in nfs4_frlock() 11021 bfp->l_pid = curproc->p_pid; in nfs4_frlock() [all …]
|
H A D | nfs3_vnops.c | 5346 nfs3_frlock(vnode_t *vp, int cmd, struct flock64 *bfp, int flag, in nfs3_frlock() argument 5363 switch (bfp->l_type) { in nfs3_frlock() 5381 if (rc = flk_convert_lock_data(vp, bfp, &start, &end, offset)) in nfs3_frlock() 5400 if (!lm_safelock(vp, bfp, cr)) in nfs3_frlock() 5403 return (fs_frlock(vp, cmd, bfp, flag, offset, flk_cbp, cr, ct)); in nfs3_frlock() 5415 if (!lm_safelock(vp, bfp, cr)) { in nfs3_frlock() 5461 if (bfp->l_type != F_UNLCK) { in nfs3_frlock() 5475 rc = lm4_frlock(vp, cmd, bfp, flag, offset, cr, &lm_fh3, flk_cbp); in nfs3_frlock() 5496 nfs3_space(vnode_t *vp, int cmd, struct flock64 *bfp, int flag, in nfs3_space() argument 5507 error = convoff(vp, bfp, 0, offset); in nfs3_space() [all …]
|
/titanic_44/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | net.c | 1362 const bridge_fwd_t *bfp = data; in do_bridge_fwd() local 1374 if ((nlinks = bfp->bf_nlinks) > MAX_FWD_LINKS) in do_bridge_fwd() 1378 (uintptr_t)bfp->bf_links) == -1) { in do_bridge_fwd() 1380 bfp->bf_links); in do_bridge_fwd() 1384 mdb_mac_addr(bfp->bf_dest, ETHERADDRL, macaddr, sizeof (macaddr)); in do_bridge_fwd() 1387 if (bfp->bf_flags & BFF_LOCALADDR) in do_bridge_fwd() 1390 mdb_printf("t-%-5d", args->lbolt - bfp->bf_lastheard); in do_bridge_fwd() 1391 mdb_printf(" %-7u ", bfp->bf_refs); in do_bridge_fwd() 1393 if (bfp->bf_trill_nick != 0) { in do_bridge_fwd() 1394 mdb_printf("%d\n", bfp->bf_trill_nick); in do_bridge_fwd() [all …]
|
/titanic_44/usr/src/uts/common/klm/ |
H A D | nlm_service.c | 1252 nlm_vop_frlock(vnode_t *vp, int cmd, flock64_t *bfp, int flag, offset_t offset, in nlm_vop_frlock() argument 1255 if (bfp->l_len != 0 && bfp->l_start + (bfp->l_len - 1) < bfp->l_start) { in nlm_vop_frlock() 1259 return (VOP_FRLOCK(vp, cmd, bfp, flag, offset, flk_cbp, cr, ct)); in nlm_vop_frlock()
|
/titanic_44/usr/src/lib/libshell/common/include/ |
H A D | name.h | 55 int (*bfp)(int,char*[],void*);/* builtin entry point function pointer */ member 139 #define funptr(n) ((n)->nvalue.bfp)
|
/titanic_44/usr/src/uts/common/sys/ |
H A D | fem.h | 213 int (*femop_frlock)(femarg_t *vf, int cmd, struct flock64 *bfp, \ 217 int (*femop_space)(femarg_t *vf, int cmd, struct flock64 *bfp, \ 354 extern int vnext_frlock(femarg_t *vf, int cmd, struct flock64 *bfp, 358 extern int vnext_space(femarg_t *vf, int cmd, struct flock64 *bfp,
|
/titanic_44/usr/src/cmd/sendmail/aux/ |
H A D | mail.local.c | 531 FILE *bfp, *hfp; local 539 if ((bfd = mkstemp(btn)) == -1 || (bfp = fdopen(bfd, "w+")) == NULL) { 639 fp = bfp; 705 fclose(bfp);
|
/titanic_44/usr/src/lib/smbsrv/libfksmbsrv/common/ |
H A D | fake_vop.c | 742 flock64_t *bfp, in fop_frlock() argument 761 if (fcntl(vp->v_fd, cmd, bfp) == -1) in fop_frlock() 772 flock64_t *bfp, in fop_space() argument 788 if (fcntl(vp->v_fd, cmd, bfp) == -1) in fop_space()
|
/titanic_44/usr/src/uts/common/fs/lofs/ |
H A D | lofs_vnops.c | 998 struct flock64 *bfp, in lo_frlock() argument 1006 return (VOP_FRLOCK(vp, cmd, bfp, flag, offset, flk_cbp, cr, ct)); in lo_frlock() 1013 struct flock64 *bfp, in lo_space() argument 1020 return (VOP_SPACE(vp, cmd, bfp, flag, offset, cr, ct)); in lo_space()
|
/titanic_44/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_fem.c | 532 flock64_t *bfp, in smb_fem_oplock_space() argument 543 rc = vnext_space(arg, cmd, bfp, flag, offset, cr, ct); in smb_fem_oplock_space()
|
/titanic_44/usr/src/uts/common/fs/smbclnt/smbfs/ |
H A D | smbfs_vnops.c | 2870 smbfs_frlock(vnode_t *vp, int cmd, struct flock64 *bfp, int flag, in smbfs_frlock() argument 2878 return (fs_frlock(vp, cmd, bfp, flag, offset, flk_cbp, cr, ct)); in smbfs_frlock() 2892 smbfs_space(vnode_t *vp, int cmd, struct flock64 *bfp, int flag, in smbfs_space() argument 2917 error = convoff(vp, bfp, 0, offset); in smbfs_space() 2919 ASSERT(bfp->l_start >= 0); in smbfs_space() 2920 if (bfp->l_len == 0) { in smbfs_space() 2930 if (error || va.va_size == bfp->l_start) in smbfs_space() 2933 va.va_size = bfp->l_start; in smbfs_space()
|
/titanic_44/usr/src/uts/common/fs/pcfs/ |
H A D | pc_vnops.c | 2013 struct flock64 *bfp, in pcfs_space() argument 2025 if ((error = convoff(vp, bfp, 0, offset)) == 0) { in pcfs_space() 2026 if ((bfp->l_start > UINT32_MAX) || (bfp->l_len > UINT32_MAX)) in pcfs_space() 2032 if (bfp->l_len != 0) in pcfs_space() 2035 vattr.va_size = bfp->l_start; in pcfs_space()
|
/titanic_44/usr/src/uts/common/fs/tmpfs/ |
H A D | tmp_vnops.c | 2315 struct flock64 *bfp, in tmp_space() argument 2325 if ((error = convoff(vp, bfp, 0, (offset_t)offset)) == 0) { in tmp_space() 2326 if ((bfp->l_start > MAXOFF_T) || (bfp->l_len > MAXOFF_T)) in tmp_space() 2328 error = tmp_freesp(vp, bfp, flag); in tmp_space() 2330 if (error == 0 && bfp->l_start == 0) in tmp_space()
|
/titanic_44/usr/src/cmd/boot/bootadm/ |
H A D | bootadm.c | 5171 FILE *bfp = NULL; local 5187 bfp = fopen(backup, "r"); 5188 if (bfp == NULL) { 5199 while (s_fgets(tmpsign, sizeof (tmpsign), bfp) != NULL) { 5225 if (bfp) { 5226 (void) fclose(bfp); 5227 bfp = NULL; 5240 assert(bfp == NULL); 6604 FILE *bfp; local 6618 bfp = fopen(backup, "r"); [all …]
|
/titanic_44/usr/src/uts/common/fs/udfs/ |
H A D | udf_vnops.c | 1586 struct flock64 *bfp, in udf_frlock() argument 1609 return (fs_frlock(vp, cmd, bfp, flag, offset, flk_cbp, cr, ct)); in udf_frlock() 1617 struct flock64 *bfp, in udf_space() argument 1629 } else if ((error = convoff(vp, bfp, 0, offset)) == 0) { in udf_space() 1630 error = ud_freesp(vp, bfp, flag, cr); in udf_space() 1632 if (error == 0 && bfp->l_start == 0) in udf_space()
|
/titanic_44/usr/src/uts/common/fs/cachefs/ |
H A D | cachefs_vnops.c | 257 struct flock64 *bfp, int flag, offset_t offset, 8386 cachefs_frlock(struct vnode *vp, int cmd, struct flock64 *bfp, int flag, in cachefs_frlock() argument 8424 return (fs_frlock(vp, cmd, bfp, flag, offset, flk_cbp, cr, ct)); in cachefs_frlock() 8458 if (bfp->l_whence == 2 && CFS_ISFS_BACKFS_NFSV4(fscp) == 0) { in cachefs_frlock() 8459 bfp->l_start += cp->c_size; in cachefs_frlock() 8460 bfp->l_whence = 0; in cachefs_frlock() 8480 if (bfp->l_type != F_UNLCK && cmd != F_GETLK && in cachefs_frlock() 8495 error = VOP_FRLOCK(backvp, cmd, bfp, flag, offset, NULL, cr, in cachefs_frlock() 8518 if ((error == 0) && (bfp->l_type != F_UNLCK) && (cmd != F_GETLK) && in cachefs_frlock() 8539 cachefs_space(struct vnode *vp, int cmd, struct flock64 *bfp, int flag, in cachefs_space() argument [all …]
|
/titanic_44/usr/src/uts/common/fs/dcfs/ |
H A D | dc_vnops.c | 393 dc_frlock(struct vnode *vp, int cmd, struct flock64 *bfp, int flag, in dc_frlock() argument 410 return (fs_frlock(vp, cmd, bfp, flag, offset, flk_cbp, cr, ctp)); in dc_frlock()
|
/titanic_44/usr/src/lib/libshell/common/sh/ |
H A D | path.c | 294 sh_addbuiltin(stakptr(offset),np->nvalue.bfp,NiL); in free_bltin() 829 (!(np = sh_addbuiltin(stakptr(PATH_OFFSET),NiL,NiL)) || np->nvalue.bfp!=addr) && in path_absolute() 859 np = sh_addbuiltin(stakptr(PATH_OFFSET),np->nvalue.bfp,nv_context(np)); in path_absolute()
|