Reference

XPending(3x) on Linux

The text c2390168bdbb, as Debian 1.1 (Buzz) shipped it.

handle output buffer or event queue

XPending(3x) on Linux now