Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Linux϶ÁÓ²ÅÌÐòÁкŵijÌÐò


Linux϶ÁÓ²ÅÌÐòÁкŵijÌÐò
/*
* gethddsn.c
*
* Get serial number of ide hard disk.
* example: my Maxtor 15G 's s/n is K306S04C.
*
* Compile with: gcc -O2 gethddsn.c
*
* Xiaoming DONG <xmdong@263.net>
* Aug 24, 2000
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>  /* ioperm() */
#include <asm/io.h>  /* outb(), inb() */
/* get serial number */
int gethddsn(char *ide)
{
  unsigned int ide_info[257];
  unsigned int info_off;
  unsigned long loop2=0;
  int loop, loop1=0;
  if (ioperm(0x1f6, 1, 1)) {
    perror("ioperm"); exit(-1);
  }
  outb(0xa0, 0x1f6);
  if (ioperm(0x1f7, 1, 1)) {
    perror("ioperm"); exit(-1);
  }
  outb(0xec, 0x1f7);
  do {
    if (ioperm(0x1f7, 1, 1)) {
       perror("ioperm"); exit(-1);
    }
  } while (inb(0x1f7) != 0x58 && loop2++ < 0xffff);
  for (info_off=0; info_off != 256; info_off++) {
    if (ioperm(0x1f0, 2, 1)) {
     perror("ioperm"); exit(-1);
    }
    ide_info[info_off] = inw(0x1f0);
  }
  for (loop=10, loop1=0; loop<=19; loop++)
  {
    ide[loop1++] = (char)(ide_info[loop] / 256);
    ide[loop1++] = (char)(ide_info[loop] % 256);
  }
  ide[loop1] = 0;
  if (loop1 > 40) printf("*error*\n");
  return 0;
}
void main()  /* print hard disk number */
{
  static char serial[41];
  gethddsn(serial);
  printf("IDE hard disk s/n: %s\n", serial);
}
/* end of gethddsn.c */


Ïà¹ØÎĵµ£º

Linux Adobe Reader 9 ÏÔʾÖÐÎÄ£¨°²×°ÖÐÎÄÓïÑÔ°ü£©

        Ïë°²×°adobe reader£¬À´µ½¹Ù·½ÍøÕ¾ÏÂÔØÊÇ·¢ÏÖÓÐreader9,ËäÈ»ÊÇÓ¢ÎİæµÄÏÂÏÂÀ´ÔÙ˵£¬½á¹û´ò²»¿ªÖÐÎÄÎĵµ£¬googleÁËÏ·¢ÏÖÕâôƪÎÄÕ½â¾öÁËÎÒµÄÎÊÌâ¡£²»´í£¬²»¹ýÄǸöÏÂÔØÖÐÎÄÎĵµµÄµØÖ·ÕâÀï¾ÀÕýÒ»ÏÂÊÇ£ºhttps://www.adobe.com/cn/products/acrobat/acrrasianfontpack.html
ά»¤Ô­´´£¡Ô­´´µ ......

linux 2.4ÄÚºËÏ ΢Ãî¼¶ÑÓʱ

ÔÚx86 2.4ÄÚºËÏ usleep¡¢selectµÈÑÓʱº¯ÊýÎÞ·¨ÊµÏÖµÍÓÚ10msÑÓʱ
¶øÔÚÇý¶¯²ãÔÚioctrlÖÐͨ¹ýudelay¡¢mdelayµÈµÈʵÏÖÑÓʱҲÎÞ·¨¶à½ø³ÌͬʱÑÓʱ
ËùÒÔʵÏÖÈçÏÂÑÓʱº¯Êý Äܹ»ÊµÏÖµÍÓÚ10usÉõÖÁ1us µÄÑÓʱ
unsigned int uDelay(unsigned int delayTime)
{
static struct timeval _tstart, _tend;
static struct timezone ......

linux ¶¨Ê±ÈÎÎñ crond


Linux²Ù×÷ϵͳ¶¨Ê±ÈÎÎñϵͳ Cron ÈëÃÅ
¡¡¡¡cronÊÇÒ»¸ölinuxÏµĶ¨Ê±Ö´Ðй¤¾ß£¬¿ÉÒÔÔÚÎÞÐèÈ˹¤¸ÉÔ¤µÄÇé¿öÏÂÔËÐÐ×÷Òµ¡£ÓÉÓÚCron ÊÇLinuxµÄÄÚÖ÷þÎñ£¬µ«Ëü²»×Ô¶¯ÆðÀ´£¬¿ÉÒÔÓÃÒÔÏµķ½·¨Æô¶¯¡¢¹Ø±ÕÕâ¸ö·þÎñ:
¡¡¡¡/sbin/service crond start //Æô¶¯·þÎñ
¡¡¡¡/sbin/service crond stop //¹Ø±Õ·þÎñ
¡¡¡¡/sbin/service cr ......

Linux:LinuxÎļþÃüÁָͨÄÏ

[url=http://www.netdigedu.com/jiagoubaike/13063.html]Linux:LinuxÎļþÃüÁָͨÄÏ[/url]
[url=http://www.netdigedu.com]ÍøÑ¶Í¨ÐÅѧԺ[/url]
Ϊ¸Õ½Ó´¥ Linux ÎļþÃüÁîµÄ³õѧÕßÌṩµÄËٳɽ̳Ì
ËäÈ» GUI ×ÀÃæ£¨Èç KDE ºÍ GNOME£©Äܹ»°ïÖúÓû§ÀûÓà Linux ÌØÐÔ£¬¶øÎÞÐè¹ØÓÚÃüÁîÐнӿڵŦÄÜ֪ʶ£¬µ«»¹ÊǾ­³£»áÐèÒª¸ü¶àµÄ ......

linux×ÊÔ´ÍøÕ¾

=======================================================================
һЩ¹ØÓÚLinuxµÄ×ÊÔ´Õ¾µã£¬Ï£Íû¶Ô´ó¼ÒÓаïÖú
http://www.linux.org/ ;
Linux¹Ù·½ÐÂÎźÍÐÅÏ¢ÍøÕ¾¡£
http://freesoft.cei.gov.cn/ ;
ÖйúÈí¼þÐÐҵЭ»á¹ú¼Ê×ÔÓÉÈí¼þÓ¦ÓÃÑо¿·¢Õ¹·Ö»áµÄ×ÔÓÉÈí¼þ¿â£¬ÉÏÃæÌṩÓи÷ÖÖLinuxÈí¼þ¿É¹©ÏÂÔØ£¬²¢ÓÐLinux ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ