mescc: Mes C Library: Add missing stubs.

* build-aux/configure-lib.sh (libc_gnu_SOURCES): Add fscanf, rewind stubs.
* lib/stdio/freeopen.c: Remove.
This commit is contained in:
Jan Nieuwenhuizen 2019-11-10 09:00:08 +01:00
parent b3cac19d4c
commit 396e96c056
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273
2 changed files with 2 additions and 28 deletions

View file

@ -263,6 +263,7 @@ lib/stub/ctime.c
lib/stub/fpurge.c
lib/stub/freadahead.c
lib/stub/frexp.c
lib/stub/fscanf.c
lib/stub/getlogin.c
lib/stub/getpwnam.c
lib/stub/getpwuid.c
@ -270,6 +271,7 @@ lib/stub/gmtime.c
lib/stub/pclose.c
lib/stub/popen.c
lib/stub/rand.c
lib/stub/rewind.c
lib/stub/setbuf.c
lib/stub/setlocale.c
lib/stub/setvbuf.c

View file

@ -1,28 +0,0 @@
/* -*-comment-start: "//";comment-end:""-*-
* GNU Mes --- Maxwell Equations of Software
* Copyright © 2018 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
*
* This file is part of GNU Mes.
*
* GNU Mes is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* GNU Mes is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdio.h>
FILE *
freopen (char const *file_name, char const *opentype, FILE * stream)
{
fclose (stream);
return fopen (file_name, opentype);
}