File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed
examples/application/fs/src Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 22import os
33from building import *
44
5- cwd = GetCurrentDir ()
65objs = []
6+
7+ def _has (sym : str ) -> bool :
8+ try :
9+ return bool (GetDepend ([sym ]))
10+ except Exception :
11+ return bool (GetDepend (sym ))
12+
13+ if not _has ('RT_USING_RUST' ):
14+ Return ('objs' )
15+
16+ cwd = GetCurrentDir ()
717entries = os .listdir (cwd )
818
919for d in entries :
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ pub const RTLD_LAZY: c_int = 0x00000; // Lazy function call binding
2222pub const RTLD_NOW : c_int = 0x00001 ; // Immediate function call binding
2323pub const RTLD_GLOBAL : c_int = 0x10000 ; // Make symbols globally available
2424pub const RTLD_LOCAL : c_int = 0x00000 ; // Default local
25- // fcntl.h interent constants
25+ // fcntl.h integer constants
2626pub const O_RDONLY : c_int = 0x0000 ; // open for reading only
2727pub const O_WRONLY : c_int = 0x0001 ; // open for writing only
2828pub const O_RDWR : c_int = 0x0002 ; // open for reading and writing
Original file line number Diff line number Diff line change 66 *
77 * Change Logs:
88 * Date Author notes
9- * 2025-10-20 foxglove Rust file opration test.
9+ * 2025-10-20 foxglove Rust file operation test.
1010 * 2025-10-29 foxglove Updated to demonstrate new modular macro interface
1111 */
1212#![ no_std]
You can’t perform that action at this time.
0 commit comments