1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/* * Copyright (C) 2018, Pebble Developers. * See LICENCE.md */ /// This represents an open file. It is created by the `open` system call. It should be closed with /// the `close` system call. #[cfg(feature = "kernel")] #[derive(Clone,Debug,PartialEq,Eq,PartialOrd,Ord,Hash)] pub struct FileHandle(pub usize); /// This represents an open file. It is created by the `open` system call. It should be closed with /// the `close` system call. #[cfg(not(feature = "kernel"))] #[derive(Clone,PartialEq,Eq,PartialOrd,Ord,Hash)] pub struct FileHandle(usize);