Commit graph

  • 7a25049ba9 Added unit test for sendmsg and recvmsg Fabrizio Bertocci 2021-04-07 14:56:45 -04:00
  • ee2392897e Merge branch 'master' of https://github.com/jart/cosmopolitan into FEATURE/sendmsg Fabrizio Bertocci 2021-04-07 08:55:32 -04:00
  • 5eaf863528 Changed the type of msghdr->msg_namelen to be uint32_t instead of int32_t (the original type is socklen_t and is not signed). Added implementation of recvmsg Fabrizio Bertocci 2021-04-07 08:53:47 -04:00
  • 59575f7e80 Perform some minor code cleanup Justine Tunney 2021-04-06 12:46:52 -07:00
  • 6c16f208b5 Remove unintended log statements Justine Tunney 2021-04-01 20:01:26 -07:00
  • bb96099c65 Define assert as an expression Justine Tunney 2021-04-01 19:42:02 -07:00
  • 2584a86ab4
    Added struct ip_mreq (#143) fabriziobertocci 2021-04-01 22:38:11 -04:00
  • 9e98d6893d
    Add some missing prototypes (#142) dosisod 2021-04-01 19:36:37 -07:00
  • 6682013d12
    Implement syslog (#136) fabriziobertocci 2021-04-01 22:32:39 -04:00
  • 83abd68029 Parse Content-Range with missing right hand side Justine Tunney 2021-04-01 18:51:12 -07:00
  • 5f2fce90e8 Increased the size of the sun_path field in a sockaddr_un structure to match the standard of 108 characters. Modified the bind/connect/sendto to adjust to this change Fabrizio Bertocci 2021-04-01 13:21:06 -04:00
  • f2b8cbdfb9 Added Arity columns for the manually modified stub functions Fabrizio Bertocci 2021-04-01 09:14:56 -04:00
  • c7b58be2d6 Added missing definition for struct ip_mreq (that at the end is a simple struct containing two in_addr objects) Fabrizio Bertocci 2021-03-31 22:21:12 -04:00
  • 14d4a3ae41 Add missing syscalls dosisod 2021-03-29 21:33:51 -07:00
  • 7abca1531f Cosmopolitan 0.3 0.3 Justine Tunney 2021-03-29 03:15:30 -07:00
  • 7dc8973567 Enable serving zip directory entries Justine Tunney 2021-03-29 02:39:20 -07:00
  • 1753b669cf Have redbean show zip listing as default / handler Justine Tunney 2021-03-29 01:22:49 -07:00
  • ae300d0c40 Remove colliding name in syscalls.sh Justine Tunney 2021-03-28 18:26:56 -07:00
  • c6f75bf95a Fix issue with testing service Justine Tunney 2021-03-28 18:22:36 -07:00
  • 52565e7af3 Make minor performance improvement to HTTP parser Justine Tunney 2021-03-28 18:00:29 -07:00
  • 3c19b6e352 Add support for serving directly from filesystem Justine Tunney 2021-03-28 07:54:21 -07:00
  • a1677d605a Transcode ISO-8859-1 in HTTP headers Justine Tunney 2021-03-28 00:10:17 -07:00
  • dcbd2b8668 Add base64 support Justine Tunney 2021-03-27 18:17:54 -07:00
  • 4d21cd315d Support POST parameters in redbean server pages Justine Tunney 2021-03-27 07:29:55 -07:00
  • da36e7e256 Make major improvements to stdio Justine Tunney 2021-03-26 22:31:41 -07:00
  • cd22936712 Added definition of sockaddr_un_bsd Fabrizio Bertocci 2021-03-25 19:48:03 -04:00
  • 100e219181 Replaced calling sendto() with send() since previous version was required to work around to the duplication of the send() function. Fabrizio Bertocci 2021-03-25 19:41:59 -04:00
  • 3c6120e486 Removed no longer needed send.s Fabrizio Bertocci 2021-03-25 19:30:14 -04:00
  • 90ae1c8c23 Commented out syscall for send since it is duplicated (send() is defined in libc/sock/send.c) Fabrizio Bertocci 2021-03-25 18:46:12 -04:00
  • a82a8c4e1c No functional changes, just modified the comment describing the last column. Values are not for XENIX but for Windows Fabrizio Bertocci 2021-03-25 18:42:27 -04:00
  • 34bef52340 Removed temporary bypass of time formatting (left behind from some debugging session). Fabrizio Bertocci 2021-03-25 10:28:40 -04:00
  • d932fb8624 The new files containing the syslog implementation Fabrizio Bertocci 2021-03-25 10:08:14 -04:00
  • 87f5e7e731 Added implementation for syslog related functionality. On Unix, the syslog facility will connect to the syslogd through the Unix socket /dev/log. On Windows it uses the event logging API (ReportEvent). Had to add the constants for the LOG_xxxx values for Windows. Fabrizio Bertocci 2021-03-25 10:00:19 -04:00
  • 09bcfa23d5 Make major improvements to redbean Justine Tunney 2021-03-25 02:21:13 -07:00
  • 6b90ff60cd Add preliminary lua support to redbean Justine Tunney 2021-03-21 17:27:53 -07:00
  • 2f41b4dcc6
    Add prototype for srandom() (#132) fabriziobertocci 2021-03-21 10:33:33 -04:00
  • 0d2aa4fba4 Added prototype for srandom(). Function is already defined in random.c (together with the other random functions like initstate, setstate, random) but not exposed in the header file Fabrizio Bertocci 2021-03-21 08:43:12 -04:00
  • 5af25f687a
    Rename eai2str to gai_strerror (#131) fabriziobertocci 2021-03-20 23:48:40 -04:00
  • bdcf62cda9 Renamed eai2str to gai_strerror Fabrizio Bertocci 2021-03-20 22:59:46 -04:00
  • 61cd0d9238 Added macro to alias eai2str to gai_strerror Fabrizio Bertocci 2021-03-19 08:46:33 -04:00
  • 9c81729008
    Remove unused variable in fflush (#129) Alison Winters 2021-03-17 20:15:00 -07:00
  • 8a236433a2
    Add more math functions (#128) dosisod 2021-03-17 20:05:12 -07:00
  • a6ea5797ec fflush: remove now-unused variable Alison Winters 2021-03-17 19:49:42 -07:00
  • de6b94e816 Add fma function dosisod 2021-03-17 18:19:09 -07:00
  • ab64ef7364 Make fflush() return 0 on success (#114) Justine Tunney 2021-03-17 13:02:15 -07:00
  • 4177489762 Perform fine-tuning of socketpair and pipe Justine Tunney 2021-03-16 22:44:54 -07:00
  • 4e93750afd Perform some minor fixups Justine Tunney 2021-03-16 22:19:51 -07:00
  • ca88ce5026
    Add socketpair (#122) fabriziobertocci 2021-03-17 01:05:59 -04:00
  • 4bb0e3262c Add (most) missing math functions dosisod 2021-03-16 19:50:43 -07:00
  • 78f834ac7a Refactored the implementation of socketpair for Windows to use named pipe instead of sockets. Changed the default family to AF_UNIX in case socketpar() is invoked with AF_UNSPEC. Added test for socketpair(). Shared some utility functions (previously local to pipe-nt.c) through internal.h so socketpair-nt.c can use it as well. Fabrizio Bertocci 2021-03-16 22:34:40 -04:00
  • fec72d2b6c Removed setting the newly created socket pair to non-blocking mode Fabrizio Bertocci 2021-03-14 08:34:44 -04:00
  • 6388ef21f8
    Add noreturn macro (#118) dosisod 2021-03-13 20:46:12 -08:00
  • 7ffeb29bfc
    Add missing functions to tgmath (#124) dosisod 2021-03-13 20:43:57 -08:00
  • da4dffccc5 Add random() and srandom() Justine Tunney 2021-03-13 20:24:29 -08:00
  • 807706a099 Perform minor fixups Justine Tunney 2021-03-13 19:39:17 -08:00
  • 507b85de51 Updated the implementation of socketpair for Windows with AF_UNIX to call either the _dgram od _stream version of socketpair() Fabrizio Bertocci 2021-03-13 14:29:30 -05:00
  • 7ae7010aa7 Re-implemented the Windows version of socketpair(). In particular there are two versions, one that build a packet-oriented socketpair and another one for stream-oriented pairs. Fabrizio Bertocci 2021-03-13 14:11:58 -05:00
  • de5a638994 Format with clang-format dosisod 2021-03-10 21:24:29 -08:00
  • c04f99df86 Add missing tgmath functions dosisod 2021-03-10 21:21:49 -08:00
  • 0f8adc258f Alias noreturn to wontreturn dosisod 2021-03-10 20:08:50 -08:00
  • cb5d02e9f2 Added inline wrapper for random() and srandom() (that call into the existing rand/srand) Fabrizio Bertocci 2021-03-10 08:46:34 -05:00
  • edc5aa3234 Implemented missing socketpair Fabrizio Bertocci 2021-03-10 08:29:18 -05:00
  • 87d3a24f2d Add noreturn macro dosisod 2021-03-09 20:20:56 -08:00
  • 83d0c3b870 Fix writev() on the New Technology (#117) redbean-2021-03-09 Justine Tunney 2021-03-09 11:21:08 -08:00
  • 6cd1037692
    Get VSCode working with Linux and WSL (#116) Alison Winters 2021-03-09 10:12:39 -08:00
  • 5fdc23cb07 use cStandard to set -std= flag instead of explicitly including it Alison Winters 2021-03-09 01:17:05 -08:00
  • 064c32f4e3 add a working wsl/linux configuration for vscode Alison Winters 2021-03-08 21:34:57 -08:00
  • 28f309232b remove some unused code in the vscode header Alison Winters 2021-03-08 20:10:17 -08:00
  • 9747f3a0bd remove some duplicated char defines Alison Winters 2021-03-08 20:03:52 -08:00
  • e0566c9675 Fix Lua build config Justine Tunney 2021-03-08 17:51:26 -08:00
  • 3f35b37b68 Remove nonstandard defines from limits.h (#115) Justine Tunney 2021-03-08 17:34:44 -08:00
  • 67c27d9e6e Add Hello World example for LUA C API (#97) Justine Tunney 2021-03-08 14:13:40 -08:00
  • 2a3037d4e8 Delete Duktape (#97) Justine Tunney 2021-03-08 13:17:52 -08:00
  • 0a61fe4ea0 Add smoke test for timezone loading (#114) Justine Tunney 2021-03-08 11:42:53 -08:00
  • 33e8fc8687 Expose public garbage collector API for C language Justine Tunney 2021-03-08 10:56:09 -08:00
  • 0ad609268f Improve system call polyfills Justine Tunney 2021-03-08 10:07:02 -08:00
  • 816b0e1851 Improve tmpfile api (#114) Justine Tunney 2021-03-07 21:07:16 -08:00
  • 2bd1e72d5a Remove garbage collector macro from header (#114) Justine Tunney 2021-03-07 20:23:29 -08:00
  • 5ce83b08c8 Add posix_spawn (#114) Justine Tunney 2021-03-07 20:14:07 -08:00
  • 5f088cec23 Rename Lua test folder Justine Tunney 2021-03-07 18:22:53 -08:00
  • a8945714e8 Make gdtoa less tunable (#104) Justine Tunney 2021-03-07 16:34:16 -08:00
  • 8a6ac6dd63
    Set errno when out of range in strtoimax (#111) Alison Winters 2021-03-07 14:38:56 -08:00
  • ce2cf3861f set errno when out of range in strtoimax Alison Winters 2021-03-07 21:42:27 +00:00
  • f5da4efcaf
    Set errno in strtol family of functions (#110) Alison Winters 2021-03-07 14:18:08 -08:00
  • b16b332539 Get Lua to build with all tests passing Justine Tunney 2021-03-07 13:26:57 -08:00
  • 4d3195f57a Add Lua Justine Tunney 2021-03-02 05:51:10 -08:00
  • 6ec86777cc restore neghex test, but with strtoul instead Alison Winters 2021-03-07 20:36:00 +00:00
  • b2840c0415 use strtoul for unsigned conversion in chibi tokenizing Alison Winters 2021-03-07 20:13:01 +00:00
  • 9a2dd849c1 standardize strtol behavior when result is out of bounds Alison Winters 2021-03-07 20:11:54 +00:00
  • aad841610e Fix freopen so it resets stream buffer (#61) Justine Tunney 2021-03-07 12:12:02 -08:00
  • 7583b3accc Show better error on bind() error Justine Tunney 2021-03-07 11:31:44 -08:00
  • 06a4e2d29b Disable Travis emails Justine Tunney 2021-03-07 08:29:43 -08:00
  • 67b9675c81
    Make tgmath.h available (#109) dosisod 2021-03-06 22:40:18 -08:00
  • 3158818249 Include math.h to tgmath.h dosisod 2021-03-06 22:35:34 -08:00
  • 214596ac1f Move tgmath.h to isystem folder, fix pow taking only one param dosisod 2021-03-06 22:30:55 -08:00
  • cba703f94f Implement tgmath.h dosisod 2021-03-06 21:41:25 -08:00
  • 4d4aa9e791 Add automatic tests for pull requests Justine Tunney 2021-03-06 21:23:18 -08:00
  • 813e11b90b
    Fix int parsing with base 2 and 16 (#107) Alison Winters 2021-03-06 21:12:32 -08:00
  • fb7b7c6e21
    Fix isystem headers including wrong files (#108) dosisod 2021-03-06 21:06:29 -08:00
  • 807478247b Fix certain isystem headers including the wrong files dosisod 2021-03-06 20:44:36 -08:00