~ubuntu-branches/ubuntu/vivid/emscripten/vivid-proposed

« back to all changes in this revision

Viewing changes to system/lib/libc/musl/src/stdio/__overflow.c

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2014-01-19 14:12:40 UTC
  • mfrom: (4.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20140119141240-nfiw0p8033oitpfz
Tags: 1.9.0~20140119~7dc8c2f-1
* New snapshot release (Closes: #733714)
* Provide sources for javascript and flash. Done in orig-tar.sh
  Available in third_party/websockify/include/web-socket-js/src/
  (Closes: #735903)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "stdio_impl.h"
 
2
 
 
3
int __overflow(FILE *f, int _c)
 
4
{
 
5
        unsigned char c = _c;
 
6
        if (!f->wend && __towrite(f)) return EOF;
 
7
        if (f->wpos < f->wend && c != f->lbf) return *f->wpos++ = c;
 
8
        if (f->write(f, &c, 1)!=1) return EOF;
 
9
        return c;
 
10
}