Home
last modified time | relevance | path

Searched refs:fsp (Results 1 – 14 of 14) sorted by relevance

/original-bsd/libexec/lfs_cleanerd/
H A Dlibrary.c83 FS_INFO *fsp; local
92 if (get_superblock (fsp, &fsp->fi_lfs))
95 fsp->fi_lfs.lfs_bshift - fsp->fi_lfs.lfs_fsbtodb;
97 return (fsp);
112 if (statfs(fsp->fi_statfsp->f_mntonname, fsp->fi_statfsp))
148 FS_INFO *fsp; in get_ifile()
177 munmap((caddr_t)fsp->fi_cip, fsp->fi_ifile_length);
203 fsp->fi_segusep = (SEGUSE *)(ifp + CLEANSIZE(fsp));
204 fsp->fi_ifilep = (IFILE *)((caddr_t)fsp->fi_segusep + SEGTABSIZE(fsp));
212 fsp->fi_ifile_count = (fsp->fi_ifile_length >> fsp->fi_lfs.lfs_bshift -
[all …]
H A Dcleanerd.c88 cost_benefit(fsp, su) in cost_benefit() argument
102 lfsp = &fsp->fi_lfs;
130 FS_INFO *fsp; local
232 db_per_seg = fsbtodb(&fsp->fi_lfs, fsp->fi_lfs.lfs_ssize);
246 if ((fsp->fi_lfs.lfs_bfree - fsp->fi_lfs.lfs_avail > db_per_seg &&
249 (fsp->fi_cip->clean <= MIN_SEGS(&fsp->fi_lfs) ||
305 (fsp->fi_lfs.lfs_segshift + fsp->fi_lfs.lfs_bshift);
351 FS_INFO *fsp; in choose_segments()
360 lfsp = &fsp->fi_lfs;
392 clean_segment(fsp, id) in clean_segment() argument
[all …]
H A Dclean.h41 #define NUM_TO_CLEAN(fsp) (1) argument
69 #define CLEANSIZE(fsp) (fsp->fi_lfs.lfs_cleansz << fsp->fi_lfs.lfs_bshift) argument
70 #define SEGTABSIZE(fsp) (fsp->fi_lfs.lfs_segtabsz << fsp->fi_lfs.lfs_bshift) argument
/original-bsd/games/gomoku/
H A Dmakemove.c63 fsp = osp;
66 if (fsp->s_occ == BORDER)
68 if (fsp->s_flg & bmask)
72 cbp = fsp->s_frame[r];
83 cp = &fsp->s_fval[BLACK][r];
88 cp = &fsp->s_fval[WHITE][r];
93 sp = fsp;
103 fsp->s_flg |= bmask;
121 cp = &fsp->s_fval[us][r];
131 sp = fsp;
[all …]
H A Dpickmove.c388 register struct spotstr *sp, *fsp; variable
412 fsp = osp;
414 if (fsp->s_occ == BORDER)
416 if (fsp->s_flg & bmask)
446 fcbp = fsp->s_frame[r];
517 register struct spotstr *sp, *fsp; local
548 fsp = &board[cbp->c_vertex];
551 if (fsp->s_flg & (FFLAG << r))
566 if (fsp->s_occ == EMPTY) {
572 makecombo(cbp, fsp, 0, cb.s);
[all …]
/original-bsd/sbin/swapon/
H A Dswapon.c28 register struct fstab *fsp; local
46 while (fsp = getfsent()) {
47 if (strcmp(fsp->fs_type, FSTAB_SW))
49 if (add(fsp->fs_spec, 1))
53 fsp->fs_spec);
/original-bsd/sbin/fsck/
H A Dpreen.c55 register struct fstab *fsp; local
69 while ((fsp = getfsent()) != 0) {
70 if ((auxdata = (*docheck)(fsp)) == 0)
73 (passno == 1 && fsp->fs_passno == 1)) {
74 if ((name = blockcheck(fsp->fs_spec)) != 0) {
76 fsp->fs_file, auxdata, 0)) != 0)
80 } else if (passno == 2 && fsp->fs_passno > 1) {
81 if ((name = blockcheck(fsp->fs_spec)) == NULL) {
83 fsp->fs_spec);
87 addpart(name, fsp->fs_file, auxdata);
H A Dmain.c36 static int docheck __P((struct fstab *fsp));
134 docheck(fsp) in docheck() argument
135 register struct fstab *fsp; in docheck()
138 if (strcmp(fsp->fs_vfstype, "ufs") ||
139 (strcmp(fsp->fs_type, FSTAB_RW) &&
140 strcmp(fsp->fs_type, FSTAB_RO)) ||
141 fsp->fs_passno == 0)
/original-bsd/old/pcc/mip/
H A Dfort.c109 NODE ** fsp; /* points to next free position on the stack */ variable
132 fsp = fstack;
201 *fsp++ = p;
202 if( fsp >= &fstack[NSTACKSZ] ) uerror( "expression depth exceeded" );
250 if( fsp == fstack ) continue; /* filename only */
251 if( --fsp != fstack ) uerror( "expression poorly formed" );
306 p->in.right = *--fsp;
307 p->in.left = *--fsp;
311 p->in.left = *--fsp;
/original-bsd/usr.sbin/edquota/
H A Dedquota.c384 char *fsp, line1[BUFSIZ], line2[BUFSIZ]; variable
398 if ((fsp = strtok(line1, " \t:")) == NULL) {
403 fprintf(stderr, "%s: %s: bad format\n", fsp,
404 &fsp[strlen(fsp) + 1]);
412 fprintf(stderr, "%s:%s: bad format\n", fsp, cp);
431 if (strcmp(fsp, qup->fsname))
525 char *fsp, bunits[10], iunits[10], line1[BUFSIZ]; variable
539 if ((fsp = strtok(line1, " \t:")) == NULL) {
544 fprintf(stderr, "%s: %s: bad format\n", fsp,
545 &fsp[strlen(fsp) + 1]);
[all …]
/original-bsd/usr.bin/fstat/
H A Dfstat.c439 ufs_filestat(vp, fsp) in ufs_filestat() argument
441 struct filestat *fsp;
450 fsp->fsid = inode.i_dev & 0xffff;
451 fsp->fileid = (long)inode.i_number;
452 fsp->mode = (mode_t)inode.i_mode;
453 fsp->size = (u_long)inode.i_size;
454 fsp->rdev = inode.i_rdev;
460 nfs_filestat(vp, fsp) in nfs_filestat() argument
462 struct filestat *fsp;
474 fsp->size = nfsnode.n_size;
[all …]
/original-bsd/sys/nfs/
H A Dnfs_vfsops.c162 register struct nfsv3_fsinfo *fsp; local
176 nfsm_dissect(fsp, struct nfsv3_fsinfo *, NFSX_V3FSINFO);
177 pref = fxdr_unsigned(u_long, fsp->fs_wtpref);
181 max = fxdr_unsigned(u_long, fsp->fs_wtmax);
187 pref = fxdr_unsigned(u_long, fsp->fs_rtpref);
191 max = fxdr_unsigned(u_long, fsp->fs_rtmax);
197 pref = fxdr_unsigned(u_long, fsp->fs_dtpref);
/original-bsd/sbin/mountd/
H A Dmountd.c620 struct statfs fsb, *fsp; in get_exportlist() local
651 num = getmntinfo(&fsp, MNT_NOWAIT); in get_exportlist()
659 if (!strcmp(fsp->f_fstypename, "mfs") || in get_exportlist()
660 !strcmp(fsp->f_fstypename, "ufs") || in get_exportlist()
661 !strcmp(fsp->f_fstypename, "cd9660")) { in get_exportlist()
664 if (mount(fsp->f_fstypename, fsp->f_mntonname, in get_exportlist()
665 fsp->f_flags | MNT_UPDATE, in get_exportlist()
668 fsp->f_mntonname); in get_exportlist()
670 fsp++; in get_exportlist()
/original-bsd/sys/news3400/iodev/
H A Dsd.c1474 struct firstsector *fsp; local
1519 fsp = (struct firstsector *)sdtmp;