diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2023-06-02 16:48:29 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2023-06-02 16:49:48 +0200 |
commit | 6455b9dff0554adc11e8dbe8027d134c8584bc5d (patch) | |
tree | 2c403f9e2cdb7e864ecea449f6fb7375ed5416e5 /common | |
parent | fb2a89cbfc5049d360bb734b4896946e9963e39a (diff) | |
download | seitan-6455b9dff0554adc11e8dbe8027d134c8584bc5d.tar seitan-6455b9dff0554adc11e8dbe8027d134c8584bc5d.tar.gz seitan-6455b9dff0554adc11e8dbe8027d134c8584bc5d.tar.bz2 seitan-6455b9dff0554adc11e8dbe8027d134c8584bc5d.tar.lz seitan-6455b9dff0554adc11e8dbe8027d134c8584bc5d.tar.xz seitan-6455b9dff0554adc11e8dbe8027d134c8584bc5d.tar.zst seitan-6455b9dff0554adc11e8dbe8027d134c8584bc5d.zip |
cooker, seitan: OP_FD
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/gluten.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/common/gluten.h b/common/gluten.h index 198e646..9aa721c 100644 --- a/common/gluten.h +++ b/common/gluten.h @@ -65,8 +65,7 @@ enum op_type { OP_COPY, OP_BLOCK, OP_CONT, - OP_INJECT, - OP_INJECT_A, + OP_FD, OP_RETURN, OP_LOAD, OP_CMP, @@ -149,6 +148,14 @@ struct syscall_desc { struct gluten_offset args[]; }; +struct fd_desc { + struct gluten_offset srcfd; + struct gluten_offset newfd; + uint8_t setfd :1; + uint8_t cloexec :1; + uint8_t do_return :1; +}; + struct op_call { struct gluten_offset desc; }; @@ -167,9 +174,8 @@ struct op_return { struct gluten_offset val; }; -struct op_inject { - struct gluten_offset new_fd; - struct gluten_offset old_fd; +struct op_fd { + struct gluten_offset desc; /* struct fd_desc */ }; struct op_load { @@ -215,7 +221,7 @@ struct op { struct op_call call; struct op_block block; struct op_return ret; - struct op_inject inject; + struct op_fd fd; struct op_load load; struct op_cmp cmp; struct op_resolvedfd resfd; |