| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| Hi, There is a Form parameter in file creation/open procedures (for example Ada.Sequential_IO.Create). The corresponding function allows to retrieve the "form" for the file object that is already open. Is there any use for the file "form" on POSIX or Windows? -- Maciej Sobczak * www.msobczak.com * www.inspirel.com Database Access Library for Ada: www.inspirel.com/soci-ada |
|
#2
| |||
| |||
| Sure, but it's implementation-defined, and thus may vary from compiler to compiler. Can't do anything portable with it. Janus/Ada uses Form to control the file sharing mode on Windows, and also to set (or not) the CP/M compatibility mode (where <ctrl>-Z is treated as a file terminator). I'm pretty sure GNAT has such capabilities, too, but I think the syntax is different. (Remember that Form is a String). Randy. "Maciej Sobczak" <see.my.homepage@gmail.com> wrote in message news:6f4661c3-0b11-4b2e-a258-40b7749dce97@y21g2000hsf.googlegroups.com... > Hi, > > There is a Form parameter in file creation/open procedures (for > example Ada.Sequential_IO.Create). > The corresponding function allows to retrieve the "form" for the file > object that is already open. > > Is there any use for the file "form" on POSIX or Windows? > > -- > Maciej Sobczak * www.msobczak.com * www.inspirel.com > > Database Access Library for Ada: www.inspirel.com/soci-ada |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.