This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: __ssize_t, __off_t, __off64_t ?


Benjamin Kosnik wrote:

>>I think all this stuff is not relevant anymore and we should remove any
>>mention of it from code and docs: the library doesn't use anymore libio.
>>    
>>
>Yep.
>  
>
I have the below. Maybe we can also clean-up something else in the light
of the disappearance of libio, but seems an improvement to me, fewer
risks of confusion. Agreed?

Paolo.

////////////////////
2005-04-07  Paolo Carlini  <pcarlini@suse.de>

	* config/os/aix/os_defines.h: Remove obsolete __off_t,
	__off64_t, __ssize_t defines.
	* config/os/djgpp/os_defines.h: Likewise.
	* config/os/hpux/os_defines.h: Likewise.
	* config/os/irix/irix5.2/os_defines.h: Likewise.
	* config/os/irix/irix6.5/os_defines.h: Likewise.
	* config/os/solaris/solaris2.5/os_defines.h: Likewise.
	* config/os/solaris/solaris2.6/os_defines.h: Likewise.
	* config/os/solaris/solaris2.7/os_defines.h: Likewise.
	* docs/html/17_intro/porting.html: Don't discuss the defines.
	* docs/html/17_intro/porting.texi: Likewise.

diff -urN libstdc++-v3-orig/config/os/aix/os_defines.h libstdc++-v3/config/os/aix/os_defines.h
--- libstdc++-v3-orig/config/os/aix/os_defines.h	2005-01-18 18:08:50.000000000 +0100
+++ libstdc++-v3/config/os/aix/os_defines.h	2005-04-07 10:54:25.000000000 +0200
@@ -43,8 +43,4 @@
 #define _ALL_SOURCE
 #endif
 
-#define __off_t off_t
-#define __off64_t off64_t
-#define __ssize_t ssize_t
-
 #endif
diff -urN libstdc++-v3-orig/config/os/djgpp/os_defines.h libstdc++-v3/config/os/djgpp/os_defines.h
--- libstdc++-v3-orig/config/os/djgpp/os_defines.h	2003-07-05 06:05:31.000000000 +0200
+++ libstdc++-v3/config/os/djgpp/os_defines.h	2005-04-07 10:55:28.000000000 +0200
@@ -1,6 +1,6 @@
 // Specific definitions for DJGPP  -*- C++ -*-
 
-// Copyright (C) 2001 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2005 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -34,10 +34,6 @@
 // System-specific #define, typedefs, corrections, etc, go here.  This
 // file will come before all others.
 
-#define __off_t off_t
-#define __off64_t off64_t
-#define __ssize_t ssize_t
-
 // FIXME: should there be '#undef POSIX_SOURCE'?
 
 #endif
diff -urN libstdc++-v3-orig/config/os/hpux/os_defines.h libstdc++-v3/config/os/hpux/os_defines.h
--- libstdc++-v3-orig/config/os/hpux/os_defines.h	2004-03-07 02:32:42.000000000 +0100
+++ libstdc++-v3/config/os/hpux/os_defines.h	2005-04-07 10:55:16.000000000 +0200
@@ -1,6 +1,6 @@
 // Specific definitions for HPUX  -*- C++ -*-
 
-// Copyright (C) 2000, 2002, 2004 Free Software Foundation, Inc.
+// Copyright (C) 2000, 2002, 2004, 2005 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -33,10 +33,6 @@
 // System-specific #define, typedefs, corrections, etc, go here.  This
 // file will come before all others.
 
-#define __off_t off_t
-#define __off64_t off64_t
-#define __ssize_t ssize_t
-
 // Use macro form of ctype functions to ensure __SB_masks is defined.
 #define _SB_CTYPE_MACROS 1
 
diff -urN libstdc++-v3-orig/config/os/irix/irix5.2/os_defines.h libstdc++-v3/config/os/irix/irix5.2/os_defines.h
--- libstdc++-v3-orig/config/os/irix/irix5.2/os_defines.h	2003-07-05 06:05:32.000000000 +0200
+++ libstdc++-v3/config/os/irix/irix5.2/os_defines.h	2005-04-07 10:56:16.000000000 +0200
@@ -1,6 +1,6 @@
 // Specific definitions for IRIX  -*- C++ -*-
 
-// Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2002, 2005 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -44,10 +44,6 @@
 // the command-line.
 #undef _POSIX_SOURCE
 
-#define __off_t off_t
-#define __off64_t off64_t
-#define __ssize_t ssize_t
-
 // GCC does not use thunks on IRIX. 
 #define _G_USING_THUNKS 0
 
diff -urN libstdc++-v3-orig/config/os/irix/irix6.5/os_defines.h libstdc++-v3/config/os/irix/irix6.5/os_defines.h
--- libstdc++-v3-orig/config/os/irix/irix6.5/os_defines.h	2004-02-05 21:11:32.000000000 +0100
+++ libstdc++-v3/config/os/irix/irix6.5/os_defines.h	2005-04-07 10:56:29.000000000 +0200
@@ -44,10 +44,6 @@
 // the command-line.
 #undef _POSIX_SOURCE
 
-#define __off_t off_t
-#define __off64_t off64_t
-#define __ssize_t ssize_t
-
 // GCC does not use thunks on IRIX. 
 #define _G_USING_THUNKS 0
 
diff -urN libstdc++-v3-orig/config/os/solaris/solaris2.5/os_defines.h libstdc++-v3/config/os/solaris/solaris2.5/os_defines.h
--- libstdc++-v3-orig/config/os/solaris/solaris2.5/os_defines.h	2003-07-05 06:05:32.000000000 +0200
+++ libstdc++-v3/config/os/solaris/solaris2.5/os_defines.h	2005-04-07 10:57:10.000000000 +0200
@@ -1,6 +1,6 @@
 // Specific definitions for Solaris 2.5  -*- C++ -*-
 
-// Copyright (C) 2000, 2002 Free Software Foundation, Inc.
+// Copyright (C) 2000, 2002, 2005 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -33,10 +33,4 @@
 // System-specific #define, typedefs, corrections, etc, go here.  This
 // file will come before all others.
 
-// These are typedefs which libio assumes are already in place (because
-// they really are, under Linux).
-#define __off_t     off_t
-#define __off64_t   off64_t
-#define __ssize_t   ssize_t
-
 #endif
diff -urN libstdc++-v3-orig/config/os/solaris/solaris2.6/os_defines.h libstdc++-v3/config/os/solaris/solaris2.6/os_defines.h
--- libstdc++-v3-orig/config/os/solaris/solaris2.6/os_defines.h	2003-07-05 06:05:32.000000000 +0200
+++ libstdc++-v3/config/os/solaris/solaris2.6/os_defines.h	2005-04-07 10:57:27.000000000 +0200
@@ -1,6 +1,6 @@
 // Specific definitions for Solaris 2.6  -*- C++ -*-
 
-// Copyright (C) 2000, 2002 Free Software Foundation, Inc.
+// Copyright (C) 2000, 2002, 2005 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -33,10 +33,4 @@
 // System-specific #define, typedefs, corrections, etc, go here.  This
 // file will come before all others.
 
-// These are typedefs which libio assumes are already in place (because
-// they really are, under Linux).
-#define __off_t     off_t
-#define __off64_t   off64_t
-#define __ssize_t   ssize_t
-
 #endif
diff -urN libstdc++-v3-orig/config/os/solaris/solaris2.7/os_defines.h libstdc++-v3/config/os/solaris/solaris2.7/os_defines.h
--- libstdc++-v3-orig/config/os/solaris/solaris2.7/os_defines.h	2003-07-05 06:05:33.000000000 +0200
+++ libstdc++-v3/config/os/solaris/solaris2.7/os_defines.h	2005-04-07 10:57:42.000000000 +0200
@@ -1,6 +1,6 @@
 // Specific definitions for Solaris 7,8  -*- C++ -*-
 
-// Copyright (C) 2000, 2002 Free Software Foundation, Inc.
+// Copyright (C) 2000, 2002, 2005 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -33,11 +33,5 @@
 // System-specific #define, typedefs, corrections, etc, go here.  This
 // file will come before all others.
 
-// These are typedefs which libio assumes are already in place (because
-// they really are, under Linux).
-#define __off_t     off_t
-#define __off64_t   off64_t
-#define __ssize_t   ssize_t
-
 #endif
 
diff -urN libstdc++-v3-orig/docs/html/17_intro/porting.html libstdc++-v3/docs/html/17_intro/porting.html
--- libstdc++-v3-orig/docs/html/17_intro/porting.html	2003-08-06 01:32:21.000000000 +0200
+++ libstdc++-v3/docs/html/17_intro/porting.html	2005-04-07 16:00:16.000000000 +0200
@@ -5,7 +5,7 @@
 <meta name="description" content="Porting libstdc++-v3">
 <meta name="generator" content="makeinfo 4.6">
 <!--
-Copyright &copy; 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+Copyright &copy; 2000, 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
 
    <p>Permission is granted to copy, distribute and/or modify this document
 under the terms of the GNU Free Documentation License, Version 1.2 or
@@ -114,25 +114,10 @@
    <p>The first file to create in this directory, should be called
 <code>os_defines.h</code>.  This file contains basic macro definitions
 that are required to allow the C++ library to work with your C library. 
-This file should provide macro definitions for <code>__off_t</code>,
-<code>__off64_t</code>, and <code>__ssize_t</code>.  Typically, this just looks
-like:
-
-<pre class="example">     #define __off_t off_t
-     #define __off64_t off64_t
-     #define __ssize_t ssize_t
-     </pre>
-
-<p>You don't have to provide these definitions if your system library
-already defines these types - but the only library known to provide
-these types is the GNU C Library, so you will almost certainly have to
-provide these macros.  Note that this file does not have to include a
-header file that defines <code>off_t</code>, or the other types; you simply
-have to provide the macros.
-
-   <p>In addition, several libstdc++-v3 source files unconditionally define
-the macro <code>_POSIX_SOURCE</code>.  On many systems, defining this macro
-causes large portions of the C library header files to be eliminated
+
+   <p>Several libstdc++-v3 source files unconditionally define the macro
+<code>_POSIX_SOURCE</code>.  On many systems, defining this macro causes
+large portions of the C library header files to be eliminated
 at preprocessing time.  Therefore, you may have to <code>#undef</code> this
 macro, or define other macros (like <code>_LARGEFILE_SOURCE</code> or
 <code>__EXTENSIONS__</code>).  You won't know what macros to define or
diff -urN libstdc++-v3-orig/docs/html/17_intro/porting.texi libstdc++-v3/docs/html/17_intro/porting.texi
--- libstdc++-v3-orig/docs/html/17_intro/porting.texi	2003-08-06 01:32:21.000000000 +0200
+++ libstdc++-v3/docs/html/17_intro/porting.texi	2005-04-07 16:00:56.000000000 +0200
@@ -9,7 +9,8 @@
 @setchapternewpage odd
 
 @copying
-Copyright @copyright{} 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+Copyright @copyright{} 2000, 2001, 2002, 2003, 2005 
+Free Software Foundation, Inc.
 
 Permission is granted to copy, distribute and/or modify this document
 under the terms of the GNU Free Documentation License, Version 1.2 or
@@ -120,27 +121,10 @@
 The first file to create in this directory, should be called
 @file{os_defines.h}.  This file contains basic macro definitions
 that are required to allow the C++ library to work with your C library.
-This file should provide macro definitions for @code{__off_t},
-@code{__off64_t}, and @code{__ssize_t}.  Typically, this just looks
-like:
 
-@example
-#define __off_t off_t
-#define __off64_t off64_t
-#define __ssize_t ssize_t
-@end example
-
-@noindent
-You don't have to provide these definitions if your system library
-already defines these types -- but the only library known to provide
-these types is the GNU C Library, so you will almost certainly have to
-provide these macros.  Note that this file does not have to include a
-header file that defines @code{off_t}, or the other types; you simply
-have to provide the macros.
-
-In addition, several libstdc++-v3 source files unconditionally define
-the macro @code{_POSIX_SOURCE}.  On many systems, defining this macro
-causes large portions of the C library header files to be eliminated
+Several libstdc++-v3 source files unconditionally define the macro
+@code{_POSIX_SOURCE}.  On many systems, defining this macro causes
+large portions of the C library header files to be eliminated
 at preprocessing time.  Therefore, you may have to @code{#undef} this
 macro, or define other macros (like @code{_LARGEFILE_SOURCE} or
 @code{__EXTENSIONS__}).  You won't know what macros to define or

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]