Top
PowerBSORT V7.0 User's Guide
FUJITSU Software

6.3 Points of concern when C language program is developed

In this section, it explains points of concern when the C language program that uses the BSORT function is developed.

About the environment variables and startup file

The environment variable and the startup file influence not only the bsortex command, and the bsort command but also the executions of the C language program that uses the BSORT function. Therefore, when the C language program that uses the BSORT function is executed, it is necessary to set the appropriate environment variables and the startup file.

About a common environment variable to the system

LC_* represents system environment variables. To enable system environment variables, issue setlocale(3) before calling a BSORT function. The setlocale function can be omitted in English based systems in the USA. However, if the setlocale(3) function is not issued in a region other than the USA, features provided for your desired region (e.g.,messages in Japanese) cannot be used.

About the link with the library

An application program using BSORT functions must be linked with a BSORT supported library. To create an executable format program by the gcc command, link the library as shown below.

gcc source-file-name -I/opt/FJSVXbsrt/include -L/opt/FJSVXbsrt/lib -lbsrt -ldl

About the MultiThreading operation

The BSORT function doesn't correspond to the C language program that operates by the MultiThreading.