author | Linus Torvalds <torvalds@osdl.org> | |
Sun, 2 Apr 2006 20:31:54 +0000 (13:31 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 2 Apr 2006 20:46:27 +0000 (13:46 -0700) | ||
commit | da93d12b00425a37e81e227671f13130efcfe93f | |
tree | 84aba76a2bdd6dfa786438de0d7b3beb2462f1ba | tree | snapshot |
parent | fb7a6531e67333b22967bf5b96ef22a28f3b2552 | commit | diff |
pack-objects: be incredibly anal about stdio semantics
This is the "letter of the law" version of using fgets() properly in the
face of incredibly broken stdio implementations. We can work around the
Solaris breakage with SA_RESTART, but in case anybody else is ever that
stupid, here's the "safe" (read: "insanely anal") way to use fgets.
It probably goes without saying that I'm not terribly impressed by
Solaris libc.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This is the "letter of the law" version of using fgets() properly in the
face of incredibly broken stdio implementations. We can work around the
Solaris breakage with SA_RESTART, but in case anybody else is ever that
stupid, here's the "safe" (read: "insanely anal") way to use fgets.
It probably goes without saying that I'm not terribly impressed by
Solaris libc.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
pack-objects.c | diff | blob | history |