DragonFly BSD

CVS log for src/lib/libc/stdio/freopen.c

[BACK] Up to [DragonFly] / src / lib / libc / stdio

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Nov 20 11:07:30 2005 UTC (9 years, 1 month ago) by swildner
Branches: MAIN
CVS tags: HEAD, DragonFly_RELEASE_2_0_Slip, DragonFly_RELEASE_2_0, DragonFly_RELEASE_1_8_Slip, DragonFly_RELEASE_1_8, DragonFly_RELEASE_1_6_Slip, DragonFly_RELEASE_1_6, DragonFly_RELEASE_1_4_Slip, DragonFly_RELEASE_1_4, DragonFly_RELEASE_1_12_Slip, DragonFly_RELEASE_1_12, DragonFly_RELEASE_1_10_Slip, DragonFly_RELEASE_1_10, DragonFly_Preview
Diff to: previous 1.6: preferred, colored; selected 1.3: preferred, colored
Changes since revision 1.6: +6 -6 lines
- Ansify function definitions.

- Fix some warnings.

- In function definitions, move the type on a line of its own.

- Remove (void) casts for discarded return values.

- Use va_copy() where appropriate.

In-collaboration-with: Alexey Slynko <slynko@tronet.ru>

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Jul 23 20:23:06 2005 UTC (9 years, 4 months ago) by joerg
Branches: MAIN
Diff to: previous 1.5: preferred, colored; selected 1.3: preferred, colored
Changes since revision 1.5: +19 -17 lines
First step to cleaning up stdio. This breaks the libc ABI, all programs
have to be recompiled.

Make FILE an opaque type for normal operation (anything outside libc).
This means programs have to use the exported interface, they can neither
make static instances on the heap or access fields of their own.

Introduce a new type __FILE_public, which contains the fields accessed
by the various macros. It is placed first in the real FILE and the
macros cast the given FILE * to __FILE_public for access. To allow
better argument checks, all macros have been converted to inline
functions instead.

Merge the various stdio helper headers into a single priv_stdio.h. The
license from the original files has been kept, the third clause is gone
as part of the UCB copyright addendum. They haven't been changed in
FreeBSD at all.

Add two new helper functions, fcookie and __fpending to read parts of
the hidden state. The former is handy for funopen users, the latter
exists on other systems as well.

Cleanup some minor warnings on the way and hide some local functions
with static.

Adept libftpio and CVS to the chanced API.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Jan 31 22:29:40 2005 UTC (9 years, 10 months ago) by dillon
Branches: MAIN
CVS tags: DragonFly_Stable, DragonFly_RELEASE_1_2_Slip, DragonFly_RELEASE_1_2
Diff to: previous 1.4: preferred, colored; selected 1.3: preferred, colored
Changes since revision 1.4: +4 -2 lines
Remove _THREAD_SAFE depenendancies.  Create weakly associated stubs for
posix threading calls used by libc and weak associations for procedures that
a threading library would otherwise have to override.  This allows a program
to be linked with libc, or linked with libc + a threading library.  libc_r
will be deprecated over time.

Traditionally libc_r had to be linked against a threading library rather then
libc.  Linux, FreeBSD, and other UNIXes have moved either t oa thread-safe
libc or a thread-capable libc.  The threading capability is accomplished by
making the appropriate thread locking calls and providing weakly referenced
dummy stub functions for the case where a threading library is not linked in.
Certain third party software, namely XFree/XOrg, also assume threading
stubs in libc.

This is precursor work to a port of David Xu's 1:1 threading library and is
also intended as a basis to allow DragonFly to support multiple threading
libraries.

Ported-by: David Rhodus <sdrhodus@gmail.com>
Primarily-ported-from: FreeBSD
Testing and bug fixes by David Xu and Matt Dillon

Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Jun 8 00:45:00 2004 UTC (10 years, 6 months ago) by hmp
Branches: MAIN
CVS tags: DragonFly_Snap29Sep2004, DragonFly_Snap13Sep2004, DragonFly_1_0_REL, DragonFly_1_0_RC1, DragonFly_1_0A_REL
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +57 -1 lines
C99 update: freopen(3) with NULL 'path' argument so that it opens the
same file with a different mode.

At the moment, we just recycle the old file descriptor instead of storing
it somewhere and using that to reopen the file, as the standard seems to
require.  Strictly conforming C99 applications would probably not be able
to tell the difference but POSIX ones can.

While I am there, update the manual page about the new functionality and
correct nearby mdoc(7) markup errors.

Original-work-by:    	Tim J. Robbins <tjr@freebsd.org>
Additional-work-by: 	Hiten Pandya <hmp@backplane.com>

Revision 1.3: download - view: text, markup, annotated - [selected for diffs]
Mon Jun 7 20:35:41 2004 UTC (10 years, 6 months ago) by hmp
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -4 lines
Use ANSI C prototypes and remove the !__STDC__ varargs compatibility
junk.

Add a missing '$DragonFly$' tag in stdio/setbuf.c file.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Jun 17 04:26:46 2003 UTC (11 years, 6 months ago) by dillon
Branches: MAIN
Diff to: previous 1.1: preferred, colored; selected 1.3: preferred, colored
Changes since revision 1.1: +4 -8 lines
Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids.  Most
ids have been removed from !lint sections and moved into comment sections.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue Jun 17 02:51:03 2003 UTC (11 years, 6 months ago) by dillon
Branches: MAIN
CVS tags: FREEBSD_4_FORK
Diff to: selected 1.3: preferred, colored
import from FreeBSD RELENG_4 1.5.2.1

Diff request

This form allows you to request diffs 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.

Log view options