私はCコーディングに関するチュートリアルをオンラインでフォローしてきましたが、コードはApacheAPRライブラリを使用しています。apr_proc_t構造体を使用して外部アプリを実行します。私はこの関数について混乱しています、誰かがこの関数の意味を説明できますか?
apr_status_t apr_procattr_cmdtype_set ( apr_procattr_t * attr,
apr_cmdtype_e cmd
)
Set what type of command the child process will call.
Parameters:
attr The procattr we care about.
cmd The type of command. One of:
APR_SHELLCMD -- Anything that the shell can handle
APR_PROGRAM -- Executable program (default)
APR_PROGRAM_ENV -- Executable program, copy environment
APR_PROGRAM_PATH -- Executable program on PATH, copy env