comp.lang.ada
 help / color / mirror / Atom feed
* File "form" and mainstream systems.
@ 2008-08-18 13:40 Maciej Sobczak
  2008-08-22  4:00 ` Randy Brukardt
  0 siblings, 1 reply; 2+ messages in thread
From: Maciej Sobczak @ 2008-08-18 13:40 UTC (permalink / raw)


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



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: File "form" and mainstream systems.
  2008-08-18 13:40 File "form" and mainstream systems Maciej Sobczak
@ 2008-08-22  4:00 ` Randy Brukardt
  0 siblings, 0 replies; 2+ messages in thread
From: Randy Brukardt @ 2008-08-22  4:00 UTC (permalink / raw)


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 





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-08-22  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-18 13:40 File "form" and mainstream systems Maciej Sobczak
2008-08-22  4:00 ` Randy Brukardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox