I just was looking up funciton attributes for gcc
(http://gcc.gnu.org/onlinedocs/gcc-4.7.2/gcc/Function-Attributes.html)
and came across the returns_twice
attribute.
And I am absolutely clueless in what case a function can return twice... I looked up quickly the mentioned vfork()
and setjmp()
but continue without an idea how an applicable scenario looks like - anyone of you used it or can explain a bit?