Home
last modified time | relevance | path

Searched refs:fnp (Results 1 – 25 of 29) sorted by relevance

12

/illumos-gate/usr/src/cmd/logadm/
H A Dfn.c95 fnp->fn_buflast = &fnp->fn_buf[buflen - 1]; in fn_new()
97 fnp->fn_rptr = fnp->fn_buf; in fn_new()
98 fnp->fn_wptr = &fnp->fn_buf[len]; in fn_new()
104 fnp->fn_rptr = fnp->fn_buf; in fn_new()
105 fnp->fn_wptr = fnp->fn_buf; in fn_new()
209 fnp->fn_rptr = fnp->fn_wptr = fnp->fn_buf; in fn_renew()
222 if (fnp->fn_wptr >= fnp->fn_buflast) { in fn_putc()
241 fnp->fn_rptr = &newbuf[fnp->fn_rptr - fnp->fn_buf]; in fn_putc()
281 fnp->fn_rptr = fnp->fn_buf; in fn_rewind()
290 if (fnp->fn_rptr > fnp->fn_buflast || *fnp->fn_rptr == '\0') in fn_getc()
[all …]
H A Dfn.h39 struct fn *fn_dup(struct fn *fnp);
40 struct fn *fn_dirname(struct fn *fnp);
41 void fn_setn(struct fn *fnp, int n);
42 int fn_getn(struct fn *fnp);
45 void fn_free(struct fn *fnp);
47 void fn_putc(struct fn *fnp, int c);
50 void fn_rewind(struct fn *fnp);
51 int fn_getc(struct fn *fnp);
52 int fn_peekc(struct fn *fnp);
53 char *fn_s(struct fn *fnp);
[all …]
H A Dglob.c87 glob_debrace(struct fn *fnp) in glob_debrace() argument
91 char *sp = fn_s(fnp); in glob_debrace()
139 glob_magic(struct fn *fnp) in glob_magic() argument
141 char *s = fn_s(fnp); in glob_magic()
159 glob_glob(struct fn *fnp) in glob_glob() argument
204 struct fn *fnp; in glob_glob_list() local
218 glob_reglob(struct fn *fnp) in glob_reglob() argument
330 struct fn *fnp; in glob_reglob_list() local
347 fn_rewind(fnp); in glob_to_reglob()
390 struct fn *fnp; in main() local
[all …]
H A Dmain.c169 struct fn *fnp; in main() local
357 buf = fn_s(fnp); in main()
404 buf = fn_s(fnp); in commajoin()
406 fn_putc(fnp, ','); in commajoin()
407 fn_puts(fnp, lhs); in commajoin()
425 err_mailto(fn_s(fnp)); in doaftercmd()
598 kw_init(fnp, NULL); in rotatelog()
798 buf1 = fn_s(fnp); in rotateto()
845 kw_init(fnp, newfile); in rotateto()
879 kw_init(fnp, NULL); in expirefiles()
[all …]
H A Dglob.h38 struct fn_list *glob_glob(struct fn *fnp);
40 struct fn_list *glob_reglob(struct fn *fnp);
41 struct fn *glob_to_reglob(struct fn *fnp);
H A Dkw.c72 kw_init(struct fn *fnp, struct fn *nfnp) in kw_init() argument
93 fullpath = STRDUP(fn_s(fnp)); in kw_init()
110 splitpath = STRDUP(fn_s(fnp)); in kw_init()
H A Dkw.h38 void kw_init(struct fn *fnp, struct fn *nfnp);
/illumos-gate/usr/src/uts/common/fs/fifofs/
H A Dfifovnops.c335 ASSERT(fnp->fn_rsynccnt <= fnp->fn_rcnt); in fifo_open()
336 ASSERT(fnp->fn_wsynccnt <= fnp->fn_wcnt); in fifo_open()
348 fnp->fn_wcnt == fnp->fn_wsynccnt) { in fifo_open()
384 fnp->fn_rcnt == fnp->fn_rsynccnt) { in fifo_open()
539 ASSERT((fnp->fn_rcnt + fnp->fn_wcnt) != 0); in fifo_close()
579 if ((fnp->fn_flag & ISPIPE) && !(fnp->fn_flag & FIFOCLOSE)) { in fifo_close()
750 fnp->fn_mp = fnp->fn_mp->b_cont; in fifo_read()
785 ASSERT(msgdsize(fnp->fn_mp) == fnp->fn_count); in fifo_read()
876 fnp = VTOF(vp); in fifo_write()
1097 fnp->fn_mtime = fnp->fn_ctime = now; in fifo_write()
[all …]
H A Dfifosubr.c196 fnp->fn_dest = fnp; in fnode_constructor()
208 fnp->fn_ino = 0; in fnode_constructor()
218 fnp++; in fnode_constructor()
248 ASSERT(fnp->fn_rsynccnt == 0 && fnp->fn_wsynccnt == 0); in fnode_destructor()
261 fnp++; in fnode_destructor()
409 fifonode_t *fnp; in fifovp() local
501 fifoinsert(fnp); in fifovp()
673 fnp->fn_open++; in fifo_stropen()
808 fnp->fn_nextp->fn_backp = fnp; in fifoinsert()
888 fifo_wakewriter(fnp->fn_dest, fnp->fn_lock); in fifo_fastflush()
[all …]
/illumos-gate/usr/src/cmd/sendmail/db/log/
H A Dlog_register.c72 fnp != NULL; fnp = SH_TAILQ_NEXT(fnp, q, __fname)) {
75 reuse_fnp = fnp;
79 ++fnp->ref;
89 fnp = reuse_fnp;
93 fnp->id = maxid;
95 fnp->ref = 1;
133 if (fnp != NULL)
138 *idp = fnp->id;
158 FNAME *fnp; local
168 fnp != NULL; fnp = SH_TAILQ_NEXT(fnp, q, __fname))
[all …]
H A Dlog_rec.c434 FNAME *fnp; local
436 for (fnp = SH_TAILQ_FIRST(&dblp->lp->fq, __fname);
437 fnp != NULL; fnp = SH_TAILQ_NEXT(fnp, q, __fname)) {
438 if (fnp->ref == 0) /* Entry not in use. */
440 if (fnp->id == lid) {
441 *fnamep = fnp;
H A Dlog_put.c78 FNAME *fnp; local
158 for (fnp = SH_TAILQ_FIRST(&dblp->lp->fq, __fname);
159 fnp != NULL; fnp = SH_TAILQ_NEXT(fnp, q, __fname)) {
160 if (fnp->ref == 0) /* Entry not in use. */
163 t.data = R_ADDR(dblp, fnp->name_off);
166 fid_dbt.data = fnp->ufid;
169 LOG_CHECKPOINT, &t, &fid_dbt, fnp->id, fnp->s_type))
/illumos-gate/usr/src/uts/common/fs/autofs/
H A Dauto_vnops.c221 if (fnp->fn_seen == newvp && fnp->fn_thread == curthread) { in auto_getattr()
229 while (fnp->fn_thread && fnp->fn_thread != curthread) { in auto_getattr()
231 cv_wait(&fnp->fn_cv_mount, &fnp->fn_lock); in auto_getattr()
239 fnp->fn_seen = 0; in auto_getattr()
240 fnp->fn_thread = 0; in auto_getattr()
493 fnp = dfnp; in auto_lookup()
533 fnp = dfnp; in auto_lookup()
609 fnp->fn_error = 0; in auto_lookup()
627 fnp->fn_error = 0; in auto_lookup()
982 fnp->fn_ref_time = fnp->fn_atime.tv_sec; in auto_readdir()
[all …]
H A Dauto_subr.c100 fnnode_t *fnp, in auto_unblock_others() argument
126 if (!cv_wait_sig(&fnp->fn_cv_mount, &fnp->fn_lock)) { in auto_wait4mount()
1397 fnp = kmem_zalloc(sizeof (*fnp), KM_SLEEP); in auto_makefnnode()
1417 fnp->fn_atime = fnp->fn_mtime = fnp->fn_ctime = now; in auto_makefnnode()
1433 return (fnp); in auto_makefnnode()
1450 kmem_free(fnp->fn_name, fnp->fn_namelen); in auto_freefnnode()
1453 kmem_free(fnp->fn_symlink, fnp->fn_symlinklen); in auto_freefnnode()
1465 kmem_free(fnp, sizeof (*fnp)); in auto_freefnnode()
1521 fnp->fn_atime = fnp->fn_mtime = now; in auto_disconnect()
2068 for (fnp = rootfnp->fn_dirents; fnp != NULL; fnp = nfnp) { in unmount_autofs()
[all …]
H A Dauto_vfsops.c698 fnnode_t *rfnp, *fnp, *pfnp; in auto_unmount() local
729 fnp = myrootfnnodep->fn_dirents; in auto_unmount()
730 while (fnp != NULL) { in auto_unmount()
731 if (fnp == rfnp) { in auto_unmount()
742 pfnp->fn_next = fnp->fn_next; in auto_unmount()
744 myrootfnnodep->fn_dirents = fnp->fn_next; in auto_unmount()
745 fnp->fn_next = NULL; in auto_unmount()
748 pfnp = fnp; in auto_unmount()
749 fnp = fnp->fn_next; in auto_unmount()
/illumos-gate/usr/src/cmd/fs.d/ufs/lockfs/
H A Dlockfs.c130 struct filename *fnp; in main() local
204 for (fnp = fnanchor; fnp; fnp = fnp->fn_next) { in main()
210 lockfs(fnp->fn_name); in main()
423 struct filename *fnp; in getmntnames() local
442 fnp->fn_next = NULL; in getmntnames()
446 fnanchor = fnp; in getmntnames()
447 fnpc = fnp; in getmntnames()
458 struct filename *fnp; in getcmdnames() local
464 fnp->fn_next = NULL; in getcmdnames()
468 fnanchor = fnp; in getcmdnames()
[all …]
/illumos-gate/usr/src/uts/common/sys/fs/
H A Dautofs.h198 #define fntovn(fnp) (((fnp)->fn_vnode)) argument
248 #define AUTOFS_BLOCK_OTHERS(fnp, operation) { \ argument
249 ASSERT(MUTEX_HELD(&(fnp)->fn_lock)); \
250 ASSERT(!((fnp)->fn_flags & operation)); \
251 (fnp)->fn_flags |= (operation); \
254 #define AUTOFS_UNBLOCK_OTHERS(fnp, operation) { \ argument
255 auto_unblock_others((fnp), (operation)); \
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs4_client.c4038 fn_hold(fnp); in fn_get()
4080 fnp->fn_name = kmem_alloc(fnp->fn_len + 1, KM_SLEEP); in fn_get()
4095 (void *)fnp, fnp->fn_name)); in fn_get()
4101 return (fnp); in fn_get()
4110 (void *)fnp, fnp->fn_name, fnp->fn_refcnt)); in fn_hold()
4126 fnp = *fnpp; in fn_rele()
4137 (void *)fnp, fnp->fn_name, fnp->fn_refcnt)); in fn_rele()
4146 (void *)fnp, fnp->fn_name)); in fn_rele()
4151 kmem_free(fnp->fn_name, fnp->fn_len + 1); in fn_rele()
4255 fn_rele(&fnp); in fn_path()
[all …]
/illumos-gate/usr/src/cmd/lp/lib/msgs/
H A Dmdisconnect.c50 void (**fnp)(); local
78 for (fnp = md->on_discon; *fnp; fnp++)
80 (*fnp)(md);
H A Dmlisten.c531 void (**fnp) (); in mon_discon() local
535 for (fnp = md->on_discon; *fnp; fnp++) in mon_discon()
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_pragma.c395 dt_node_t *fnp = dnp ? dnp->dn_list : NULL; in dt_pragma_line() local
396 dt_node_t *inp = fnp ? fnp->dn_list : NULL; in dt_pragma_line()
399 (fnp != NULL && fnp->dn_kind != DT_NODE_STRING) || in dt_pragma_line()
409 if (fnp != NULL) { in dt_pragma_line()
420 if (strncmp(fnp->dn_string, "/dev/fd/", 8) != 0) { in dt_pragma_line()
421 yypcb->pcb_filetag = fnp->dn_string; in dt_pragma_line()
422 fnp->dn_string = NULL; in dt_pragma_line()
/illumos-gate/usr/src/cmd/awk_xpg4/
H A Dawk2.c696 NODE *fnp; in xprintf() local
701 fnp = getlist(&np); in xprintf()
702 if (isleaf(fnp->n_flags) && fnp->n_type == PARM) in xprintf()
703 fnp = fnp->n_next; in xprintf()
704 if (isstring(fnp->n_flags)) { in xprintf()
705 fmt = fnp->n_string; in xprintf()
708 fmtsave = fmt = (wchar_t *)strsave(exprstring(fnp)); in xprintf()
745 fnp = exprreduce(nextarg(&np)); in xprintf()
746 if (isnumber(fnp->n_flags)) in xprintf()
747 c = exprint(fnp); in xprintf()
[all …]
H A Dawk3.c1674 NODE *fnp; in userfunc() local
1676 if ((fnp = np->n_left) == NNULL) in userfunc()
1678 if (fnp->n_type != UFUNC) in userfunc()
1679 awkerr(varnotfunc, fnp->n_name); in userfunc()
1684 fnp->n_name, NRECUR); in userfunc()
1688 fnp->n_name); in userfunc()
1691 fnp = fnp->n_ufunc; in userfunc()
1699 formlist = fnp->n_left; in userfunc()
1772 formlist = fnp->n_left; in userfunc()
1793 if (action(fnp->n_right) == RETURN) in userfunc()
[all …]
/illumos-gate/usr/src/cmd/sendmail/db/db/
H A Ddb_pr.c792 const FN *fnp; local
797 for (found = 0, fnp = fn; fnp->mask != 0; ++fnp)
798 if (LF_ISSET(fnp->mask)) {
799 fprintf(fp, "%s%s", sep, fnp->name);
/illumos-gate/usr/src/tools/smatch/src/validation/
H A Dinfinite-loop01.c1 void fnp(void) in fnp() function

12