OpenBSD CVS

CVS log for src/share/man/man9/file.9


[BACK] Up to [local] / src / share / man / man9

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.22 / (download) - annotate - [select for diffs], Fri Jan 3 05:37:00 2020 UTC (4 years, 5 months ago) by visa
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, HEAD
Changes since 1.21: +12 -2 lines
Diff to previous 1.21 (colored)

Fix a file descriptor close race in kqueue_register()

After inserting a knote, check that the associated file descriptor
still references the same file. Remove the knote if the descriptor
has changed because otherwise the kqueue becomes inconsistent with
the file descriptor table.

There is an analogous race in fcntl(F_SETLK). It is already handled,
but the code can be simplified by using the same check as in
kqueue_register().

Fix inspired by DragonFly BSD

OK mpi@, anton@

Revision 1.21 / (download) - annotate - [select for diffs], Tue Dec 31 16:59:35 2019 UTC (4 years, 5 months ago) by visa
Branch: MAIN
Changes since 1.20: +10 -2 lines
Diff to previous 1.20 (colored)

Document fd_getfile_mode(9).

OK mpi@

Revision 1.20 / (download) - annotate - [select for diffs], Mon Jul 15 04:20:38 2019 UTC (4 years, 10 months ago) by visa
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.19: +5 -2 lines
Diff to previous 1.19 (colored)

Document locking with fdrelease().

Revision 1.19 / (download) - annotate - [select for diffs], Thu May 17 15:21:06 2018 UTC (6 years ago) by visa
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.18: +11 -15 lines
Diff to previous 1.18 (colored)

Update the manual to match with the current semantics of fd_getfile().
Also, adjust the notes about FREF() and FRELE() as proper reference
counting is becoming mandatory.

OK jmc@, mpi@

Revision 1.18 / (download) - annotate - [select for diffs], Sat Feb 11 23:12:22 2017 UTC (7 years, 3 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

tweak previous;

Revision 1.17 / (download) - annotate - [select for diffs], Sat Feb 11 19:51:06 2017 UTC (7 years, 3 months ago) by guenther
Branch: MAIN
Changes since 1.16: +27 -12 lines
Diff to previous 1.16 (colored)

Add a flags argument to falloc() that lets it optionally set the
close-on-exec flag on the newly allocated fd.  Make falloc()'s
return arguments non-optional: assert that they're not NULL.

ok mpi@ millert@

Revision 1.16 / (download) - annotate - [select for diffs], Mon Nov 23 17:53:57 2015 UTC (8 years, 6 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.15: +10 -4 lines
Diff to previous 1.15 (colored)

add missing NAME entries;
feedback/ok schwarze

Revision 1.15 / (download) - annotate - [select for diffs], Thu May 7 08:53:33 2015 UTC (9 years, 1 month ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.14: +8 -15 lines
Diff to previous 1.14 (colored)

Pass a thread pointer instead of its file descriptor table to getvnode(9).

Input and ok millert@

Revision 1.14 / (download) - annotate - [select for diffs], Wed May 6 08:52:17 2015 UTC (9 years, 1 month ago) by mpi
Branch: MAIN
Changes since 1.13: +18 -11 lines
Diff to previous 1.13 (colored)

Pass a thread pointer instead of its file descriptor table to getsock(9).

Diff from Vitaliy Makkoveev.

Manpage tweak and ok millert@

Revision 1.13 / (download) - annotate - [select for diffs], Thu Apr 30 11:46:16 2015 UTC (9 years, 1 month ago) by millert
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

FRELE returns an int not void.  It is actually the return value
of fdrop() (or 0 if the ref count is non-zero).  From Kanonenvogel

Revision 1.12 / (download) - annotate - [select for diffs], Tue Jun 4 19:27:06 2013 UTC (11 years ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.11: +7 -7 lines
Diff to previous 1.11 (colored)

Replace old-fashioned .Fd by new-fangled .In for #include lines.
Diff from Jan Klemkow <j dot klemkow at wemelug dot de> on tech@.
No objection from jmc@ against this type of change.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Oct 4 02:47:49 2012 UTC (11 years, 8 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)

FRELE() has a second argument now

Revision 1.10 / (download) - annotate - [select for diffs], Thu May 31 19:20:00 2007 UTC (17 years ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

convert to new .Dd format;

Revision 1.9 / (download) - annotate - [select for diffs], Tue Apr 3 06:37:37 2007 UTC (17 years, 2 months ago) by jasper
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

put "CODE REFERENCES" before "SEE ALSO" for consistency

ok jmc@

Revision 1.8 / (download) - annotate - [select for diffs], Wed Nov 8 08:23:33 2006 UTC (17 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.7: +6 -3 lines
Diff to previous 1.7 (colored)

getvnode requires vnode.h; from bret lambert
ok pedro

Revision 1.7 / (download) - annotate - [select for diffs], Thu Feb 5 14:25:52 2004 UTC (20 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

make .Nm match .Dt to avoid screwy apropos(1) output;
found by pb@

Revision 1.6 / (download) - annotate - [select for diffs], Sat Jan 24 06:50:21 2004 UTC (20 years, 4 months ago) by jmc
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

typo from Jared Yanovich;

Revision 1.5 / (download) - annotate - [select for diffs], Tue Apr 15 04:14:29 2003 UTC (21 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.4: +6 -6 lines
Diff to previous 1.4 (colored)

typos;

VOP, crypto and disklabel ok tedu@
audio(9) ok naddy@

Revision 1.4 / (download) - annotate - [select for diffs], Fri Aug 23 19:48:38 2002 UTC (21 years, 9 months ago) by art
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.3: +4 -3 lines
Diff to previous 1.3 (colored)

Document the FREF done in getvnode and soon in getsock.

Revision 1.3 / (download) - annotate - [select for diffs], Fri Aug 23 16:13:49 2002 UTC (21 years, 9 months ago) by mpech
Branch: MAIN
Changes since 1.2: +3 -4 lines
Diff to previous 1.2 (colored)

o) fix .Sh usage;
o) minor fix;

art@ ok

Revision 1.2 / (download) - annotate - [select for diffs], Fri Aug 23 15:59:09 2002 UTC (21 years, 9 months ago) by mpech
Branch: MAIN
Changes since 1.1: +7 -7 lines
Diff to previous 1.1 (colored)

o) fix .Xr usage;
o) typos;

art@ ok

Revision 1.1 / (download) - annotate - [select for diffs], Fri Aug 23 15:22:51 2002 UTC (21 years, 9 months ago) by art
Branch: MAIN

Document various file descriptor access functoins in the kernel.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.