Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / File_IO / File.idl
blobc62d6963c0f4e3a618b1e8d271e34c13f4207a67
2 //=============================================================================
3 /**
4 * @file File.idl
6 * A simple File Descriptor and File System IDL interface.
9 * @author Irfan Pyarali
11 //=============================================================================
14 // IDL
16 module File
18 exception IOError
20 long error;
23 interface Descriptor
25 typedef sequence<octet> DataBuffer;
27 long write (in DataBuffer buffer)
28 raises (IOError);
29 // write buffer to File
31 DataBuffer read (in long num_bytes)
32 raises (IOError);
33 // read num_bytes to DataBuffer
35 unsigned long lseek (in unsigned long offset,
36 in long whence)
37 raises (IOError);
38 // seek to offset in File from whence
40 void destroy ();
41 // destroy the descriptor
44 interface System
46 Descriptor open (in string file_name,
47 in long flags)
48 raises (IOError);
49 // File open operation