»ñÈ¡linuxËùÓÐÓû§ÐÅÏ¢
#include <iostream>
#include <pwd.h>
#include <sys/types.h>
#include <stddef.h>
#include <string>
#include <list>
using namespace std;
void GetUser(list<string>& lsUser);
int main()
{
list<string> lsUser;
GetUser(lsUser);
cout << "all user name in current computer:" << endl;
list<string>::iterator it;
for (it = lsUser.begin(); it != lsUser.end(); it++)
{
cout << it->c_str()<< endl;
}
return 0;
}
void GetUser(list<string>& lsUser)
{
struct passwd* pstPwd = NULL;
setpwent();
while ( (pstPwd = getpwent()) != NULL )
{
lsUser.push_front(pstPwd->pw_name);
}
endpwent();
}
Ïà¹ØÎĵµ£º
1. HCI²ãÐÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI) ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈÐÒé ......
1.·Ö¶Î»úÖÆ
80386µÄÁ½ÖÖ¹¤×÷ģʽ
¡¡¡¡80386µÄ¹¤×÷ģʽ°üÀ¨ÊµµØÖ·Ä£Ê½ºÍÐéµØÖ·Ä£Ê½£¨±£»¤Ä£Ê½£©¡£LinuxÖ÷Òª¹¤×÷ÔÚ±£»¤Ä£Ê½Ï¡£
·Ö¶Î»úÖÆ
¡¡¡¡ÔÚ±£»¤Ä£Ê½Ï£¬80386Ð鵨ַ¿Õ¼ä¿É´ï16K¸ö¶Î£¬Ã¿¶Î´óС¿É±ä£¬×î´ó´ï4GB¡£
¡¡¡¡´ÓÂß¼µØÖ·µ½ÏßÐÔµØÖ·µÄת»»ÓÉ80386·Ö¶Î»úÖÆ¹ÜÀí¡£¶Î¼Ä´æÆ÷CS¡¢DS¡¢ES¡¢SS¡¢FS»òGS±êʶһ¸ö¶Î ......
Ò»¡¢ ʲôÊÇϵͳµ÷ÓÃ
ÔÚLinuxµÄÊÀ½çÀÎÒÃǾ³£»áÓöµ½ÏµÍ³µ÷ÓÃÕâÒ»ÊõÓËùνϵͳµ÷Ó㬾ÍÊÇÄÚºËÌṩµÄ¡¢¹¦ÄÜÊ®·ÖÇ¿´óµÄһϵÁеĺ¯Êý¡£ÕâЩϵͳµ÷ÓÃÊÇÔÚÄÚºËÖÐʵÏֵģ¬ÔÙͨ¹ýÒ»¶¨µÄ·½Ê½°Ñϵͳµ÷ÓøøÓû§£¬Ò»°ã¶¼Í¨¹ýÃÅ(gate)ÏÝÈë(trap)ʵÏÖ¡£ÏµÍ³µ÷ÓÃÊÇÓû§³ÌÐòºÍÄں˽»»¥µÄ½Ó¿Ú¡£
¶þ¡¢ ϵͳµ÷ÓõÄ× ......
ÒÔÏÂÊÇÎÒ´Ó±ðµÄblogÉÏ×ªÔØµÄ, ¹ØÓÚLinuxϵķɸë¼òÒªÉè¼Æ¿ò¼Ü, Ö®ËùÒÔ˵ÊÇLinuxϵÄ, ÒòΪ´úÂëÊÇLinuxϵÄ. µ«ÊÇ, Éè¼Æ¿ò¼Ü½«×ñÑwindows°æ·É¸ë´«ÊéµÄÐÒéºÍ¿ò¼Ü.Êý¾Ý°ü¸ñʽ£º
°æ±¾ºÅ£º°ü±àºÅ£ºÓû§Ãû£º»úÆ÷Ãû£ºÃüÁî×Ö£º¸½¼ÓÐÅÏ¢
Èç 1£º2067943£ºliu £ºd14£º32£ºhello
ÒÔÉÏÊÇÒ»¸ö·¢ËÍÏûÏ¢µÄÊý¾Ý°ü¸ñʽ ......
²Ù×÷ϵͳµÄÒ»¸ö¾µäÎÊÌâÊÇ"Éú²úÕß-Ïû·ÑÕß"ÎÊÌâ, ÕâÉæ¼°Í¬²½ÐźÅÁ¿ºÍ»¥³âÐźÅÁ¿µÄÓ¦ÓÃ, ÔÚÕâÀï,ÎÒÓÃÏ̵߳Äͬ²½ºÍ»¥³âÀ´ÊµÏÖ.
/*
* author ÕÅÎÄ
* 2008/06/20
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <pthread.h>
#include <semaphore.h> ......