This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
[RFC] Remote File I/O should allow opening non regular files
- From: Julio Guerra <julio at farjump dot io>
- To: gdb at sourceware dot org, Corinna Vinschen <corinna at vinschen dot de>
- Cc: Christophe Plà <christophe at farjump dot io>
- Date: Sat, 2 Jul 2016 14:02:17 +0200
- Subject: [RFC] Remote File I/O should allow opening non regular files
- Authentication-results: sourceware.org; auth=none
Hi,
Today's implementation of `open()` first checks if the file is a regular
file [1]. Is there any good reason for that limitation? I can't see any
problem in opening special files. Most of them can be used with `read()`
and `write()` only, without `ioctl()`, like any regular file. For
example: TTYs, /dev/random, pipes, etc.
Best regards,
[1]
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob;f=gdb/remote-fileio.c#l409
--
Julio Guerra