Skip to content

更新到4.0.4后,用gcc编译,gcc的fcntl.h里面的O_XX和rt-thread的不一致了 #5265

Description

@eddylin83

之前用master的时候(一段时间之前,大概4.0.2左右?),fopen打开文件没有问题,现在更新后,用"rb"选项打开出问题,查了一下,发现是因为使用b选项的时候,fopen传递给_open_r的flags是0x10000,即gcc的O_BINARY与rt-thread的O_DIRECTORY一致,导致以文件夹的方式打开文件。

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis PR/issue is a bug in the current code.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions