Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong cxx_extern return value #8294

Merged
merged 1 commit into from
Aug 12, 2024
Merged

Fix wrong cxx_extern return value #8294

merged 1 commit into from
Aug 12, 2024

Conversation

yujincheng08
Copy link
Collaborator

@yujincheng08 yujincheng08 commented Aug 7, 2024

No description provided.

bool mv_path(const char *src, const char *dest);
bool link_path(const char *src, const char *dest);
bool clone_attr(const char *src, const char *dest);
bool fclone_attr(int src, int dest);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unsafe extern "C" fn fclone_attr_for_cxx(a: RawFd, b: RawFd) -> bool {

bool cp_afc(const char *src, const char *dest);
bool mv_path(const char *src, const char *dest);
bool link_path(const char *src, const char *dest);
bool clone_attr(const char *src, const char *dest);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unsafe extern "C" fn clone_attr_for_cxx(src: *const c_char, dest: *const c_char) -> bool {

void fclone_attr(int src, int dest);
bool cp_afc(const char *src, const char *dest);
bool mv_path(const char *src, const char *dest);
bool link_path(const char *src, const char *dest);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unsafe extern "C" fn link_path_for_cxx(src: *const c_char, dest: *const c_char) -> bool {

void clone_attr(const char *src, const char *dest);
void fclone_attr(int src, int dest);
bool cp_afc(const char *src, const char *dest);
bool mv_path(const char *src, const char *dest);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unsafe extern "C" fn mv_path_for_cxx(src: *const c_char, dest: *const c_char) -> bool {

void link_path(const char *src, const char *dest);
void clone_attr(const char *src, const char *dest);
void fclone_attr(int src, int dest);
bool cp_afc(const char *src, const char *dest);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unsafe extern "C" fn cp_afc_for_cxx(src: *const c_char, dest: *const c_char) -> bool {

@topjohnwu topjohnwu merged commit 278046b into master Aug 12, 2024
25 checks passed
@topjohnwu topjohnwu deleted the cxx_extern branch August 12, 2024 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants