Searched refs:lfp (Results 1 - 11 of 11) sorted by relevance

/illumos-gate/usr/src/cmd/lms/
H A Dmain.cpp156 int lfp; local
161 lfp = open(lockfile, O_RDONLY);
162 if (lfp < 0) {
169 count = read(lfp, pid_buf, sizeof(pid_buf)-1);
174 close(lfp);
177 close(lfp);
206 int lfp = -1; local
216 lfp = open(lockfile, O_RDWR | O_CREAT | O_EXCL, 0644);
217 if (lfp < 0) {
237 written = write(lfp, pid_bu
[all...]
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs_log.c110 #define LOG_FILE_HOLD(lfp) { \
111 mutex_enter(&(lfp)->lf_lock); \
112 (lfp)->lf_refcnt++; \
113 mutex_exit(&(lfp)->lf_lock); \
116 #define LOG_FILE_RELE(lfp) { \
117 log_file_rele(lfp); \
127 #define LOG_FILE_LOCK_TO_WRITE(lfp) { \
128 mutex_enter(&(lfp)->lf_lock); \
129 (lfp)->lf_refcnt++; \
130 (lfp)
536 log_file_rele(struct log_file *lfp) argument
738 struct log_file *lfp = NULL; local
771 nfslog_write_logrecords(struct log_file *lfp, struct lr_alloc *lrp_writers, int num_recs) argument
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/
H A Dserver.c54 extern FILE *lfp; /* log file for mailing changes */
208 log(lfp, cp);
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, "ou
[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");
/illumos-gate/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) argument
572 if (lfp == rfp)
575 if (CTF_TYPE_ISPARENT(ltype) && lfp->ctf_parent != NULL)
576 lfp = lfp->ctf_parent;
581 if (lfp < rfp)
584 if (lfp > rfp)
597 ctf_type_compat(ctf_file_t *lfp, ctf_id_t ltype, argument
605 if (ctf_type_cmp(lfp, ltype, rfp, rtype) == 0)
608 ltype = ctf_type_resolve(lfp, ltyp
[all...]
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/
H A Dutilities.c1489 if (lfp == NULL) {
1490 lfp = (struct lockfs *)malloc(sizeof (struct lockfs));
1491 if (lfp == NULL)
1493 (void) memset((void *)lfp, 0, sizeof (struct lockfs));
1496 lfp->lf_comlen = LOCKFS_MAXCOMMENTLEN;
1497 lfp->lf_comment = elock_combuf;
1499 if (ioctl(mountfd, _FIOLFSS, lfp) == -1)
1504 * taking lfp as an arg) could free lfp. This is not the
1507 retval = LOCKFS_IS_ELOCK(lfp);
[all...]
H A Dfsck.h350 struct lockfs *lfp; /* current lockfs status */ variable in typeref:struct:lockfs
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_panic.c1218 get_lockfs_status(ufs_failure_t *f, struct lockfs *lfp) argument
1232 f->uf_lf_err = ufs_fiolfss(f->uf_ufsvfsp->vfs_root, lfp);
2095 alloc_lockfs_comment(ufs_failure_t *f, struct lockfs *lfp) argument
2115 if ((LOCKFS_IS_ELOCK(&f->uf_lf) || !lfp->lf_comment ||
2116 lfp->lf_comlen <= 0)) {
2120 from = lfp->lf_comment;
2121 len = lfp->lf_comlen;
2134 set_lockfs(ufs_failure_t *f, struct lockfs *lfp) argument
2156 alloc_lockfs_comment(f, lfp);
2159 if (!LOCKFS_IS_ELOCK(lfp)) {
2386 lock_name(struct lockfs *lfp) argument
[all...]
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_parser.c333 ctf_file_t *lfp = lp->dn_ctfp; local
339 ctf_id_t lbase = ctf_type_resolve(lfp, ltype);
340 uint_t lkind = ctf_type_kind(lfp, lbase);
353 lfp = DT_INT_CTFP(dtp);
362 if (ctf_type_encoding(lfp, lbase, &le) == CTF_ERR) {
363 yypcb->pcb_hdl->dt_ctferr = ctf_errno(lfp);
392 *ofp = lfp;
1044 ctf_file_t *lfp = lp->dn_ctfp; local
1083 lbase = ctf_type_resolve(lfp, lp->dn_type);
1084 lkind = ctf_type_kind(lfp, lbas
1155 ctf_file_t *lfp = lp->dn_ctfp; local
[all...]
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_output.c1003 sctp_faddr_t *lfp; local
1017 lfp = sctp->sctp_lastdata;
1018 ASSERT(lfp != NULL);
1019 if (lfp->sf_state != SCTP_FADDRS_ALIVE)
1020 lfp = sctp->sctp_current;
1088 if (sacklen > 0 && (seglen + extra <= lfp->sf_cwnd -
1089 lfp->sf_suna) &&
1090 (seglen + sacklen + extra <= lfp->sf_pmss)) {
1095 pathmax = lfp->sf_cwnd - lfp
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/
H A Dipqosconf.c9904 int lfp; local
10005 lfp = lock();
10006 if (lfp == -1) {
10030 (void) unlock(lfp);

Completed in 85 milliseconds