kazmax - Linux で自宅サーバー

ttyname_r - ライブラリコールの説明 - Linux コマンド集 一覧表

セクション: 3 の ttyname の man ページと同じ内容になります。
ttyname.3.html のページを参照してください。