Reference

XPending(3x) on Linux

The text f9c814d9c8f2, as Debian 3.0 (Woody) shipped it.

handle output buffer or event queue

XPending(3x) on Linux now