~ubuntu-branches/ubuntu/vivid/gzip/vivid

« back to all changes in this revision

Viewing changes to lib/fseterr.c

  • Committer: Steve Langasek
  • Date: 2012-06-29 02:07:40 UTC
  • mfrom: (4.1.9 sid)
  • Revision ID: steve.langasek@canonical.com-20120629020740-qqikrblzana08v2y
Merge version 1.5-1.1 from Debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Set the error indicator of a stream.
2
 
   Copyright (C) 2007-2010 Free Software Foundation, Inc.
 
2
   Copyright (C) 2007-2012 Free Software Foundation, Inc.
3
3
 
4
4
   This program is free software: you can redistribute it and/or modify
5
5
   it under the terms of the GNU General Public License as published by
35
35
  fp_->_flags |= __SERR;
36
36
#elif defined __EMX__               /* emx+gcc */
37
37
  fp->_flags |= _IOERR;
38
 
#elif defined _IOERR                /* AIX, HP-UX, IRIX, OSF/1, Solaris, OpenServer, mingw */
 
38
#elif defined __minix               /* Minix */
 
39
  fp->_flags |= _IOERR;
 
40
#elif defined _IOERR                /* AIX, HP-UX, IRIX, OSF/1, Solaris, OpenServer, mingw, NonStop Kernel */
39
41
  fp_->_flag |= _IOERR;
40
42
#elif defined __UCLIBC__            /* uClibc */
41
43
  fp->__modeflags |= __FLAG_ERROR;
43
45
  fp->_Mode |= 0x200 /* _MERR */;
44
46
#elif defined __MINT__              /* Atari FreeMiNT */
45
47
  fp->__error = 1;
 
48
#elif defined EPLAN9                /* Plan9 */
 
49
  if (fp->state != 0 /* CLOSED */)
 
50
    fp->state = 5 /* ERR */;
46
51
#elif 0                             /* unknown  */
47
52
  /* Portable fallback, based on an idea by Rich Felker.
48
53
     Wow! 6 system calls for something that is just a bit operation!