Skip to content

[request] add weak attribute in all dummy callback functions #9315

@atesin

Description

@atesin

hi, i am trying to write an i/o posix library, but i found i can't implement most callback functions because they are already harcoded with dummy ones that does nothing in libc_replacements.cpp core file

my request is to add weak attributes in all functions of that file, so we can replace syscall implementations for other systems/filesystems/devices/etc. in libraries if we need

... of course we can manually modify the file but is not so tidy that way (that is actually what i am doing for now), and not many people are familiar/relaxed with doing so also

programs will work the same way with weak functions, the only difference will be they could be reimplemented if needed, because if we try to compile now we get a 'multiple definition' error

btw, libc implementation in esp-core was done by integrating (incomplete) newlib library = https://sourceware.org/newlib/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions