Skip site navigation (1)Skip section navigation (2)

CVS log for src/include/stdio.h

[BACK] Up to [FreeBSD] / src / include

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.85: download - view: text, markup, annotated - select for diffs
Wed Dec 28 05:35:33 2011 UTC (6 weeks, 2 days ago) by delphij
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +1 -1 lines
SVN rev 228924 on 2011-12-28 05:35:33Z by delphij

In POSIX.1-2008:

P_tmpdir [OB XSI]  Default directory prefix for tempnam().

This macro is used in a lot of places in legacy applications,
and is why we see a lot of programs written for e.g. Linux
store volatile temporary files in /var/tmp and not /tmp.

MFC after:	2 months

Revision 1.84: download - view: text, markup, annotated - select for diffs
Sun Dec 25 16:03:54 2011 UTC (6 weeks, 4 days ago) by theraven
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +3 -1 lines
SVN rev 228875 on 2011-12-25 16:03:54Z by theraven

Restore __is_threaded in C++ mode.  Some Google stuff needs it apparently.

Reported by:	swills
Approved by:	dim (mentor)

Revision 1.83: download - view: text, markup, annotated - select for diffs
Tue Dec 13 13:32:56 2011 UTC (8 weeks, 2 days ago) by ed
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +2 -2 lines
SVN rev 228468 on 2011-12-13 13:32:56Z by ed

Replace __const by const in all non-contributed source code.

As C1X is close to being released, there is no need to wrap around a
feature that is already part of C90. Most of these files already use
`const' in different placed as well.

Revision 1.82: download - view: text, markup, annotated - select for diffs
Sun Nov 13 16:18:48 2011 UTC (2 months, 3 weeks ago) by theraven
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +8 -3 lines
SVN rev 227487 on 2011-11-13 16:18:48Z by theraven

The spec says that FILE must be defined in wchar.h, but it wasn't.  It
is now.  Also hide some macros in C++ mode that will break C++
namespaced calls.

Approved by:	dim (mentor)

Revision 1.81.2.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.81.2.1: preferred, colored; next MAIN 1.82: preferred, colored
Changes since revision 1.81.2.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.81.2.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.81: preferred, colored; next MAIN 1.82: preferred, colored
Changes since revision 1.81: +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.60.2.1.8.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.60.2.1: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60.2.1: +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.79.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.79.2.1: preferred, colored; next MAIN 1.80: preferred, colored
Changes since revision 1.79.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.81: download - view: text, markup, annotated - select for diffs
Fri Aug 6 19:35:40 2010 UTC (18 months ago) by ed
Branches: MAIN
CVS tags: RELENG_9_BP
Branch point for: RELENG_9
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +1 -2 lines
SVN rev 210957 on 2010-08-06 19:35:40Z by ed

Remove stale reference to UT_NAMESIZE from <stdio.h>.

Spotted by:	bde@

Revision 1.79.2.1.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 14 02:09:06 2010 UTC (19 months, 4 weeks ago) by kensmith
Branches: RELENG_8_1
CVS tags: RELENG_8_1_0_RELEASE
Diff to: previous 1.79.2.1: preferred, colored; next MAIN 1.80: preferred, colored
Changes since revision 1.79.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.80: download - view: text, markup, annotated - select for diffs
Tue Feb 16 19:39:50 2010 UTC (23 months, 3 weeks ago) by imp
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +1 -5 lines
SVN rev 203964 on 2010-02-16 19:39:50Z by imp

Remove the Berkeley clause 3's.
Add a few $FreeBSD$

Revision 1.60.2.1.6.1: download - view: text, markup, annotated - select for diffs
Wed Feb 10 00:26:20 2010 UTC (2 years ago) by kensmith
Branches: RELENG_7_3
CVS tags: RELENG_7_3_0_RELEASE
Diff to: previous 1.60.2.1: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60.2.1: +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.79.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.79.2.1: preferred, colored; next MAIN 1.80: preferred, colored
Changes since revision 1.79.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.79.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.79: preferred, colored; next MAIN 1.80: preferred, colored
Changes since revision 1.79: +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.79: download - view: text, markup, annotated - select for diffs
Tue Jun 23 23:53:35 2009 UTC (2 years, 7 months ago) by delphij
Branches: MAIN
CVS tags: RELENG_8_BP
Branch point for: RELENG_8
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +1 -1 lines
SVN rev 194801 on 2009-06-23 23:53:35Z by delphij

Merge fmtcheck() prototype change.

Obtained from:	NetBSD

Revision 1.60.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.60.2.1: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60.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.78: download - view: text, markup, annotated - select for diffs
Wed Mar 25 08:07:52 2009 UTC (2 years, 10 months ago) by das
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +1 -1 lines
SVN rev 190409 on 2009-03-25 08:07:52Z by das

Make programs that define a macro called `dprintf' more likely to work.

Revision 1.77: download - view: text, markup, annotated - select for diffs
Sat Mar 14 19:12:11 2009 UTC (2 years, 10 months ago) by das
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +2 -2 lines
SVN rev 189818 on 2009-03-14 19:12:11Z by das

Namespace: dprintf() and getline() are in P1003.1-2008.

Revision 1.76: download - view: text, markup, annotated - select for diffs
Wed Mar 4 03:38:51 2009 UTC (2 years, 11 months ago) by das
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +20 -4 lines
SVN rev 189356 on 2009-03-04 03:38:51Z by das

Add dprintf() and vdprintf() from POSIX.1-2008. Like getline(),
dprintf() is a simple wrapper around another function, so we may as
well implement it. But also like getline(), we can't prototype it by
default right now because it would break too many ports.

Revision 1.75: download - view: text, markup, annotated - select for diffs
Wed Mar 4 03:35:03 2009 UTC (2 years, 11 months ago) by das
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +1 -1 lines
SVN rev 189355 on 2009-03-04 03:35:03Z by das

Add renameat to the POSIX.1-2008 namespace.

Revision 1.74: download - view: text, markup, annotated - select for diffs
Sat Feb 28 06:00:58 2009 UTC (2 years, 11 months ago) by das
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +39 -0 lines
SVN rev 189136 on 2009-02-28 06:00:58Z by das

- Add getdelim(), getline(), stpncpy(), strnlen(), wcsnlen(),
  wcscasecmp(), and wcsncasecmp().
- Make some previously non-standard extensions visible
  if POSIX_VISIBLE >= 200809.
- Use restrict qualifiers in stpcpy().
- Declare off_t and size_t in stdio.h.
- Bump __FreeBSD_version in case the new symbols (particularly
  getline()) cause issues with ports.

Reviewed by:	standards@

Revision 1.60.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.60.2.1: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60.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.56.8.1.8.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.56.8.1: preferred, colored; next MAIN 1.57: preferred, colored
Changes since revision 1.56.8.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.73: download - view: text, markup, annotated - select for diffs
Wed May 7 15:12:45 2008 UTC (3 years, 9 months ago) by jhb
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +1 -1 lines
Tag FILE's _bf as being part of the public ABI as well due to the in-tree
sort(1) referencing it.

Revision 1.72: download - view: text, markup, annotated - select for diffs
Mon May 5 16:14:02 2008 UTC (3 years, 9 months ago) by jhb
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +0 -6 lines
Retire the __fgetcookie(), __fgetpendout(), and __fsetfileno() accessors
as we aren't hiding FILE's internals anymore.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Mon May 5 16:04:58 2008 UTC (3 years, 9 months ago) by jhb
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +1 -1 lines
Note that FILE's __cookie is also part of the public ABI.

Revision 1.70: download - view: text, markup, annotated - select for diffs
Mon May 5 16:03:51 2008 UTC (3 years, 9 months ago) by jhb
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +172 -4 lines
Expose FILE's internals to the world again in all their glory.  Restore
all the previous inline optimizations as well.  FILE is back to using
__mbstate_t, struct pthread *, and struct pthread_mutex *.

Revision 1.69: download - view: text, markup, annotated - select for diffs
Sat May 3 23:35:59 2008 UTC (3 years, 9 months ago) by marcel
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +3 -0 lines
Unbreak build: gnu sort has been configured to grope inside struct
__sFILE. It's opaque now, so add a function that returns the pending
output bytes.

Pointy hat: jhb

Revision 1.68: download - view: text, markup, annotated - select for diffs
Sat May 3 20:09:44 2008 UTC (3 years, 9 months ago) by marcel
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +3 -0 lines
Unbreak build: libftpio gropes inside struct __sFILE. Implement
accessor functions for its benefit now thaat FILE is opaque.
I'm sure there's a better way. I leave that for people to work
on in a src tree that isn't broken.

Pointy hat: jhb

Revision 1.67: download - view: text, markup, annotated - select for diffs
Fri May 2 15:59:22 2008 UTC (3 years, 9 months ago) by jhb
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +0 -2 lines
Axe now-empty __BSD_VISIBLE block that held renameat().

Reported by:	kib
Pointy hat:	jhb

Revision 1.66: download - view: text, markup, annotated - select for diffs
Fri May 2 15:28:23 2008 UTC (3 years, 9 months ago) by jhb
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +6 -6 lines
- Move declaration of renameat() to the existing section of BSD_VISIBLE
  function prototypes.
- Fix a few whitespace inconsistencies in prototypes.

MFC after:	1 month

Revision 1.65: download - view: text, markup, annotated - select for diffs
Fri May 2 15:25:07 2008 UTC (3 years, 9 months ago) by jhb
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +4 -172 lines
Next round of stdio changes: Remove all inlining of stdio operations and
move the definition of the type backing FILE (struct __sFILE) into an
internal header.
- Remove macros to inline certain operations from stdio.h.  Applications
  will now always call the functions instead.
- Move the various foo_unlocked() functions from unlocked.c into foo.c.
  This lets some of the inlining macros (e.g. __sfeof()) move into
  foo.c.
- Update a few comments.
- struct __sFILE can now go back to using mbstate_t, pthread_t, and
  pthread_mutex_t instead of knowing about their private, backing types.

MFC after:	1 month
Reviewed by:	kan

Revision 1.64: download - view: text, markup, annotated - select for diffs
Thu Apr 17 22:17:53 2008 UTC (3 years, 9 months ago) by jhb
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +7 -4 lines
Next stage of stdio cleanup: Retire __sFILEX and merge the fields back into
__sFILE.  This was supposed to be done in 6.0.  Some notes:
- Where possible I restored the various lines to their pre-__sFILEX state.
- Retire INITEXTRA() and just initialize the wchar bits (orientation and
  mbstate) explicitly instead.  The various places that used INITEXTRA
  didn't need the locking fields or _up initialized.  (Some places needed
  _up to exist and not be off the end of a NULL or garbage pointer, but
  they didn't require it to be initialized to a specific value.)
- For now, stdio.h "knows" that pthread_t is a 'struct pthread *' to
  avoid namespace pollution of including all the pthread types in stdio.h.
  Once we remove all the inlines and make __sFILE private it can go back
  to using pthread_t, etc.
- This does not remove any of the inlines currently and does not change
  any of the public ABI of 'FILE'.

MFC after:	1 month
Reviewed by:	peter

Revision 1.63: download - view: text, markup, annotated - select for diffs
Thu Apr 17 19:06:00 2008 UTC (3 years, 9 months ago) by jhb
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +10 -6 lines
Specifically mark the members of 'FILE' that are accessed via inline
functions or macros since they are part of the public ABI as a result.

MFC after:	1 month

Revision 1.62: download - view: text, markup, annotated - select for diffs
Mon Mar 31 12:14:04 2008 UTC (3 years, 10 months ago) by kib
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +3 -0 lines
Add the libc glue and headers definitions for the *at() syscalls.

Based on the submission by rdivacky,
	sponsored by Google Summer of Code 2007
Reviewed by:	rwatson, rdivacky
Tested by:	pho

Revision 1.60.2.1: download - view: text, markup, annotated - select for diffs
Sat Mar 29 22:53:54 2008 UTC (3 years, 10 months ago) by jb
Branches: RELENG_7
CVS tags: RELENG_7_4_BP, RELENG_7_3_BP, RELENG_7_2_BP, RELENG_7_1_BP
Branch point for: RELENG_7_4, RELENG_7_3, RELENG_7_2, RELENG_7_1
Diff to: previous 1.60: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60: +2 -0 lines
MFC

stdio.h: 1.61
Allow an application to define FOPEN_MAX (like we allow for OPEN_MAX
in sys/syslimits.h).

awk/Makefile: 1.17
Allow awk to handle 64 files instead of just 20.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Wed Mar 26 23:43:11 2008 UTC (3 years, 10 months ago) by jb
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +2 -0 lines
Allow an application to define FOPEN_MAX (like we allow for OPEN_MAX
in sys/syslimits.h).

Revision 1.60: download - view: text, markup, annotated - select for diffs
Sat Apr 7 16:02:30 2007 UTC (4 years, 10 months ago) by pjd
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.59: preferred, colored
Changes since revision 1.59: +0 -6 lines
- Remove SEEK_DATA and SEEK_HOLE from stdio.h, they don't belong here.
- Only define SEEK_DATA and SEEK_HOLE in sys/unistd.h when neither
  _POSIX_SOURCE nor _XOPEN_SOURCE is defined.

Pointed out by:	bde, ache

Revision 1.59: download - view: text, markup, annotated - select for diffs
Thu Apr 5 21:10:53 2007 UTC (4 years, 10 months ago) by pjd
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +6 -0 lines
Implement SEEK_DATA and SEEK_HOLE extensions to lseek(2) as found in
OpenSolaris. For more information please refer to:

	http://blogs.sun.com/bonwick/entry/seek_hole_and_seek_data

Revision 1.58: download - view: text, markup, annotated - select for diffs
Sat Apr 22 15:10:11 2006 UTC (5 years, 9 months ago) by deischen
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +1 -0 lines
Add a prototype for fcloseall().

Revision 1.56.8.1: download - view: text, markup, annotated - select for diffs
Tue Jan 31 17:57:17 2006 UTC (6 years ago) by stefanf
Branches: RELENG_6
CVS tags: RELENG_6_4_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
Branch point for: RELENG_6_4
Diff to: previous 1.56: preferred, colored; next MAIN 1.57: preferred, colored
Changes since revision 1.56: +1 -6 lines
MFC:  Add the macro __format_arg which expands to the format_arg attribute if
      supported.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Thu Jan 26 20:53:40 2006 UTC (6 years ago) by stefanf
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +1 -6 lines
Analogous to __printflike and __scanflike, add the macro __format_arg which
expands to the GCC format_arg attribute if supported.

This fixes a syntax error in <nl_types.h> for compilers/tools not
implementing the GCC __attribute__ extensions.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Sun Jun 20 10:01:30 2004 UTC (7 years, 7 months ago) by tjr
Branches: MAIN
CVS tags: RELENG_6_BP, 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
Branch point for: RELENG_6
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +1 -3 lines
Remove outdated comments.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Thu May 27 10:08:44 2004 UTC (7 years, 8 months ago) by tjr
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +3 -0 lines
Bring back the macro versions of getwc(), getwchar(), putwc() and
putwchar(), but this time avoid redundantly declaring __stdinp and
__stdoutp when source files include both <stdio.h> and <wchar.h>.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Sat Mar 20 11:45:52 2004 UTC (7 years, 10 months ago) by tjr
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +6 -6 lines
Parenthesize function names in masking macros for getc() etc. for the
benefit of obsolete C preprocessors.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Wed Mar 17 01:43:07 2004 UTC (7 years, 10 months ago) by tjr
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +16 -0 lines
Re-add macro versions of getc(), getchar(), putc(), putchar(), feof(),
ferror(), fileno() and clearerr(), using the value of __isthreaded to
decide between the fast inline single-threaded code and the more
general function equivalent. This gives most of the performance
benefits of the old unsafe macros while preserving thread safety.

Revision 1.51.4.1: download - view: text, markup, annotated - select for diffs
Thu Dec 18 00:59:50 2003 UTC (8 years, 1 month ago) by peter
Branches: RELENG_5_2
CVS tags: RELENG_5_2_1_RELEASE, RELENG_5_2_0_RELEASE
Diff to: previous 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51: +1 -4 lines
MFC:  add sys/_null.h and change the definition of NULL to a long on ia64
and amd64.  Ensure that this is not accidently activated on any platforms
other than these two since its quite late in the release cycle and it is
not worth the risk of disturbing to the established platforms.

Approved by:  re (scottl, jhb)

Revision 1.52: download - view: text, markup, annotated - select for diffs
Sun Dec 7 21:10:06 2003 UTC (8 years, 2 months ago) by marcel
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +1 -4 lines
Change the definition of NULL on ia64 (for LP64 compilations) from
an int constant to a long constant. This change improves consistency
in the following two ways:
1. The first 8 arguments are always passed in registers on ia64, which
   by virtue of the generated code implicitly widens ints to longs and
   allows the use of an 32-bit integral type for 64-bit arguments.
   Subsequent arguments are passed onto the memory stack, which does
   not exhibit the same behaviour and consequently do not allow this.
   In practice this means that variadic functions taking pointers
   and given NULL (without cast) work as long as the NULL is passed
   in one of the first 8 arguments. A SIGSEGV is more likely the
   result if such would be done for stack-based arguments. This is
   due to the fact that the upper 4 bytes remain undefined.
2. All 64-bit platforms that FreeBSD supports, with the obvious
   exception of ia64, allow 32-bit integral types (specifically NULL)
   when 64-bit pointers are expected in variadic functions by way of
   how the compiler generates code. As such, code that works correctly
   (whether rightfully so or not) on any platform other than ia64, may
   fail on ia64.

To more easily allow tweaking of the definition of NULL, this commit
removes the 12 definitions in the various headers and puts it in a
new header that can be included whenever NULL is to be made visible.

This commit fixes GNOME, emacs, xemacs and a whole bunch of ports
that I don't particularly care about at this time...

Revision 1.51: download - view: text, markup, annotated - select for diffs
Mon Jan 13 08:41:47 2003 UTC (9 years ago) by tjr
Branches: MAIN
CVS tags: RELENG_5_2_BP, RELENG_5_1_BP, RELENG_5_1_0_RELEASE, RELENG_5_1
Branch point for: RELENG_5_2
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +6 -0 lines
Add prototypes for the non-standard _unlocked functions.

Revision 1.24.2.5: download - view: text, markup, annotated - select for diffs
Sat Nov 9 08:07:20 2002 UTC (9 years, 3 months ago) by imp
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_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.24.2.4: preferred, colored; branchpoint 1.24: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24.2.4: +0 -0 lines
Forced commit:

MFC:

Change __sF to __std{in,out,err}p in #defines for std{in,out,err}.
This should help us with our compatibility problems over the long
haul.  I hope that this is the right thing to do.

std{in,out,err} are no longer compile time constants.  -current has
had this for 14 months now, and other systems do this.  I've fixed all
the places in the -stable tree that assumed that they were compile
time constants.

Reviewed by: arch@

Revision 1.24.2.4: download - view: text, markup, annotated - select for diffs
Sat Nov 9 07:57:55 2002 UTC (9 years, 3 months ago) by imp
Branches: RELENG_4
Diff to: previous 1.24.2.3: preferred, colored; branchpoint 1.24: preferred, colored
Changes since revision 1.24.2.3: +4 -4 lines
stdio.h

Revision 1.50: download - view: text, markup, annotated - select for diffs
Mon Oct 14 11:18:21 2002 UTC (9 years, 3 months ago) by tjr
Branches: MAIN
CVS tags: RELENG_5_0_BP, RELENG_5_0_0_RELEASE, RELENG_5_0
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +2 -11 lines
Use a weak reference instead of a macro to make vfscanf an alias
for __vfscanf.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Sat Oct 12 16:13:36 2002 UTC (9 years, 4 months ago) by mike
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +12 -16 lines
Add restrict type-qualifier.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Fri Oct 11 22:38:17 2002 UTC (9 years, 4 months ago) by peter
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +0 -8 lines
Zap the early-adopter transition aid before we get into serious
5.0-R territory, as threatened.  This only affects antique 5.0
systems that have not had a 'make world' done for well over a year.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Sun Oct 6 22:16:12 2002 UTC (9 years, 4 months ago) by mike
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +33 -14 lines
o Move location of the fpos_t typedef to be closer to other typedefs.
o Add typedef for va_list.
o Add comment about missing restrict type-qualifiers.
o Move vscanf(), vsscanf() and vfscanf() to the C99-visible block.
o Add note about missing backing function for vfscanf().
o Restrict L_cuserid to only older versions of POSIX, and BSD
  namespaces.
o Conditionalize some BSD-specific foo_unlock() macros.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Fri Sep 6 11:23:32 2002 UTC (9 years, 5 months ago) by tjr
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +10 -10 lines
Style: One space between "restrict" qualifier and "*".

Revision 1.24.2.3: download - view: text, markup, annotated - select for diffs
Thu Aug 22 22:08:38 2002 UTC (9 years, 5 months ago) by archie
Branches: RELENG_4
CVS tags: RELENG_4_7_BP, RELENG_4_7_0_RELEASE, RELENG_4_7
Diff to: previous 1.24.2.2: preferred, colored; branchpoint 1.24: preferred, colored
Changes since revision 1.24.2.2: +1 -2 lines
Fix compiler warnings when compiling with '-D_THREAD_SAFE -Wnested-externs'.

Reviewed by:	freebsd-stable

Revision 1.45: download - view: text, markup, annotated - select for diffs
Wed Aug 21 16:19:55 2002 UTC (9 years, 5 months ago) by mike
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +20 -20 lines
o Merge <machine/ansi.h> and <machine/types.h> into a new header
  called <machine/_types.h>.
o <machine/ansi.h> will continue to live so it can define MD clock
  macros, which are only MD because of gratuitous differences between
  architectures.
o Change all headers to make use of this.  This mainly involves
  changing:
    #ifdef _BSD_FOO_T_
    typedef	_BSD_FOO_T_	foo_t;
    #undef _BSD_FOO_T_
    #endif
  to:
    #ifndef _FOO_T_DECLARED
    typedef	__foo_t	foo_t;
    #define	_FOO_T_DECLARED
    #endif

Concept by:	bde
Reviewed by:	jake, obrien

Revision 1.44: download - view: text, markup, annotated - select for diffs
Thu Aug 15 10:28:51 2002 UTC (9 years, 5 months ago) by robert
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +9 -6 lines
 - For compliance with IEEE Std 1003.1-2001, add the 'restrict'
   qualifier to function prototypes and definitions where
   appropriate using the '__restrict' macro.
 - Update the manual page.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Thu Aug 15 09:47:10 2002 UTC (9 years, 5 months ago) by robert
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +4 -4 lines
 - Introduce the 'restrict' qualifier to function prototypes and
   definitions to comply with IEEE Std 1003.1-2001.
 - Update the manual pages.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Wed Aug 14 23:45:42 2002 UTC (9 years, 5 months ago) by robert
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +2 -2 lines
 - Add the 'restrict' qualifier to the function definitions and
   public prototypes of setbuf(3) and setvbuf(3) using the
   '__restrict' macro from <sys/cdefs.h> to be compliant with
   IEEE Std 1003.1-2001.
 - Replace the K&R with ANSI-C function definitions.
 - Bring the manual page up-to-date.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Mon Jul 15 19:38:45 2002 UTC (9 years, 6 months ago) by wollman
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +67 -52 lines
Clean up some of the rather strange structure and ordering of this
file.  Correct visibility conditions and order blocks of declarations
in order of increasing inclusiveness.  Note that [v]snprintf() is now
in ISO C and f{seek,tell}o() are now in POSIX.  Deprecated getw() and
putw() are no longer visible in XSH6 namespace (and should probably
be removed from BSD namespace as well).

Revision 1.40: download - view: text, markup, annotated - select for diffs
Sat Mar 23 17:24:53 2002 UTC (9 years, 10 months ago) by imp
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +80 -80 lines
Breath deep and take __P out of the system include files.

# This appears to not break X11, but I'm having problems compiling the
# glide part of the server with or without this patch, so I can't tell
# for sure.

Revision 1.24.2.2: download - view: text, markup, annotated - select for diffs
Wed Dec 5 20:48:07 2001 UTC (10 years, 2 months ago) by obrien
Branches: RELENG_4
CVS tags: RELENG_4_6_BP, RELENG_4_6_2_RELEASE, RELENG_4_6_1_RELEASE, RELENG_4_6_0_RELEASE, RELENG_4_6, RELENG_4_5_BP, RELENG_4_5_0_RELEASE, RELENG_4_5
Diff to: previous 1.24.2.1: preferred, colored; branchpoint 1.24: preferred, colored
Changes since revision 1.24.2.1: +7 -3 lines
MFC: revs 1.38,9 (guard fmtcheck's attribute checks for non-GCC compilers)

Revision 1.39: download - view: text, markup, annotated - select for diffs
Wed Dec 5 04:16:33 2001 UTC (10 years, 2 months ago) by obrien
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +0 -1 lines
An extra #ifdef crept in with rev 1.38.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Tue Dec 4 21:30:23 2001 UTC (10 years, 2 months ago) by obrien
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +7 -1 lines
Turn back on fmtcheck's attribute checks, guarded for non-GCC compilers.

Submitted by:	bde

Revision 1.37: download - view: text, markup, annotated - select for diffs
Tue Dec 4 01:24:10 2001 UTC (10 years, 2 months ago) by obrien
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +2 -3 lines
Remove the GCC'ism "__attribute__" from the 'fmtcheck' prototype.
I leave it up to someone else to fix this breakage properly.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Thu Sep 20 08:47:41 2001 UTC (10 years, 4 months ago) by peter
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +2 -2 lines
Now that the compat4x libc.so.4 binary has been updated, we can finally
switch over to using a future-proof stdin/out/err.

Note that if you run 4.x binaries on your system, you will certainly
want to update /usr/lib/compat/libc.so.4.  The easiest way is to
add "COMPAT4X= yes" in your /etc/make.conf.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Mon Aug 13 21:48:42 2001 UTC (10 years, 5 months ago) by peter
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +11 -1 lines
Rip out the old __stdin/out/err stuff. It was completely 100% useless. :-(
It was foiled because of dynamic copy relocations that caused compile-time
space to be reserved in .bss and at run time a blob of data was copied to
that space and everything used the .bss version..  The problem is that
the space is reserved at compile time, not runtime... So we *still* could
not change the size of FILE.  Sigh.  :-(

Replace it with something that does actually work and really does let us
make 'FILE' extendable.  It also happens to be the same as Linux does in
glibc, but has the slight cost of a pointer.  Note that this is the
same cost that 'fp = fopen(), fprintf(fp, ...); fclose(fp);' has.
Fortunately, actual references to stdin/out/err are not all that common
since we have implicit stdin/out/err-using versions of functions
(printf() vs. fprintf()).

Revision 1.24.2.1: download - view: text, markup, annotated - select for diffs
Thu Jul 5 07:43:46 2001 UTC (10 years, 7 months ago) by kris
Branches: RELENG_4
CVS tags: RELENG_4_4_BP, RELENG_4_4_0_RELEASE, RELENG_4_4
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -1 lines
MFC: fmtcheck() function and manpage

Revision 1.34: download - view: text, markup, annotated - select for diffs
Sun Apr 22 01:56:08 2001 UTC (10 years, 9 months ago) by obrien
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +5 -5 lines
Style(9) fixes:
* get rid of space (0x20) before tab (^I)
* indent with ^I, not 0x20
* continuation line for prototypes is for 0x20's past function's name col.
* etc.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Tue Apr 17 18:16:46 2001 UTC (10 years, 9 months ago) by kris
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +2 -2 lines
I think this was supposed to be __const like in NetBSD: I have no idea
why I changed it to const.

Noticed by:	David Wolfskill <david@catwhisker.org>

Revision 1.32: download - view: text, markup, annotated - select for diffs
Tue Apr 17 07:59:52 2001 UTC (10 years, 9 months ago) by kris
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -1 lines
Add fmtcheck(), a function for checking consistency of format string
arguments where the format string is obtained from user data, or
otherwise difficult to verify statically.

Example usage:

printf(fmtcheck(user_format, standard_format), arg1, arg2);

checks the format string user_format for consistency (same number/order/
type of format operators) with standard_format.  If they differ,
standard_format is used instead to avoid potential crashes or security
violations.

Obtained from:  NetBSD
Reviewed by:    -arch

Revision 1.31: download - view: text, markup, annotated - select for diffs
Thu Mar 1 05:22:08 2001 UTC (10 years, 11 months ago) by deischen
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +2 -7 lines
Hide the definition of struct __sFILEX and add the needed
lock definitions to it.  flockfile state is now allocated
along with the rest of FILE.  This eliminates the need for a
separate allocation of flockfile state as well as eliminating
the mutex/lock used to serialize its allocation.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Fri Feb 16 06:11:21 2001 UTC (10 years, 11 months ago) by imp
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +12 -9 lines
Fix the current libc breakage in current:
o Back out the __std* stuff.  Can't figure out how to do this right now,
  so we'll save it for late.
o use _up as a pointer for extra fields that we need to access.
o back out the libc major version bump.

Submitted by: green
reviewed by: peter, imp, green, obrien (to varying degrees).

We'll fix the "how do we stop encoding sizeof(FILE) in binaries" part
later.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Wed Feb 14 05:00:19 2001 UTC (10 years, 11 months ago) by peter
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +7 -5 lines
Commit a libc fix going by the current state of the version numbering
bikeshed in -arch.  It isn't quite over, but it has been well established
that this can be adjusted or refined.  But we do seem to have consensis
on a major bump of some sort.  After this, it should reasonably safe
to build world again.

This change is to get rid of __sF[] and use seperate __stdin/out/err
handles.  This means we can pad on extra bits onto the end of FILE
at will without going through this all over again.  __sF[] was evil
because it compiled the sizeof(FILE) into every stdio using program.

Asbestos suit on: check!
Peril sensitive sunglasses on: check!
*gulp!*

Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon Feb 12 03:31:23 2001 UTC (11 years ago) by peter
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +4 -7 lines
It sounded like a good idea at the time.  The previous change breaks
FILE *buffer = stdout;
so back it out for now.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Mon Feb 12 02:50:30 2001 UTC (11 years ago) by peter
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +7 -4 lines
Take advantage of the current libc sizeof(FILE) breakage (__sF[]) and
try a hopefully more robust stdin/stdout/stderr.  This costs an indirect
pointer fetch, but saves us from changes in 'FILE'.  The __stdin stuff
is there to not pollute application name space if the application does
not use <stdio.h> and also in case something depended on the current
behavior where stdin etc was a #define.

Reviewed by:	eischen, dillon

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sun Feb 11 22:04:18 2001 UTC (11 years ago) by deischen
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +5 -1 lines
libc MT-safety, part 2.

Add a lock to FILE and define an additional flag.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Wed Jan 24 13:01:47 2001 UTC (11 years ago) by deischen
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +5 -55 lines
Add a lock to DIR to make telldir and friends MT-safe.

Clean up stdio.h a bit and remove _THREAD_SAFE.  Some of the
usual macros getc, putc, getchar, putchar are no longer macros.

Approved by:	-arch

Revision 1.24: download - view: text, markup, annotated - select for diffs
Thu Dec 23 16:33:12 1999 UTC (12 years, 1 month ago) by bde
Branches: MAIN
CVS tags: RELENG_4_BP, RELENG_4_3_BP, RELENG_4_3_0_RELEASE, RELENG_4_3, RELENG_4_2_0_RELEASE, RELENG_4_1_1_RELEASE, RELENG_4_1_0_RELEASE, RELENG_4_0_0_RELEASE, PRE_SMPNG
Branch point for: RELENG_4
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -1 lines
Fixed missing declaration of ctermid_r(3).

Revision 1.8.2.4: download - view: text, markup, annotated - select for diffs
Sun Sep 5 11:14:13 1999 UTC (12 years, 5 months ago) by peter
Branches: RELENG_2_2
Diff to: previous 1.8.2.3: preferred, colored; branchpoint 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8.2.3: +1 -1 lines
$Id$ -> $FreeBSD$

Revision 1.21.2.2: download - view: text, markup, annotated - select for diffs
Sun Aug 29 14:38:56 1999 UTC (12 years, 5 months ago) by peter
Branches: RELENG_3
CVS tags: RELENG_3_5_0_RELEASE, RELENG_3_4_0_RELEASE, RELENG_3_3_0_RELEASE
Diff to: previous 1.21.2.1: preferred, colored; branchpoint 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21.2.1: +1 -1 lines
$Id$ -> $FreeBSD$

Revision 1.23: download - view: text, markup, annotated - select for diffs
Fri Aug 27 23:44:52 1999 UTC (12 years, 5 months ago) by peter
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +1 -1 lines
$Id$ -> $FreeBSD$

Revision 1.21.2.1: download - view: text, markup, annotated - select for diffs
Wed May 5 22:14:47 1999 UTC (12 years, 9 months ago) by dt
Branches: RELENG_3
CVS tags: RELENG_3_2_PAO_BP, RELENG_3_2_PAO, RELENG_3_2_0_RELEASE
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +3 -1 lines
MFC: fseeko() and ftello().

Revision 1.22: download - view: text, markup, annotated - select for diffs
Mon Feb 8 21:32:24 1999 UTC (13 years ago) by dt
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +3 -1 lines
Added functions fseeko() and ftello() (from susv2).
Fixed fgetpos() and fsetpos() for offsets > 2GB.

PR:		8637
Submitted by:	 Dan Nelson <dnelson@emsphone.com> (adjusted by me a little)

Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Dec 14 19:23:16 1998 UTC (13 years, 1 month ago) by dt
Branches: MAIN
CVS tags: RELENG_3_BP, RELENG_3_1_0_RELEASE
Branch point for: RELENG_3
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +2 -2 lines
Make this protototype of mmap return void *, like two other copies.

Revision 1.8.2.3: download - view: text, markup, annotated - select for diffs
Wed Nov 4 08:42:00 1998 UTC (13 years, 3 months ago) by tg
Branches: RELENG_2_2
CVS tags: RELENG_2_2_8_RELEASE
Diff to: previous 1.8.2.2: preferred, colored; branchpoint 1.8: preferred, colored
Changes since revision 1.8.2.2: +67 -10 lines
As theatened two weeks ago: merge the major changes from -current's pthread
implementation. This includes file locking based on FILE *, signal fixes,
read/write-locks, better POSIX compliance and better performance. Not included
are changes relating to realtime scheduling.

Famous last words: I've now built the world several times with these changes,
so they shouldn't break anything.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Mon Jul 13 06:45:20 1998 UTC (13 years, 7 months ago) by bde
Branches: MAIN
CVS tags: RELENG_3_0_0_RELEASE
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +10 -7 lines
Added macros __printflike() and __scanflike() to <sys/cdefs.h>.
Use them to `make gcc -Wformat' check formats for all printf-like
and scanf-like functions in /usr/src except for the err()/warn()
family.  err() isn't quite printf-like since its format arg can
legitimately be NULL.  syslog() isn't quite printf-like, but gcc
already accepts %m, even for plain printf() when it shouldn't.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Wed Jul 8 00:52:40 1998 UTC (13 years, 7 months ago) by peter
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -1 lines
New flag for internal stdio use to enable dynamic string allocation for
asprintf() implementation.

Obtained from: Todd Miller <Todd.Miller@courtesan.com> via OpenBSD

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun Jun 14 16:04:20 1998 UTC (13 years, 8 months ago) by bde
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +1 -18 lines
Complete the switch to using gcc-2.4 features to declare fpos_t ,
as threatened in the 4-5 year old comment.  Most of the change is
in <machine/ansi.h>; this commit just removes cruft for the strict
ANSI case.  64-bit types couldn't actually be defined using
__attribute__(()) in gcc-2.4, since attribute names in the
implementation namespace only became available in gcc-2.7.  I've
probably just broken gcc-2.6 support by using the gcc-2.7 names
unconditionally.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Tue May 5 21:59:19 1998 UTC (13 years, 9 months ago) by jb
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +4 -6 lines
I have a long list of issues to address here, mostly related to
namespace and revision levels of ANSI and POSIX. This change only
removes the leading underscrore from the FILE locking functions
that POSIX defines.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Apr 12 20:29:24 1998 UTC (13 years, 10 months ago) by jb
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +26 -18 lines
Format changes in an attempt to address some of Bruce's comments
about spaces and tabs.

The externs in the static inline functions remain 'cause (a) they're
required; and (b) I can't find any gcc -W* cases where they generate
warnings.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat Apr 11 07:33:46 1998 UTC (13 years, 10 months ago) by jb
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +59 -9 lines
Add *_unlocked() macros according to POSIX. In the _THREAD_SAFE case,
test for __isthreaded before calling the lock/unlock functions to
try to save some performance. The _THREAD_SAFE case should become the
default, but since it tests for a global variable in libc, people won't
be able to build -current on pre-3.0 systems unless the default leaves
it out. Such is life.

Revision 1.8.2.2: download - view: text, markup, annotated - select for diffs
Tue Feb 17 00:48:17 1998 UTC (13 years, 11 months ago) by jkh
Branches: RELENG_2_2
CVS tags: RELENG_2_2_7_RELEASE, RELENG_2_2_6_RELEASE
Diff to: previous 1.8.2.1: preferred, colored; branchpoint 1.8: preferred, colored
Changes since revision 1.8.2.1: +2 -2 lines
MFC: very small - just bring in fix for fpos_t typedef.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Thu Jan 1 17:07:44 1998 UTC (14 years, 1 month ago) by alex
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -2 lines
Added missing caddr_t --> void * conversions for sys/mman.h functions.

Submitted by:	bde

Revision 1.8.2.1: download - view: text, markup, annotated - select for diffs
Sat Jun 21 17:46:03 1997 UTC (14 years, 7 months ago) by bde
Branches: RELENG_2_2
CVS tags: RELENG_2_2_5_RELEASE
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +25 -1 lines
YAMFC (don't redeclare lseek(), but declare lseek() and other functions
involving off_t's in more places).

PR:		1229

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Apr 13 15:50:07 1997 UTC (14 years, 10 months ago) by bde
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +29 -8 lines
Removed nonstandard #include of <sys/types.h>.

Use _BSD_OFF_T_ instead of off_t so that we're still self-sufficent.

Copied the ftruncate/lseek()/mmap()/truncate() redeclaration hacks
from <sys/types.h> so that things depending on them don't break.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Mar 11 11:16:27 1997 UTC (14 years, 11 months ago) by peter
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -2 lines
Merge Lite2 changes
 (Just version number)

Revision 1.1.1.2 (vendor branch): download - view: text, markup, annotated - select for diffs
Tue Mar 11 11:11:32 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: +2 -2 lines
Import CSRG 4.4BSD-Lite2 includes onto vendor branch

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Mar 2 13:41:23 1997 UTC (14 years, 11 months ago) by ache
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -2 lines
increase L_cuserid because UT_NAMESIZE increased

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sun Feb 23 09:17:15 1997 UTC (14 years, 11 months ago) by peter
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +1 -1 lines
Revert $FreeBSD$ to $Id$

Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Jan 14 05:59:48 1997 UTC (15 years ago) by jkh
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +1 -1 lines
Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.

Revision 1.3.4.3: download - view: text, markup, annotated - select for diffs
Fri Nov 8 18:31:47 1996 UTC (15 years, 3 months ago) by jkh
Branches: RELENG_2_1_0
CVS tags: RELENG_2_1_7_RELEASE, RELENG_2_1_6_RELEASE, RELENG_2_1_6_1_RELEASE
Diff to: previous 1.3.4.2: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.4.2: +2 -0 lines
Bring in asprintf*() prototypes from HEAD.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sun Oct 27 18:13:33 1996 UTC (15 years, 3 months ago) by wosch
Branches: MAIN
CVS tags: RELENG_2_2_BP, RELENG_2_2_2_RELEASE, RELENG_2_2_1_RELEASE, RELENG_2_2_0_RELEASE
Branch point for: RELENG_2_2
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +5 -2 lines
improve comments for UT_NAMESIZE

Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Jul 2 23:04:50 1996 UTC (15 years, 7 months ago) by wosch
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +0 -1 lines
remove zopen, zopen is not part of libc.

Revision 1.3.4.2: download - view: text, markup, annotated - select for diffs
Wed Jun 5 02:44:19 1996 UTC (15 years, 8 months ago) by jkh
Branches: RELENG_2_1_0
CVS tags: RELENG_2_1_5_RELEASE
Diff to: previous 1.3.4.1: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.1: +4 -6 lines
This 3rd mega-commit should hopefully bring us back to where we were.
I can get it to `make world' succesfully, anyway!

Revision 1.3.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 3 05:03:22 1996 UTC (15 years, 8 months ago) by jkh
Branches: RELENG_2_1_0
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +6 -4 lines
Phase 2 of merge - also fix things broken in phase 1.
Watch out for falling rock until phase 3 is over!

libc completely merged except for phkmalloc & rfork (don't know if David
wants that).

Some include files in sys/ had to be updated in order to bring in libc.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon May 27 10:49:40 1996 UTC (15 years, 8 months ago) by peter
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -0 lines
Add an implementation of the gnu-ish asprintf() and vasprintf().  They are
not based on gpl'ed code, just prototype and usage.  I'm not 100% certain
they behave the same while the system is in trouble (eg: malloc() failing)
but in those circumstances all bets would be off anyway.

These routines work like sprintf() and vsprintf(), except that instead of
using a fixed buffer, they allocate memory and return it to the user
and it's the user's responsibility to free() it.  They have allocate as
much memory as they need (and can get), so the size of strings it can deal
with is limited only by the amount of memory it can malloc() on your
behalf.

There are a few gpl'ed programs starting to use this interface, and it's
becoming more common with the scares about security risks with sprintf().
I dont like the look of the code that the various programs (including
cvs, gdb, libg++, etc) provide if configure can't find it on the system.

It should be possible to modify the stdio core code to provide this
interface more efficiently, I was more worried about having something
that worked and was secure.  :-)  (I noticed that there was once intended
to be a smprintf() routine when our stdio was written for 4.4BSD, but it
looks pretty stillborn, and it's intended interface is not clear).  Since
Linux and gnu libc have this interface, it seemed silly to bring yet
another one onto the scene.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Mar 24 15:51:45 1996 UTC (15 years, 10 months ago) by paul
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -2 lines
Fix incorrect parameter types for ftell and fgets.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Jan 30 23:30:38 1996 UTC (16 years ago) by mpp
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -2 lines
Fix a bunch of spelling errors in the comment fields
of a bunch of system include files.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue May 30 04:54:46 1995 UTC (16 years, 8 months ago) by rgrimes
Branches: MAIN
CVS tags: RELENG_2_1_0_RELEASE, RELENG_2_1_0_BP, RELENG_2_0_5_RELEASE, RELENG_2_0_5_BP, RELENG_2_0_5
Branch point for: RELENG_2_1_0
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +1 -1 lines
Remove trailing whitespace.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Mar 4 20:57:12 1995 UTC (16 years, 11 months ago) by phk
Branches: MAIN
CVS tags: RELENG_2_0_5_ALPHA
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +1 -1 lines
make sys_nerr __const.

Reviewed by:	phk
Submitted by:	ollivier

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Tue May 24 09:57:09 1994 UTC (17 years, 8 months ago) by rgrimes
Branches: CSRG
CVS tags: bsd_44_lite, before_new_bind, after_bind_commit, 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 Include Sources

Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue May 24 09:57:08 1994 UTC (17 years, 8 months ago) by rgrimes
Branches: MAIN
Initial revision

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