/netbsd-src/external/bsd/tmux/dist/ |
H A D | cmd-find.c | 176 cmd_find_best_session_with_window(struct cmd_find_state *fs) in cmd_find_best_session_with_window() argument 182 log_debug("%s: window is @%u", __func__, fs->w->id); in cmd_find_best_session_with_window() 186 if (!session_has(s, fs->w)) in cmd_find_best_session_with_window() 193 fs->s = cmd_find_best_session(slist, ssize, fs->flags); in cmd_find_best_session_with_window() 194 if (fs->s == NULL) in cmd_find_best_session_with_window() 197 return (cmd_find_best_winlink_with_window(fs)); in cmd_find_best_session_with_window() 209 cmd_find_best_winlink_with_window(struct cmd_find_state *fs) in cmd_find_best_winlink_with_window() argument 213 log_debug("%s: window is @%u", __func__, fs->w->id); in cmd_find_best_winlink_with_window() 216 if (fs->s->curw != NULL && fs->s->curw->window == fs->w) in cmd_find_best_winlink_with_window() 217 wl = fs->s->curw; in cmd_find_best_winlink_with_window() [all …]
|
/netbsd-src/sbin/newfs_lfs/ |
H A D | make_lfs.c | 276 maxfilesize(struct lfs *fs, int bshift) in maxfilesize() argument 281 nptr = (1 << bshift) / LFS_BLKPTRSIZE(fs); in maxfilesize() 292 make_dinode(ino_t ino, union lfs_dinode *dip, int nfrags, struct lfs *fs) in make_dinode() argument 298 nblocks = howmany(nfrags, lfs_sb_getfrag(fs)); in make_dinode() 300 nfrags = roundup(nfrags, lfs_sb_getfrag(fs)); in make_dinode() 302 lfs_dino_setnlink(fs, dip, 1); in make_dinode() 303 lfs_dino_setblocks(fs, dip, nfrags); in make_dinode() 305 lfs_dino_setsize(fs, dip, nfrags << lfs_sb_getffshift(fs)); in make_dinode() 306 t = lfs_sb_gettstamp(fs); in make_dinode() 307 lfs_dino_setatime(fs, dip, t); in make_dinode() [all …]
|
/netbsd-src/sbin/fsck_lfs/ |
H A D | pass6.c | 89 error = ulfs_bmaparray(fs, vp, lbn, &daddr, a, &num); in rfw_update_single() 94 daddr = LFS_DBTOFSB(fs, daddr); in rfw_update_single() 96 frags = lfs_numfrags(fs, size); in rfw_update_single() 99 ooff = lfs_dino_getdb(fs, ip->i_din, lbn); in rfw_update_single() 101 lfs_dino_setblocks(fs, ip->i_din, in rfw_update_single() 102 lfs_dino_getblocks(fs, ip->i_din) + frags); in rfw_update_single() 105 ofrags = lfs_numfrags(fs, ip->i_lfs_fragsize[lbn]); in rfw_update_single() 106 lfs_dino_setblocks(fs, ip->i_din, in rfw_update_single() 107 lfs_dino_getblocks(fs, ip->i_din) + (frags - ofrags)); in rfw_update_single() 109 lfs_dino_setdb(fs, ip->i_din, lbn, ndaddr); in rfw_update_single() [all …]
|
H A D | segwrite.c | 111 lfs_match_data(struct lfs * fs, struct ubuf * bp) in lfs_match_data() argument 117 lfs_match_indir(struct lfs * fs, struct ubuf * bp) in lfs_match_indir() argument 122 return (lbn < 0 && (-lbn - ULFS_NDADDR) % LFS_NINDIR(fs) == 0); in lfs_match_indir() 126 lfs_match_dindir(struct lfs * fs, struct ubuf * bp) in lfs_match_dindir() argument 131 return (lbn < 0 && (-lbn - ULFS_NDADDR) % LFS_NINDIR(fs) == 1); in lfs_match_dindir() 135 lfs_match_tindir(struct lfs * fs, struct ubuf * bp) in lfs_match_tindir() argument 140 return (lbn < 0 && (-lbn - ULFS_NDADDR) % LFS_NINDIR(fs) == 2); in lfs_match_tindir() 147 lfs_segwrite(struct lfs * fs, int flags) in lfs_segwrite() argument 155 lfs_seglock(fs, flags | SEGM_CKP); in lfs_segwrite() 156 sp = fs->lfs_sp; in lfs_segwrite() [all …]
|
H A D | setup.c | 124 nptr = (1 << bshift) / LFS_BLKPTRSIZE(fs); in calcmaxfilesize() 211 fs = lfs_init(fsreadfd, bflag, idaddr, 0, debug); in setup() 212 if (fs == NULL) { in setup() 219 bufrehash((lfs_sb_getsegtabsz(fs) + maxino / lfs_sb_getifpb(fs)) << 4); in setup() 221 if (lfs_sb_getpflags(fs) & LFS_PF_CLEAN) { in setup() 241 tdaddr = lfs_sntod(fs, lfs_dtosn(fs, idaddr)); in setup() 242 if (lfs_sntod(fs, lfs_dtosn(fs, tdaddr)) == tdaddr) { in setup() 243 if (tdaddr == lfs_sb_gets0addr(fs)) in setup() 244 tdaddr += lfs_btofsb(fs, LFS_LABELPAD); in setup() 246 if (lfs_sb_getsboff(fs, i) == tdaddr) in setup() [all …]
|
/netbsd-src/external/gpl3/gcc.old/dist/libgcc/config/pa/ |
H A D | hpux-unwind.h | 110 _Unwind_FrameState *fs) in pa_fallback_frame_state() argument 149 fs->regs.cfa_how = CFA_REG_OFFSET; in pa_fallback_frame_state() 150 fs->regs.cfa_reg = 30; in pa_fallback_frame_state() 151 fs->regs.cfa_offset = 0; in pa_fallback_frame_state() 153 fs->retaddr_column = 0; in pa_fallback_frame_state() 154 fs->regs.reg[0].how = REG_SAVED_OFFSET; in pa_fallback_frame_state() 155 fs->regs.reg[0].loc.offset = -24; in pa_fallback_frame_state() 158 uw_update_context (context, fs); in pa_fallback_frame_state() 161 return uw_frame_state_for (context, fs); in pa_fallback_frame_state() 169 fs->regs.cfa_how = CFA_REG_OFFSET; in pa_fallback_frame_state() [all …]
|
/netbsd-src/external/gpl3/gcc/dist/libgcc/config/pa/ |
H A D | hpux-unwind.h | 110 _Unwind_FrameState *fs) in pa_fallback_frame_state() argument 149 fs->regs.cfa_how = CFA_REG_OFFSET; in pa_fallback_frame_state() 150 fs->regs.cfa_reg = 30; in pa_fallback_frame_state() 151 fs->regs.cfa_offset = 0; in pa_fallback_frame_state() 153 fs->retaddr_column = 0; in pa_fallback_frame_state() 154 fs->regs.reg[0].how = REG_SAVED_OFFSET; in pa_fallback_frame_state() 155 fs->regs.reg[0].loc.offset = -24; in pa_fallback_frame_state() 158 uw_update_context (context, fs); in pa_fallback_frame_state() 161 return uw_frame_state_for (context, fs); in pa_fallback_frame_state() 169 fs->regs.cfa_how = CFA_REG_OFFSET; in pa_fallback_frame_state() [all …]
|
/netbsd-src/sys/ufs/lfs/ |
H A D | lfs_subr.c | 102 lfs_setup_resblks(struct lfs *fs) in lfs_setup_resblks() argument 107 ASSERT_NO_SEGLOCK(fs); in lfs_setup_resblks() 108 fs->lfs_resblk = malloc(LFS_N_TOTAL * sizeof(res_t), M_SEGMENT, in lfs_setup_resblks() 111 fs->lfs_resblk[i].inuse = 0; in lfs_setup_resblks() 112 fs->lfs_resblk[i].p = NULL; in lfs_setup_resblks() 115 LIST_INIT(fs->lfs_reshash + i); in lfs_setup_resblks() 122 fs->lfs_resblk[i].size = lfs_sb_getsumsize(fs); in lfs_setup_resblks() 124 fs->lfs_resblk[i].size = LFS_SBPAD; in lfs_setup_resblks() 126 fs->lfs_resblk[i].size = lfs_sb_getbsize(fs); in lfs_setup_resblks() 128 fs->lfs_resblk[i].size = MAXPHYS; in lfs_setup_resblks() [all …]
|
H A D | lfs_segment.c | 119 #define LFS_PARTIAL_FITS(fs) \ argument 120 (lfs_sb_getfsbpseg(fs) - \ 121 (lfs_sb_getoffset(fs) - lfs_sb_getcurseg(fs)) > \ 122 lfs_sb_getfrag(fs)) 128 #define LFS_SHOULD_CHECKPOINT(fs, flags) \ argument 130 ((fs->lfs_nactive > LFS_MAX_ACTIVE || \ 132 lfs_sb_getnclean(fs) < LFS_MAX_ACTIVE))) 138 int lfs_writevnodes(struct lfs *fs, struct mount *mp, 166 lfs_imtime(struct lfs *fs) in lfs_imtime() argument 171 ASSERT_MAYBE_SEGLOCK(fs); in lfs_imtime() [all …]
|
H A D | lfs_accessors.h | 188 #define LFS_SWAP_int16_t(fs, val) (val) argument 189 #define LFS_SWAP_int32_t(fs, val) (val) argument 190 #define LFS_SWAP_int64_t(fs, val) (val) argument 191 #define LFS_SWAP_uint16_t(fs, val) (val) argument 192 #define LFS_SWAP_uint32_t(fs, val) (val) argument 193 #define LFS_SWAP_uint64_t(fs, val) (val) argument 195 #define LFS_SWAP_int16_t(fs, val) \ argument 196 ((fs)->lfs_dobyteswap ? (int16_t)bswap16(val) : (val)) 197 #define LFS_SWAP_int32_t(fs, val) \ argument 198 ((fs)->lfs_dobyteswap ? (int32_t)bswap32(val) : (val)) [all …]
|
H A D | lfs_alloc.c | 114 lfs_extend_ifile(struct lfs *fs, kauth_cred_t cred) in lfs_extend_ifile() argument 127 ASSERT_SEGLOCK(fs); in lfs_extend_ifile() 136 vp = fs->lfs_ivnode; in lfs_extend_ifile() 138 blkno = lfs_lblkno(fs, ip->i_size); in lfs_extend_ifile() 139 if ((error = lfs_balloc(vp, ip->i_size, lfs_sb_getbsize(fs), cred, 0, in lfs_extend_ifile() 143 ip->i_size += lfs_sb_getbsize(fs); in lfs_extend_ifile() 144 lfs_dino_setsize(fs, ip->i_din, ip->i_size); in lfs_extend_ifile() 152 maxino = ((ip->i_size >> lfs_sb_getbshift(fs)) - lfs_sb_getcleansz(fs) - in lfs_extend_ifile() 153 lfs_sb_getsegtabsz(fs)) * lfs_sb_getifpb(fs); in lfs_extend_ifile() 154 fs->lfs_ino_bitmap = (lfs_bm_t *) in lfs_extend_ifile() [all …]
|
H A D | lfs_rfw.c | 97 lfs_rf_valloc(struct lfs *fs, ino_t ino, int vers, struct lwp *l, in lfs_rf_valloc() argument 105 ASSERT_SEGLOCK(fs); /* XXX it doesn't, really */ in lfs_rf_valloc() 112 error = VFS_VGET(fs->lfs_ivnode->v_mount, ino, LK_EXCLUSIVE, &vp); in lfs_rf_valloc() 123 lfs_dino_setgen(fs, ip->i_din, vers); in lfs_rf_valloc() 128 ino, vers, lfs_dino_getgen(fs, ip->i_din))); in lfs_rf_valloc() 141 error = vcache_new(fs->lfs_ivnode->v_mount, NULL, &va, NOCRED, NULL, in lfs_rf_valloc() 153 lfs_dino_setnlink(fs, ip->i_din, 1); in lfs_rf_valloc() 163 update_meta(struct lfs *fs, ino_t ino, int vers, daddr_t lbn, in update_meta() argument 180 if ((error = lfs_rf_valloc(fs, ino, vers, l, &vp)) != 0) { in update_meta() 186 if ((error = lfs_balloc(vp, (lbn << lfs_sb_getbshift(fs)), size, in update_meta() [all …]
|
H A D | lfs_bio.c | 123 lfs_fits_buf(struct lfs *fs, int n, int bytes) in lfs_fits_buf() argument 127 ASSERT_NO_SEGLOCK(fs); in lfs_fits_buf() 153 lfs_reservebuf(struct lfs *fs, struct vnode *vp, in lfs_reservebuf() argument 158 ASSERT_MAYBE_SEGLOCK(fs); in lfs_reservebuf() 162 cantwait = (VTOI(vp)->i_state & IN_ADIROP) || fs->lfs_unlockvp == vp; in lfs_reservebuf() 164 while (!cantwait && n > 0 && !lfs_fits_buf(fs, n, bytes)) { in lfs_reservebuf() 167 lfs_flush(fs, 0, 0); in lfs_reservebuf() 206 lfs_reserveavail(struct lfs *fs, struct vnode *vp, in lfs_reserveavail() argument 214 ASSERT_MAYBE_SEGLOCK(fs); in lfs_reserveavail() 217 cantwait = (VTOI(vp)->i_state & IN_ADIROP) || fs->lfs_unlockvp == vp; in lfs_reserveavail() [all …]
|
H A D | lfs_vfsops.c | 282 SYSCTL_DESCR("How many dirty pages in fs triggers" 393 struct lfs *fs; in lfs_writerd() local 457 fs = VFSTOULFS(mp)->um_lfs; in lfs_writerd() 462 ooffset = lfs_sb_getoffset(fs); in lfs_writerd() 464 if (lfs_sb_getnextseg(fs) < lfs_sb_getcurseg(fs) && fs->lfs_nowrap) { in lfs_writerd() 469 if (LFS_STARVED_FOR_SEGS(fs)) { in lfs_writerd() 473 lfs_wakeup_cleaner(fs); in lfs_writerd() 477 if ((fs in lfs_writerd() 583 struct lfs *fs = NULL; /* LFS */ lfs_mountroot() local 625 struct lfs *fs = NULL; /* LFS */ lfs_mount() local 825 lfs_checkmagic(struct lfs * fs) lfs_checkmagic() argument 862 struct lfs *fs; lfs_mountfs() local 1329 struct lfs *fs; lfs_unmount() local 1382 struct lfs *fs; lfs_flushfiles() local 1456 struct lfs *fs; lfs_statvfs() local 1509 struct lfs *fs; lfs_sync() local 1571 struct lfs *fs = ump->um_lfs; lfs_init_vnode() local 1623 struct lfs *fs; lfs_loadvnode() local 1778 struct lfs *fs; lfs_newvnode() local 1874 struct lfs *fs; lfs_fhtovp() local 1927 lfs_issequential_hole(const struct lfs * fs,daddr_t daddr0,daddr_t daddr1) lfs_issequential_hole() argument 1982 struct lfs *fs = ip->i_lfs; lfs_gop_write() local 2294 struct lfs *fs = ump->um_lfs; lfs_vinit() local 2367 lfs_resize_fs(struct lfs * fs,int newnsegs) lfs_resize_fs() argument [all...] |
/netbsd-src/sys/ufs/ffs/ |
H A D | ffs_alloc.c | 114 static void ffs_fserr(struct fs *, kauth_cred_t, const char *); 118 static int32_t ffs_mapsearch(struct fs *, struct cg *, 120 static void ffs_blkfree_common(struct ufsmount *, struct fs *, dev_t, struct buf *, 122 static void ffs_freefile_common(struct ufsmount *, struct fs *, dev_t, struct buf *, ino_t, 134 ffs_check_bad_allocation(const char *func, struct fs *fs, daddr_t bno, in ffs_check_bad_allocation() argument 137 if ((u_int)size > fs->fs_bsize || ffs_fragoff(fs, size) != 0 || in ffs_check_bad_allocation() 138 ffs_fragnum(fs, bno) + ffs_numfrags(fs, size) > fs->fs_frag) { in ffs_check_bad_allocation() 141 (long long)dev, bno, fs->fs_bsize, size, fs->fs_fsmnt); in ffs_check_bad_allocation() 144 if (bno >= fs->fs_size) { in ffs_check_bad_allocation() 147 ffs_fserr(fs, NOCRED, "bad block"); in ffs_check_bad_allocation() [all …]
|
H A D | fs.h | 1 /* $NetBSD: fs.h,v 1.73 2024/12/13 22:32:45 riastradh Exp $ */ 31 * @(#)fs.h 8.13 (Berkeley) 3/21/95 53 * For file system fs, the offsets of the various blocks of interest 55 * [fs->fs_sblkno] Super-block 56 * [fs->fs_cblkno] Cylinder group block 57 * [fs->fs_iblkno] Inode blocks 58 * [fs->fs_dblkno] Data blocks 59 * The beginning of cylinder group cg in fs, is given by 60 * the ``cgbase(fs, cg)'' macro. 126 * information in the inode, using the ``ffs_blksize(fs, i 256 struct fs { global() struct 257 fs_firstfieldfs global() argument 258 fs_unused_1fs global() argument 259 fs_sblknofs global() argument 260 fs_cblknofs global() argument 261 fs_iblknofs global() argument 262 fs_dblknofs global() argument 263 fs_old_cgoffsetfs global() argument 264 fs_old_cgmaskfs global() argument 265 fs_old_timefs global() argument 266 fs_old_sizefs global() argument 267 fs_old_dsizefs global() argument 268 fs_ncgfs global() argument 269 fs_bsizefs global() argument 270 fs_fsizefs global() argument 271 fs_fragfs global() argument 273 fs_minfreefs global() argument 274 fs_old_rotdelayfs global() argument 275 fs_old_rpsfs global() argument 277 fs_bmaskfs global() argument 278 fs_fmaskfs global() argument 279 fs_bshiftfs global() argument 280 fs_fshiftfs global() argument 282 fs_maxcontigfs global() argument 283 fs_maxbpgfs global() argument 285 fs_fragshiftfs global() argument 286 fs_fsbtodbfs global() argument 287 fs_sbsizefs global() argument 288 fs_spare1fs global() argument 290 fs_nindirfs global() argument 291 fs_inopbfs global() argument 292 fs_old_nspffs global() argument 294 fs_optimfs global() argument 296 fs_old_npsectfs global() argument 297 fs_old_interleavefs global() argument 298 fs_old_trackskewfs global() argument 300 fs_idfs global() argument 302 fs_old_csaddrfs global() argument 303 fs_cssizefs global() argument 304 fs_cgsizefs global() argument 306 fs_spare2fs global() argument 307 fs_old_nsectfs global() argument 308 fs_old_spcfs global() argument 309 fs_old_ncylfs global() argument 310 fs_old_cpgfs global() argument 311 fs_ipgfs global() argument 312 fs_fpgfs global() argument 314 fs_old_cstotalfs global() argument 316 fs_fmodfs global() argument 317 fs_cleanfs global() argument 318 fs_ronlyfs global() argument 319 fs_old_flagsfs global() argument 320 fs_fsmntfs global() argument 321 fs_volnamefs global() argument 322 fs_swuidfs global() argument 323 fs_padfs global() argument 325 fs_cgrotorfs global() argument 326 fs_ocspfs global() argument 327 fs_contigdirsfs global() argument 328 fs_cspfs global() argument 329 fs_maxclusterfs global() argument 330 fs_activefs global() argument 331 fs_old_cpcfs global() argument 333 fs_maxbsizefs global() argument 334 fs_journal_versionfs global() argument 335 fs_journal_locationfs global() argument 336 fs_journal_reservedfs global() argument 337 fs_journal_flagsfs global() argument 338 fs_journallocsfs global() argument 339 fs_quota_magicfs global() argument 340 fs_quota_flagsfs global() argument 341 fs_quota_reservedfs global() argument 342 fs_quotafilefs global() argument 343 fs_sparecon64fs global() argument 344 fs_sblocklocfs global() argument 345 fs_cstotalfs global() argument 346 fs_timefs global() argument 347 fs_sizefs global() argument 348 fs_dsizefs global() argument 349 fs_csaddrfs global() argument 350 fs_pendingblocksfs global() argument 351 fs_pendinginodesfs global() argument 352 fs_snapinumfs global() argument 354 fs_avgfilesizefs global() argument 355 fs_avgfpdirfs global() argument 356 fs_save_cgsizefs global() argument 357 fs_sparecon32fs global() argument 358 fs_flagsfs global() argument 360 fs_contigsumsizefs global() argument 361 fs_maxsymlinklenfs global() argument 362 fs_old_inodefmtfs global() argument 363 fs_maxfilesizefs global() argument 364 fs_qbmaskfs global() argument 365 fs_qfmaskfs global() argument 366 fs_statefs global() argument 367 fs_old_postblformatfs global() argument 368 fs_old_nrposfs global() argument 369 fs_spare5fs global() argument 371 fs_magicfs global() argument 391 old_fs_rotbl(fs) global() argument 460 ACTIVECG_SET(fs,cg) global() argument 465 ACTIVECG_CLR(fs,cg) global() argument 470 ACTIVECG_ISSET(fs,cg) global() argument 479 CGSIZE_IF(fs,ipg,fpg) global() argument 489 CGSIZE(fs) global() argument 500 fs_cs(fs,indx) global() argument 567 old_cg_blks_old(fs,cgp,cylno,ns) global() argument 573 old_cg_blks_new(fs,cgp,cylno,ns) global() argument 580 old_cg_blks(fs,cgp,cylno,ns) global() argument 622 FFS_FSBTODB(fs,b) global() argument 623 FFS_DBTOFSB(fs,b) global() argument 625 FFS_FSBTODB(fs,b) global() argument 626 FFS_DBTOFSB(fs,b) global() argument 633 cgbase(fs,c) global() argument 634 cgstart_ufs1(fs,c) global() argument 636 cgstart_ufs2(fs,c) global() argument 637 cgstart(fs,c) global() argument 639 cgdmin(fs,c) global() argument 640 cgimin(fs,c) global() argument 641 cgsblock(fs,c) global() argument 642 cgtod(fs,c) global() argument 650 ino_to_cg(fs,x) global() argument 651 ino_to_fsba(fs,x) global() argument 654 ino_to_fsbo(fs,x) global() argument 660 dtog(fs,d) global() argument 661 dtogd(fs,d) global() argument 667 blkmap(fs,map,loc) global() argument 669 old_cbtocylno(fs,bno) global() argument 671 old_cbtorpos(fs,bno) global() argument 682 ffs_blkoff(fs,loc) global() argument 684 ffs_fragoff(fs,loc) global() argument 686 ffs_lfragtosize(fs,frag) global() argument 688 ffs_lblktosize(fs,blk) global() argument 690 ffs_lblkno(fs,loc) global() argument 692 ffs_numfrags(fs,loc) global() argument 694 ffs_blkroundup(fs,size) global() argument 696 ffs_fragroundup(fs,size) global() argument 698 ffs_fragstoblks(fs,frags) global() argument 700 ffs_blkstofrags(fs,blks) global() argument 702 ffs_fragnum(fs,fsb) global() argument 704 ffs_blknum(fs,fsb) global() argument 706 ffs_getdb(fs,ip,lb) global() argument 710 ffs_getib(fs,ip,lb) global() argument 719 freespace(fs,percentreserved) global() argument 727 ffs_blksize(fs,ip,lbn) global() argument 732 ffs_sblksize(fs,size,lbn) global() argument 741 FFS_INOPB(fs) global() argument 742 FFS_INOPF(fs) global() argument 747 FFS_NINDIR(fs) global() argument [all...] |
/netbsd-src/usr.sbin/makefs/ffs/ |
H A D | ffs_alloc.c | 75 static int32_t ffs_mapsearch(struct fs *, struct cg *, daddr_t, int); 104 struct fs *fs = ip->i_fs; in ffs_alloc() local 109 if (size > fs->fs_bsize || ffs_fragoff(fs, size) != 0) { in ffs_alloc() 111 fs->fs_bsize, size); in ffs_alloc() 113 if (size == fs->fs_bsize && fs->fs_cstotal.cs_nbfree == 0) in ffs_alloc() 115 if (bpref >= fs->fs_size) in ffs_alloc() 118 cg = ino_to_cg(fs, ip->i_number); in ffs_alloc() 120 cg = dtog(fs, bpref); in ffs_alloc() 161 struct fs *fs; in ffs_blkpref_ufs1() local 165 fs = ip->i_fs; in ffs_blkpref_ufs1() [all …]
|
/netbsd-src/lib/librefuse/refuse/ |
H A D | fs.c | 95 struct fuse_fs* fs; in __fuse_fs_new() local 97 fs = malloc(sizeof(struct fuse_fs)); in __fuse_fs_new() 98 if (!fs) in __fuse_fs_new() 104 fs->op = clone_op(op, op_version); in __fuse_fs_new() 105 if (!fs->op) in __fuse_fs_new() 108 fs->op_version = op_version; in __fuse_fs_new() 109 fs->user_data = user_data; in __fuse_fs_new() 111 return fs; in __fuse_fs_new() 118 clobber_context_user_data(struct fuse_fs* fs) { in clobber_context_user_data() argument 119 fuse_get_context()->private_data = fs->user_data; in clobber_context_user_data() [all …]
|
/netbsd-src/external/bsd/kyua-cli/dist/utils/fs/ |
H A D | operations_test.cpp | 57 namespace fs = utils::fs; 98 const fs::path previous = fs::current_path(); in ATF_TEST_CASE_BODY() 99 fs::mkdir(fs::path("root"), 0755); in ATF_TEST_CASE_BODY() 101 const fs::path cwd = fs::current_path(); in ATF_TEST_CASE_BODY() 110 const fs::path previous = fs::current_path(); in ATF_TEST_CASE_BODY() 111 fs::mkdir(fs::path("root"), 0755); in ATF_TEST_CASE_BODY() 115 (void)fs::current_path(); in ATF_TEST_CASE_BODY() 117 } catch (const fs::system_error& e) { in ATF_TEST_CASE_BODY() 126 const fs::path dir("dir"); in ATF_TEST_CASE_BODY() 127 ATF_REQUIRE(!fs::exists(dir)); in ATF_TEST_CASE_BODY() [all …]
|
/netbsd-src/external/bsd/am-utils/dist/amd/ |
H A D | srvr_amfs_auto.c | 65 fserver *fs = localhost; in amfs_generic_find_srvr() local 67 if (!fs) { in amfs_generic_find_srvr() 68 fs = ALLOC(struct fserver); in amfs_generic_find_srvr() 69 fs->fs_refc = 0; in amfs_generic_find_srvr() 70 fs->fs_host = xstrdup("localhost"); in amfs_generic_find_srvr() 71 fs->fs_ip = NULL; in amfs_generic_find_srvr() 72 fs->fs_cid = 0; in amfs_generic_find_srvr() 73 fs->fs_pinger = AM_PINGER; in amfs_generic_find_srvr() 74 fs->fs_flags = FSF_VALID | FSF_PING_UNINIT; in amfs_generic_find_srvr() 75 fs->fs_type = "local"; in amfs_generic_find_srvr() [all …]
|
H A D | srvr_nfs.c | 121 flush_srvr_nfs_cache(fserver *fs) in flush_srvr_nfs_cache() argument 126 if (fs == NULL || fs == fs2) { in flush_srvr_nfs_cache() 189 fserver *fs = NULL; in got_portmap() local 194 ITER(fs, fserver, &nfs_srvr_list) in got_portmap() 195 if (fs == fs2) in got_portmap() 198 if (fs == fs2) { in got_portmap() 201 nfs_private *np = (nfs_private *) fs->fs_private; in got_portmap() 204 dlog("got port (%d) for mountd on %s", (int) port, fs->fs_host); in got_portmap() 215 dlog("Error fetching port for mountd on %s", fs->fs_host); in got_portmap() 223 if (fs->fs_flags & FSF_WANT) in got_portmap() [all …]
|
/netbsd-src/external/mit/lua/dist/src/ |
H A D | lcode.c | 45 static int codesJ (FuncState *fs, OpCode o, int sj, int k); 80 static TValue *const2val (FuncState *fs, const expdesc *e) { in const2val() argument 82 return &fs->ls->dyd->actvar.arr[e->u.info].k; in const2val() 90 int luaK_exp2const (FuncState *fs, const expdesc *e, TValue *v) { in luaK_exp2const() argument 104 setsvalue(fs->ls->L, v, e->u.strval); in luaK_exp2const() 108 setobj(fs->ls->L, v, const2val(fs, e)); in luaK_exp2const() 122 static Instruction *previousinstruction (FuncState *fs) { in previousinstruction() argument 124 if (fs->pc > fs->lasttarget) in previousinstruction() 125 return &fs->f->code[fs->pc - 1]; /* previous instruction */ in previousinstruction() 137 void luaK_nil (FuncState *fs, int from, int n) { in luaK_nil() argument [all …]
|
/netbsd-src/libexec/lfs_cleanerd/ |
H A D | lfs_cleanerd.c | 141 reinit_fs(struct clfs *fs) in reinit_fs() argument 145 memcpy(fsname, lfs_sb_getfsmnt(fs), sizeof(fsname)); in reinit_fs() 148 kops.ko_close(fs->clfs_ifilefd); in reinit_fs() 149 kops.ko_close(fs->clfs_devfd); in reinit_fs() 150 fd_reclaim(fs->clfs_devvp); in reinit_fs() 151 fd_reclaim(fs->lfs_ivnode); in reinit_fs() 152 free(fs->clfs_dev); in reinit_fs() 153 free(fs->clfs_segtab); in reinit_fs() 154 free(fs->clfs_segtabp); in reinit_fs() 156 return init_fs(fs, fsname); in reinit_fs() [all …]
|
H A D | fdfs.c | 63 struct fdfs *fs; in fd_vget() local 67 fs = malloc(sizeof(*fs)); in fd_vget() 68 if (fs == NULL) in fd_vget() 71 fs->fd_bufp = malloc(nseg * sizeof(struct fd_buf)); in fd_vget() 72 if (fs->fd_bufp == NULL) { in fd_vget() 73 free(fs); in fd_vget() 77 fs->fd_bufp[i].start = 0x0; in fd_vget() 78 fs->fd_bufp[i].end = 0x0; in fd_vget() 79 fs->fd_bufp[i].buf = malloc(segsize); in fd_vget() 80 if (fs->fd_bufp[i].buf == NULL) { in fd_vget() [all …]
|
/netbsd-src/sys/ufs/ext2fs/ |
H A D | ext2fs_alloc.c | 120 struct m_ext2fs *fs; in ext2fs_alloc() local 125 fs = ip->i_e2fs; in ext2fs_alloc() 130 if (fs->e2fs.e2fs_fbcount == 0) in ext2fs_alloc() 134 freespace(fs) <= 0) in ext2fs_alloc() 136 if (bpref >= fs->e2fs.e2fs_bcount) in ext2fs_alloc() 139 cg = ino_to_cg(fs, ip->i_number); in ext2fs_alloc() 141 cg = dtog(fs, bpref); in ext2fs_alloc() 142 bno = (daddr_t)ext2fs_hashalloc(ip, cg, bpref, fs->e2fs_bsize, in ext2fs_alloc() 145 ext2fs_setnblock(ip, ext2fs_nblock(ip) + btodb(fs->e2fs_bsize)); in ext2fs_alloc() 151 ext2fs_fserr(fs, kauth_cred_geteuid(cred), "file system full"); in ext2fs_alloc() [all …]
|