mirror of
https://github.com/usatiuk/ficus.git
synced 2025-10-29 00:27:52 +01:00
Make newlib source of truth for various definitions
At least for now, it makes much more sense
This commit is contained in:
12
.idea/editor.xml
generated
12
.idea/editor.xml
generated
@@ -99,5 +99,17 @@
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/INDENT_SIZE/@EntryValue" value="4" type="int" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/CONTINUOUS_LINE_INDENT/@EntryValue" value="Double" type="string" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/TAB_WIDTH/@EntryValue" value="4" type="int" />
|
||||
<option name="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003Aexecinfo_002Eh_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003FApplications_003FXcode_002Eapp_003FContents_003FDeveloper_003FPlatforms_003FMacOSX_002Eplatform_003FDeveloper_003FSDKs_003FMacOSX14_002E4_002Esdk_003Fusr_003Finclude_003Fexecinfo_002Eh/@EntryIndexedValue" value="ExplicitlyExcluded" type="string" />
|
||||
<option name="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003Aexecinfo_002Eh_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003FApplications_003FXcode_002Eapp_003FContents_003FDeveloper_003FPlatforms_003FMacOSX_002Eplatform_003FDeveloper_003FSDKs_003FMacOSX14_002E4_002Esdk_003Fusr_003Finclude_003Fexecinfo_002Eh/@EntryIndexRemoved" />
|
||||
<option name="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003Amap_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003FApplications_003FXcode_002Eapp_003FContents_003FDeveloper_003FPlatforms_003FMacOSX_002Eplatform_003FDeveloper_003FSDKs_003FMacOSX14_002E4_002Esdk_003Fusr_003Finclude_003Fc_002B_002B_003Fv1_003Fmap/@EntryIndexedValue" value="ExplicitlyExcluded" type="string" />
|
||||
<option name="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003Amap_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003FApplications_003FXcode_002Eapp_003FContents_003FDeveloper_003FPlatforms_003FMacOSX_002Eplatform_003FDeveloper_003FSDKs_003FMacOSX14_002E4_002Esdk_003Fusr_003Finclude_003Fc_002B_002B_003Fv1_003Fmap/@EntryIndexRemoved" />
|
||||
<option name="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003A_005F_005Ftree_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003FApplications_003FXcode_002Eapp_003FContents_003FDeveloper_003FPlatforms_003FMacOSX_002Eplatform_003FDeveloper_003FSDKs_003FMacOSX14_002E4_002Esdk_003Fusr_003Finclude_003Fc_002B_002B_003Fv1_003F_005F_005Ftree/@EntryIndexedValue" value="ExplicitlyExcluded" type="string" />
|
||||
<option name="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003A_005F_005Ftree_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003FApplications_003FXcode_002Eapp_003FContents_003FDeveloper_003FPlatforms_003FMacOSX_002Eplatform_003FDeveloper_003FSDKs_003FMacOSX14_002E4_002Esdk_003Fusr_003Finclude_003Fc_002B_002B_003Fv1_003F_005F_005Ftree/@EntryIndexRemoved" />
|
||||
<option name="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003Apair_002Eh_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003FApplications_003FXcode_002Eapp_003FContents_003FDeveloper_003FPlatforms_003FMacOSX_002Eplatform_003FDeveloper_003FSDKs_003FMacOSX14_002E4_002Esdk_003Fusr_003Finclude_003Fc_002B_002B_003Fv1_003F_005F_005Futility_003Fpair_002Eh/@EntryIndexedValue" value="ExplicitlyExcluded" type="string" />
|
||||
<option name="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003Apair_002Eh_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003FApplications_003FXcode_002Eapp_003FContents_003FDeveloper_003FPlatforms_003FMacOSX_002Eplatform_003FDeveloper_003FSDKs_003FMacOSX14_002E4_002Esdk_003Fusr_003Finclude_003Fc_002B_002B_003Fv1_003F_005F_005Futility_003Fpair_002Eh/@EntryIndexRemoved" />
|
||||
<option name="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003Aarray_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003FApplications_003FXcode_002Eapp_003FContents_003FDeveloper_003FPlatforms_003FMacOSX_002Eplatform_003FDeveloper_003FSDKs_003FMacOSX14_002E4_002Esdk_003Fusr_003Finclude_003Fc_002B_002B_003Fv1_003Farray/@EntryIndexedValue" value="ExplicitlyExcluded" type="string" />
|
||||
<option name="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003Aarray_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003FApplications_003FXcode_002Eapp_003FContents_003FDeveloper_003FPlatforms_003FMacOSX_002Eplatform_003FDeveloper_003FSDKs_003FMacOSX14_002E4_002Esdk_003Fusr_003Finclude_003Fc_002B_002B_003Fv1_003Farray/@EntryIndexRemoved" />
|
||||
<option name="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003Aperm_005Foptions_002Eh_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003FApplications_003FXcode_002Eapp_003FContents_003FDeveloper_003FPlatforms_003FMacOSX_002Eplatform_003FDeveloper_003FSDKs_003FMacOSX14_002E4_002Esdk_003Fusr_003Finclude_003Fc_002B_002B_003Fv1_003F_005F_005Ffilesystem_003Fperm_005Foptions_002Eh/@EntryIndexedValue" value="ExplicitlyExcluded" type="string" />
|
||||
<option name="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003Aperm_005Foptions_002Eh_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003F_002E_002E_003FApplications_003FXcode_002Eapp_003FContents_003FDeveloper_003FPlatforms_003FMacOSX_002Eplatform_003FDeveloper_003FSDKs_003FMacOSX14_002E4_002Esdk_003Fusr_003Finclude_003Fc_002B_002B_003Fv1_003F_005F_005Ffilesystem_003Fperm_005Foptions_002Eh/@EntryIndexRemoved" />
|
||||
</component>
|
||||
</project>
|
||||
106
ficus-toolchain/newlib/newlib-4.4.0.20231231/.idea/codeStyles/Project.xml
generated
Normal file
106
ficus-toolchain/newlib/newlib-4.4.0.20231231/.idea/codeStyles/Project.xml
generated
Normal file
@@ -0,0 +1,106 @@
|
||||
<component name="ProjectCodeStyleConfiguration">
|
||||
<code_scheme name="Project" version="173">
|
||||
<RiderCodeStyleSettings>
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppClangFormat/EnableClangFormatSupport/@EntryValue" value="true" type="bool" />
|
||||
<option name="/Default/CodeStyle/EditorConfig/EnableClangFormatSupport/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTILINE_BINARY_EXPRESSIONS_CHAIN/@EntryValue" value="true" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTILINE_CALLS_CHAIN/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTILINE_EXPRESSION/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTILINE_FOR_STMT/@EntryValue" value="true" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTIPLE_DECLARATION/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_TERNARY/@EntryValue" value="ALIGN_ALL" type="string" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/BLANK_LINES_AROUND_CLASS_DEFINITION/@EntryValue" value="1" type="int" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/KEEP_BLANK_LINES_IN_DECLARATIONS/@EntryValue" value="2" type="int" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/KEEP_BLANK_LINES_IN_CODE/@EntryValue" value="2" type="int" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/KEEP_USER_LINEBREAKS/@EntryValue" value="true" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/INDENT_CASE_FROM_SWITCH/@EntryValue" value="true" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/INDENT_COMMENT/@EntryValue" value="true" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/INT_ALIGN_EQ/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SIMPLE_BLOCK_STYLE/@EntryValue" value="DO_NOT_CHANGE" type="string" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_COMMA_IN_TEMPLATE_ARGS/@EntryValue" value="true" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_COMMA_IN_TEMPLATE_PARAMS/@EntryValue" value="true" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_FOR_SEMICOLON/@EntryValue" value="true" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_FOR_SEMICOLON/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_UNARY_OPERATOR/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_WITHIN_ARRAY_ACCESS_BRACKETS/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_WITHIN_CAST_EXPRESSION_PARENTHESES/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_WITHIN_EMPTY_INITIALIZER_BRACES/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_WITHIN_EMPTY_METHOD_PARENTHESES/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_WITHIN_INITIALIZER_BRACES/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPECIAL_ELSE_IF_TREATMENT/@EntryValue" value="true" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_CAST_EXPRESSION_PARENTHESES/@EntryValue" value="true" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/WRAP_AFTER_BINARY_OPSIGN/@EntryValue" value="true" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/WRAP_BEFORE_TERNARY_OPSIGNS/@EntryValue" value="true" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/TYPE_DECLARATION_BRACES/@EntryValue" value="END_OF_LINE" type="string" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/OTHER_BRACES/@EntryValue" value="END_OF_LINE" type="string" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/CASE_BLOCK_BRACES/@EntryValue" value="END_OF_LINE" type="string" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/BLANK_LINES_AROUND_FUNCTION_DECLARATION/@EntryValue" value="1" type="int" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/BLANK_LINES_AROUND_FUNCTION_DEFINITION/@EntryValue" value="1" type="int" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/PLACE_WHILE_ON_NEW_LINE/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/PLACE_ELSE_ON_NEW_LINE/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/PLACE_CATCH_ON_NEW_LINE/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/NAMESPACE_INDENTATION/@EntryValue" value="All" type="string" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTILINE_ARGUMENT/@EntryValue" value="true" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTILINE_EXTENDS_LIST/@EntryValue" value="true" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTILINE_PARAMETER/@EntryValue" value="true" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTILINE_TYPE_ARGUMENT/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTILINE_TYPE_PARAMETER/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/BLANK_LINES_AROUND_DECLARATIONS/@EntryValue" value="0" type="int" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/INDENT_ACCESS_SPECIFIERS_FROM_CLASS/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/INDENT_CLASS_MEMBERS_FROM_ACCESS_SPECIFIERS/@EntryValue" value="true" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/LINE_BREAK_AFTER_COLON_IN_MEMBER_INITIALIZER_LISTS/@EntryValue" value="ON_SINGLE_LINE" type="string" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/MEMBER_INITIALIZER_LIST_STYLE/@EntryValue" value="DO_NOT_CHANGE" type="string" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/PLACE_NAMESPACE_DEFINITIONS_ON_SAME_LINE/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_COLON_IN_BITFIELD_DECLARATOR/@EntryValue" value="true" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_COLON_IN_BITFIELD_DECLARATOR/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_EXTENDS_COLON/@EntryValue" value="true" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_EXTENDS_COLON/@EntryValue" value="true" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_FOR_COLON/@EntryValue" value="true" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_FOR_COLON/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_PTR_IN_DATA_MEMBER/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_PTR_IN_DATA_MEMBERS/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_PTR_IN_METHOD/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_PTR_IN_NESTED_DECLARATOR/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_REF_IN_DATA_MEMBER/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_REF_IN_DATA_MEMBERS/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_AFTER_REF_IN_METHOD/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_PTR_IN_ABSTRACT_DECL/@EntryValue" value="true" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_PTR_IN_DATA_MEMBER/@EntryValue" value="true" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_PTR_IN_DATA_MEMBERS/@EntryValue" value="true" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_PTR_IN_METHOD/@EntryValue" value="true" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_REF_IN_ABSTRACT_DECL/@EntryValue" value="true" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_REF_IN_DATA_MEMBER/@EntryValue" value="true" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_REF_IN_DATA_MEMBERS/@EntryValue" value="true" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_REF_IN_METHOD/@EntryValue" value="true" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_TEMPLATE_ARGS/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BEFORE_TEMPLATE_PARAMS/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_BETWEEN_CLOSING_ANGLE_BRACKETS_IN_TEMPLATE_ARGS/@EntryValue" value="true" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_WITHIN_EMPTY_TEMPLATE_PARAMS/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_WITHIN_TEMPLATE_ARGS/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_WITHIN_TEMPLATE_PARAMS/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_WITHIN_DECLARATION_PARENTHESES/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/SPACE_WITHIN_EMPTY_BLOCKS/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/WRAP_BEFORE_INVOCATION_LPAR/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/WRAP_AFTER_INVOCATION_LPAR/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/WRAP_BEFORE_INVOCATION_RPAR/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/WRAP_BEFORE_DECLARATION_LPAR/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/WRAP_AFTER_DECLARATION_LPAR/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/WRAP_BEFORE_DECLARATION_RPAR/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/WRAP_ARGUMENTS_STYLE/@EntryValue" value="WRAP_IF_LONG" type="string" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/WRAP_PARAMETERS_STYLE/@EntryValue" value="WRAP_IF_LONG" type="string" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/BREAK_TEMPLATE_DECLARATION/@EntryValue" value="LINE_BREAK" type="string" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/NAMESPACE_DECLARATION_BRACES/@EntryValue" value="END_OF_LINE" type="string" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/FREE_BLOCK_BRACES/@EntryValue" value="END_OF_LINE" type="string" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/INVOCABLE_DECLARATION_BRACES/@EntryValue" value="END_OF_LINE" type="string" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ANONYMOUS_METHOD_DECLARATION_BRACES/@EntryValue" value="END_OF_LINE" type="string" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/INITIALIZER_BRACES/@EntryValue" value="END_OF_LINE_NO_SPACE" type="string" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/INDENT_STYLE/@EntryValue" value="Space" type="string" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/INDENT_SIZE/@EntryValue" value="4" type="int" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/CONTINUOUS_LINE_INDENT/@EntryValue" value="Double" type="string" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/TAB_WIDTH/@EntryValue" value="4" type="int" />
|
||||
</RiderCodeStyleSettings>
|
||||
<clangFormatSettings>
|
||||
<option name="ENABLED" value="true" />
|
||||
</clangFormatSettings>
|
||||
</code_scheme>
|
||||
</component>
|
||||
5
ficus-toolchain/newlib/newlib-4.4.0.20231231/.idea/codeStyles/codeStyleConfig.xml
generated
Normal file
5
ficus-toolchain/newlib/newlib-4.4.0.20231231/.idea/codeStyles/codeStyleConfig.xml
generated
Normal file
@@ -0,0 +1,5 @@
|
||||
<component name="ProjectCodeStyleConfiguration">
|
||||
<state>
|
||||
<option name="USE_PER_PROJECT_SETTINGS" value="true" />
|
||||
</state>
|
||||
</component>
|
||||
@@ -2,7 +2,7 @@
|
||||
<project version="4">
|
||||
<component name="BackendCodeEditorSettings">
|
||||
<option name="/Default/Housekeeping/GlobalSettingsUpgraded/IsUpgraded/@EntryValue" value="true" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppClangFormat/EnableClangFormatSupport/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppClangFormat/EnableClangFormatSupport/@EntryValue" value="true" type="bool" />
|
||||
<option name="/Default/CodeStyle/EditorConfig/EnableClangFormatSupport/@EntryValue" value="false" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTILINE_BINARY_EXPRESSIONS_CHAIN/@EntryValue" value="true" type="bool" />
|
||||
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ALIGN_MULTILINE_CALLS_CHAIN/@EntryValue" value="false" type="bool" />
|
||||
|
||||
@@ -36,6 +36,10 @@
|
||||
#ifndef _SYS_DIRENT_H_
|
||||
#define _SYS_DIRENT_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <sys/syslimits.h>
|
||||
|
||||
@@ -96,4 +100,8 @@ typedef struct _dirdesc {
|
||||
|
||||
//#define dirfd(dirp) ((dirp)->dd_fd)
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* !_SYS_DIRENT_H_ */
|
||||
|
||||
@@ -1,21 +1,14 @@
|
||||
//
|
||||
// Created by Stepan Usatiuk on 26.10.2023.
|
||||
// Created by Stepan Usatiuk on 13.04.2024.
|
||||
//
|
||||
|
||||
#ifndef FICUS_SYSCALLS_DEFS_H
|
||||
#define FICUS_SYSCALLS_DEFS_H
|
||||
|
||||
// FIXME!: Don't duplicate this please
|
||||
#ifndef _SYS_SYSCALLS_H
|
||||
#define _SYS_SYSCALLS_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
#include <cstdint>
|
||||
extern "C" {
|
||||
#else
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
|
||||
#include "FileOpts.h"
|
||||
|
||||
#define SYSCALL_EXIT_ID 0
|
||||
|
||||
#define SYSCALL_PUTCHAR_ID 1
|
||||
@@ -36,13 +29,18 @@ extern "C" {
|
||||
#define SYSCALL_UNLINK_ID 13
|
||||
|
||||
#define SYSCALL_EXECVE_ID 50
|
||||
#define SYSCALL_FORK_ID 51
|
||||
#define SYSCALL_SBRK_ID 100
|
||||
|
||||
|
||||
#define SYSCALL_PRINT_MEM 1000
|
||||
#define SYSCALL_PRINT_TASKS 1001
|
||||
|
||||
void print_mem();
|
||||
void print_tasks();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif //FICUS_SYSCALLS_DEFS_H
|
||||
#endif //_SYS_SYSCALLS_H
|
||||
@@ -1,4 +1,5 @@
|
||||
/* note these headers are all provided by newlib - you don't need to provide them */
|
||||
#include <dirent.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/errno.h>
|
||||
#include <sys/fcntl.h>
|
||||
@@ -6,41 +7,15 @@
|
||||
#include <sys/time.h>
|
||||
#include <sys/times.h>
|
||||
#include <sys/types.h>
|
||||
#include <dirent.h>
|
||||
|
||||
#define SYSCALL_EXIT_ID 0
|
||||
|
||||
#define SYSCALL_PUTCHAR_ID 1
|
||||
#define SYSCALL_SLEEP_ID 2
|
||||
#define SYSCALL_READCHAR_ID 3
|
||||
|
||||
#define SYSCALL_OPEN_ID 4
|
||||
#define SYSCALL_CLOSE_ID 5
|
||||
|
||||
#define SYSCALL_READ_ID 6
|
||||
#define SYSCALL_WRITE_ID 7
|
||||
#define SYSCALL_LSEEK_ID 8
|
||||
|
||||
#define SYSCALL_OPENDIR_ID 9
|
||||
#define SYSCALL_READDIR_ID 10
|
||||
#define SYSCALL_CLOSEDIR_ID 11
|
||||
#define SYSCALL_MKDIR_ID 12
|
||||
#define SYSCALL_UNLINK_ID 13
|
||||
|
||||
#define SYSCALL_EXECVE_ID 50
|
||||
#define SYSCALL_SBRK_ID 100
|
||||
|
||||
|
||||
#define SYSCALL_PRINT_MEM 1000
|
||||
#define SYSCALL_PRINT_TASKS 1001
|
||||
#include <sys/syscalls.h>
|
||||
|
||||
uint64_t _do_syscall(uint64_t id_rdi, uint64_t a1_rsi, uint64_t a2_rdx, uint64_t a3_rcx) {
|
||||
uint64_t res;
|
||||
asm volatile("syscall; mov (0x10016), %%rsp" // TASK_POINTER->ret_sp_val
|
||||
: "=r"(res)
|
||||
: "D"(id_rdi), "S"(a1_rsi), "d"(a2_rdx), "a"(a3_rcx)
|
||||
: "cc", "rcx", "r8",
|
||||
"r9", "r10", "r11", "r15", "memory");
|
||||
: "=r"(res)
|
||||
: "D"(id_rdi), "S"(a1_rsi), "d"(a2_rdx), "a"(a3_rcx)
|
||||
: "cc", "rcx", "r8",
|
||||
"r9", "r10", "r11", "r15", "memory");
|
||||
return res;
|
||||
}
|
||||
|
||||
@@ -53,13 +28,17 @@ int _close(int file) {
|
||||
}
|
||||
|
||||
char **environ; /* pointer to array of char * strings that define the current environment variables */
|
||||
int _execve(char *name, char **argv, char **env) {
|
||||
|
||||
int _execve(char *name, char **argv, char **env) {
|
||||
return _do_syscall(SYSCALL_EXECVE_ID, (uint64_t) name, (uint64_t) argv, (uint64_t) env);
|
||||
}
|
||||
|
||||
int _fork() {}
|
||||
int _fork() {
|
||||
return _do_syscall(SYSCALL_FORK_ID, 0, 0, 0);
|
||||
}
|
||||
|
||||
int _getpid() {}
|
||||
int _getpid() {
|
||||
}
|
||||
|
||||
int _isatty(int file) { return file == 0 || file == 1 || file == 2; }
|
||||
|
||||
@@ -67,9 +46,11 @@ int _fstat(int file, struct stat *st) {
|
||||
if (_isatty(file)) st->st_mode = S_IFCHR;
|
||||
}
|
||||
|
||||
int _kill(int pid, int sig) {}
|
||||
int _kill(int pid, int sig) {
|
||||
}
|
||||
|
||||
int _link(char *old, char *new) {}
|
||||
int _link(char *old, char *new) {
|
||||
}
|
||||
|
||||
int _lseek(int file, int ptr, int dir) {
|
||||
return _do_syscall(SYSCALL_LSEEK_ID, file, ptr, dir);
|
||||
@@ -87,13 +68,17 @@ caddr_t _sbrk(int incr) {
|
||||
return (caddr_t) _do_syscall(SYSCALL_SBRK_ID, (int64_t) incr, 0, 0);
|
||||
}
|
||||
|
||||
int _stat(const char *file, struct stat *st) {}
|
||||
int _stat(const char *file, struct stat *st) {
|
||||
}
|
||||
|
||||
clock_t _times(struct tms *buf) {}
|
||||
clock_t _times(struct tms *buf) {
|
||||
}
|
||||
|
||||
int _unlink(char *name) {}
|
||||
int _unlink(char *name) {
|
||||
}
|
||||
|
||||
int _wait(int *status) {}
|
||||
int _wait(int *status) {
|
||||
}
|
||||
|
||||
int _write(int file, char *ptr, int len) {
|
||||
return _do_syscall(SYSCALL_WRITE_ID, file, (uint64_t) ptr, len);
|
||||
@@ -112,4 +97,13 @@ int usleep(useconds_t useconds) {
|
||||
}
|
||||
|
||||
|
||||
int _gettimeofday(struct timeval *restrict p, void *restrict z) {}
|
||||
int _gettimeofday(struct timeval *restrict p, void *restrict z) {
|
||||
}
|
||||
|
||||
void print_mem() {
|
||||
_do_syscall(SYSCALL_PRINT_MEM, 0, 0, 0);
|
||||
}
|
||||
void print_tasks() {
|
||||
_do_syscall(SYSCALL_PRINT_TASKS, 0, 0, 0);
|
||||
}
|
||||
|
||||
|
||||
@@ -33,8 +33,6 @@ target_include_directories(kernel.elf PRIVATE ${tools}/limine/prefix/include)
|
||||
|
||||
add_subdirectory(./arch/)
|
||||
add_subdirectory(./kernel/)
|
||||
add_subdirectory(./uapi/)
|
||||
|
||||
|
||||
if (TEST_MODE)
|
||||
add_compile_options(-Wall -O0 -Wextra -pedantic -fno-omit-frame-pointer -Wshadow -Wformat=2 -Wfloat-equal -D_GLIBCXX_DEBUG -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2)
|
||||
@@ -45,7 +43,6 @@ if (TEST_MODE)
|
||||
add_link_options(-rdynamic)
|
||||
|
||||
set_target_properties(kernel.elf PROPERTIES EXCLUDE_FROM_ALL 1 EXCLUDE_FROM_DEFAULT_BUILD 1)
|
||||
set_target_properties(syscalls_interface PROPERTIES EXCLUDE_FROM_ALL 1 EXCLUDE_FROM_DEFAULT_BUILD 1)
|
||||
add_subdirectory(./unit-tests/)
|
||||
endif ()
|
||||
|
||||
|
||||
@@ -27,7 +27,6 @@
|
||||
#include "mutex.hpp"
|
||||
#include "rand.h"
|
||||
#include "syscalls.hpp"
|
||||
#include "syscalls_interface.h"
|
||||
#include "task.hpp"
|
||||
#include "timer.hpp"
|
||||
|
||||
|
||||
@@ -5,7 +5,9 @@
|
||||
#include "syscalls.hpp"
|
||||
#include "VFSApi.hpp"
|
||||
#include "VMA.hpp"
|
||||
#include "syscalls_defs.h"
|
||||
|
||||
#include <sys/syscalls.h>
|
||||
#include <sys/dirent.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstdint>
|
||||
@@ -78,7 +80,7 @@ uint64_t syscall_readchar() {
|
||||
}
|
||||
|
||||
uint64_t syscall_open(const char *pathname, int flags) {
|
||||
FDT::FD res = FDT::current()->open(StrToPath(pathname), static_cast<FileOpts>(flags));
|
||||
FDT::FD res = FDT::current()->open(StrToPath(pathname), flags);
|
||||
return res;
|
||||
}
|
||||
|
||||
@@ -214,14 +216,6 @@ char *syscall_sbrk(int brk) {
|
||||
|
||||
return ret;
|
||||
}
|
||||
struct dirent {
|
||||
unsigned long d_fileno; /* file number of entry */
|
||||
unsigned short d_reclen; /* length of this record */
|
||||
unsigned char d_type; /* file type, see below */
|
||||
unsigned char d_namlen; /* length of string in d_name */
|
||||
char d_name[255 + 1]; /* name must be no longer than this */
|
||||
};
|
||||
|
||||
|
||||
int64_t syscall_getdents(int fd, struct dirent *dp, int count) {
|
||||
auto f = FDT::current()->get(fd);
|
||||
|
||||
@@ -11,16 +11,17 @@
|
||||
#include "VFSApi.hpp"
|
||||
#include "VFSGlobals.hpp"
|
||||
#include "paging.hpp"
|
||||
#include <sys/fcntl.h>
|
||||
|
||||
FDT::FD FDT::open(const Path &p, FileOpts opts) {
|
||||
FDT::FD FDT::open(const Path &p, int opts) {
|
||||
if (auto n = VFSGlobals::root.traverse(p); n.get() != nullptr) {
|
||||
LockGuard l(_mtx);
|
||||
_files.emplace(_cur_fd++, UniquePtr<File>(new File(n, opts)));
|
||||
return _cur_fd - 1;
|
||||
}
|
||||
if (opts & FileOpts::O_CREAT) {
|
||||
if (opts & O_CREAT) {
|
||||
if (!VFSApi::touch(p)) return -1;
|
||||
return FDT::open(p, static_cast<FileOpts>(opts ^ FileOpts::O_CREAT));
|
||||
return FDT::open(p, opts ^ O_CREAT);
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ public:
|
||||
FDT();
|
||||
|
||||
using FD = int64_t;
|
||||
FD open(const Path &p, FileOpts opts);
|
||||
FD open(const Path &p, int opts);
|
||||
void close(FD fd);
|
||||
File *get(FD fd) const;
|
||||
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
|
||||
#include "Node.hpp"
|
||||
|
||||
File::File(SharedPtr<Node> node, FileOpts opts) : _n(std::move(node)), _opts(opts) {
|
||||
if (opts & FileOpts::O_WRONLY)
|
||||
assert(opts & FileOpts::O_RDONLY);
|
||||
#include <sys/fcntl.h>
|
||||
|
||||
File::File(SharedPtr<Node> node, int opts) : _n(std::move(node)), _opts(opts) {
|
||||
}
|
||||
File::~File() {
|
||||
}
|
||||
@@ -37,7 +37,7 @@ uint64_t File::read(char *buf, uint64_t size) {
|
||||
}
|
||||
}
|
||||
uint64_t File::write(const char *buf, uint64_t size) {
|
||||
if (!(_opts & FileOpts::O_WRONLY)) return -1;
|
||||
if (_opts & O_RDONLY) return -1;
|
||||
if (file().get() != nullptr) {
|
||||
int64_t fret = file()->write(buf, _pos, size);
|
||||
_pos += fret;
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
#ifndef FICUS_FILE_HPP
|
||||
#define FICUS_FILE_HPP
|
||||
|
||||
#include "FileOpts.h"
|
||||
#include "PointersCollection.hpp"
|
||||
|
||||
#include <cstdint>
|
||||
@@ -16,7 +15,7 @@ class NodeFile;
|
||||
|
||||
class File {
|
||||
public:
|
||||
File(SharedPtr<Node> n, FileOpts opts);
|
||||
File(SharedPtr<Node> n, int opts);
|
||||
~File();
|
||||
File(const File &f) = delete;
|
||||
File &operator=(const File &o) = delete;
|
||||
@@ -34,7 +33,7 @@ public:
|
||||
private:
|
||||
SharedPtr<Node> _n;
|
||||
uint64_t _pos = 0;
|
||||
FileOpts _opts;
|
||||
int _opts;
|
||||
};
|
||||
|
||||
#endif //FICUS_FILE_HPP
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
#include "File.hpp"
|
||||
#include "Node.hpp"
|
||||
|
||||
#include <sys/fcntl.h>
|
||||
|
||||
bool VFSApi::mkdir(const Path &path) {
|
||||
auto root = path.subvector(0, path.size() - 1);
|
||||
FDHandle root_fd = FDHandle(FDT::current()->open(root, O_RDWR));
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
add_executable(init init.c)
|
||||
|
||||
target_compile_options(init PRIVATE -fno-exceptions -fno-rtti)
|
||||
target_link_libraries(init syscalls_interface)
|
||||
|
||||
target_include_directories(init PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "syscalls_interface.h"
|
||||
#include "sys/syscalls.h"
|
||||
|
||||
#include "stdio.h"
|
||||
#include "stdlib.h"
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
add_library(syscalls_interface syscalls_interface.c)
|
||||
target_include_directories(syscalls_interface INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
target_link_libraries(kernel.elf PRIVATE syscalls_interface)
|
||||
@@ -1,27 +0,0 @@
|
||||
//
|
||||
// Created by Stepan Usatiuk on 22.03.2024.
|
||||
//
|
||||
|
||||
#ifndef FICUS_FILEOPTS_HPP
|
||||
#define FICUS_FILEOPTS_HPP
|
||||
|
||||
#ifdef __cplusplus
|
||||
#include <cstdint>
|
||||
extern "C" {
|
||||
#else
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
|
||||
enum FileOpts : uint8_t {
|
||||
O_RDONLY = 1 << 1, // Read
|
||||
O_WRONLY = 1 << 2, // Write
|
||||
O_RDWR = O_RDONLY | O_WRONLY,
|
||||
O_CREAT = 1 << 3, // Create
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#endif //FICUS_FILEOPTS_HPP
|
||||
@@ -1,32 +0,0 @@
|
||||
//
|
||||
// Created by Stepan Usatiuk on 26.10.2023.
|
||||
//
|
||||
|
||||
#include "syscalls_interface.h"
|
||||
#include "syscalls_defs.h"
|
||||
|
||||
|
||||
uint64_t do_syscall(uint64_t id_rdi, uint64_t a1_rsi, uint64_t a2_rdx, uint64_t a3_rcx) {
|
||||
uint64_t res;
|
||||
asm volatile("syscall; mov (0x10016), %%rsp" // TASK_POINTER->ret_sp_val
|
||||
: "=r"(res)
|
||||
: "D"(id_rdi), "S"(a1_rsi), "d"(a2_rdx), "a"(a3_rcx)
|
||||
: "cc", "rcx", "r8",
|
||||
"r9", "r10", "r11", "r15", "memory");
|
||||
return res;
|
||||
}
|
||||
|
||||
uint64_t sreadchar() {
|
||||
return do_syscall(SYSCALL_READCHAR_ID, 0, 0, 0);
|
||||
}
|
||||
|
||||
uint64_t sputchar(char c) {
|
||||
return do_syscall(SYSCALL_PUTCHAR_ID, c, 0, 0);
|
||||
}
|
||||
|
||||
void print_mem() {
|
||||
do_syscall(SYSCALL_PRINT_MEM, 0, 0, 0);
|
||||
}
|
||||
void print_tasks() {
|
||||
do_syscall(SYSCALL_PRINT_TASKS, 0, 0, 0);
|
||||
}
|
||||
@@ -1,29 +0,0 @@
|
||||
//
|
||||
// Created by Stepan Usatiuk on 26.10.2023.
|
||||
//
|
||||
|
||||
#ifndef FICUS_SYSCALLS_INTERFACE_H
|
||||
#define FICUS_SYSCALLS_INTERFACE_H
|
||||
|
||||
#include "dirent.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
#include <cstdint>
|
||||
extern "C" {
|
||||
#else
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
|
||||
#include "FileOpts.h"
|
||||
|
||||
uint64_t sputchar(char c);
|
||||
uint64_t sreadchar();
|
||||
|
||||
void print_mem();
|
||||
void print_tasks();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif //FICUS_SYSCALLS_INTERFACE_H
|
||||
Reference in New Issue
Block a user