X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Ffseterr.c;h=4ca0a3456c0b41eaf4604adc23266647eda1c3da;hb=57fdfd3f8ec62b105c53bcdf6f127c35c7fe7391;hp=d8ea1fbb299625570af7cbaff3b8ec16d0587e97;hpb=1561b0ad1f66f47d7911afd27881dc089c718cf1;p=pspp
diff --git a/lib/fseterr.c b/lib/fseterr.c
index d8ea1fbb29..4ca0a3456c 100644
--- a/lib/fseterr.c
+++ b/lib/fseterr.c
@@ -1,19 +1,18 @@
/* Set the error indicator of a stream.
Copyright (C) 2007 Free Software Foundation, Inc.
- This program is free software; you can redistribute it and/or modify
+ This program 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 2, or (at your option)
- any later version.
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
This program 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 this program; if not, write to the Free Software Foundation,
- Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see . */
#include
@@ -47,6 +46,8 @@ fseterr (FILE *fp)
# endif
#elif defined __UCLIBC__ /* uClibc */
fp->__modeflags |= __FLAG_ERROR;
+#elif defined __QNX__ /* QNX */
+ fp->_Mode |= _MERR;
#elif 0 /* unknown */
/* Portable fallback, based on an idea by Rich Felker.
Wow! 6 system calls for something that is just a bit operation!