Linux 哪个system C 函数可以得到我自己的login名字 和 什么 tty. 我可以用 "who am i" 在shell 下得到: jack pts/3 Aug 27 13:51 (machine name). 我不想用getenv("USER")之类的通过env变量, 因为这些变量很有可能没有设好. 谢谢了.
In the first part of this column (LJ, August 2002) we covered the basics of the tty layer and how to create a minimal tty driver. Now we move on and cover more of the tty layer, trying to explain some ...
From time to time we realize that sayings which make sense to us probably will have no meaning for future generations. Two of the examples that spring to mind are “hang up the phone” or in a vehicle ...