CVS log for src/lib/libc/gen/readdir.c
Up to [FreeBSD] / src / lib / libc / gen
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.15.4.1.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 11 04:20:22 2011 UTC (2 months, 4 weeks ago) by kensmith
Branches: RELENG_9_0
CVS tags: RELENG_9_0_0_RELEASE
Diff to: previous 1.15.4.1: preferred, colored
Changes since revision 1.15.4.1: +0 -0 lines
SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release cycle. Approved by: re (implicit)
Revision 1.15.4.1: download - view: text, markup, annotated - select for diffs
Fri Sep 23 00:51:37 2011 UTC (4 months, 2 weeks ago) by kensmith
Branches: RELENG_9
CVS tags: RELENG_9_0_BP
Branch point for: RELENG_9_0
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +0 -0 lines
SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith Copy head to stable/9 as part of 9.0-RELEASE release cycle. Approved by: re (implicit)
Revision 1.13.2.2.4.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:10:29 2010 UTC (13 months, 2 weeks ago) by kensmith
Branches: RELENG_7_4
CVS tags: RELENG_7_4_0_RELEASE
Diff to: previous 1.13.2.2: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13.2.2: +0 -0 lines
SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release. Approved by: re (implicit)
Revision 1.15.2.1.6.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:09:25 2010 UTC (13 months, 2 weeks ago) by kensmith
Branches: RELENG_8_2
CVS tags: RELENG_8_2_0_RELEASE
Diff to: previous 1.15.2.1: preferred, colored; next MAIN 1.15.4.1: preferred, colored
Changes since revision 1.15.2.1: +0 -0 lines
SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release. Approved by: re (implicit)
Revision 1.15.2.1.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 14 02:09:06 2010 UTC (19 months, 3 weeks ago) by kensmith
Branches: RELENG_8_1
CVS tags: RELENG_8_1_0_RELEASE
Diff to: previous 1.15.2.1: preferred, colored; next MAIN 1.15.4.1: preferred, colored
Changes since revision 1.15.2.1: +0 -0 lines
SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith Copy stable/8 to releng/8.1 in preparation for 8.1-RC1. Approved by: re (implicit)
Revision 1.13.2.2.2.1: download - view: text, markup, annotated - select for diffs
Wed Feb 10 00:26:20 2010 UTC (23 months, 4 weeks ago) by kensmith
Branches: RELENG_7_3
CVS tags: RELENG_7_3_0_RELEASE
Diff to: previous 1.13.2.2: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13.2.2: +0 -0 lines
SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process. Approved by: re (implicit)
Revision 1.15.2.1.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 25 01:10:29 2009 UTC (2 years, 3 months ago) by kensmith
Branches: RELENG_8_0
CVS tags: RELENG_8_0_0_RELEASE
Diff to: previous 1.15.2.1: preferred, colored; next MAIN 1.15.4.1: preferred, colored
Changes since revision 1.15.2.1: +0 -0 lines
SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure. Approved by: re (implicit)
Revision 1.15.2.1: download - view: text, markup, annotated - select for diffs
Mon Aug 3 08:13:06 2009 UTC (2 years, 6 months ago) by kensmith
Branches: RELENG_8
CVS tags: RELENG_8_2_BP, RELENG_8_1_BP, RELENG_8_0_BP
Branch point for: RELENG_8_2, RELENG_8_1, RELENG_8_0
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +0 -0 lines
SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith Copy head to stable/8 as part of 8.0 Release cycle. Approved by: re (Implicit)
Revision 1.13.2.2: download - view: text, markup, annotated - select for diffs
Mon Jun 8 19:52:12 2009 UTC (2 years, 8 months ago) by des
Branches: RELENG_7
CVS tags: RELENG_7_4_BP, RELENG_7_3_BP
Branch point for: RELENG_7_4, RELENG_7_3
Diff to: previous 1.13.2.1: preferred, colored; branchpoint 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13.2.1: +4 -4 lines
SVN rev 193741 on 2009-06-08 19:52:12Z by des merge r174221: remove unnecessary casts
Revision 1.13.2.1.4.1: download - view: text, markup, annotated - select for diffs
Wed Apr 15 03:14:26 2009 UTC (2 years, 9 months ago) by kensmith
Branches: RELENG_7_2
CVS tags: RELENG_7_2_0_RELEASE
Diff to: previous 1.13.2.1: preferred, colored; next MAIN 1.13.2.2: preferred, colored
Changes since revision 1.13.2.1: +0 -0 lines
SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE. Approved by: re (implicit)
Revision 1.13.2.1.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 25 02:59:29 2008 UTC (3 years, 2 months ago) by kensmith
Branches: RELENG_7_1
CVS tags: RELENG_7_1_0_RELEASE
Diff to: previous 1.13.2.1: preferred, colored; next MAIN 1.13.2.2: preferred, colored
Changes since revision 1.13.2.1: +0 -0 lines
SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith Create releng/7.1 in preparation for moving into RC phase of 7.1 release cycle. Approved by: re (implicit)
Revision 1.11.14.1.2.1: download - view: text, markup, annotated - select for diffs
Thu Oct 2 02:57:24 2008 UTC (3 years, 4 months ago) by kensmith
Branches: RELENG_6_4
CVS tags: RELENG_6_4_0_RELEASE
Diff to: previous 1.11.14.1: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11.14.1: +0 -0 lines
SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith Create releng/6.4 from stable/6 in preparation for 6.4-RC1. Approved by: re (implicit)
Revision 1.11.14.1: download - view: text, markup, annotated - select for diffs
Mon May 19 11:50:48 2008 UTC (3 years, 8 months ago) by kib
Branches: RELENG_6
CVS tags: RELENG_6_4_BP
Branch point for: RELENG_6_4
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +7 -6 lines
MFC rev. 1.15 of lib/libc/gen/readdir.c rev. 1.11 of lib/libc/gen/telldir.c rev. 1.3 of lib/libc/gen/telldir.h Do not read away the target directory entry when encountering deleted files after a seekdir(). The seekdir shall set the position for the next readdir operation. When the _readdir_unlocked() encounters deleted entry, dd_loc is already advanced. Continuing the loop leads to premature read of the target entry. Submitted by: Marc Balmer <mbalmer at openbsd org> Obtained from: OpenBSD
Revision 1.13.2.1: download - view: text, markup, annotated - select for diffs
Mon May 19 11:43:36 2008 UTC (3 years, 8 months ago) by kib
Branches: RELENG_7
CVS tags: RELENG_7_2_BP, RELENG_7_1_BP
Branch point for: RELENG_7_2, RELENG_7_1
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +7 -6 lines
MFC rev. 1.15 of lib/libc/gen/readdir.c rev. 1.11 of lib/libc/gen/telldir.c rev. 1.3 of lib/libc/gen/telldir.h Do not read away the target directory entry when encountering deleted files after a seekdir(). The seekdir shall set the position for the next readdir operation. When the _readdir_unlocked() encounters deleted entry, dd_loc is already advanced. Continuing the loop leads to premature read of the target entry. Submitted by: Marc Balmer <mbalmer at openbsd org> Obtained from: OpenBSD
Revision 1.15: download - view: text, markup, annotated - select for diffs
Mon May 5 14:05:23 2008 UTC (3 years, 9 months ago) by kib
Branches: MAIN
CVS tags: RELENG_9_BP, RELENG_8_BP, HEAD
Branch point for: RELENG_9, RELENG_8
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +7 -6 lines
Do not read away the target directory entry when encountering deleted files after a seekdir(). The seekdir shall set the position for the next readdir operation. When the _readdir_unlocked() encounters deleted entry, dd_loc is already advanced. Continuing the loop leads to premature read of the target entry. Submitted by: Marc Balmer <mbalmer at openbsd org> Obtained from: OpenBSD MFC after: 2 weeks
Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Dec 3 14:33:50 2007 UTC (4 years, 2 months ago) by des
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +4 -4 lines
Since jb@ fixed the type of dd_lock in <dirent.h>, these casts are no longer required.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Tue Jan 9 00:27:55 2007 UTC (5 years, 1 month ago) by imp
Branches: MAIN
CVS tags: RELENG_7_BP, RELENG_7_0_BP, RELENG_7_0_0_RELEASE, RELENG_7_0
Branch point for: RELENG_7
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +0 -4 lines
Per Regents of the University of Calfornia letter, remove advertising clause. # If I've done so improperly on a file, please let me know.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Sep 12 19:52:41 2005 UTC (6 years, 4 months ago) by stefanf
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +1 -0 lines
Include a couple of headers to ensure consistency between the prototype and the function definition.
Revision 1.5.2.4: download - view: text, markup, annotated - select for diffs
Tue Feb 26 22:53:57 2002 UTC (9 years, 11 months ago) by alfred
Branches: RELENG_4
CVS tags: RELENG_4_9_BP, RELENG_4_9_0_RELEASE, RELENG_4_9, RELENG_4_8_BP, RELENG_4_8_0_RELEASE, RELENG_4_8, RELENG_4_7_BP, RELENG_4_7_0_RELEASE, RELENG_4_7, RELENG_4_6_BP, RELENG_4_6_2_RELEASE, RELENG_4_6_1_RELEASE, RELENG_4_6_0_RELEASE, RELENG_4_6, RELENG_4_11_BP, RELENG_4_11_0_RELEASE, RELENG_4_11, RELENG_4_10_BP, RELENG_4_10_0_RELEASE, RELENG_4_10
Diff to: previous 1.5.2.3: preferred, colored; branchpoint 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.2.3: +2 -2 lines
MFC: 1.11 (use _GENERIC_DIRSIZ instead of sizeof)
Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue Feb 26 21:39:32 2002 UTC (9 years, 11 months ago) by alfred
Branches: MAIN
CVS tags: RELENG_6_BP, RELENG_6_3_BP, RELENG_6_3_0_RELEASE, RELENG_6_3, RELENG_6_2_BP, RELENG_6_2_0_RELEASE, RELENG_6_2, RELENG_6_1_BP, RELENG_6_1_0_RELEASE, RELENG_6_1, RELENG_6_0_BP, RELENG_6_0_0_RELEASE, RELENG_6_0, RELENG_5_BP, RELENG_5_5_BP, RELENG_5_5_0_RELEASE, RELENG_5_5, RELENG_5_4_BP, RELENG_5_4_0_RELEASE, RELENG_5_4, RELENG_5_3_BP, RELENG_5_3_0_RELEASE, RELENG_5_3, RELENG_5_2_BP, RELENG_5_2_1_RELEASE, RELENG_5_2_0_RELEASE, RELENG_5_2, RELENG_5_1_BP, RELENG_5_1_0_RELEASE, RELENG_5_1, RELENG_5_0_BP, RELENG_5_0_0_RELEASE, RELENG_5_0, RELENG_5
Branch point for: RELENG_6
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -2 lines
use _GENERIC_DIRSIZ(dp) to avoid copying too much of the dirent over the user supplied buffer. this can be a problem when the user doesn't supply a full dirent and we corrupt their memory.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Feb 1 00:57:29 2002 UTC (10 years ago) by obrien
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -3 lines
Fix SCM ID's.
Revision 1.5.2.3: download - view: text, markup, annotated - select for diffs
Mon Mar 5 09:32:28 2001 UTC (10 years, 11 months ago) by obrien
Branches: RELENG_4
CVS tags: RELENG_4_5_BP, RELENG_4_5_0_RELEASE, RELENG_4_5, RELENG_4_4_BP, RELENG_4_4_0_RELEASE, RELENG_4_4, RELENG_4_3_BP, RELENG_4_3_0_RELEASE, RELENG_4_3
Diff to: previous 1.5.2.2: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.2.2: +3 -3 lines
MFC: 1.9: remove register
Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Jan 24 12:59:23 2001 UTC (11 years ago) by deischen
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +33 -25 lines
Remove _THREAD_SAFE and make libc thread-safe by default by adding (weak definitions to) stubs for some of the pthread functions. If the threads library is linked in, the real pthread functions will pulled in. Use the following convention for system calls wrapped by the threads library: __sys_foo - actual system call _foo - weak definition to __sys_foo foo - weak definition to __sys_foo Change all libc uses of system calls wrapped by the threads library from foo to _foo. In order to define the prototypes for _foo(), we introduce namespace.h and un-namespace.h (suggested by bde). All files that need to reference these system calls, should include namespace.h before any standard includes, then include un-namespace.h after the standard includes and before any local includes. <db.h> is an exception and shouldn't be included in between namespace.h and un-namespace.h namespace.h will define foo to _foo, and un-namespace.h will undefine foo. Try to eliminate some of the recursive calls to MT-safe functions in libc/stdio in preparation for adding a mutex to FILE. We have recursive mutexes, but would like to avoid using them if possible. Remove uneeded includes of <errno.h> from a few files. Add $FreeBSD$ to a few files in order to pass commitprep. Approved by: -arch
Revision 1.5.2.2: download - view: text, markup, annotated - select for diffs
Wed Dec 13 10:02:22 2000 UTC (11 years, 1 month ago) by obrien
Branches: RELENG_4
Diff to: previous 1.5.2.1: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.2.1: +2 -2 lines
MFC: rev 1.8 make the comment fully a comment
Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed Dec 13 08:59:18 2000 UTC (11 years, 1 month ago) by obrien
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -2 lines
#endif should not have a non-comment token after it. GCC 2.97 (snapshot) complains about this.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Wed Dec 6 03:15:49 2000 UTC (11 years, 2 months ago) by deischen
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +6 -5 lines
Cleanup XXXdir functions to eliminate global hash table of
telldir positions. This will allow (future) locking on a
per-DIR basis (for MT-safety). For now, this change does
the following:
o Remove the hash table from telldir.c. Recode to use queue
macros.
o Remove 'const' from 'telldir(const DIR *)'.
o Remove 'register' variables as suggested in a recent
thread.
No response from: -current
Revision 1.5.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 22 01:52:50 2000 UTC (11 years, 5 months ago) by jhb
Branches: RELENG_4
CVS tags: RELENG_4_2_0_RELEASE, RELENG_4_1_1_RELEASE
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -1 lines
MFC: #include <string.h> for memcpy() prototype
Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Jun 3 00:27:54 2000 UTC (11 years, 8 months ago) by kris
Branches: MAIN
CVS tags: PRE_SMPNG
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -1 lines
#include <string.h> for memcpy() prototype Obtained from: OpenBSD
Revision 1.2.2.1: download - view: text, markup, annotated - select for diffs
Tue Jan 4 10:20:41 2000 UTC (12 years, 1 month ago) by tg
Branches: RELENG_3
CVS tags: RELENG_3_5_0_RELEASE
Diff to: previous 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2: +50 -0 lines
MFC: Add rand_r and readdir_r. Reviewed by: deischen
Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Nov 29 19:12:49 1999 UTC (12 years, 2 months ago) by alfred
Branches: MAIN
CVS tags: RELENG_4_BP, RELENG_4_1_0_RELEASE, RELENG_4_0_0_RELEASE
Branch point for: RELENG_4
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +21 -18 lines
style fixes, remove extra braces. readdir_r is not POSIX according to POSIX_SOURCE, bruce says: > readdir_r() is in the _POSIX_SOURCE section, but is not a POSIX.1-1990 > function. It's POSIX.1-1996 so it should be under a different feature > test which we don't support yet. make sure errno is saved so that its contents are cleared unless necessary. Submitted by: bde
Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Nov 29 06:12:22 1999 UTC (12 years, 2 months ago) by wes
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +9 -6 lines
Provide a man page for Alfreds lovely readdir_r function. Also
fixed a minor indentation nit and added a few {}s to make readdir_r
easier on old eyes.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Nov 28 05:38:13 1999 UTC (12 years, 2 months ago) by alfred
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +44 -0 lines
add pthread_cancel, obtained from OpenBSD. eischen (Daniel Eischen) added wrappers to protect against cancled threads orphaning internal resources. the cancelability code is still a bit fuzzy but works for test programs of my own, OpenBSD's and some examples from ORA's books. add readdir_r to both libc and libc_r add some 'const' attributes to function parameters Reviewed by: eischen, jasone
Revision 1.2: download - view: text, markup, annotated - select for diffs
Fri Feb 20 08:00:01 1998 UTC (13 years, 11 months ago) by jb
Branches: MAIN
CVS tags: RELENG_3_BP, RELENG_3_4_0_RELEASE, RELENG_3_3_0_RELEASE, RELENG_3_2_PAO_BP, RELENG_3_2_PAO, RELENG_3_2_0_RELEASE, RELENG_3_1_0_RELEASE, RELENG_3_0_0_RELEASE
Branch point for: RELENG_3
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +13 -10 lines
Fix a bogus cast for a bogus pointer check. This only checks if the pointer is 4-byte aligned. On a 64-bit machine it probably should check that the pointer is 8-byte aligned (eh, Bruce?) 8-)
Revision 1.1.1.2 (vendor branch): download - view: text, markup, annotated - select for diffs
Tue Mar 11 11:26:13 1997 UTC (14 years, 11 months ago) by peter
Branches: CSRG
CVS tags: bsd_44_lite_2
Diff to: previous 1.1.1.1: preferred, colored
Changes since revision 1.1.1.1: +12 -9 lines
Import CSRG 4.4BSD-Lite2 lib/libc onto vendor branch
Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Fri May 27 04:56:39 1994 UTC (17 years, 8 months ago) by rgrimes
Branches: CSRG
CVS tags: bsd_44_lite, RELENG_2_2_BP, RELENG_2_2_8_RELEASE, RELENG_2_2_7_RELEASE, RELENG_2_2_6_RELEASE, RELENG_2_2_5_RELEASE, RELENG_2_2_2_RELEASE, RELENG_2_2_1_RELEASE, RELENG_2_2_0_RELEASE, RELENG_2_2, RELENG_2_1_7_RELEASE, RELENG_2_1_6_RELEASE, RELENG_2_1_6_1_RELEASE, RELENG_2_1_5_RELEASE, RELENG_2_1_0_RELEASE, RELENG_2_1_0_BP, RELENG_2_1_0, RELENG_2_0_5_RELEASE, RELENG_2_0_5_BP, RELENG_2_0_5_ALPHA, RELENG_2_0_5, RELEASE_2_0, BETA_2_0, ALPHA_2_0
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
BSD 4.4 Lite Lib Sources
Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri May 27 04:56:38 1994 UTC (17 years, 8 months ago) by rgrimes
Branches: MAIN
Initial revision
