mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-03 17:58:30 +00:00
Add dontthrow
attribute to most libc functions
This will help C++ code that uses exceptions to be tinier. For example, this change shaves away 1000 lines of assembly code from LLVM's libcxx, which is 0.7% of all assembly instructions in the entire library.
This commit is contained in:
parent
cb19e172da
commit
eeb20775d2
103 changed files with 1455 additions and 1456 deletions
|
@ -8,34 +8,34 @@ COSMOPOLITAN_C_START_
|
|||
│ cosmopolitan § teletypewriter control ─╬─│┼
|
||||
╚────────────────────────────────────────────────────────────────────────────│*/
|
||||
|
||||
int tcgetattr(int, struct termios *);
|
||||
int tcsetattr(int, int, const struct termios *);
|
||||
int tcgetattr(int, struct termios *) libcesque;
|
||||
int tcsetattr(int, int, const struct termios *) libcesque;
|
||||
|
||||
int openpty(int *, int *, char *, const struct termios *,
|
||||
const struct winsize *) paramsnonnull((1, 2));
|
||||
int forkpty(int *, char *, const struct termios *, const struct winsize *)
|
||||
paramsnonnull((1, 2)) __wur;
|
||||
char *ptsname(int);
|
||||
errno_t ptsname_r(int, char *, size_t);
|
||||
const struct winsize *) libcesque paramsnonnull((1, 2));
|
||||
int forkpty(int *, char *, const struct termios *,
|
||||
const struct winsize *) libcesque paramsnonnull((1, 2)) __wur;
|
||||
char *ptsname(int) libcesque;
|
||||
errno_t ptsname_r(int, char *, size_t) libcesque;
|
||||
|
||||
int grantpt(int);
|
||||
int unlockpt(int);
|
||||
int posix_openpt(int) __wur;
|
||||
int grantpt(int) libcesque;
|
||||
int unlockpt(int) libcesque;
|
||||
int posix_openpt(int) libcesque __wur;
|
||||
|
||||
int tcdrain(int);
|
||||
int tcgetsid(int);
|
||||
int tcflow(int, int);
|
||||
int tcflush(int, int);
|
||||
int tcsetsid(int, int);
|
||||
int tcsendbreak(int, int);
|
||||
void cfmakeraw(struct termios *);
|
||||
int cfsetspeed(struct termios *, uint32_t);
|
||||
int cfsetospeed(struct termios *, uint32_t);
|
||||
int cfsetispeed(struct termios *, uint32_t);
|
||||
uint32_t cfgetospeed(const struct termios *);
|
||||
uint32_t cfgetispeed(const struct termios *);
|
||||
int tcsetwinsize(int, const struct winsize *);
|
||||
int tcgetwinsize(int, struct winsize *);
|
||||
int tcdrain(int) libcesque;
|
||||
int tcgetsid(int) libcesque;
|
||||
int tcflow(int, int) libcesque;
|
||||
int tcflush(int, int) libcesque;
|
||||
int tcsetsid(int, int) libcesque;
|
||||
int tcsendbreak(int, int) libcesque;
|
||||
void cfmakeraw(struct termios *) libcesque;
|
||||
int cfsetspeed(struct termios *, uint32_t) libcesque;
|
||||
int cfsetospeed(struct termios *, uint32_t) libcesque;
|
||||
int cfsetispeed(struct termios *, uint32_t) libcesque;
|
||||
uint32_t cfgetospeed(const struct termios *) libcesque;
|
||||
uint32_t cfgetispeed(const struct termios *) libcesque;
|
||||
int tcsetwinsize(int, const struct winsize *) libcesque;
|
||||
int tcgetwinsize(int, struct winsize *) libcesque;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* COSMOPOLITAN_LIBC_CALLS_TERMIOS_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue