Home
last modified time | relevance | path

Searched refs:fs (Results 1 – 25 of 736) sorted by relevance

12345678910>>...30

/openbsd/src/usr.bin/tmux/
Dcmd-find.c177 cmd_find_best_session_with_window(struct cmd_find_state *fs) in cmd_find_best_session_with_window() argument
183 log_debug("%s: window is @%u", __func__, fs->w->id); in cmd_find_best_session_with_window()
187 if (!session_has(s, fs->w)) in cmd_find_best_session_with_window()
194 fs->s = cmd_find_best_session(slist, ssize, fs->flags); in cmd_find_best_session_with_window()
195 if (fs->s == NULL) in cmd_find_best_session_with_window()
198 return (cmd_find_best_winlink_with_window(fs)); in cmd_find_best_session_with_window()
210 cmd_find_best_winlink_with_window(struct cmd_find_state *fs) in cmd_find_best_winlink_with_window() argument
214 log_debug("%s: window is @%u", __func__, fs->w->id); in cmd_find_best_winlink_with_window()
217 if (fs->s->curw != NULL && fs->s->curw->window == fs->w) in cmd_find_best_winlink_with_window()
218 wl = fs->s->curw; in cmd_find_best_winlink_with_window()
[all …]
/openbsd/src/gnu/gcc/gcc/config/pa/
Dhpux-unwind.h111 _Unwind_FrameState *fs) in pa_fallback_frame_state() argument
150 fs->cfa_how = CFA_REG_OFFSET; in pa_fallback_frame_state()
151 fs->cfa_reg = 30; in pa_fallback_frame_state()
152 fs->cfa_offset = 0; in pa_fallback_frame_state()
154 fs->retaddr_column = 0; in pa_fallback_frame_state()
155 fs->regs.reg[0].how = REG_SAVED_OFFSET; in pa_fallback_frame_state()
156 fs->regs.reg[0].loc.offset = -24; in pa_fallback_frame_state()
159 uw_update_context (context, fs); in pa_fallback_frame_state()
162 return uw_frame_state_for (context, fs); in pa_fallback_frame_state()
170 fs->cfa_how = CFA_REG_OFFSET; in pa_fallback_frame_state()
[all …]
/openbsd/src/sys/ufs/ffs/
Dffs_alloc.c61 #define ffs_fserr(fs, uid, cp) do { \ argument
63 (fs)->fs_fsmnt, (cp)); \
67 struct buf * ffs_cgread(struct fs *, struct inode *, u_int);
74 daddr_t ffs_mapsearch(struct fs *, struct cg *, daddr_t, int);
103 struct fs *fs; in ffs_alloc() local
109 fs = ip->i_fs; in ffs_alloc()
111 if ((u_int)size > fs->fs_bsize || fragoff(fs, size) != 0) { in ffs_alloc()
113 ip->i_dev, fs->fs_bsize, size, fs->fs_fsmnt); in ffs_alloc()
119 if (size == fs->fs_bsize && fs->fs_cstotal.cs_nbfree == 0) in ffs_alloc()
121 if (cred->cr_uid != 0 && freespace(fs, fs->fs_minfree) <= 0) in ffs_alloc()
[all …]
Dfs.h193 struct fs { struct
345 #define fs_rotbl(fs) \ argument
346 (((fs)->fs_postblformat == FS_42POSTBLFMT) \
347 ? ((fs)->fs_space) \
348 : ((u_int8_t *)((u_int8_t *)(fs) + (fs)->fs_rotbloff)))
356 #define CGSIZE(fs) \ argument
358 /* blktot size */ (fs)->fs_cpg * sizeof(int32_t) + \
359 /* blks size */ (fs)->fs_cpg * (fs)->fs_nrpos * sizeof(int16_t) + \
360 /* inode map */ howmany((fs)->fs_ipg, NBBY) + \
361 /* block map */ howmany((fs)->fs_fpg, NBBY) + \
[all …]
Dffs_vfsops.c70 int ffs_validate(struct fs *);
72 void ffs1_compat_read(struct fs *, struct ufsmount *, daddr_t);
73 void ffs1_compat_write(struct fs *, struct ufsmount *);
105 struct fs *fs; in ffs_checkrange() local
109 fs = VFSTOUFS(mp)->um_fs; in ffs_checkrange()
110 if (ino < ROOTINO || ino >= fs->fs_ncg * fs->fs_ipg) in ffs_checkrange()
117 if (fs->fs_magic != FS_UFS2_MAGIC) in ffs_checkrange()
120 cg = ino_to_cg(fs, ino); in ffs_checkrange()
123 error = bread(ump->um_devvp, fsbtodb(fs, cgtod(fs, cg)), in ffs_checkrange()
124 (int)fs->fs_cgsize, &bp); in ffs_checkrange()
[all …]
Dffs_balloc.c74 struct fs *fs; in ffs1_balloc() local
85 fs = ip->i_fs; in ffs1_balloc()
87 lbn = lblkno(fs, startoffset); in ffs1_balloc()
88 size = blkoff(fs, startoffset) + size; in ffs1_balloc()
89 if (size > fs->fs_bsize) in ffs1_balloc()
101 nb = lblkno(fs, ip->i_ffs1_size); in ffs1_balloc()
103 osize = blksize(fs, ip, nb); in ffs1_balloc()
104 if (osize < fs->fs_bsize && osize > 0) { in ffs1_balloc()
107 osize, (int)fs->fs_bsize, cred, bpp, &newb); in ffs1_balloc()
111 ip->i_ffs1_size = lblktosize(fs, nb + 1); in ffs1_balloc()
[all …]
Dffs_subr.c59 struct fs *fs; in ffs_bufatoff() local
66 fs = ip->i_fs; in ffs_bufatoff()
67 lbn = lblkno(fs, offset); in ffs_bufatoff()
68 bsize = blksize(fs, ip, lbn); in ffs_bufatoff()
71 if ((error = bread(vp, lbn, fs->fs_bsize, &bp)) != 0) { in ffs_bufatoff()
77 *res = (char *)bp->b_data + blkoff(fs, offset); in ffs_bufatoff()
83 void ffs_fragacct(struct fs *, int, int32_t[], int);
84 int ffs_isfreeblock(struct fs *, u_char *, daddr_t);
85 int ffs_isblock(struct fs *, u_char *, daddr_t);
86 void ffs_clrblock(struct fs *, u_char *, daddr_t);
[all …]
/openbsd/src/usr.sbin/amd/amd/
Dsrvr_afs.c55 fserver *fs = localhost; in find_afs_srvr() local
57 if (!fs) { in find_afs_srvr()
58 fs = ALLOC(fserver); in find_afs_srvr()
59 fs->fs_refc = 0; in find_afs_srvr()
60 fs->fs_host = strdup("localhost"); in find_afs_srvr()
61 fs->fs_ip = 0; in find_afs_srvr()
62 fs->fs_cid = 0; in find_afs_srvr()
63 fs->fs_pinger = 0; in find_afs_srvr()
64 fs->fs_flags = FSF_VALID; in find_afs_srvr()
65 fs->fs_type = "local"; in find_afs_srvr()
[all …]
Dsrvr_nfs.c93 fserver *fs = 0; in flush_srvr_nfs_cache() local
95 ITER(fs, fserver, &nfs_srvr_list) { in flush_srvr_nfs_cache()
96 nfs_private *np = (nfs_private *) fs->fs_private; in flush_srvr_nfs_cache()
148 fserver *fs = 0; in got_portmap() local
153 ITER(fs, fserver, &nfs_srvr_list) in got_portmap()
154 if (fs == fs2) in got_portmap()
157 if (fs == fs2) { in got_portmap()
160 nfs_private *np = (nfs_private *) fs->fs_private; in got_portmap()
163 dlog("got port (%d) for mountd on %s", port, fs->fs_host); in got_portmap()
176 dlog("Error fetching port for mountd on %s", fs->fs_host); in got_portmap()
[all …]
/openbsd/src/usr.sbin/makefs/ffs/
Dffs_alloc.c63 static int32_t ffs_mapsearch(struct fs *, struct cg *, daddr_t, int);
88 struct fs *fs = ip->i_fs; in ffs_alloc() local
93 if (size > fs->fs_bsize || fragoff(fs, size) != 0) { in ffs_alloc()
95 fs->fs_bsize, size); in ffs_alloc()
97 if (size == fs->fs_bsize && fs->fs_cstotal.cs_nbfree == 0) in ffs_alloc()
99 if (bpref >= fs->fs_size) in ffs_alloc()
102 cg = ino_to_cg(fs, ip->i_number); in ffs_alloc()
104 cg = dtog(fs, bpref); in ffs_alloc()
145 struct fs *fs; in ffs_blkpref_ufs1() local
149 fs = ip->i_fs; in ffs_blkpref_ufs1()
[all …]
Dffs_balloc.c75 struct fs *fs = ip->i_fs; in ffs_balloc_ufs1() local
83 lbn = lblkno(fs, offset); in ffs_balloc_ufs1()
84 size = blkoff(fs, offset) + bufsize; in ffs_balloc_ufs1()
89 assert(size <= fs->fs_bsize); in ffs_balloc_ufs1()
99 lastlbn = lblkno(fs, ip->i_ffs1_size); in ffs_balloc_ufs1()
102 osize = blksize(fs, ip, nb); in ffs_balloc_ufs1()
103 if (osize < fs->fs_bsize && osize > 0) { in ffs_balloc_ufs1()
115 if (nb != 0 && ip->i_ffs1_size >= lblktosize(fs, lbn + 1)) { in ffs_balloc_ufs1()
125 error = bread(ip->i_devvp, lbn, fs->fs_bsize, in ffs_balloc_ufs1()
140 osize = fragroundup(fs, blkoff(fs, ip->i_ffs1_size)); in ffs_balloc_ufs1()
[all …]
/openbsd/src/sys/ufs/ext2fs/
Dext2fs_alloc.c83 struct m_ext2fs *fs; in ext2fs_alloc() local
88 fs = ip->i_e2fs; in ext2fs_alloc()
93 if (fs->e2fs.e2fs_fbcount == 0) in ext2fs_alloc()
95 if (cred->cr_uid != 0 && freespace(fs) <= 0) in ext2fs_alloc()
97 if (bpref >= fs->e2fs.e2fs_bcount) in ext2fs_alloc()
100 cg = ino_to_cg(fs, ip->i_number); in ext2fs_alloc()
102 cg = dtog(fs, bpref); in ext2fs_alloc()
103 bno = ext2fs_hashalloc(ip, cg, bpref, fs->e2fs_bsize, ext2fs_alloccg); in ext2fs_alloc()
105 ip->i_e2fs_nblock += btodb(fs->e2fs_bsize); in ext2fs_alloc()
111 ext2fs_fserr(fs, cred->cr_uid, "file system full"); in ext2fs_alloc()
[all …]
Dext2fs_vfsops.c109 struct m_ext2fs *fs; in ext2fs_mountroot() local
135 fs = ump->um_e2fs; in ext2fs_mountroot()
136 memset(fs->e2fs_fsmnt, 0, sizeof(fs->e2fs_fsmnt)); in ext2fs_mountroot()
137 strlcpy(fs->e2fs_fsmnt, mp->mnt_stat.f_mntonname, sizeof(fs->e2fs_fsmnt)); in ext2fs_mountroot()
138 if (fs->e2fs.e2fs_rev > E2FS_REV0) { in ext2fs_mountroot()
139 memset(fs->e2fs.e2fs_fsmnt, 0, sizeof(fs->e2fs.e2fs_fsmnt)); in ext2fs_mountroot()
140 strlcpy(fs->e2fs.e2fs_fsmnt, mp->mnt_stat.f_mntonname, in ext2fs_mountroot()
141 sizeof(fs->e2fs.e2fs_fsmnt)); in ext2fs_mountroot()
145 inittodr(fs->e2fs.e2fs_wtime); in ext2fs_mountroot()
161 struct m_ext2fs *fs; in ext2fs_mount() local
[all …]
/openbsd/src/gnu/gcc/gcc/config/i386/
Dlinux-unwind.h44 _Unwind_FrameState *fs) in x86_64_fallback_frame_state() argument
64 fs->cfa_how = CFA_REG_OFFSET; in x86_64_fallback_frame_state()
66 fs->cfa_reg = 7; in x86_64_fallback_frame_state()
67 fs->cfa_offset = new_cfa - (long) context->cfa; in x86_64_fallback_frame_state()
70 fs->regs.reg[0].how = REG_SAVED_OFFSET; in x86_64_fallback_frame_state()
71 fs->regs.reg[0].loc.offset = (long)&sc->rax - new_cfa; in x86_64_fallback_frame_state()
72 fs->regs.reg[1].how = REG_SAVED_OFFSET; in x86_64_fallback_frame_state()
73 fs->regs.reg[1].loc.offset = (long)&sc->rdx - new_cfa; in x86_64_fallback_frame_state()
74 fs->regs.reg[2].how = REG_SAVED_OFFSET; in x86_64_fallback_frame_state()
75 fs->regs.reg[2].loc.offset = (long)&sc->rcx - new_cfa; in x86_64_fallback_frame_state()
[all …]
/openbsd/src/sbin/fsck_ffs/
Dpass5.c67 struct fs *fs = &sblock; in pass5() local
81 memset(newcg, 0, (size_t)fs->fs_cgsize); in pass5()
83 if (fs->fs_maxcontig < 2 && fs->fs_contigsumsize > 0) { in pass5()
87 fs->fs_contigsumsize = 0; in pass5()
92 if (fs->fs_maxcontig > 1) { in pass5()
95 if (fs->fs_contigsumsize < 1) { in pass5()
97 } else if (fs->fs_contigsumsize < fs->fs_maxcontig && in pass5()
98 fs->fs_contigsumsize < FS_MAXCONTIG) { in pass5()
102 i = fs->fs_contigsumsize; in pass5()
103 fs->fs_contigsumsize = in pass5()
[all …]
/openbsd/src/gnu/gcc/gcc/config/soft-fp/
Dop-common.h42 #define _FP_UNPACK_CANONICAL(fs, wc, X) \ argument
47 _FP_FRAC_HIGH_RAW_##fs(X) |= _FP_IMPLBIT_##fs; \
49 X##_e -= _FP_EXPBIAS_##fs; \
61 _shift -= _FP_FRACXBITS_##fs; \
63 X##_e -= _FP_EXPBIAS_##fs - 1 + _shift; \
69 case _FP_EXPMAX_##fs: \
76 if (!(_FP_FRAC_HIGH_RAW_##fs(X) & _FP_QNANBIT_##fs)) \
86 #define _FP_UNPACK_SEMIRAW(fs, wc, X) _FP_FRAC_SLL_##wc(X, _FP_WORKBITS) argument
90 #define _FP_OVERFLOW_SEMIRAW(fs, wc, X) \ argument
96 X##_e = _FP_EXPMAX_##fs; \
[all …]
/openbsd/src/sbin/fsck_ext2fs/
Dpass5.c54 struct m_ext2fs *fs = &sblock; in pass5() local
68 ibmap = malloc(fs->e2fs_bsize); in pass5()
69 bbmap = malloc(fs->e2fs_bsize); in pass5()
74 for (c = 0; c < fs->e2fs_ncg; c++) { in pass5()
80 nifree = fs->e2fs.e2fs_ipg; in pass5()
84 blk_bitmap = getdatablk(letoh32(fs->e2fs_gd[c].ext2bgd_b_bitmap), in pass5()
85 fs->e2fs_bsize); in pass5()
87 getblk(blk_bitmap, letoh32(fs->e2fs_gd[c].ext2bgd_b_bitmap), in pass5()
88 fs->e2fs_bsize); in pass5()
91 ino_bitmap = getdatablk(letoh32(fs->e2fs_gd[c].ext2bgd_i_bitmap), in pass5()
[all …]
/openbsd/src/usr.sbin/quotaon/
Dquotaon.c56 int hasquota(struct fstab *fs, int type, char **qfnamep, int force);
57 int quotaonoff(struct fstab *fs, int offmode, int type, char *qfpathname);
59 int readonly(struct fstab *fs);
65 struct fstab *fs; in main() local
108 while ((fs = getfsent()) != NULL) { in main()
109 if (strcmp(fs->fs_type, FSTAB_RW)) in main()
111 if (strcmp(fs->fs_vfstype, "ffs") && in main()
112 strcmp(fs->fs_vfstype, "ufs") && in main()
113 strcmp(fs->fs_vfstype, "mfs")) in main()
116 if (gflag && hasquota(fs, GRPQUOTA, &qfnp, 0)) in main()
[all …]
/openbsd/src/gnu/gcc/gcc/config/sh/
Dlinux-unwind.h63 _Unwind_FrameState *fs) in shmedia_fallback_frame_state() argument
97 fs->cfa_how = CFA_REG_OFFSET; in shmedia_fallback_frame_state()
98 fs->cfa_reg = 15; in shmedia_fallback_frame_state()
99 fs->cfa_offset = new_cfa - (long) context->cfa; in shmedia_fallback_frame_state()
106 fs->regs.reg[i].how = REG_SAVED_OFFSET; in shmedia_fallback_frame_state()
107 fs->regs.reg[i].loc.offset in shmedia_fallback_frame_state()
111 fs->regs.reg[SH_DWARF_FRAME_SR].how = REG_SAVED_OFFSET; in shmedia_fallback_frame_state()
112 fs->regs.reg[SH_DWARF_FRAME_SR].loc.offset in shmedia_fallback_frame_state()
118 fs->regs.reg[r+i].how = REG_SAVED_OFFSET; in shmedia_fallback_frame_state()
119 fs->regs.reg[r+i].loc.offset in shmedia_fallback_frame_state()
[all …]
/openbsd/src/sys/arch/landisk/stand/xxboot/
Dufs12.c83 struct fs *f_fs; /* pointer to super-block */
111 static void ffs_oldfscompat(struct fs *);
121 struct fs *fs = fp->f_fs; in read_inode() local
129 buf = alloc(fs->fs_bsize); in read_inode()
132 fsbtodb(fs, ino_to_fsba(fs, inumber)), fs->fs_bsize, buf, &rsize); in read_inode()
135 if (rsize != (size_t)fs->fs_bsize) { in read_inode()
144 fp->f_di.i2 = dp[ino_to_fsbo(fs, inumber)]; in read_inode()
149 fp->f_di.i1 = dp[ino_to_fsbo(fs, inumber)]; in read_inode()
164 free(buf, fs->fs_bsize); in read_inode()
176 struct fs *fs = fp->f_fs;
[all …]
/openbsd/src/sys/lib/libsa/
Dufs2.c81 struct fs *f_fs; /* pointer to super-block */
104 static void ffs_oldfscompat(struct fs *);
114 struct fs *fs = fp->f_fs; in read_inode() local
122 buf = alloc(fs->fs_bsize); in read_inode()
125 fsbtodb(fs, ino_to_fsba(fs, inumber)), fs->fs_bsize, buf, &rsize); in read_inode()
128 if (rsize != (size_t)fs->fs_bsize) { in read_inode()
137 fp->f_di = dp[ino_to_fsbo(fs, inumber)]; in read_inode()
152 free(buf, fs->fs_bsize); in read_inode()
163 struct fs *fs = fp->f_fs; in chmod_inode() local
171 buf = alloc(fs->fs_bsize); in chmod_inode()
[all …]
Dufs.c82 struct fs *f_fs; /* pointer to super-block */
105 static void ffs_oldfscompat(struct fs *);
115 struct fs *fs = fp->f_fs; in read_inode() local
123 buf = alloc(fs->fs_bsize); in read_inode()
126 fsbtodb(fs, (daddr32_t)ino_to_fsba(fs, inumber)), fs->fs_bsize, in read_inode()
130 if (rsize != (size_t)fs->fs_bsize) { in read_inode()
139 fp->f_di = dp[ino_to_fsbo(fs, inumber)]; in read_inode()
154 free(buf, fs->fs_bsize); in read_inode()
165 struct fs *fs = fp->f_fs; in chmod_inode() local
173 buf = alloc(fs->fs_bsize); in chmod_inode()
[all …]
/openbsd/src/gnu/usr.bin/gcc/gcc/
Dunwind-dw2.c279 _Unwind_FrameState *fs) in extract_cie_info() argument
290 fs->eh_ptr = read_pointer (p); in extract_cie_info()
297 p = read_uleb128 (p, &fs->code_align); in extract_cie_info()
298 p = read_sleb128 (p, &fs->data_align); in extract_cie_info()
299 fs->retaddr_column = *p++; in extract_cie_info()
300 fs->lsda_encoding = DW_EH_PE_omit; in extract_cie_info()
310 fs->saw_z = 1; in extract_cie_info()
320 fs->lsda_encoding = *p++; in extract_cie_info()
327 fs->fde_encoding = *p++; in extract_cie_info()
335 (_Unwind_Ptr *) &fs->personality); in extract_cie_info()
[all …]
/openbsd/src/gnu/gcc/gcc/config/sparc/
Dlinux-unwind.h40 _Unwind_FrameState *fs) in sparc64_fallback_frame_state() argument
56 fs->cfa_how = CFA_REG_OFFSET; in sparc64_fallback_frame_state()
57 fs->cfa_reg = 14; in sparc64_fallback_frame_state()
58 fs->cfa_offset = new_cfa - (long) context->cfa; in sparc64_fallback_frame_state()
61 fs->regs.reg[i].how = REG_SAVED_OFFSET; in sparc64_fallback_frame_state()
62 fs->regs.reg[i].loc.offset = in sparc64_fallback_frame_state()
67 fs->regs.reg[i + 16].how = REG_SAVED_OFFSET; in sparc64_fallback_frame_state()
68 fs->regs.reg[i + 16].loc.offset = in sparc64_fallback_frame_state()
77 fs->regs.reg[i + 32].how = REG_SAVED_OFFSET; in sparc64_fallback_frame_state()
78 fs->regs.reg[i + 32].loc.offset = in sparc64_fallback_frame_state()
[all …]
/openbsd/src/gnu/gcc/gcc/
Dunwind-dw2.c374 _Unwind_FrameState *fs) in extract_cie_info() argument
385 fs->eh_ptr = read_pointer (p); in extract_cie_info()
392 p = read_uleb128 (p, &fs->code_align); in extract_cie_info()
393 p = read_sleb128 (p, &fs->data_align); in extract_cie_info()
395 fs->retaddr_column = *p++; in extract_cie_info()
397 p = read_uleb128 (p, &fs->retaddr_column); in extract_cie_info()
398 fs->lsda_encoding = DW_EH_PE_omit; in extract_cie_info()
408 fs->saw_z = 1; in extract_cie_info()
418 fs->lsda_encoding = *p++; in extract_cie_info()
425 fs->fde_encoding = *p++; in extract_cie_info()
[all …]

12345678910>>...30