From a6c1ed4716cf02626ea035beb6dd4a921642ba80 Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Wed, 3 Jan 2018 17:39:24 -0700 Subject: Use libc from agbcc instead of standalone newlib\nYou must have AGBCC commit 80d029caec189587f8b9294b6c8a5a489b8f5f88 in order to compile pmd_red.gba --- newlib/libc/stdio/setbuf.c | 79 ---------------------------------------------- 1 file changed, 79 deletions(-) delete mode 100644 newlib/libc/stdio/setbuf.c (limited to 'newlib/libc/stdio/setbuf.c') diff --git a/newlib/libc/stdio/setbuf.c b/newlib/libc/stdio/setbuf.c deleted file mode 100644 index 15d09e0..0000000 --- a/newlib/libc/stdio/setbuf.c +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright (c) 1990 The Regents of the University of California. - * All rights reserved. - * - * Redistribution and use in source and binary forms are permitted - * provided that the above copyright notice and this paragraph are - * duplicated in all such forms and that any documentation, - * advertising materials, and other materials related to such - * distribution and use acknowledge that the software was developed - * by the University of California, Berkeley. The name of the - * University may not be used to endorse or promote products derived - * from this software without specific prior written permission. - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. - */ - -/* -FUNCTION -<>---specify full buffering for a file or stream - -INDEX - setbuf - -ANSI_SYNOPSIS - #include - void setbuf(FILE *<[fp]>, char *<[buf]>); - -TRAD_SYNOPSIS - #include - void setbuf(<[fp]>, <[buf]>) - FILE *<[fp]>; - char *<[buf]>; - -DESCRIPTION -<> specifies that output to the file or stream identified by <[fp]> -should be fully buffered. All output for this file will go to a -buffer (of size <>, specified in `<>'). Output will -be passed on to the host system only when the buffer is full, or when -an input operation intervenes. - -You may, if you wish, supply your own buffer by passing a pointer to -it as the argument <[buf]>. It must have size <>. You can -also use <> as the value of <[buf]>, to signal that the -<> function is to allocate the buffer. - -WARNINGS -You may only use <> before performing any file operation other -than opening the file. - -If you supply a non-null <[buf]>, you must ensure that the associated -storage continues to be available until you close the stream -identified by <[fp]>. - -RETURNS -<> does not return a result. - -PORTABILITY -Both ANSI C and the System V Interface Definition (Issue 2) require -<>. However, they differ on the meaning of a <> buffer -pointer: the SVID issue 2 specification says that a <> buffer -pointer requests unbuffered output. For maximum portability, avoid -<> buffer pointers. - -Supporting OS subroutines required: <>, <>, <>, -<>, <>, <>, <>. -*/ - -#include <_ansi.h> -#include -#include "local.h" - -void -_DEFUN (setbuf, (fp, buf), - FILE * fp _AND - char *buf) -{ - (void) setvbuf (fp, buf, buf ? _IOFBF : _IONBF, BUFSIZ); -} -- cgit v1.2.3