X-Git-Url: https://gcc.gnu.org/git/?a=blobdiff_plain;f=libstdc%2B%2B-v3%2Fconfig%2Fio%2Fbasic_file_stdio.h;h=57ff4326e6b190498d5f9c153ca4186e26450dce;hb=6a734d618f8f49ea8560fae0a1808254e5a54419;hp=0b984ebb2a97c4ccbad420595ae4add171b165f6;hpb=cc5112c92dc842efd8d8c843c98da7550ca622ee;p=gcc.git diff --git a/libstdc++-v3/config/io/basic_file_stdio.h b/libstdc++-v3/config/io/basic_file_stdio.h index 0b984ebb2a97..57ff4326e6b1 100644 --- a/libstdc++-v3/config/io/basic_file_stdio.h +++ b/libstdc++-v3/config/io/basic_file_stdio.h @@ -1,6 +1,6 @@ // Wrapper of C-language FILE struct -*- C++ -*- -// Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc. +// Copyright (C) 2000, 2001, 2002, 2003, 2004 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 @@ -36,8 +36,8 @@ * You should not attempt to use it directly. */ -#ifndef _CPP_BASIC_FILE -#define _CPP_BASIC_FILE 1 +#ifndef _BASIC_FILE_STDIO_H +#define _BASIC_FILE_STDIO_H 1 #pragma GCC system_header @@ -62,11 +62,7 @@ namespace std public: __basic_file(__c_lock* __lock = 0); - - void - _M_open_mode(ios_base::openmode __mode, int& __p_mode, int& __rw_mode, - char* __c_mode); - + __basic_file* open(const char* __name, ios_base::openmode __mode, int __prot = 0664); @@ -74,13 +70,7 @@ namespace std sys_open(__c_file* __file, ios_base::openmode); __basic_file* - sys_open(int __fd, ios_base::openmode __mode, bool __del); - - int - sys_getc(); - - int - sys_ungetc(int); + sys_open(int __fd, ios_base::openmode __mode); __basic_file* close(); @@ -97,15 +87,14 @@ namespace std xsputn(const char* __s, streamsize __n); streamsize - xsgetn(char* __s, streamsize __n); + xsputn_2(const char* __s1, streamsize __n1, + const char* __s2, streamsize __n2); - streampos - seekoff(streamoff __off, ios_base::seekdir __way, - ios_base::openmode __mode = ios_base::in | ios_base::out); + streamsize + xsgetn(char* __s, streamsize __n); - streampos - seekpos(streampos __pos, - ios_base::openmode __mode = ios_base::in | ios_base::out); + streamoff + seekoff(streamoff __off, ios_base::seekdir __way); int sync();