summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/devices.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2005-02-23 12:30:31 +0000
committerCorinna Vinschen <corinna@vinschen.de>2005-02-23 12:30:31 +0000
commite5ef74dfb2c6b8e00daf6afc7ac8895c626a59d9 (patch)
tree1bda12cfd8321f9022267e7a5af11928c510ed57 /winsup/cygwin/devices.h
parent4add0a4e2f51e0e5f2371fa8f578a6785cb11e2e (diff)
downloadcygnal-e5ef74dfb2c6b8e00daf6afc7ac8895c626a59d9.tar.gz
cygnal-e5ef74dfb2c6b8e00daf6afc7ac8895c626a59d9.tar.bz2
cygnal-e5ef74dfb2c6b8e00daf6afc7ac8895c626a59d9.zip
* devices.h: Switch FH_ZERO and FH_PORT as on Linux. Add FH_FULL.
* devices.in: Add /dev/full. * devices.cc: Regenerate. * dtable.cc (build_fh_pc): Add FH_FULL. * fhandler.cc (fhandler_base::fstat): Set FH_FULL permission bits correctly. * fhandler_zero.cc (fhandler_dev_zero::write): Set errno to ENOSPC and return -1 if device is FH_FULL.
Diffstat (limited to 'winsup/cygwin/devices.h')
-rw-r--r--winsup/cygwin/devices.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/devices.h b/winsup/cygwin/devices.h
index e5c1fcd31..5383e68fd 100644
--- a/winsup/cygwin/devices.h
+++ b/winsup/cygwin/devices.h
@@ -94,8 +94,9 @@ enum fh_devices
FH_MEM = FHDEV (1, 1),
FH_KMEM = FHDEV (1, 2), /* not implemented yet */
FH_NULL = FHDEV (1, 3),
- FH_ZERO = FHDEV (1, 4),
- FH_PORT = FHDEV (1, 5),
+ FH_PORT = FHDEV (1, 4),
+ FH_ZERO = FHDEV (1, 5),
+ FH_FULL = FHDEV (1, 7),
FH_RANDOM = FHDEV (1, 8),
FH_URANDOM = FHDEV (1, 9),
FH_OSS_DSP = FHDEV (14, 3),