dtb trinity
trinity commented on pull request bonsai/harakit#134 2024-07-07 18:16:24 -06:00
dj(1) segfault fix

Along these lines I did notice a bug in the write functionality that is now fixed. Judging from your dj(1) statistics it wasn't, but you may want to try again anyway.

trinity pushed to dj at bonsai/harakit 2024-07-07 18:15:08 -06:00
bab3cdd90e dj(1): Io_write: don't add to bufuse
trinity commented on pull request bonsai/harakit#134 2024-07-07 18:07:21 -06:00
dj(1) segfault fix

Please comment with the output with -H.

On OpenBSD, write(2) doesn't error (by returning -1) on /dev/full - writing "meow\n" to /dev/full apparently succeeds, returning 5 (the expected number…

trinity commented on pull request bonsai/harakit#127 2024-07-05 08:22:36 -06:00
WIP: scroll(1)

TODO: Rename to scroll(1).

trinity commented on issue bonsai/harakit#44 2024-07-05 08:22:13 -06:00
scroll(1) – pager

#127 is an experimental pager I'll be working on. Let's shift discussion over there. Higher-level (irrelevant to our pager in particular) discussion can continue here if there's a need for it.

trinity closed issue bonsai/harakit#44 2024-07-05 08:22:13 -06:00
scroll(1) – pager
trinity commented on pull request bonsai/harakit#134 2024-07-05 08:17:37 -06:00
dj(1) segfault fix

I think this is the best dj(1) can be, at least until we spot another bug. #94 will let us move out that parse() routine which will be nice.

I'm happy with the code size, especially relative to…

trinity pushed to dj at bonsai/harakit 2024-07-05 08:06:52 -06:00
abfe7046e7 dj(1): fix some type issues
trinity pushed to dj at bonsai/harakit 2024-07-04 21:32:29 -06:00
6ed7089b25 dj(1): statistics now track hard seeks
571796fe0d dj.1: update man page to match behavior
9e8b82c4bb dj(1): fix inaccurate statistics after Io_read and Io_write
906eb92f5a dj(1): (broken) move hard skipping to the main loop
9f420131ee dj(1): more work adapting hard skipping to the main loop
Compare 7 commits »
trinity pushed to dj at bonsai/harakit 2024-07-04 19:46:02 -06:00
8c33f0116c dj(1): move open(2) flags, remove unnecessary comments
f8c0e0570c dj(1): make Io_write handle prec and rec
fc0d9e374b dj(1): make printio fprintio
f49a2d2eb8 dj(1): move prec and rec adjustment into Io_read
4004a4a006 dj(1): use the retvals of Io_read and Io_write
Compare 5 commits »
trinity pushed to dj at bonsai/harakit 2024-07-03 20:52:52 -06:00
cc64561388 dj(1): only include sysexits if they aren't defined
trinity pushed to dj at bonsai/harakit 2024-07-03 19:22:51 -06:00
5b1d4fef88 dj(1): remove Io_fdopen
trinity pushed to dj at bonsai/harakit 2024-07-03 19:07:44 -06:00
2b593559af dj(1): remove Io_bufrpad
b74160fa4e dj(1): remove Io_bufxfer
Compare 2 commits »
trinity commented on issue bonsai/harakit#113 2024-07-03 18:53:58 -06:00
dj(1): writing/reading should take place at seeked/skipped byte

#134 further clarifies this.

trinity pushed to dj at bonsai/harakit 2024-07-03 18:44:54 -06:00
3e1735f778 dj(1): clean up some stray ends
trinity pushed to dj at bonsai/harakit 2024-07-03 18:31:39 -06:00
adda0d9580 dj.1: elaborate on skip/seek behavior, provide another example
2167f35f58 dj(1): fix segfault when bses are mismatched
f4b97be1f1 dj(1): iron out Io_bufxapp
Compare 3 commits »
trinity pushed to dj at bonsai/harakit 2024-07-03 16:13:29 -06:00
7fe122ac3b dj.1: clarify skip/seek behavior with regards to statistics output
944feef434 dj(1): Refactor out Io_fdseek entirely
66ca4b9a12 dj(1): remove unnecessary stderr checks
3897f44cf8 dj(1): prefix getopt optstring with :
6548a448c7 dj(1): fix potential skip/seek bug in non-std io
Compare 5 commits »
trinity commented on pull request bonsai/harakit#134 2024-07-03 14:53:05 -06:00
dj(1) segfault fix

@emma could you verify #112 is fixed on this branch?

trinity pushed to dj at bonsai/harakit 2024-07-03 14:50:58 -06:00
aff658d611 dj(1): remove debugging vestige, reflow output into printio
76252305f9 dj(1): remove Io_bufalloc
Compare 2 commits »
trinity created pull request bonsai/harakit#134 2024-07-03 14:24:20 -06:00
WIP: dj(1) segfault fix