~tomleb

https://blog.tomlebreux.com

I develop random projects to experiment and for fun.

~tomleb/public-inbox

Last active 1 year, 4 months ago

~tomleb/mpdnotify

Last active 3 years ago
View more

Recent activity

Firefox addons support site links gives 404 a month ago

From Tom Lebreux to ~sircmpwn/himitsu-devel

Hi,

as mentioned in #himitsu, the support site listed on the firefox addons 
page points to [0] which returns a 404.

[0]: https://sr.ht/~sircmpwn/himitsu-firefox/

[PATCH hare] fs: add missing cases to strerror 2 months ago

From Tom Lebreux to ~sircmpwn/hare-dev

Signed-off-by: Tom Lebreux <me@tomlebreux.com>
---
 fs/types.ha | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/fs/types.ha b/fs/types.ha
index 563a4fd5e9dd..2e892dc872a0 100644
--- a/fs/types.ha
+++ b/fs/types.ha
@@ -45,6 +45,10 @@ case errors::exists =>
	yield "File or directory exists";
case errors::invalid =>
	yield "Invalid argument";
case errors::busy =>
[message trimmed]

[PATCH hare] hare::module: fix fd leak when walking directories 2 months ago

From Tom Lebreux to ~sircmpwn/hare-dev

Signed-off-by: Tom Lebreux <me@tomlebreux.com>
---
 hare/module/scan.ha | 1 +
 hare/module/walk.ha | 1 +
 2 files changed, 2 insertions(+)

diff --git a/hare/module/scan.ha b/hare/module/scan.ha
index 61f18eec4ac8..1f940e15d633 100644
--- a/hare/module/scan.ha
+++ b/hare/module/scan.ha
@@ -289,6 +289,7 @@ fn scan_directory(
		let isdir = inputs[i].0, path = inputs[i].3;
		if (isdir) {
			let iter = fs::iter(ctx.fs, path)?;
[message trimmed]

[PATCH hare v3 3/5] net::uri: add ? before query element 2 months ago

From Tom Lebreux to ~sircmpwn/hare-dev

Signed-off-by: Tom Lebreux <me@tomlebreux.com>
---
 net/uri/fmt.ha | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/uri/fmt.ha b/net/uri/fmt.ha
index c8dfc072dcf7..d250af98fe33 100644
--- a/net/uri/fmt.ha
+++ b/net/uri/fmt.ha
@@ -37,6 +37,7 @@ export fn fmt(out: io::handle, u: *const uri) (size | io::error) = {
	};
	n += fmt::fprint(out, u.path)?;
	if (len(u.query) > 0) {
		n += fmt::fprint(out, "?")?;
[message trimmed]

[PATCH hare v3 2/5] net::uri: surround ipv6 host with [ and ] 2 months ago

From Tom Lebreux to ~sircmpwn/hare-dev

Signed-off-by: Tom Lebreux <me@tomlebreux.com>
---
 net/uri/fmt.ha | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/net/uri/fmt.ha b/net/uri/fmt.ha
index 06de9c1fc99b..c8dfc072dcf7 100644
--- a/net/uri/fmt.ha
+++ b/net/uri/fmt.ha
@@ -30,7 +30,7 @@ export fn fmt(out: io::handle, u: *const uri) (size | io::error) = {
		if (!slashes_w) {
			n += fmt::fprint(out, "//")?;
		};
		n += ip::fmt(out, addr)?;
[message trimmed]

[PATCH hare v3 5/5] net::uri: add fmt tests 2 months ago

From Tom Lebreux to ~sircmpwn/hare-dev

Signed-off-by: Tom Lebreux <me@tomlebreux.com>
---
Removed the space before tabs. harefmt when? :)
 net/uri/+test.ha | 108 +++++++++++++++++++++++++++++------------------
 1 file changed, 68 insertions(+), 40 deletions(-)

diff --git a/net/uri/+test.ha b/net/uri/+test.ha
index 37b3772fcfdf..d33ec324806d 100644
--- a/net/uri/+test.ha
+++ b/net/uri/+test.ha
@@ -1,7 +1,17 @@
use fmt;
use net::ip;

[message trimmed]

[PATCH hare v3 1/5] net::uri: Fix missing fmt::printf arguments 2 months ago

From Tom Lebreux to ~sircmpwn/hare-dev

Signed-off-by: Tom Lebreux <me@tomlebreux.com>
---
 net/uri/fmt.ha | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/uri/fmt.ha b/net/uri/fmt.ha
index 9dfe00fb1873..06de9c1fc99b 100644
--- a/net/uri/fmt.ha
+++ b/net/uri/fmt.ha
@@ -33,7 +33,7 @@ export fn fmt(out: io::handle, u: *const uri) (size | io::error) = {
		n += ip::fmt(out, addr)?;
	};
	if (u.port != 0) {
		n += fmt::fprintf(out, ":{}")?;
[message trimmed]

[PATCH hare v3 4/5] net::uri: fix missing // for file uri 2 months ago

From Tom Lebreux to ~sircmpwn/hare-dev

Signed-off-by: Tom Lebreux <me@tomlebreux.com>
---
 net/uri/fmt.ha | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/net/uri/fmt.ha b/net/uri/fmt.ha
index d250af98fe33..c5397872eeca 100644
--- a/net/uri/fmt.ha
+++ b/net/uri/fmt.ha
@@ -20,7 +20,8 @@ export fn fmt(out: io::handle, u: *const uri) (size | io::error) = {
	};
	match (u.host) {
	case let host: str =>
		if (len(host) > 0) {
[message trimmed]

[PATCH hare] bufio::dynamic: free resources on io::close 2 months ago

From Tom Lebreux to ~sircmpwn/hare-dev

Signed-off-by: Tom Lebreux <me@tomlebreux.com>
---
 bufio/memstream.ha | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/bufio/memstream.ha b/bufio/memstream.ha
index 5c6653f92668..9b38b78cbe29 100644
--- a/bufio/memstream.ha
@@ -78,6 +78,7 @@ const dynamic_vt_w: io::vtable = io::vtable {
	seeker = &seek,
	copier = &copy,
	writer = &dynamic_write,
	closer = &dynamic_close,
[message trimmed]

[PATCH hare v2 5/5] net::uri: add fmt tests 2 months ago

From Tom Lebreux to ~sircmpwn/hare-dev

Signed-off-by: Tom Lebreux <me@tomlebreux.com>
---
 net/uri/+test.ha | 110 +++++++++++++++++++++++++++++------------------
 1 file changed, 69 insertions(+), 41 deletions(-)

diff --git a/net/uri/+test.ha b/net/uri/+test.ha
index 37b3772fcfdf..2019a7f343c3 100644
--- a/net/uri/+test.ha
+++ b/net/uri/+test.ha
@@ -1,7 +1,17 @@
use fmt;
use net::ip;

@test fn parse() void = {
[message trimmed]