File "form" and mainstream systems.

This is a discussion on File "form" and mainstream systems. within the ADA forums in Programming Languages category; 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...

Go Back   Application Development Forum > Programming Languages > ADA

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-18-2008, 09:40 AM
Maciej Sobczak
Guest
 
Default File "form" and mainstream systems.

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
Reply With Quote
  #2  
Old 08-22-2008, 12:00 AM
Randy Brukardt
Guest
 
Default Re: File "form" and mainstream systems.

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



Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 10:59 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.