[Issue 13754] src/std/mmfile.d: MmFile neither has ioctl nor a way to get the fd

2022-12-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13754

Iain Buclaw  changed:

   What|Removed |Added

   Priority|P1  |P4

--


[Issue 13754] src/std/mmfile.d: MmFile neither has ioctl nor a way to get the fd

2014-11-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13754

--- Comment #1 from Danny Milosavljevic danny.m...@gmail.com ---
I'm trying to implement that right now.

Is there are way not to repeat the .ioctl signature in the (potential) member
function MmFile.ioctl ?

Like ioctl = .ioctl fileno; ?

Also, there are many different prototypes for ioctl in
core/sys/posix/sys/ioctl.d .

Do I just choose a superset?

Is ulong.sizeof = c_ulong.sizeof always ? 

Is ulong.sizeof = int.sizeof always ?

(Then I'd use int ioctl(ulong request, ...) as the member function, if really
necessary)

--