Opened 10 years ago
Last modified 9 years ago
#314 reopened enhancement
open x: as DASD not a dir
Reported by: | KO Myung-Hun | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | libc-0.7 |
Component: | libc | Version: | 0.6.5 |
Severity: | normal | Keywords: | |
Cc: |
Description
Hi/2.
open() open x: as a dir. Instead, it would be better to open it as DASD.
Attachments (2)
Change History (5)
by , 10 years ago
comment:1 by , 10 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
The current idea of mapping "c:" to what on linux would be something like /dev/sda1 is too risky. An unlucky user with thick fingers may easily get overwhelmed by cat c:
or killed by cat d: > c:
(if permitted).
I would happily add virtual /dev/something aliases for doing DosOpenL("C:", DASD) without additional open() flags as this requires extra typing, instead of less typing on the user part. If there is a free open flag bit, we could also extend open() to do DASD mode for "drive:" style paths, though I'm not sure there is a free bit and we could just as well add a different API since it requires anyone wanting to use the feature to modify her/his code.
comment:2 by , 9 years ago
Resolution: | wontfix |
---|---|
Status: | closed → reopened |
It would be good to implement this with /dev/drivex mapping, where x is a, b, c, and so on.
comment:3 by , 9 years ago
This patch opens a drive in DASD mode if the given name is /dev/driveX style. But its real name will be X:. For example, __libc_Back_ioFHToPath
returns X: if a given fd was opened with /dev/driveX.
patch for dasd open