[PATCH] Use pid_t for passing PID values in tcgetpgrp

Nickolai Zeldovich nickolai at cs.stanford.edu
Mon Apr 23 03:10:05 UTC 2007


Currently, tcgetpgrp() in uClibc uses an int to store a PID (fetched
via ioctl TIOCGPGRP).  This causes problems on platforms where pid_t
is defined to be larger (e.g., uint64_t).  Other functions in termios,
such as tcgetsid() and tcsetpgrp(), already pass a pid_t to ioctl(),
so the following patch does the same in tcgetpgrp() as well:

    http://moscow.scs.stanford.edu/~nickolai/uclibc-pidt-patch

(Apologies for the URL; I haven't figured out how to avoid tab
conversions in gmail.)

Nickolai.



More information about the uClibc mailing list