Re: System calls parameter restrictions




phil-news-nospam@xxxxxxxx wrote:

Structs small enough to fit in available register space could be passed
in much the same way many archtectures do pass values. It's just a big
complex value. What if you were passing a 64 bit integer by value, on a
32 bit machine, knowing that there is really no true value as cuh, but
only a joining of a pair of 32 bit integers? It really doesn't matter.
It can be dealt with one way or another. It can be loaded into a register
or a copy can be made through use of pass by reference (pointer). It's
just a matter of how the kernel syscall interface is designed and to the
extent such a design depends on it, the ABI.

But that would mean that changing a structure would break the ABI. That
doesn't sound like it's worth it. Think about structures of unknown
length, such as 'struct sockaddr'. (How do you tell the compiler a
structure has unknown length?)

DS

.



Relevant Pages

  • Re: War on Short yellow lights.
    ... I bitched to the police and city council for years about ... The way to control speeding is to design the road for the speed ... feel a bit safer (or even less safe for that matter), ... rightful owner should I desire to do so. ...
    (sci.electronics.design)
  • Re: War on Short yellow lights.
    ... I bitched to the police and city council for years about ... The way to control speeding is to design the road for the speed ... feel a bit safer (or even less safe for that matter), ... rightful owner should I desire to do so. ...
    (sci.electronics.design)
  • Re: Setting field properties in code
    ... MyNewIndex. ... > The name of the index does not matter. ... > on the foreign key field when you create a relation with referential ... > number shown in the Indexes box in table design view. ...
    (comp.databases.ms-access)
  • Re: Is New Orleans finished ?
    ... I expect solid answers regarding this matter from the folks running the plants. ... "Trust the scientists who know, yada, yada, yada". ... I was merely pointing out fields where a rather lax approach towards design validation isn't working. ... Are you saying that there are never any recalls and all medical devices have been engineered after looking at "all aspects"??? ...
    (sci.electronics.design)
  • Re: The so-called professionals
    ... I'd been doing graphic design and production since cutting and pasting was ... I'm under the apparent delusion that no matter what ... know what you need (clever pre-press guy) unless you spell it out. ... In most work flows and for most jobs the actual color called out in your native Quark doc does not really matter - as the pressman can put the correct ink on the press. ...
    (comp.publish.prepress)