On Sun, Jun 15, 2014 at 1:20 PM, Jean-Philippe Ouellet <jean-phili...@ouellet.biz> wrote: > Those 4 memcpy()s are copying the things referenced by the old > filedesc to the new one. The things being copied are file*s, > not file**s. They're the same size anyway, but still...
Technically, C99 grants implementations leeway to use different representations for "pointers to structure type" and "pointers to other types" (C99 6.2.5 P26), though I can't imagine implementations where this would actually come up, and OpenBSD certainly doesn't support any. Committed, thanks!