This thread contains a patchset. You're looking at the original emails,
but you may wish to use the patch review UI.
Review patch
4
2
[PATCH hare 1/3] rt: fix name of field in sigval
Signed-off-by: Sebastian <sebastian@sebsite.pw>
---
rt/+freebsd/types.ha | 2 + -
rt/+linux/types.ha | 2 + -
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/rt/+freebsd/types.ha b/rt/+freebsd/types.ha
index 009b5d31..ccb3f6d3 100644
--- a/rt/+freebsd/types.ha
+++ b/rt/+freebsd/types.ha
@@ -53,7 +53,7 @@ export def SIG_UNBLOCK: int = 2;
export def SIG_SETMASK: int = 3;
export type sigval = union {
- sival_t: int,
+ sival_int: int,
sival_ptr: *opaque,
};
diff --git a/rt/+linux/types.ha b/rt/+linux/types.ha
index a036f981..aa739484 100644
--- a/rt/+linux/types.ha
+++ b/rt/+linux/types.ha
@@ -405,7 +405,7 @@ export def SIG_SETMASK: int = 2;
def SI_MAX_SIZE: size = 128;
export type sigval = union {
- sival_t: int,
+ sival_int: int,
sival_ptr: *opaque,
};
--
2.45.2
[PATCH hare 2/3] rt+linux: fix name of field in st_flock
Signed-off-by: Sebastian <sebastian@sebsite.pw>
---
rt/+linux/types.ha | 2 + -
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rt/+linux/types.ha b/rt/+linux/types.ha
index aa739484..0e57e61b 100644
--- a/rt/+linux/types.ha
+++ b/rt/+linux/types.ha
@@ -250,7 +250,7 @@ export type st_flock = struct {
l_whence: i16,
l_start: i64,
l_len: i64,
- pid: int,
+ l_pid: int,
};
export type f_owner_ex = struct {
--
2.45.2
[PATCH hare 3/3] rt+freebsd: fix some types
Signed-off-by: Sebastian <sebastian@sebsite.pw>
---
rt/+freebsd/types.ha | 10 +++++ -----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/rt/+freebsd/types.ha b/rt/+freebsd/types.ha
index ccb3f6d3..80ec9064 100644
--- a/rt/+freebsd/types.ha
+++ b/rt/+freebsd/types.ha
@@ -6,17 +6,17 @@ export type suseconds_t = i64;
export type dev_t = u64;
export type ino_t = u64;
export type nlink_t = u64;
- export type id_t = uint;
- export type pid_t = uint;
- export type uid_t = uint;
- export type gid_t = uint;
+ export type id_t = i64;
+ export type pid_t = i32;
+ export type uid_t = u32;
+ export type gid_t = u32;
export type off_t = i64;
export type blkcnt_t = i64;
export type blksize_t = i32;
export type fflags_t = u32;
export type mode_t = u16;
export type nfds_t = uint;
- export type rlim_t = u64;
+ export type rlim_t = i64;
export def NGROUPS_MAX: size = 1023;
export def NSIG: int = 32;
--
2.45.2
Re: [PATCH hare 3/3] rt+freebsd: fix some types
thanks!
to git@git.sr.ht:~sircmpwn/hare
73befbb9..df6d453e master -> master
Re: [PATCH hare 3/3] rt+freebsd: fix some types
er, 3/3 on this patchset broke the build on freebsd, mind sending a
fixed version? see https://builds.sr.ht/~ecs/job/1325927 , and note that
fixing those two uncovered some other errors later in the build