Custom Query (245 matches)
Results (31 - 33 of 245)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#290 | fixed | Program termination does not flush output buffers | ||
Description |
Output buffers are not flushed if file handle is not closed before program end. Sample testcase: #include <stdio.h> #include <string.h> void main(void) { char* buf = "this is my test buffer"; FILE *fo = fopen( "test", "w"); fwrite( buf, 1, strlen( buf), fo); } leaves a 0-byte file on disk. Adding flush or fclose restores proper behaviour. |
|||
#289 | invalid | Building with -fpack-struct=1 breaks struct stat | ||
Description |
While struct stat has a size of 108 bytes when built without special flags, with gcc -fpack-struct=1 stat.c size of struct stat changes to 106 bytes. Adding #pragma pack(4) ... #pragma pack() around structure declarations in sys/stat.h fixes the issue. I wonder if other structures has the same problem. |
|||
#288 | fixed | rename() fails if dest file is r/o | ||
Description |
I found out that See here https://github.com/bitwiseworks/mozilla-os2/issues/29#issuecomment-38677608 for more details. |