Re: System calls parameter restrictions
- From: "David Schwartz" <davids@xxxxxxxxxxxxx>
- Date: 27 Oct 2006 16:47:46 -0700
Rafael Almeida wrote:
Obviously you can pass pretty much anything through a pointer, but what
I didn't understand was whether you could pass a struct by value or not.
I think it's an ABI restriction. As far as the ABI is concerned, a
structure doesn't have a value, it's an arbitrarily-formatted chunk of
memory. So the only way you could pass it by value would be to make a
copy of it and pass a pointer to the copy.
DS
.
- Follow-Ups:
- Re: System calls parameter restrictions
- From: phil-news-nospam
- Re: System calls parameter restrictions
- References:
- System calls parameter restrictions
- From: Rafael Almeida
- Re: System calls parameter restrictions
- From: David Schwartz
- Re: System calls parameter restrictions
- From: Rafael Almeida
- System calls parameter restrictions
- Prev by Date: Re: Problems with server shutdown
- Next by Date: Re: System calls parameter restrictions
- Previous by thread: Re: System calls parameter restrictions
- Next by thread: Re: System calls parameter restrictions
- Index(es):