Mercurial > ecos
comparison packages/language/c/libc/current/src/stdio/common/fopen.cxx @ 34:29bc183297e1 ecos-sw-1999-09-02
Merge from eCos master repository on 1999-09-02-16:26:10-BST
| author | jlarmour |
|---|---|
| date | Thu, 02 Sep 1999 16:11:22 +0000 |
| parents | 443894e2e912 |
| children | c38311975d4f |
comparison
equal
deleted
inserted
replaced
| 33:7a567ebab069 | 34:29bc183297e1 |
|---|---|
| 161 | 161 |
| 162 // allocate it some memory and construct it. Currently we only have | 162 // allocate it some memory and construct it. Currently we only have |
| 163 // potentially interactive devices, so as per ANSI 7.9.3 it must not | 163 // potentially interactive devices, so as per ANSI 7.9.3 it must not |
| 164 // be buffered | 164 // be buffered |
| 165 curr_stream = new Cyg_StdioStream( dev, open_mode, append, binary, | 165 curr_stream = new Cyg_StdioStream( dev, open_mode, append, binary, |
| 166 _IONBF ); | 166 _IONBF, 0 ); |
| 167 | 167 |
| 168 if (curr_stream == NULL) { | 168 if (curr_stream == NULL) { |
| 169 errno = ENOMEM; | 169 errno = ENOMEM; |
| 170 return NULL; | 170 return NULL; |
| 171 } // if | 171 } // if |
