[patch-2.4.0-test6-pre8] fork.c FIXME removed

From: Bill Wendling (wendling@ganymede.isdn.uiuc.edu)
Date: Tue Aug 08 2000 - 03:36:25 EST


Hi all,

Here's a small patch which gets rid of a FIXME comment in the
kernel/fork.c file. Instead of doing a memcpy, it copies each field
individually. I hope I got all of the fields which were supposed to be
in there.

Why do it this way? C allows structures to be packed with extra bytes so
simply calculating how much space all the elements *should* take, it's
better to either copy them individually or the whole structure at one
time (doing a sizeof(struct foo) for instance).

Comments?

-- 
|| Bill Wendling			wendling@ganymede.isdn.uiuc.edu


- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Aug 15 2000 - 21:00:14 EST