[pso] [tema1][win]Prototip syscall

Lucian Adrian Grijincu lucian.grijincu at gmail.com
Thu Mar 15 13:19:38 EET 2007


OS char short int long void*  Unix 32bit 1 byte 2 bytes 4 bytes 4 bytes 4
bytes  Windows 32bit 1 byte 2 bytes 4 bytes 4 bytes 4 bytes  Unix 64bit 1
byte 2 bytes 4 bytes 8 bytes 8 bytes  Windows64bit 1 byte 2 bytes 4 bytes 4
bytes 8 bytesint <=> long pe windows.

On 3/15/07, Maximilian Machedon <maximilian.machedon at gmail.com> wrote:
>         Tin sa nu fiu de acord complet. Acele macrodefinitii exista cu
niste
> scopuri, cum ar fi:
>
> 1. cod mai clar (se vede la ce va fi folosit)
>
> 2. trecere mai usoara a codului la platforme noi (16 bit -> 32 bit, 32
> bit -> 64 bit, kernel de Win98 -> kernel de NT, etc.)
>
>         Adica era mai bine sa fie NTSTATUS, chiar daca merge si asa
*acum*.
>
>         Poti eventual sa schimbi in header daca te deranjeaza, cred ca e
ok.
>
> ----- Original Message -----
> From: "Razvan Deaconescu" <razvand at cs.pub.ro>
> To: "Proiectarea Sistemelor de Operare" <pso at cursuri.cs.pub.ro >
> Sent: Wednesday, March 14, 2007 8:12 PM
> Subject: Re: [pso] [tema1][win]Prototip syscall
>
>
> Florin wrote:
> > Confogrm Sci_win.h, prototipul syscall-ului pe care trebuie sa il
> > implementam noi este:
> > int my_syscall (int cmd, int syscall_no, HANDLE pid);
> >
> > totushi : parametrul returnat nu ar trebui sa fie un NTSTATUS ?
> >
>
> ba da
>
> totusi:
> typedef long LONG;
> typedef LONG NTSTATUS;
>
> intrucat pe x86, int este echivalent cu long nu este nici o problema
>
> Razvan
>
> _______________________________________________
> pso mailing list
> pso at cursuri.cs.pub.ro
> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/pso
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/pso/attachments/20070315/08321ddc/attachment.htm


More information about the pso mailing list