diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2023-06-06 11:56:21 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2023-06-06 11:56:21 +0200 |
commit | e5a1983e4384a44e45486fb9a48bdba375a529b6 (patch) | |
tree | 6e84d9e43245b2d2c6aa2a6312b6281d744a7d24 /common | |
parent | 9c371d77e843163261d28e374f4ea7dab2e3f64d (diff) | |
download | seitan-e5a1983e4384a44e45486fb9a48bdba375a529b6.tar seitan-e5a1983e4384a44e45486fb9a48bdba375a529b6.tar.gz seitan-e5a1983e4384a44e45486fb9a48bdba375a529b6.tar.bz2 seitan-e5a1983e4384a44e45486fb9a48bdba375a529b6.tar.lz seitan-e5a1983e4384a44e45486fb9a48bdba375a529b6.tar.xz seitan-e5a1983e4384a44e45486fb9a48bdba375a529b6.tar.zst seitan-e5a1983e4384a44e45486fb9a48bdba375a529b6.zip |
cooker: Draft quality: mknod/mknodat, sets of values with "in"
While at it:
- directly assign 'fd' in eater from install_filter()
- turn op_cmp into a description-style thing
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/gluten.h | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/common/gluten.h b/common/gluten.h index 53782db..edb447c 100644 --- a/common/gluten.h +++ b/common/gluten.h @@ -68,6 +68,7 @@ enum op_type { OP_FD, OP_RETURN, OP_LOAD, + OP_MASK, OP_CMP, OP_RESOLVEDFD, }; @@ -193,14 +194,29 @@ enum op_cmp_type { CMP_LE, }; -struct op_cmp { +struct cmp_desc { + enum op_cmp_type cmp; + size_t size; struct gluten_offset x; struct gluten_offset y; - size_t size; - enum op_cmp_type cmp; struct gluten_offset jmp; }; +struct op_cmp { + struct gluten_offset desc; /* struct cmp_desc */ +}; + +struct mask_desc { + size_t size; + struct gluten_offset dst; + struct gluten_offset src; + struct gluten_offset mask; +}; + +struct op_mask { + struct gluten_offset desc; /* struct mask_desc */ +}; + struct op_resolvedfd { struct gluten_offset fd; struct gluten_offset path; @@ -223,6 +239,7 @@ struct op { struct op_return ret; struct op_fd fd; struct op_load load; + struct op_mask mask; struct op_cmp cmp; struct op_resolvedfd resfd; struct op_copy copy; |