Which programming language is XXX written in?
AmigaOS
From AmigaOS 2.x onwards, AmigaDOS was rewritten in C and Assembler, retaining full 1.x BCPL program compatibility, and it incorporated parts of the third-party AmigaDOS Resource Project, which had already written replacements for many of the BCPL utilities and interfaces.
C