וְה֤וּא יָצָא֙ וַעֲבָדָ֣יו בָּ֔אוּ וַיִּרְא֕וּ וְהִנֵּ֛ה דַּלְת֥וֹת הָעֲלִיָּ֖ה נְעֻל֑וֹת וַיֹּ֣אמְר֔וּ אַ֣ךְ מֵסִ֥יךְ ה֛וּא אֶת־רַגְלָ֖יו בַּחֲדַ֥ר הַמְּקֵרָֽה׃
און װי ער איז אַרױסגעגאַנגען, אַזױ זײַנען אָנגעקומען זײַנע קנעכט, און האָבן דערזען, ערשט די טירן פֿון דער אױבערשטוב זײַנען פֿאַרשלאָסן, און זײ האָבן געזאָגט: מסתּמא איז ער אױףֿ זײַן באַדערפֿעניש אין דער קילקאַמער.
Metzudat Zion
It is a euphemism for reliving himself as an Samuel 1:24:3 "And Saul came to relive himself." Its named this based on the way that he is sitting down and facing. To shut in and to cover his legs because of modesty.
Rashi
Relieving himself [lit. 'covering his legs']. Performing his necessary bodily functions. This refers to a bowel movement.12When the legs are covered as a matter of modesty. (Metzudas).