bugnyacc parser generator - Bugs: bug #60410, ffi-helper totally ignoring unions

 
 

bug #60410: ffi-helper totally ignoring unions

Submitter:  Matt Wette <mwette>
Submitted:  Sat 17 Apr 2021 07:23:31 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  mwette
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 22 May 2021 01:08:36 PM UTC, comment #2: 

I think this is fixed in branch dev-1.04, commit be843e471c2.

Matt Wette <mwette>
Group administrator
Sat 17 Apr 2021 07:25:49 PM UTC, comment #1: 

It's anonymous unions at least.

Matt Wette <mwette>
Group administrator
Sat 17 Apr 2021 07:23:31 PM UTC, original submission:  

from ffi/liburing

;; struct io_uring_sqe {
;;   __u8 opcode; /* type of operation for this sqe */
;;   _u8 flags; /* IOSQE flags */
;;   __u16 ioprio; /* ioprio for the request */
;;   __s32 fd; /* file descriptor to do IO on */
;;   union {
;;     __u64 off; /* offset into file */
;;     __u64 addr2;
;;   };
;;   union {
;;     __u64 addr; /* pointer to buffer or iovecs */
;;     __u64 splice_off_in;
;;   };
;;   __u32 len; /* buffer size or number of iovecs */
;;   union {
;;     __kernel_rwf_t rw_flags;
;;     __u32 fsync_flags;
;;     __u16 poll_events;
;;     __u32 sync_range_flags;
;;     __u32 msg_flags;
;;     __u32 timeout_flags;
;;     __u32 accept_flags;
;;     __u32 cancel_flags;
;;     __u32 open_flags;
;;     __u32 statx_flags;
;;     __u32 fadvise_advice;
;;     __u32 splice_flags;
;;   };
;;   __u64 user_data; /* data to be passed back at completion time */
;;   union {
;;     struct {
;;       /* pack this to avoid bogus arm OABI complaints */
;;       union {
;;         /* index into fixed buffers, if used */
;;         __u16 buf_index;
;;         /* for grouped buffer selection */
;;         __u16 buf_group;
;;       };
;;       /* personality to use, if used */
;;       __u16 personality;
;;       __s32 splice_fd_in;
;;     };
;;     __u64 __pad2[3];
;;   };
;; };
(define-public struct-io_uring_sqe-desc
  (bs:struct
    (list `(opcode ,uint8)
          `(flags ,uint8)
          `(ioprio ,unsigned-short)
          `(fd ,int)
          `(len ,unsigned-int)
          `(user_data ,unsigned-long))))

Matt Wette <mwette>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mwette (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-05-29 mwette Open/ClosedOpen Closed
    2021-05-22 mwette StatusConfirmed Fixed
    2021-04-17 mwette StatusNone Confirmed
        Assigned toNone mwette

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code