Home
last modified time | relevance | path

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

12

/titanic_41/usr/src/cmd/logadm/
H A Dfn.c82 struct fn *fnp = MALLOC(sizeof (struct fn)); in fn_new() local
84 fnp->fn_n = -1; in fn_new()
85 bzero(&fnp->fn_stbuf, sizeof (fnp->fn_stbuf)); in fn_new()
86 fnp->fn_next = NULL; in fn_new()
94 fnp->fn_buf = MALLOC(buflen); in fn_new()
95 fnp->fn_buflast = &fnp->fn_buf[buflen - 1]; in fn_new()
96 (void) strlcpy(fnp->fn_buf, s, buflen); in fn_new()
97 fnp->fn_rptr = fnp->fn_buf; in fn_new()
98 fnp->fn_wptr = &fnp->fn_buf[len]; in fn_new()
101 fnp->fn_buf = MALLOC(FN_MIN); in fn_new()
[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);
43 void fn_setstat(struct fn *fnp, struct stat *stp);
44 struct stat *fn_getstat(struct fn *fnp);
45 void fn_free(struct fn *fnp);
46 void fn_renew(struct fn *fnp, const char *s);
47 void fn_putc(struct fn *fnp, int c);
48 void fn_puts(struct fn *fnp, const char *s);
[all …]
H A Dglob.c81 static struct fn_list *glob_debrace(struct fn *fnp);
83 static boolean_t glob_magic(struct fn *fnp);
87 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
161 struct fn_list *tmplist = glob_debrace(fnp); in glob_glob()
204 struct fn *fnp; in glob_glob_list() local
207 while ((fnp = fn_list_next(fnlp)) != NULL) in glob_glob_list()
[all …]
H A Dmain.c56 static void dologname(struct fn *fnp, struct opts *clopts);
57 static boolean_t rotatelog(struct fn *fnp, struct opts *opts);
58 static void rotateto(struct fn *fnp, struct opts *opts, int n,
61 static void expirefiles(struct fn *fnp, struct opts *opts);
62 static void dorm(struct opts *opts, const char *msg, struct fn *fnp);
165 struct fn *fnp; in main() local
352 while ((fnp = fn_list_next(lognames)) != NULL) { in main()
353 buf = fn_s(fnp); in main()
365 dologname(fnp, clopts); in main()
397 struct fn *fnp = (struct fn *)arg; in commajoin() local
[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);
/titanic_41/usr/src/uts/common/fs/fifofs/
H A Dfifovnops.c176 fifonode_t *fnp = VTOF(vp); in tsol_fifo_access() local
180 (!(fnp->fn_flag & ISPIPE))) { in tsol_fifo_access()
223 fifonode_t *fnp = VTOF(vp); in fifo_open() local
224 fifolock_t *fn_lock = fnp->fn_lock; in fifo_open()
240 fnp->fn_rcnt++; /* record reader present */ in fifo_open()
241 if (! (fnp->fn_flag & ISPIPE)) in fifo_open()
242 fnp->fn_rsynccnt++; /* record reader in open */ in fifo_open()
251 fnp->fn_wcnt++; /* record writer present */ in fifo_open()
252 if (! (fnp->fn_flag & ISPIPE)) in fifo_open()
253 fnp->fn_wsynccnt++; /* record writer in open */ in fifo_open()
[all …]
H A Dfifosubr.c175 fifonode_t *fnp = &fdp->fifo_fnode[0]; in fnode_constructor() local
182 while ((char *)fnp < (char *)buf + size) { in fnode_constructor()
188 fnp->fn_vnode = NULL; /* mark for destructor */ in fnode_constructor()
192 fnp->fn_vnode = vp; in fnode_constructor()
194 fnp->fn_lock = flp; in fnode_constructor()
195 fnp->fn_open = 0; in fnode_constructor()
196 fnp->fn_dest = fnp; in fnode_constructor()
197 fnp->fn_mp = NULL; in fnode_constructor()
198 fnp->fn_count = 0; in fnode_constructor()
199 fnp->fn_rsynccnt = 0; in fnode_constructor()
[all …]
/titanic_41/usr/src/cmd/sendmail/db/log/
H A Dlog_register.c39 FNAME *fnp, *reuse_fnp; local
48 fnp = namep = reuse_fnp = NULL;
71 for (maxid = 0, fnp = SH_TAILQ_FIRST(&dblp->lp->fq, __fname);
72 fnp != NULL; fnp = SH_TAILQ_NEXT(fnp, q, __fname)) {
73 if (fnp->ref == 0) { /* Entry is not in use. */
75 reuse_fnp = fnp;
78 if (!memcmp(dbp->fileid, fnp->ufid, DB_FILE_ID_LEN)) {
79 ++fnp->ref;
82 if (maxid <= fnp->id)
83 maxid = fnp->id + 1;
[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))
/titanic_41/usr/src/uts/common/fs/autofs/
H A Dauto_vnops.c172 fnnode_t *fnp = vntofn(vp); in auto_getattr() local
219 mutex_enter(&fnp->fn_lock); in auto_getattr()
220 if (fnp->fn_seen == newvp && fnp->fn_thread == curthread) { in auto_getattr()
225 mutex_exit(&fnp->fn_lock); in auto_getattr()
228 while (fnp->fn_thread && fnp->fn_thread != curthread) { in auto_getattr()
229 fnp->fn_flags |= MF_ATTR_WAIT; in auto_getattr()
230 cv_wait(&fnp->fn_cv_mount, &fnp->fn_lock); in auto_getattr()
232 fnp->fn_thread = curthread; in auto_getattr()
233 fnp->fn_seen = newvp; in auto_getattr()
234 mutex_exit(&fnp->fn_lock); in auto_getattr()
[all …]
H A Dauto_subr.c100 fnnode_t *fnp, in auto_unblock_others() argument
104 fnp->fn_flags &= ~operation; in auto_unblock_others()
105 if (fnp->fn_flags & MF_WAITING) { in auto_unblock_others()
106 fnp->fn_flags &= ~MF_WAITING; in auto_unblock_others()
107 cv_broadcast(&fnp->fn_cv_mount); in auto_unblock_others()
112 auto_wait4mount(fnnode_t *fnp) in auto_wait4mount() argument
117 AUTOFS_DPRINT((4, "auto_wait4mount: fnp=%p\n", (void *)fnp)); in auto_wait4mount()
119 mutex_enter(&fnp->fn_lock); in auto_wait4mount()
120 while (fnp->fn_flags & (MF_INPROG | MF_LOOKUP)) { in auto_wait4mount()
124 fnp->fn_flags |= MF_WAITING; in auto_wait4mount()
[all …]
H A Dauto_vfsops.c695 fnnode_t *rfnp, *fnp, *pfnp; in auto_unmount() local
726 fnp = myrootfnnodep->fn_dirents; in auto_unmount()
727 while (fnp != NULL) { in auto_unmount()
728 if (fnp == rfnp) { in auto_unmount()
739 pfnp->fn_next = fnp->fn_next; in auto_unmount()
741 myrootfnnodep->fn_dirents = fnp->fn_next; in auto_unmount()
742 fnp->fn_next = NULL; in auto_unmount()
745 pfnp = fnp; in auto_unmount()
746 fnp = fnp->fn_next; in auto_unmount()
/titanic_41/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()
207 printstatus(fnp->fn_name); in main()
210 lockfs(fnp->fn_name); in main()
213 flushfs(fnp->fn_name); in main()
423 struct filename *fnp; in getmntnames() local
439 fnp = (struct filename *)malloc(sizeof (struct filename)); in getmntnames()
440 fnp->fn_name = malloc((uint_t)fnlen); in getmntnames()
441 strcpy(fnp->fn_name, mntp->mnt_mountp); in getmntnames()
442 fnp->fn_next = NULL; in getmntnames()
[all …]
/titanic_41/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)); \
/titanic_41/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()
/titanic_41/usr/src/uts/common/fs/nfs/
H A Dnfs4_client.c4016 nfs4_fname_t *fnp; in fn_get() local
4032 fnp = avl_find(&parent->fn_children, &key, &where); in fn_get()
4033 if (fnp != NULL) { in fn_get()
4038 fn_hold(fnp); in fn_get()
4040 if (fnp->fn_sfh == sfh) { in fn_get()
4046 return (fnp); in fn_get()
4056 mutex_enter(&fnp->fn_lock); in fn_get()
4057 if (fnp->fn_parent == parent) { in fn_get()
4063 avl_remove(&parent->fn_children, fnp); in fn_get()
4065 fn_rele(&fnp->fn_parent); in fn_get()
[all …]
/titanic_41/usr/src/uts/common/fs/sockfs/
H A Dnl7clogd.c404 caddr_t *fnp; in nl7c_logd_init() local
415 fnp = fnv; in nl7c_logd_init()
416 while (*fnp != NULL) { in nl7c_logd_init()
418 nca_fio_name(&fio) = *fnp; in nl7c_logd_init()
424 if (++fnp == &fnv[NCA_FIOV_SZ]) in nl7c_logd_init()
480 fnp = fnv; in nl7c_logd_init()
482 while (*fnp != NULL) { in nl7c_logd_init()
483 if (strcmp(*fnp, fbuf) == 0) in nl7c_logd_init()
485 if (++fnp == &fnv[NCA_FIOV_SZ]) in nl7c_logd_init()
489 if (*fnp == NULL) in nl7c_logd_init()
[all …]
/titanic_41/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()
/titanic_41/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.c1677 NODE *fnp; in userfunc() local
1679 if ((fnp = np->n_left) == NNULL) in userfunc()
1681 if (fnp->n_type != UFUNC) in userfunc()
1682 awkerr(varnotfunc, fnp->n_name); in userfunc()
1687 fnp->n_name, NRECUR); in userfunc()
1691 fnp->n_name); in userfunc()
1694 fnp = fnp->n_ufunc; in userfunc()
1702 formlist = fnp->n_left; in userfunc()
1775 formlist = fnp->n_left; in userfunc()
1796 if (action(fnp->n_right) == RETURN) in userfunc()
[all …]
/titanic_41/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);

12