mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 21:36:28 +08:00
fs: Make the binary(no process) mode as the default
POSIX require file system shouldn't enable the \r and \n conversion by default Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
df0e9da1ba
commit
f1236da21c
@@ -401,7 +401,7 @@ FAR struct btuart_lowerhalf_s *btuart_shim_getdevice(FAR const char *path)
|
||||
|
||||
s = &n->state;
|
||||
|
||||
ret = file_open(&s->f, path, O_RDWR | O_BINARY);
|
||||
ret = file_open(&s->f, path, O_RDWR);
|
||||
if (ret < 0)
|
||||
{
|
||||
kmm_free(n);
|
||||
|
||||
@@ -248,7 +248,7 @@ int bcmf_upload_file(FAR struct bcmf_sdio_dev_s *sbus, uint32_t address,
|
||||
|
||||
/* Open the file in the detached state */
|
||||
|
||||
ret = file_open(&finfo, path, O_RDONLY | O_BINARY);
|
||||
ret = file_open(&finfo, path, O_RDONLY);
|
||||
if (ret < 0)
|
||||
{
|
||||
wlerr("ERROR: Failed to open the FILE MTD file %s: %d\n", path, ret);
|
||||
|
||||
@@ -259,7 +259,7 @@ int bcmf_driver_download_clm(FAR struct bcmf_dev_s *priv)
|
||||
wlinfo("Download %d bytes\n", datalen);
|
||||
|
||||
ret = file_open(&finfo, CONFIG_IEEE80211_BROADCOM_FWCLMNAME,
|
||||
O_RDONLY | O_BINARY);
|
||||
O_RDONLY);
|
||||
if (ret < 0)
|
||||
{
|
||||
wlerr("ERROR: Failed to open the FILE MTD file\n", ret);
|
||||
|
||||
Reference in New Issue
Block a user