Home
last modified time | relevance | path

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

12

/illumos-gate/usr/src/cmd/logadm/
H A Dfn.c80 struct fn *fnp = MALLOC(sizeof (struct fn)); in fn_new() local
82 fnp->fn_n = -1; in fn_new()
83 bzero(&fnp->fn_stbuf, sizeof (fnp->fn_stbuf)); in fn_new()
84 fnp->fn_next = NULL; in fn_new()
92 fnp->fn_buf = MALLOC(buflen); in fn_new()
93 fnp->fn_buflast = &fnp->fn_buf[buflen - 1]; in fn_new()
94 (void) strlcpy(fnp->fn_buf, s, buflen); in fn_new()
95 fnp->fn_rptr = fnp->fn_buf; in fn_new()
96 fnp->fn_wptr = &fnp->fn_buf[len]; in fn_new()
99 fnp->fn_buf = MALLOC(FN_MIN); in fn_new()
[all …]
H A Dfn.h37 struct fn *fn_dup(struct fn *fnp);
38 struct fn *fn_dirname(struct fn *fnp);
39 void fn_setn(struct fn *fnp, int n);
40 int fn_getn(struct fn *fnp);
41 void fn_setstat(struct fn *fnp, struct stat *stp);
42 struct stat *fn_getstat(struct fn *fnp);
43 void fn_free(struct fn *fnp);
44 void fn_renew(struct fn *fnp, const char *s);
45 void fn_putc(struct fn *fnp, int c);
46 void fn_puts(struct fn *fnp, const char *s);
[all …]
H A Dglob.c79 static struct fn_list *glob_debrace(struct fn *fnp);
81 static boolean_t glob_magic(struct fn *fnp);
85 glob_debrace(struct fn *fnp) in glob_debrace() argument
89 char *sp = fn_s(fnp); in glob_debrace()
137 glob_magic(struct fn *fnp) in glob_magic() argument
139 char *s = fn_s(fnp); in glob_magic()
157 glob_glob(struct fn *fnp) in glob_glob() argument
159 struct fn_list *tmplist = glob_debrace(fnp); in glob_glob()
202 struct fn *fnp; in glob_glob_list() local
205 while ((fnp = fn_list_next(fnlp)) != NULL) in glob_glob_list()
[all …]
H A Dmain.c58 static void dologname(struct fn *fnp, struct opts *clopts);
59 static boolean_t rotatelog(struct fn *fnp, struct opts *opts);
60 static void rotateto(struct fn *fnp, struct opts *opts, int n,
63 static void expirefiles(struct fn *fnp, struct opts *opts);
64 static void dorm(struct opts *opts, const char *msg, struct fn *fnp);
169 struct fn *fnp; in main() local
356 while ((fnp = fn_list_next(lognames)) != NULL) { in main()
357 buf = fn_s(fnp); in main()
369 dologname(fnp, clopts); in main()
401 struct fn *fnp = (struct fn *)arg; in commajoin() local
[all …]
H A Dglob.h36 struct fn_list *glob_glob(struct fn *fnp);
38 struct fn_list *glob_reglob(struct fn *fnp);
39 struct fn *glob_to_reglob(struct fn *fnp);
H A Dkw.c70 kw_init(struct fn *fnp, struct fn *nfnp) in kw_init() argument
91 fullpath = STRDUP(fn_s(fnp)); in kw_init()
108 splitpath = STRDUP(fn_s(fnp)); in kw_init()
/illumos-gate/usr/src/uts/common/fs/fifofs/
H A Dfifovnops.c180 fifonode_t *fnp = VTOF(vp); in tsol_fifo_access() local
184 (!(fnp->fn_flag & ISPIPE))) { in tsol_fifo_access()
227 fifonode_t *fnp = VTOF(vp); in fifo_open() local
228 fifolock_t *fn_lock = fnp->fn_lock; in fifo_open()
244 fnp->fn_rcnt++; /* record reader present */ in fifo_open()
245 if (! (fnp->fn_flag & ISPIPE)) in fifo_open()
246 fnp->fn_rsynccnt++; /* record reader in open */ in fifo_open()
255 fnp->fn_wcnt++; /* record writer present */ in fifo_open()
256 if (! (fnp->fn_flag & ISPIPE)) in fifo_open()
257 fnp->fn_wsynccnt++; /* record writer in open */ in fifo_open()
[all …]
H A Dfifosubr.c176 fifonode_t *fnp = &fdp->fifo_fnode[0]; in fnode_constructor() local
183 while ((char *)fnp < (char *)buf + size) { in fnode_constructor()
189 fnp->fn_vnode = NULL; /* mark for destructor */ in fnode_constructor()
193 fnp->fn_vnode = vp; in fnode_constructor()
195 fnp->fn_lock = flp; in fnode_constructor()
196 fnp->fn_open = 0; in fnode_constructor()
197 fnp->fn_dest = fnp; in fnode_constructor()
198 fnp->fn_mp = NULL; in fnode_constructor()
199 fnp->fn_count = 0; in fnode_constructor()
200 fnp->fn_rsynccnt = 0; in fnode_constructor()
[all …]
/illumos-gate/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))
/illumos-gate/usr/src/uts/common/fs/autofs/
H A Dauto_vnops.c173 fnnode_t *fnp = vntofn(vp); in auto_getattr() local
220 mutex_enter(&fnp->fn_lock); in auto_getattr()
221 if (fnp->fn_seen == newvp && fnp->fn_thread == curthread) { in auto_getattr()
226 mutex_exit(&fnp->fn_lock); in auto_getattr()
229 while (fnp->fn_thread && fnp->fn_thread != curthread) { in auto_getattr()
230 fnp->fn_flags |= MF_ATTR_WAIT; in auto_getattr()
231 cv_wait(&fnp->fn_cv_mount, &fnp->fn_lock); in auto_getattr()
233 fnp->fn_thread = curthread; in auto_getattr()
234 fnp->fn_seen = newvp; in auto_getattr()
235 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.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.c128 struct filename *fnp; in main() local
202 for (fnp = fnanchor; fnp; fnp = fnp->fn_next) { in main()
205 printstatus(fnp->fn_name); in main()
208 lockfs(fnp->fn_name); in main()
211 flushfs(fnp->fn_name); in main()
421 struct filename *fnp; in getmntnames() local
437 fnp = (struct filename *)malloc(sizeof (struct filename)); in getmntnames()
438 fnp->fn_name = malloc((uint_t)fnlen); in getmntnames()
439 strcpy(fnp->fn_name, mntp->mnt_mountp); in getmntnames()
440 fnp->fn_next = NULL; in getmntnames()
[all …]
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/
H A Dvncache.c56 #define FTOV(fnp) ((fnp)->fn_vnode) argument
118 fakefs_node_t *fnp = VTOF(vp); in vn_recycle() local
120 ASSERT(fnp->fn_fd == -1); in vn_recycle()
173 fakefs_node_t *fnp = VTOF(vp); in vn_free() local
185 ASSERT(fnp->fn_fd > 2); in vn_free()
186 (void) close(fnp->fn_fd); in vn_free()
187 fnp->fn_fd = -1; in vn_free()
194 kmem_cache_free(fn_cache, fnp); in vn_free()
230 fakefs_node_t *fnp; in vncache_lookup() local
237 fnp = avl_find(&fncache_avl, &tmp_fn, NULL); in vncache_lookup()
[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.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 …]
/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.c529 void (**fnp) (); in mon_discon() local
533 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.c694 NODE *fnp; in xprintf() local
699 fnp = getlist(&np); in xprintf()
700 if (isleaf(fnp->n_flags) && fnp->n_type == PARM) in xprintf()
701 fnp = fnp->n_next; in xprintf()
702 if (isstring(fnp->n_flags)) { in xprintf()
703 fmt = fnp->n_string; in xprintf()
706 fmtsave = fmt = (wchar_t *)strsave(exprstring(fnp)); in xprintf()
743 fnp = exprreduce(nextarg(&np)); in xprintf()
744 if (isnumber(fnp->n_flags)) in xprintf()
745 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