Home
last modified time | relevance | path

Searched refs:lf (Results 1 – 25 of 50) sorted by relevance

12

/illumos-gate/usr/src/cmd/fs.d/ufs/lockfs/
H A Dlockfs.c255 struct lockfs lf; in printstatus() local
267 bzero((caddr_t)&lf, sizeof (struct lockfs)); in printstatus()
269 lf.lf_flags = LOCKFS_MOD; in printstatus()
270 lf.lf_comlen = LOCKFS_MAXCOMMENTLEN; in printstatus()
271 lf.lf_comment = commentbuffer; in printstatus()
273 if (ioctl(fd, _FIOLFSS, &lf) == -1) { in printstatus()
279 switch (lf.lf_lock) { in printstatus()
283 if (LOCKFS_IS_BUSY(&lf)) in printstatus()
289 if (LOCKFS_IS_BUSY(&lf)) in printstatus()
293 fsmod = LOCKFS_IS_MOD(&lf); in printstatus()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/port/
H A Dlcgen.c283 FILE* lf; local
305 if (!(lf = fopen(lib, "w")))
338 fprintf(lf, "/* : : generated by %s : : */\n", command);
339 fprintf(lf, "\n");
340 fprintf(lf, "#include \"lclib.h\"\n");
341 fprintf(lf, "#include \"lclang.h\"\n");
342 fprintf(lf, "\n");
511 fprintf(lf, "\nconst Lc_attribute_t attribute_%s[] =\n{\n", lp->link.code);
522 fprintf(lf, "{\"%s\",", b);
524 fprintf(lf, "LC_%s,", f);
[all …]
/illumos-gate/usr/src/test/os-tests/tests/file-locking/
H A Druntests.c55 static void flock_fcntl(lockinfo_t *lf, int cmd, struct flock *fl);
103 flock_fcntl(lockinfo_t *lf, int cmd, struct flock *fl) in flock_fcntl() argument
105 if (fcntl(lf->lf_fd, cmd, fl) == -1) { in flock_fcntl()
112 assert_write_locked_by(lockinfo_t *lf, pid_t pid) in assert_write_locked_by() argument
117 flock_fcntl(lf, F_GETLK, &fl); in assert_write_locked_by()
123 flock_fcntl(lf, F_OFD_GETLK, &fl); in assert_write_locked_by()
129 flock_fcntl(lf, F_GETLK, &fl); in assert_write_locked_by()
135 flock_fcntl(lf, F_OFD_GETLK, &fl); in assert_write_locked_by()
143 assert_read_locked_by(lockinfo_t *lf, pid_t pid) in assert_read_locked_by() argument
148 flock_fcntl(lf, F_GETLK, &fl); in assert_read_locked_by()
[all …]
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/dtraceUtil/
H A Dman.ListProbesWithFunctions37 * /usr/sbin/dtrace -lf profile
41 * /usr/sbin/dtrace -lf genunix
45 * /usr/sbin/dtrace -lf read
49 * /usr/sbin/dtrace -lf genunix:read
54 * /usr/sbin/dtrace -lf sysinfo:genunix:read
59 * /usr/sbin/dtrace -lf :genunix::
63 * /usr/sbin/dtrace -lf ::read:
67 * /usr/sbin/dtrace -lf profile:::profile-97
71 * /usr/sbin/dtrace -lf read -lf write
75 * /usr/sbin/dtrace -lf read -lm fight
[all …]
/illumos-gate/usr/src/cmd/tbl/
H A Dt7.c49 int c, ct, vforml, lf; in runtabs() local
54 for(lf=prev(lform); lf>=0 && vspen(table[lf][c].col); lf=prev(lf)) in runtabs()
55 vforml=lf; in runtabs()
117 int i, c, lf, lwid; in deftail() local
143 if ((lf=left(nlin-1,c, &lwid))>=0) in deftail()
145 fprintf(tabout, ".if \\n(#%c>=0 .sp -1\n",linestop[lf]+'a'-1); in deftail()
146 fprintf(tabout, ".if \\n(#%c>=0 ", linestop[lf]+'a'-1); in deftail()
148 drawvert(lf, nlin-1, c, lwid); in deftail()
H A Dt8.c38 int c, lf, ct, form, lwid, vspf, ip = -1, cmidx, exvspen, vforml; in putline() local
64 lf = prev(nl); in putline()
84 if (lf>=0) in putline()
85 if (vspen(table[lf][c].col)) vspf=1; in putline()
100 lf=prev(nl); in putline()
101 if (lf>=0 && vspen(table[lf][c].col)) in putline()
122 if (watchout==0 && i+1<nlin && (lf=left(i,c, &lwid))>=0) in putline()
125 drawvert(lf, i, c, lwid); in putline()
130 for(lf=prev(nl); lf>=0 && vspen(table[lf][c].col); lf=prev(lf)) in putline()
131 vforml= lf; in putline()
[all …]
/illumos-gate/usr/src/cmd/pools/poolstat/
H A Dpoolstat.c53 #define PRINTABLE(i) ((lf->plf_ffs[(i)].pff_prt & D_FIELD) || \
54 (lf->plf_ffs[(i)].pff_prt & X_FIELD))
359 create_prt_sequence_list(char *arg, poolstat_line_format_t *lf) in create_prt_sequence_list() argument
368 NEW0(lf->plf_prt_seq); in create_prt_sequence_list()
369 lf->plf_ffs[0].pff_prt |= PRINTABLE(0) ? PABLE_FIELD : 0; in create_prt_sequence_list()
370 lf->plf_last = lf->plf_prt_seq; in create_prt_sequence_list()
371 lf->plf_last->ple_obj = &(lf->plf_ffs[0]); in create_prt_sequence_list()
372 for (i = 1; i < lf->plf_ff_len; i++) { in create_prt_sequence_list()
373 lf->plf_ffs[i].pff_prt |= in create_prt_sequence_list()
375 NEW0(lf->plf_last->ple_next); in create_prt_sequence_list()
[all …]
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_log.c76 char *lf) in _nscd_set_lf() argument
84 if (lf == NULL || *lf == 0) { in _nscd_set_lf()
87 } else if (strcmp(lf, "/dev/null") == 0) { in _nscd_set_lf()
88 (void) strlcpy(_nscd_logfile, lf, PATH_MAX); in _nscd_set_lf()
93 } else if (strcmp(lf, "stderr") == 0) { in _nscd_set_lf()
94 (void) strlcpy(_nscd_logfile, lf, PATH_MAX); in _nscd_set_lf()
105 if ((newlogfd = open(lf, O_EXCL|O_WRONLY|O_CREAT, 0644)) < 0) { in _nscd_set_lf()
114 if (lstat(lf, &before) < 0) { in _nscd_set_lf()
118 lf, strerror(errno)); in _nscd_set_lf()
126 open(lf, O_APPEND|O_WRONLY, 0644)) < 0) { in _nscd_set_lf()
[all …]
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_snap.c67 struct lockfs lf; in ufs_snap_create() local
106 if ((error = ufs_fiolfss(vp, &lf)) != 0) { in ufs_snap_create()
111 if (!LOCKFS_IS_ULOCK(&lf)) { in ufs_snap_create()
117 lf.lf_lock = LOCKFS_WLOCK; in ufs_snap_create()
118 lf.lf_flags = 0; in ufs_snap_create()
119 lf.lf_comment = NULL; in ufs_snap_create()
120 if ((error = ufs_fiolfs(vp, &lf, 1)) != 0) { in ufs_snap_create()
210 lf.lf_lock = LOCKFS_ULOCK; in ufs_snap_create()
211 lf.lf_flags = 0; in ufs_snap_create()
212 if ((ufs_fiolfs(vp, &lf, 1) != 0) && !error) { in ufs_snap_create()
H A Dlufs.c854 struct lockfs lf; in lufs_disable() local
876 error = ufs_fiolfss(vp, &lf); in lufs_disable()
880 if (!LOCKFS_IS_ULOCK(&lf)) { in lufs_disable()
884 lf.lf_lock = LOCKFS_WLOCK; in lufs_disable()
885 lf.lf_flags = 0; in lufs_disable()
886 lf.lf_comment = NULL; in lufs_disable()
887 error = ufs_fiolfs(vp, &lf, 1); in lufs_disable()
963 lf.lf_lock = LOCKFS_ULOCK; in lufs_disable()
964 lf.lf_flags = 0; in lufs_disable()
965 error = ufs_fiolfs(vp, &lf, 1); in lufs_disable()
[all …]
H A Dufs_alloc.c1497 allocsp_wlockfs(struct vnode *vp, struct lockfs *lf) in allocsp_wlockfs() argument
1503 err = ufs_fiolfss(vp, lf); in allocsp_wlockfs()
1506 } while (!LOCKFS_IS_ULOCK(lf)); in allocsp_wlockfs()
1508 lf->lf_lock = LOCKFS_WLOCK; in allocsp_wlockfs()
1509 lf->lf_flags = 0; in allocsp_wlockfs()
1510 lf->lf_comment = NULL; in allocsp_wlockfs()
1511 err = ufs__fiolfs(vp, lf, 1, 0); in allocsp_wlockfs()
1523 allocsp_unlockfs(struct vnode *vp, struct lockfs *lf) in allocsp_unlockfs() argument
1527 lf->lf_lock = LOCKFS_ULOCK; in allocsp_unlockfs()
1528 lf->lf_flags = 0; in allocsp_unlockfs()
[all …]
/illumos-gate/usr/src/cmd/ypcmd/
H A Dstdethers.c46 char line[MAXHOSTNAMELEN + 256], *lf, hostname[sizeof (line)]; in main() local
61 lf = strchr(line, '\n'); in main()
62 if (lf != NULL) in main()
63 *lf = '\0'; in main()
/illumos-gate/usr/src/cmd/eqn/
H A Dtext.c24 int lf, rf; /* temporary spots for left and right fonts */ variable
58 lf = rf = 0; in text()
61 if (lf == 0) in text()
62 lf = rf; /* save first */ in text()
69 lfont[yyval] = lf; in text()
/illumos-gate/usr/src/cmd/loadkeys/type_4/
H A Dkorea33 key 3 all lf(2)
55 key 25 all lf(3)
56 key 26 all lf(4)
79 key 49 all lf(5)
81 key 51 all lf(6)
102 key 72 all lf(7)
103 key 73 all lf(8)
125 key 95 all lf(9)
127 key 97 all lf(10)
148 key 118 all lf(16)
H A Dreset33 key 3 all lf(2)
55 key 25 all lf(3)
56 key 26 all lf(4)
79 key 49 all lf(5)
81 key 51 all lf(6)
102 key 72 all lf(7)
103 key 73 all lf(8)
125 key 95 all lf(9)
127 key 97 all lf(10)
148 key 118 all lf(16)
H A Dtraditional_chinese30 key 3 all lf(2)
52 key 25 all lf(3)
53 key 26 all lf(4)
76 key 49 all lf(5)
78 key 51 all lf(6)
99 key 72 all lf(7)
100 key 73 all lf(8)
122 key 95 all lf(9)
124 key 97 all lf(10)
145 key 118 all lf(16)
/illumos-gate/usr/src/cmd/power/
H A Dparse.c353 char *next, *lf; in find_line_end() local
357 while ((lf = strchr(next, '\n')) != NULL) { in find_line_end()
359 if (lf == line || (*(lf - 1) != '\\') || *(lf + 1) == '\0') in find_line_end()
361 next = lf + 1; in find_line_end()
363 return (lf); in find_line_end()
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs_log.c910 struct log_file *lf; in nfslog_logbuffer_rename() local
928 lf = lbp->lb_logfile; in nfslog_logbuffer_rename()
929 mutex_enter(&(lf)->lf_lock); in nfslog_logbuffer_rename()
931 lf->lf_refcnt++; in nfslog_logbuffer_rename()
932 mutex_exit(&(lf)->lf_lock); in nfslog_logbuffer_rename()
935 lf->lf_path, lbp->lb_path)); in nfslog_logbuffer_rename()
940 error = nfslog_logfile_rename(lf->lf_path, lbp->lb_path); in nfslog_logbuffer_rename()
950 (void) nfslog_logfile_rename(lbp->lb_path, lf->lf_path); in nfslog_logbuffer_rename()
963 LOG_FILE_RELE(lf); /* release log_buffer's reference */ in nfslog_logbuffer_rename()
970 nfslog_logfile_wait(lf); in nfslog_logbuffer_rename()
[all …]
/illumos-gate/usr/src/cmd/vi/port/
H A Dex_vops3.c53 int (*lf)(); variable
84 lf = f;
349 lf = lindent; in lindent()
387 lf = 0; in lmatchp()
543 if (lf == vmove && wcursor > linebuf) in lnext()
555 if (lf == lindent && linebuf[0] == '(') in lnext()
/illumos-gate/usr/src/cmd/loadkeys/type_6/
H A Dreset146 key 116 all lf(7)
147 key 117 all lf(16)
148 key 118 all lf(3)
149 key 119 all lf(5)
151 key 121 all lf(2)
152 key 122 all lf(4)
153 key 123 all lf(10)
154 key 124 all lf(6)
155 key 125 all lf(8)
156 key 126 all lf(9)
/illumos-gate/usr/src/cmd/troff/troff.d/
H A Dt6.c621 int lf; local
623 if ((lf = fontbase[fbits(i)]->ligfont) == 0) /* font lacks ligatures */
626 if (cbits(j) == 'i' && (lf & LFI))
628 else if (cbits(j) == 'l' && (lf & LFL))
630 else if (cbits(j) == 'f' && (lf & LFF)) {
631 if ((lf & (LFFI|LFFL)) && lg != 2) {
633 if (cbits(k)=='i' && (lf&LFFI))
635 else if (cbits(k)=='l' && (lf&LFFL))
/illumos-gate/usr/src/common/tsol/
H A Dstol.c233 uint_t lf = (f & ~L_CHECK_AR); /* because L_DEFAULT == 0 */ in str_to_label() local
250 ((lf == L_NO_CORRECTION) || (lf == L_DEFAULT))) { in str_to_label()
293 } else if (IS_HEX(lf, s)) { in str_to_label()
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/
H A Dadb_openclose.c46 int lf; in osa_adb_create_db() local
65 lf = THREEPARAMOPEN(lockfilename, O_RDWR | O_CREAT | O_EXCL, 0600); in osa_adb_create_db()
66 if (lf == -1) in osa_adb_create_db()
68 (void) close(lf); in osa_adb_create_db()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/
H A Dfinger.c170 FILE *lf; /* LASTLOG file pointer */ variable
740 if ((lf = fopen(LASTLOG, "r")) == NULL) in fwopen()
749 if (lf != NULL) { in findwhen()
750 if (fseeko(lf, (off_t)pers->pwd->pw_uid * (off_t)sizeof (ll), in findwhen()
752 if (fread((char *)&ll, sizeof (ll), 1, lf) == 1) { in findwhen()
764 if (ferror(lf)) in findwhen()
785 if (lf != NULL) in fwclose()
786 (void) fclose(lf); in fwclose()
/illumos-gate/usr/src/cmd/lp/filter/postscript/font/devpost/charlib/
H A DBRACKETS_NOTE24 lc, rc, lf, and rf contain PostScript code that can be used to build the top
26 code field in the S font file for lc, rc, lf, and rf is set to 1. A code larger
38 The lc, rc, lf, and rf files are a very complicated attempt to get around the

12