Files
nethack/src
Alex Smith d63b59e6a1 Avoid panic on zero-byte writes to save files
This is a well-defined operation, so bwrite() should be able to
handle it. However, when running under glibc, fwrite() produces an
unexpected return value for 0-byte writes, which makes bwrite()
think that the write failed (causing a panic).

This change implements 0-byte writes by not calling into libc at
all, so that we don't have to worry about how to decode the return
value of fwrite().
2022-03-01 13:23:10 +00:00
..
2022-02-04 09:41:30 -05:00
2021-01-26 21:06:16 -05:00
2022-02-26 22:42:37 +02:00
2022-01-29 11:13:01 -08:00
2022-02-27 20:01:49 -05:00
2022-01-29 11:13:01 -08:00
2022-02-23 20:28:55 +02:00
2022-02-10 18:18:25 -05:00
2022-02-20 13:47:31 -08:00
2022-02-23 20:28:55 +02:00
2022-02-23 20:28:55 +02:00
2022-02-23 20:28:55 +02:00
2021-01-26 21:06:16 -05:00
2022-02-23 20:28:55 +02:00
2022-02-24 12:17:21 -08:00
2021-08-10 13:35:25 -04:00
2022-02-23 20:28:55 +02:00
2022-02-23 20:28:55 +02:00
2022-02-10 05:45:07 -08:00
2022-02-24 18:10:52 -08:00
2021-01-26 21:06:16 -05:00
2022-02-12 11:42:17 -08:00
2022-02-27 11:07:31 +02:00
2022-02-23 20:28:55 +02:00
2022-02-23 20:28:55 +02:00
2022-02-23 20:28:55 +02:00
2022-02-23 20:28:55 +02:00
2022-02-23 20:28:55 +02:00
2022-02-23 12:53:09 +02:00
2022-02-20 21:18:03 +02:00
2022-02-23 20:28:55 +02:00
2021-12-16 15:56:52 -08:00
2022-02-23 20:28:55 +02:00
2021-12-16 15:56:52 -08:00
2022-02-27 11:07:31 +02:00
2022-01-29 11:13:01 -08:00
2022-02-02 21:26:01 -05:00
2022-02-24 18:10:52 -08:00
2022-02-27 01:55:25 -08:00
2022-01-29 11:13:01 -08:00
2022-02-25 16:42:08 +02:00
2022-02-23 20:28:55 +02:00
2022-02-23 20:28:55 +02:00
2022-02-10 10:25:25 -08:00
2022-02-24 12:17:21 -08:00
2022-02-09 16:38:26 -08:00
2022-02-27 01:55:25 -08:00
2022-02-23 20:28:55 +02:00
2022-02-23 20:28:55 +02:00
2022-01-05 17:35:33 +02:00
2022-02-23 20:28:55 +02:00
2022-01-29 11:13:01 -08:00
2022-02-25 07:10:30 -08:00
2022-02-23 20:28:55 +02:00
2021-12-16 15:56:52 -08:00
2022-02-20 17:29:37 +02:00
2022-02-16 23:04:02 +02:00
2022-02-27 11:07:31 +02:00
2022-02-09 22:49:25 +02:00
2022-02-27 01:55:25 -08:00
2021-01-26 21:06:16 -05:00
2022-02-27 11:07:31 +02:00
2022-02-23 20:28:55 +02:00
2022-02-23 12:53:09 +02:00
2021-12-22 18:29:01 -08:00
2021-09-18 19:51:04 -04:00
2022-02-26 10:15:58 -08:00
2021-12-07 15:54:46 -08:00
2021-12-25 10:26:44 -08:00
2022-02-09 22:49:25 +02:00
2022-02-24 12:17:21 -08:00