musl/src/misc/openpty.c, branch master musl - an implementation of the standard library for Linux-based systems block pthread cancellation in openpty function 2014年12月21日T04:38:25+00:00 Rich Felker dalias@aerifal.cx 2014年12月21日T04:38:25+00:00 1227e418eafbbe55e74eee5d2b1e6e53a60102cd being a nonstandard function, this isn't strictly necessary, but it's inexpensive and avoids unpleasant surprises. eventually I would like all functions in libc to be safe against cancellation, either ignoring it or acting on it cleanly.
being a nonstandard function, this isn't strictly necessary, but it's
inexpensive and avoids unpleasant surprises. eventually I would like
all functions in libc to be safe against cancellation, either ignoring
it or acting on it cleanly.
don't write openpty results until success is determined 2014年12月21日T04:22:57+00:00 Rich Felker dalias@aerifal.cx 2014年12月21日T04:22:57+00:00 3b26a32df42092af6d0cdac655e52635b91d36b2 not only is this semantically more correct; it also reduces code size slightly by eliminating the need for the compiler to assume the possibility of aliasing.
not only is this semantically more correct; it also reduces code size
slightly by eliminating the need for the compiler to assume the
possibility of aliasing.
incorrect check for open failure in openpty function 2011年07月22日T04:23:36+00:00 Rich Felker dalias@aerifal.cx 2011年07月22日T04:23:36+00:00 d40e344f7b311980dfe3c165d8cbecfe04c12bd2 -1, not 0, indicates failure
-1, not 0, indicates failure
initial check-in, version 0.5.0 2011年02月12日T05:22:29+00:00 Rich Felker dalias@aerifal.cx 2011年02月12日T05:22:29+00:00 0b44a0315b47dd8eced9f3b7f31580cf14bbfc01

AltStyle によって変換されたページ (->オリジナル) /