[Ilugc] Structure copy behaviour

  • From: m.sujith@xxxxxxxxx (Sujith Manoharan)
  • Date: Fri May 25 12:52:33 2007

On Fri, 2007-05-25 at 11:59 +0530, ramprasad wrote:

I don't find asm-i386.h
I grepped for struct_cpy and found it in asm-i386/string-486.h

#define struct_cpy(x,y)                         \
({                                              \
        if (sizeof(*(x)) != sizeof(*(y)))       \
                __struct_cpy_bug;               \
        memcpy(x, y, sizeof(*(x)));             \
})

Is this the definition that you are talking about and will changing
this definition will it help ?

Are you searching in gcc's source or the linux kernel source ?
I couldn't find this file either. :)


regards,
Sujith.

Other related posts: