Custom Query (245 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (31 - 33 of 245)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Ticket Resolution Summary Owner Reporter
#290 fixed Program termination does not flush output buffers Yuri Dario
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 Yuri Dario
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 dmik
Description

I found out that rename ("file1", "file2") will fail if "file2" has a r/o bit set. This is because DosDelete fails on such files with RC = 5. This failure violates the POSIX requirements which in turn breaks e.g. the mv command which uses rename() internally.

See here https://github.com/bitwiseworks/mozilla-os2/issues/29#issuecomment-38677608 for more details.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Note: See TracQuery for help on using queries.