Searched refs:fnp (Results 1 - 25 of 28) sorted by relevance

12

/illumos-gate/usr/src/cmd/logadm/
H A Dfn.c77 * struct fn *fnp = fn_new("this is a string");
82 struct fn *fnp = MALLOC(sizeof (struct fn)); local
84 fnp->fn_n = -1;
85 bzero(&fnp->fn_stbuf, sizeof (fnp->fn_stbuf));
86 fnp->fn_next = NULL;
94 fnp->fn_buf = MALLOC(buflen);
95 fnp->fn_buflast = &fnp->fn_buf[buflen - 1];
96 (void) strlcpy(fnp
115 fn_dup(struct fn *fnp) argument
129 fn_dirname(struct fn *fnp) argument
158 fn_setn(struct fn *fnp, int n) argument
172 fn_setstat(struct fn *fnp, struct stat *stp) argument
181 fn_getstat(struct fn *fnp) argument
190 fn_free(struct fn *fnp) argument
207 fn_renew(struct fn *fnp, const char *s) argument
220 fn_putc(struct fn *fnp, int c) argument
255 fn_puts(struct fn *fnp, const char *s) argument
266 fn_putfn(struct fn *fnp, struct fn *srcfnp) argument
279 fn_rewind(struct fn *fnp) argument
288 fn_getc(struct fn *fnp) argument
300 fn_peekc(struct fn *fnp) argument
312 fn_s(struct fn *fnp) argument
321 fn_isgz(struct fn *fnp) argument
367 struct fn *fnp; local
382 struct fn *fnp; local
403 fn_list_addfn(struct fn_list *fnlp, struct fn *fnp) argument
478 struct fn *fnp = fnlp->fnl_first; local
503 struct fn *fnp; local
523 struct fn *fnp; 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 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, cons
[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) argument
91 char *sp = fn_s(fnp);
139 glob_magic(struct fn *fnp) argument
141 char *s = fn_s(fnp);
159 glob_glob(struct fn *fnp) argument
161 struct fn_list *tmplist = glob_debrace(fnp);
204 struct fn *fnp; local
207 while ((fnp
218 glob_reglob(struct fn *fnp) argument
330 struct fn *fnp; local
342 glob_to_reglob(struct fn *fnp) argument
390 struct fn *fnp; local
[all...]
H A Dkw.h38 void kw_init(struct fn *fnp, struct fn *nfnp);
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; local
352 while ((fnp = fn_list_next(lognames)) != NULL) {
353 buf = fn_s(fnp);
365 dologname(fnp, clopts);
397 struct fn *fnp local
414 struct fn *fnp = fn_new(NULL); local
447 dologname(struct fn *fnp, struct opts *clopts) argument
573 rotatelog(struct fn *fnp, struct opts *opts) argument
779 rotateto(struct fn *fnp, struct opts *opts, int n, struct fn *recentlog, boolean_t isgz) argument
857 expirefiles(struct fn *fnp, struct opts *opts) argument
982 dorm(struct opts *opts, const char *msg, struct fn *fnp) argument
[all...]
H A Dkw.c72 kw_init(struct fn *fnp, struct fn *nfnp) argument
93 fullpath = STRDUP(fn_s(fnp));
110 splitpath = STRDUP(fn_s(fnp));
/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
158 FNAME *fnp; local
[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
[all...]
/illumos-gate/usr/src/uts/common/fs/fifofs/
H A Dfifosubr.c175 fifonode_t *fnp = &fdp->fifo_fnode[0]; local
182 while ((char *)fnp < (char *)buf + size) {
188 fnp->fn_vnode = NULL; /* mark for destructor */
192 fnp->fn_vnode = vp;
194 fnp->fn_lock = flp;
195 fnp->fn_open = 0;
196 fnp->fn_dest = fnp;
197 fnp->fn_mp = NULL;
198 fnp
228 fifonode_t *fnp = &fdp->fifo_fnode[0]; local
409 fifonode_t *fnp; local
590 fifonode_t *fnp = VTOF(*vpp); local
773 fifonode_t *fnp = VTOF(vp); local
793 fifoinsert(fifonode_t *fnp) argument
839 fiforemove(fifonode_t *fnp) argument
878 fifo_fastflush(fifonode_t *fnp) argument
1045 fifo_fastoff(fifonode_t *fnp) argument
1081 fifo_fastturnoff(fifonode_t *fnp) argument
1138 fifonode_t *fnp = VTOF(vp); local
[all...]
H A Dfifovnops.c178 fifonode_t *fnp = VTOF(vp); local
182 (!(fnp->fn_flag & ISPIPE))) {
225 fifonode_t *fnp = VTOF(vp); local
226 fifolock_t *fn_lock = fnp->fn_lock;
242 fnp->fn_rcnt++; /* record reader present */
243 if (! (fnp->fn_flag & ISPIPE))
244 fnp->fn_rsynccnt++; /* record reader in open */
253 fnp->fn_wcnt++; /* record writer present */
254 if (! (fnp->fn_flag & ISPIPE))
255 fnp
440 fifonode_t *fnp = VTOF(vp); local
661 fifonode_t *fnp = VTOF(vp); local
847 struct fifonode *fnp, *fn_dest; local
1133 fifonode_t *fnp = VTOF(vp); local
1391 fifonode_t *fnp = VTOF(vp); local
1447 fifonode_t *fnp = VTOF(vp); local
1527 fifonode_t *fnp = VTOF(vp); local
1588 fifonode_t *fnp = VTOF(vp); local
1619 fifonode_t *fnp; local
1765 fifonode_t *fnp, *fn_dest; local
1992 fifo_stayfast_enter(fifonode_t *fnp) argument
2014 fifo_stayfast_exit(fifonode_t *fnp) argument
[all...]
/illumos-gate/usr/src/uts/common/fs/autofs/
H A Dauto_subr.c100 fnnode_t *fnp,
104 fnp->fn_flags &= ~operation;
105 if (fnp->fn_flags & MF_WAITING) {
106 fnp->fn_flags &= ~MF_WAITING;
107 cv_broadcast(&fnp->fn_cv_mount);
112 auto_wait4mount(fnnode_t *fnp) argument
117 AUTOFS_DPRINT((4, "auto_wait4mount: fnp=%p\n", (void *)fnp));
119 mutex_enter(&fnp->fn_lock);
120 while (fnp
99 auto_unblock_others( fnnode_t *fnp, uint_t operation) argument
154 auto_lookup_aux(fnnode_t *fnp, char *name, cred_t *cred) argument
246 fnnode_t *fnp; local
300 auto_new_mount_thread(fnnode_t *fnp, char *name, cred_t *cred) argument
828 auto_perform_link(fnnode_t *fnp, struct linka *linkp, cred_t *cred) argument
1382 fnnode_t *fnp; local
1436 auto_freefnnode(fnnode_t *fnp) argument
1467 auto_disconnect( fnnode_t *dfnp, fnnode_t *fnp) argument
1783 unmount_triggers(fnnode_t *fnp, action_list **alp) argument
1842 triggers_busy(fnnode_t *fnp) argument
2002 fnnode_t *fnp; local
2057 fnnode_t *fnp, *rootfnp, *nfnp; local
2087 try_unmount_node(fnnode_t *fnp, boolean_t force) argument
2459 fnnode_t *root, *fnp, *next; local
[all...]
H A Dauto_vnops.c172 fnnode_t *fnp = vntofn(vp); local
219 mutex_enter(&fnp->fn_lock);
220 if (fnp->fn_seen == newvp && fnp->fn_thread == curthread) {
225 mutex_exit(&fnp->fn_lock);
228 while (fnp->fn_thread && fnp->fn_thread != curthread) {
229 fnp->fn_flags |= MF_ATTR_WAIT;
230 cv_wait(&fnp->fn_cv_mount, &fnp
315 fnnode_t *fnp = vntofn(vp); local
370 fnnode_t *fnp = NULL; local
952 fnnode_t *fnp = vntofn(vp); local
1269 fnnode_t *fnp = vntofn(vp); local
1302 fnnode_t *fnp = vntofn(vp); local
1344 fnnode_t *fnp = vntofn(vp); local
1356 fnnode_t *fnp = vntofn(vp); local
1389 fnnode_t *fnp = vntofn(vp); local
[all...]
H A Dauto_vfsops.c695 fnnode_t *rfnp, *fnp, *pfnp; local
726 fnp = myrootfnnodep->fn_dirents;
727 while (fnp != NULL) {
728 if (fnp == rfnp) {
739 pfnp->fn_next = fnp->fn_next;
741 myrootfnnodep->fn_dirents = fnp->fn_next;
742 fnp->fn_next = NULL;
745 pfnp = fnp;
746 fnp = fnp
[all...]
/illumos-gate/usr/src/cmd/fs.d/ufs/lockfs/
H A Dlockfs.c130 struct filename *fnp; local
204 for (fnp = fnanchor; fnp; fnp = fnp->fn_next) {
207 printstatus(fnp->fn_name);
210 lockfs(fnp->fn_name);
213 flushfs(fnp->fn_name);
423 struct filename *fnp; local
439 fnp
458 struct filename *fnp; local
[all...]
/illumos-gate/usr/src/cmd/lp/lib/msgs/
H A Dmdisconnect.c50 void (**fnp)();
78 for (fnp = md->on_discon; *fnp; fnp++)
80 (*fnp)(md);
H A Dmlisten.c531 void (**fnp) ();
535 for (fnp = md->on_discon; *fnp; fnp++)
/illumos-gate/usr/src/uts/common/sys/fs/
H A Dautofs.h198 #define fntovn(fnp) (((fnp)->fn_vnode))
245 * fnp->fn_lock should be held before this macro is called,
248 #define AUTOFS_BLOCK_OTHERS(fnp, operation) { \
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) { \
255 auto_unblock_others((fnp), (operation)); \
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs4_client.c4032 nfs4_fname_t *fnp; local
4048 fnp = avl_find(&parent->fn_children, &key, &where);
4049 if (fnp != NULL) {
4051 * This hold on fnp is released below later,
4052 * in case this is not the fnp we want.
4054 fn_hold(fnp);
4056 if (fnp->fn_sfh == sfh) {
4062 return (fnp);
4072 mutex_enter(&fnp->fn_lock);
4073 if (fnp
4121 fn_hold(nfs4_fname_t *fnp) argument
4139 nfs4_fname_t *fnp; local
4189 fn_name(nfs4_fname_t *fnp) argument
4248 fn_path(nfs4_fname_t *fnp) argument
4284 fn_parent(nfs4_fname_t *fnp) argument
4302 fn_move(nfs4_fname_t *fnp, nfs4_fname_t *newparent, char *newname) argument
[all...]
/illumos-gate/usr/src/cmd/awk_xpg4/
H A Dawk2.c696 NODE *fnp; local
701 fnp = getlist(&np);
702 if (isleaf(fnp->n_flags) && fnp->n_type == PARM)
703 fnp = fnp->n_next;
704 if (isstring(fnp->n_flags)) {
705 fmt = fnp->n_string;
708 fmtsave = fmt = (wchar_t *)strsave(exprstring(fnp));
745 fnp
[all...]
H A Dawk3.c1677 NODE *fnp; local
1679 if ((fnp = np->n_left) == NNULL)
1681 if (fnp->n_type != UFUNC)
1682 awkerr(varnotfunc, fnp->n_name);
1687 fnp->n_name, NRECUR);
1691 fnp->n_name);
1694 fnp = fnp->n_ufunc;
1702 formlist = fnp->n_left;
1775 formlist = fnp
[all...]
/illumos-gate/usr/src/uts/common/fs/sockfs/
H A Dnl7clogd.c404 caddr_t *fnp; local
415 fnp = fnv;
416 while (*fnp != NULL) {
418 nca_fio_name(&fio) = *fnp;
424 if (++fnp == &fnv[NCA_FIOV_SZ])
480 fnp = fnv;
482 while (*fnp != NULL) {
483 if (strcmp(*fnp, fbuf) == 0)
485 if (++fnp == &fnv[NCA_FIOV_SZ])
489 if (*fnp
[all...]
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_pragma.c395 dt_node_t *fnp = dnp ? dnp->dn_list : NULL; local
396 dt_node_t *inp = fnp ? fnp->dn_list : NULL;
399 (fnp != NULL && fnp->dn_kind != DT_NODE_STRING) ||
406 * If a file is specified, free any old pcb_filetag and swap fnp's
409 if (fnp != NULL) {
420 if (strncmp(fnp->dn_string, "/dev/fd/", 8) != 0) {
421 yypcb->pcb_filetag = fnp->dn_string;
422 fnp
[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);

Completed in 104 milliseconds

12