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

ABI fixes for Rust #981

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion options/ansi/include/stdio.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ int vasprintf(char **, const char *, __builtin_va_list);
// [C11-7.21.7] Character input/output functions

int fgetc(FILE *stream);
char *fgets(char *__restrict buffer, size_t max_size, FILE *__restrict stream);
char *fgets(char *__restrict buffer, int max_size, FILE *__restrict stream);
int fputc(int c, FILE *stream);
int fputs(const char *__restrict string, FILE *__restrict stream);
char *gets(char *s);
Expand Down
10 changes: 5 additions & 5 deletions options/posix/include/dlfcn.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
#define _DLFCN_H

#define RTLD_LOCAL 0
#define RTLD_NOW 1
#define RTLD_GLOBAL 2
#define RTLD_LAZY 1
#define RTLD_NOW 2
#define RTLD_NOLOAD 4
#define RTLD_NODELETE 8
#define RTLD_DEEPBIND 16
#define RTLD_LAZY 32
#define RTLD_DEEPBIND 8
#define RTLD_GLOBAL 256
#define RTLD_NODELETE 4096

#define RTLD_NEXT ((void *)-1)
#define RTLD_DEFAULT ((void *)0)
Expand Down
2 changes: 1 addition & 1 deletion options/posix/include/glob.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ typedef struct glob_t {

#ifndef __MLIBC_ABI_ONLY

int glob(const char *__restirct, int, int(*)(const char *, int), struct glob_t *__restrict);
int glob(const char *__restrict, int, int(*)(const char *, int), struct glob_t *__restrict);
void globfree(struct glob_t *);

#endif /* !__MLIBC_ABI_ONLY */
Expand Down
10 changes: 5 additions & 5 deletions options/posix/include/termios.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ int tcsetattr(int, int, const struct termios *);

// This is a linux extension

#define TIOCGPGRP 0x540F
#define TIOCSPGRP 0x5410
#define TIOCGWINSZ 0x5413
#define TIOCSWINSZ 0x5414
#define TIOCGSID 0x5429
#define TIOCGPGRP 0x540FUL
#define TIOCSPGRP 0x5410UL
#define TIOCGWINSZ 0x5413UL
#define TIOCSWINSZ 0x5414UL
#define TIOCGSID 0x5429UL

#ifdef __cplusplus
}
Expand Down
Loading