DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦eae9ce82e⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Ioctl_Fmt, seg_04ba68

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦5a81ac88f⟧ »Space Info Vol 1« 
        └─⟦this⟧ 

E3 Source Code



package body Ioctl_Fmt is

    function Fmt_Io_Cnst (X : Character; Y : Integer) return Integer is
    begin
        return Ioc_Void + Character'Pos (X) * (2 ** 8) + Y;
    end Fmt_Io_Cnst;

    function Fmt_Ior_Cnst (X : Character; Y, Tsize : Integer) return Integer is
    begin
        if Tsize > 127 then
            raise Program_Error;
        end if;
        return Ioc_Out + Character'Pos (X) * (2 ** 8) + Y + Tsize * (2 ** 16);
    end Fmt_Ior_Cnst;

    function Fmt_Iow_Cnst (X : Character; Y, Tsize : Integer) return Integer is
    begin
        if Tsize > 127 then
            raise Program_Error;
        end if;
        return Ioc_In + Character'Pos (X) * (2 ** 8) + Y + Tsize * (2 ** 16);
    end Fmt_Iow_Cnst;

    function Fmt_Iowr_Cnst (X : Character; Y, Tsize : Integer) return Integer is
    begin
        if Tsize > 127 then
            raise Program_Error;
        end if;
        return Ioc_Inout + Character'Pos (X) * (2 ** 8) + Y + Tsize * (2 ** 16);
    end Fmt_Iowr_Cnst;

end Ioctl_Fmt;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=1e rec1=00 rec2=01 rec3=07c
        [0x01] rec0=04 rec1=00 rec2=02 rec3=001
    tail 0x21548d56e86843b967ea7 0x42a00088462060003