History log of /seL4-refos-master/libs/libmuslc/src/misc/openpty.c
Revision Date Author Comments
# 1227e418 20-Dec-2014 Rich Felker <dalias@aerifal.cx>

block pthread cancellation in openpty function

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.


# 3b26a32d 20-Dec-2014 Rich Felker <dalias@aerifal.cx>

don't write openpty results until success is determined

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.


# d40e344f 21-Jul-2011 Rich Felker <dalias@aerifal.cx>

incorrect check for open failure in openpty function

-1, not 0, indicates failure


# 0b44a031 11-Feb-2011 Rich Felker <dalias@aerifal.cx>

initial check-in, version 0.5.0