Prepared and exported Spresense SDK. To reproduce this, follow the steps below.
$ git clone --recursive https://github.com/sonydevworld/spresense.git
$ cd spresense/sdk
$ tools/config.py -d <path to CircuitPython>/ports/cxd56 circuitpython
$ make
$ make exportsdk
$ unzip sdk-export.zip
$ mv sdk-export spresense-exported-sdk
In file spresense-exported-sdk/nuttx/include/nuttx/fs/fs.h
(line 817) comment
// int file_open(FAR struct file *filep, FAR const char *path, int oflags, ...);