본 논문에서는 정보가전용 실시간 운영체제로 개발되고 있는 Q+에 탑재될 C 표준 라이브러리의 설계 및 구현에 대해 기술한다. 실시간 운영체제에서의 C 표준 라이브러리는 표준 인터페이스에 따라 정의되어야 하고, 쓰레드들의 동시 수행이 가능하도록 하여야 한다. 구현된 C 표준 라이브러리는 POSIX.1에 정의된 표준 인터페이스를 따르고, 재진입가능 하도록 설계되었다. 그리고, POSIX.1에 정의된 표준 함수들 중에서 Q+ 응용 분야에 적합하고, 상용 실시간 운영체제들이 공통적으로 제공하는 함수들을 지원한다. C 표준 라이브러리 함수들은 함수간 호출관계를 분석해 결정된 구현 순서에 따라 Q+ 커널과 디지털 TV용 셋탑박스 상에서 구현되었다.
This paper describes the design and implementation of C standard library for real-time operating system Q , that is being developed for the internet appliance. The C library in the real-time operating system should be defined according to the standard interface and support the concurrent execution of threads. The implemented C standard library is reentrant and follows POSIX.1 standard interface. And, the C standard library functions, which are adequate to the Q application and commonly provided by commercial real-time operating systems, are selected among POSIX.1 standard functions. The C standard library is implemented on the Q kernel and D-TV set-top box according to the implementation sequence, which is determined by analyzing the relation of function calls.