cosmopolitan/libc/sysv/consts/baud.internal.h

71 lines
2.1 KiB
C
Raw Normal View History

Undiamond Python headers This change gets the Python codebase into a state where it conforms to the conventions of this codebase. It's now possible to include headers from Python, without worrying about ordering. Python has traditionally solved that problem by "diamonding" everything in Python.h, but that's problematic since it means any change to any Python header invalidates all the build artifacts. Lastly it makes tooling not work. Since it is hard to explain to Emacs when I press C-c C-h to add an import line it shouldn't add the header that actually defines the symbol, and instead do follow the nonstandard Python convention. Progress has been made on letting Python load source code from the zip executable structure via the standard C library APIs. System calss now recognizes zip!FILENAME alternative URIs as equivalent to zip:FILENAME since Python uses colon as its delimiter. Some progress has been made on embedding the notice license terms into the Python object code. This is easier said than done since Python has an extremely complicated ownership story. - Some termios APIs have been added - Implement rewinddir() dirstream API - GetCpuCount() API added to Cosmopolitan Libc - More bugs in Cosmopolitan Libc have been fixed - zipobj.com now has flags for mangling the path - Fixed bug a priori with sendfile() on certain BSDs - Polyfill F_DUPFD and F_DUPFD_CLOEXEC across platforms - FIOCLEX / FIONCLEX now polyfilled for fast O_CLOEXEC changes - APE now supports a hybrid solution to no-self-modify for builds - Many BSD-only magnums added, e.g. O_SEARCH, O_SHLOCK, SF_NODISKIO
2021-08-12 07:42:14 +00:00
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_BAUD_H_
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_BAUD_H_
#include "libc/runtime/symbolic.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
extern const uint32_t B0;
extern const uint32_t B50;
extern const uint32_t B75;
extern const uint32_t B110;
extern const uint32_t B134;
extern const uint32_t B150;
extern const uint32_t B200;
extern const uint32_t B300;
extern const uint32_t B600;
extern const uint32_t B1200;
extern const uint32_t B1800;
extern const uint32_t B2400;
extern const uint32_t B4800;
extern const uint32_t B9600;
extern const uint32_t B19200;
extern const uint32_t B38400;
extern const uint32_t B57600;
extern const uint32_t B115200;
extern const uint32_t B230400;
extern const uint32_t B500000;
extern const uint32_t B576000;
extern const uint32_t B1000000;
extern const uint32_t B1152000;
extern const uint32_t B1500000;
extern const uint32_t B2000000;
extern const uint32_t B2500000;
extern const uint32_t B3000000;
extern const uint32_t B3500000;
extern const uint32_t B4000000;
Undiamond Python headers This change gets the Python codebase into a state where it conforms to the conventions of this codebase. It's now possible to include headers from Python, without worrying about ordering. Python has traditionally solved that problem by "diamonding" everything in Python.h, but that's problematic since it means any change to any Python header invalidates all the build artifacts. Lastly it makes tooling not work. Since it is hard to explain to Emacs when I press C-c C-h to add an import line it shouldn't add the header that actually defines the symbol, and instead do follow the nonstandard Python convention. Progress has been made on letting Python load source code from the zip executable structure via the standard C library APIs. System calss now recognizes zip!FILENAME alternative URIs as equivalent to zip:FILENAME since Python uses colon as its delimiter. Some progress has been made on embedding the notice license terms into the Python object code. This is easier said than done since Python has an extremely complicated ownership story. - Some termios APIs have been added - Implement rewinddir() dirstream API - GetCpuCount() API added to Cosmopolitan Libc - More bugs in Cosmopolitan Libc have been fixed - zipobj.com now has flags for mangling the path - Fixed bug a priori with sendfile() on certain BSDs - Polyfill F_DUPFD and F_DUPFD_CLOEXEC across platforms - FIOCLEX / FIONCLEX now polyfilled for fast O_CLOEXEC changes - APE now supports a hybrid solution to no-self-modify for builds - Many BSD-only magnums added, e.g. O_SEARCH, O_SHLOCK, SF_NODISKIO
2021-08-12 07:42:14 +00:00
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#define B0 LITERALLY(0)
#define B50 SYMBOLIC(B50)
#define B75 SYMBOLIC(B75)
#define B110 SYMBOLIC(B110)
#define B134 SYMBOLIC(B134)
#define B150 SYMBOLIC(B150)
#define B200 SYMBOLIC(B200)
#define B300 SYMBOLIC(B300)
#define B600 SYMBOLIC(B600)
#define B1200 SYMBOLIC(B1200)
#define B1800 SYMBOLIC(B1800)
#define B2400 SYMBOLIC(B2400)
#define B4800 SYMBOLIC(B4800)
#define B9600 SYMBOLIC(B9600)
#define B19200 SYMBOLIC(B19200)
#define B38400 SYMBOLIC(B38400)
#define B57600 SYMBOLIC(B57600)
#define B115200 SYMBOLIC(B115200)
#define B230400 SYMBOLIC(B230400)
#define B500000 SYMBOLIC(B500000)
#define B576000 SYMBOLIC(B576000)
#define B1000000 SYMBOLIC(B1000000)
#define B1152000 SYMBOLIC(B1152000)
#define B1500000 SYMBOLIC(B1500000)
#define B2000000 SYMBOLIC(B2000000)
#define B2500000 SYMBOLIC(B2500000)
#define B3000000 SYMBOLIC(B3000000)
#define B3500000 SYMBOLIC(B3500000)
#define B4000000 SYMBOLIC(B4000000)
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_BAUD_H_ */