~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to lib/strftime.c

  • Committer: Colin Watson
  • Date: 2013-10-30 15:48:33 UTC
  • mfrom: (8.3.5 sid)
  • Revision ID: cjwatson@canonical.com-20131030154833-xdt6e1yfffqom1c4
merge from Debian 8.21-1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 1991-2001, 2003-2007, 2009-2012 Free Software Foundation, Inc.
 
1
/* Copyright (C) 1991-2001, 2003-2007, 2009-2013 Free Software Foundation, Inc.
2
2
 
3
3
   NOTE: The canonical source of this file is maintained with the GNU C Library.
4
4
   Bugs can be reported to bug-glibc@prep.ai.mit.edu.
26
26
#else
27
27
# include <config.h>
28
28
# if FPRINTFTIME
29
 
#  include "ignore-value.h"
30
29
#  include "fprintftime.h"
31
30
# else
32
31
#  include "strftime.h"
210
209
           fwrite_uppcase (p, (s), _n);                                       \
211
210
         else                                                                 \
212
211
           {                                                                  \
213
 
             /* We are ignoring the value of fwrite here, in spite of the     \
214
 
                fact that technically, that may not be valid: the fwrite      \
215
 
                specification in POSIX 2008 defers to that of fputc, which    \
216
 
                is intended to be consistent with the one from ISO C,         \
217
 
                which permits failure due to ENOMEM *without* setting the     \
218
 
                stream's error indicator.  */                                 \
219
 
             ignore_value (fwrite ((s), _n, 1, p));                           \
 
212
             /* Ignore the value of fwrite.  The caller can determine whether \
 
213
                an error occurred by inspecting ferror (P).  All known fwrite \
 
214
                implementations set the stream's error indicator when they    \
 
215
                fail due to ENOMEM etc., even though C11 and POSIX.1-2008 do  \
 
216
                not require this.  */                                         \
 
217
             fwrite (s, _n, 1, p);                                            \
220
218
           }                                                                  \
221
219
       }                                                                      \
222
220
     while (0)                                                                \