Home
last modified time | relevance | path

Searched refs:lfp (Results 1 – 12 of 12) sorted by relevance

/titanic_41/usr/src/cmd/lms/
H A Dmain.cpp156 int lfp; in lock_is_real() local
161 lfp = open(lockfile, O_RDONLY); in lock_is_real()
162 if (lfp < 0) { in lock_is_real()
169 count = read(lfp, pid_buf, sizeof(pid_buf)-1); in lock_is_real()
174 close(lfp); in lock_is_real()
177 close(lfp); in lock_is_real()
206 int lfp = -1; in lock_pid_file() local
216 lfp = open(lockfile, O_RDWR | O_CREAT | O_EXCL, 0644); in lock_pid_file()
217 if (lfp < 0) { in lock_pid_file()
237 written = write(lfp, pid_buf, towrite); in lock_pid_file()
[all …]
/titanic_41/usr/src/uts/common/fs/nfs/
H A Dnfs_log.c110 #define LOG_FILE_HOLD(lfp) { \ argument
111 mutex_enter(&(lfp)->lf_lock); \
112 (lfp)->lf_refcnt++; \
113 mutex_exit(&(lfp)->lf_lock); \
116 #define LOG_FILE_RELE(lfp) { \ argument
117 log_file_rele(lfp); \
127 #define LOG_FILE_LOCK_TO_WRITE(lfp) { \ argument
128 mutex_enter(&(lfp)->lf_lock); \
129 (lfp)->lf_refcnt++; \
130 (lfp)->lf_writers++; \
[all …]
/titanic_41/usr/src/common/ctf/
H A Dctf_types.c561 ctf_type_cmp(ctf_file_t *lfp, ctf_id_t ltype, ctf_file_t *rfp, ctf_id_t rtype) in ctf_type_cmp() argument
572 if (lfp == rfp) in ctf_type_cmp()
575 if (CTF_TYPE_ISPARENT(ltype) && lfp->ctf_parent != NULL) in ctf_type_cmp()
576 lfp = lfp->ctf_parent; in ctf_type_cmp()
581 if (lfp < rfp) in ctf_type_cmp()
584 if (lfp > rfp) in ctf_type_cmp()
597 ctf_type_compat(ctf_file_t *lfp, ctf_id_t ltype, in ctf_type_compat() argument
605 if (ctf_type_cmp(lfp, ltype, rfp, rtype) == 0) in ctf_type_compat()
608 ltype = ctf_type_resolve(lfp, ltype); in ctf_type_compat()
609 lkind = ctf_type_kind(lfp, ltype); in ctf_type_compat()
[all …]
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/rdist/
H A Dserver.c54 extern FILE *lfp; /* log file for mailing changes */
208 log(lfp, cp); in server()
349 log(lfp, "%s: no password entry for uid %d \n",
356 log(lfp, "%s: no name for group %d\n",
363 log(lfp, "need to install: %s\n", target);
366 log(lfp, "installing: %s\n", target);
472 log(lfp, "need to update: %s\n", target);
475 log(lfp, "updating: %s\n", target);
545 log(lfp, "special \"%s\"\n", sc->sc_name);
572 log(lfp, "out of memory, link information lost\n");
[all …]
H A Ddocmd.c45 FILE *lfp; /* log file for recording files updated */ variable
202 if ((lfp = fopen(Tmpfile, "w")) == NULL) {
230 (void) fclose(lfp);
231 lfp = NULL;
242 log(lfp, "%s: Warning: missing links\n",
482 log(lfp, "rdist: lost connection\n"); in lostconn()
/titanic_41/usr/src/uts/common/fs/ufs/
H A Dufs_panic.c1218 get_lockfs_status(ufs_failure_t *f, struct lockfs *lfp) in get_lockfs_status() argument
1232 f->uf_lf_err = ufs_fiolfss(f->uf_ufsvfsp->vfs_root, lfp); in get_lockfs_status()
2095 alloc_lockfs_comment(ufs_failure_t *f, struct lockfs *lfp) in alloc_lockfs_comment() argument
2115 if ((LOCKFS_IS_ELOCK(&f->uf_lf) || !lfp->lf_comment || in alloc_lockfs_comment()
2116 lfp->lf_comlen <= 0)) { in alloc_lockfs_comment()
2120 from = lfp->lf_comment; in alloc_lockfs_comment()
2121 len = lfp->lf_comlen; in alloc_lockfs_comment()
2134 set_lockfs(ufs_failure_t *f, struct lockfs *lfp) in set_lockfs() argument
2156 alloc_lockfs_comment(f, lfp); in set_lockfs()
2159 if (!LOCKFS_IS_ELOCK(lfp)) { in set_lockfs()
[all …]
/titanic_41/usr/src/cmd/fs.d/ufs/fsck/
H A Dutilities.c1489 if (lfp == NULL) { in is_errorlocked()
1490 lfp = (struct lockfs *)malloc(sizeof (struct lockfs)); in is_errorlocked()
1491 if (lfp == NULL) in is_errorlocked()
1493 (void) memset((void *)lfp, 0, sizeof (struct lockfs)); in is_errorlocked()
1496 lfp->lf_comlen = LOCKFS_MAXCOMMENTLEN; in is_errorlocked()
1497 lfp->lf_comment = elock_combuf; in is_errorlocked()
1499 if (ioctl(mountfd, _FIOLFSS, lfp) == -1) in is_errorlocked()
1507 retval = LOCKFS_IS_ELOCK(lfp); in is_errorlocked()
1600 if (lfp == NULL) { in search_vfstab()
1649 if ((rc = ioctl(mountfd, _FIOLFSS, lfp)) == -1) { in search_vfstab()
[all …]
H A Dfsck.h350 struct lockfs *lfp; /* current lockfs status */ variable
/titanic_41/usr/src/uts/common/inet/sctp/
H A Dsctp_output.c1003 sctp_faddr_t *lfp; in sctp_output() local
1017 lfp = sctp->sctp_lastdata; in sctp_output()
1018 ASSERT(lfp != NULL); in sctp_output()
1019 if (lfp->sf_state != SCTP_FADDRS_ALIVE) in sctp_output()
1020 lfp = sctp->sctp_current; in sctp_output()
1088 if (sacklen > 0 && (seglen + extra <= lfp->sf_cwnd - in sctp_output()
1089 lfp->sf_suna) && in sctp_output()
1090 (seglen + sacklen + extra <= lfp->sf_pmss)) { in sctp_output()
1095 pathmax = lfp->sf_cwnd - lfp->sf_suna; in sctp_output()
1097 fp = lfp; in sctp_output()
/titanic_41/usr/src/lib/libdtrace/common/
H A Ddt_parser.c333 ctf_file_t *lfp = lp->dn_ctfp; in dt_type_promote() local
339 ctf_id_t lbase = ctf_type_resolve(lfp, ltype); in dt_type_promote()
340 uint_t lkind = ctf_type_kind(lfp, lbase); in dt_type_promote()
353 lfp = DT_INT_CTFP(dtp); in dt_type_promote()
362 if (ctf_type_encoding(lfp, lbase, &le) == CTF_ERR) { in dt_type_promote()
363 yypcb->pcb_hdl->dt_ctferr = ctf_errno(lfp); in dt_type_promote()
392 *ofp = lfp; in dt_type_promote()
1044 ctf_file_t *lfp = lp->dn_ctfp; in dt_node_is_ptrcompat() local
1083 lbase = ctf_type_resolve(lfp, lp->dn_type); in dt_node_is_ptrcompat()
1084 lkind = ctf_type_kind(lfp, lbase); in dt_node_is_ptrcompat()
[all …]
/titanic_41/usr/src/uts/common/fs/cachefs/
H A Dcachefs_ioctl.c999 cachefsio_lostfound_arg_t *lfp; in cachefs_io_lostfound() local
1002 lfp = (cachefsio_lostfound_arg_t *)dinp; in cachefs_io_lostfound()
1017 error = cachefs_cnode_make(&lfp->lf_cid, fscp, in cachefs_io_lostfound()
1035 error = cachefs_cnode_lostfound(cp, lfp->lf_name); in cachefs_io_lostfound()
1039 (void) strcpy(rp->lf_name, lfp->lf_name); in cachefs_io_lostfound()
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/
H A Dipqosconf.c9911 int lfp; local
10012 lfp = lock();
10013 if (lfp == -1) {
10037 (void) unlock(lfp);