亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? asmstub.c

?? GRUB 0.93的源代碼。有人說可以當一個很小的操作系統了
?? C
?? 第 1 頁 / 共 2 頁
字號:
  return c;}/* like 'getkey', but doesn't wait, returns -1 if nothing available */intconsole_checkkey (void){#ifdef HAVE_LIBCURSES  if (use_curses)    {      int c;      /* Check for SAVE_CHAR. This should not be true, because this	 means checkkey is called twice continuously.  */      if (save_char != ERR)	return save_char;      c = getch ();      /* If C is not ERR, then put it back in the input queue.  */      if (c != ERR)	save_char = c;      return console_translate_key (c);    }#endif  /* Just pretend they hit the space bar, then read the real key when     they call getkey. */  return ' ';}/* returns packed BIOS/ASCII code */intconsole_getkey (void){  int c;#ifdef HAVE_LIBCURSES  if (use_curses)    {      /* If checkkey has already got a character, then return it.  */      if (save_char != ERR)	{	  c = save_char;	  save_char = ERR;	  return console_translate_key (c);	}      wtimeout (stdscr, -1);      c = getch ();      wtimeout (stdscr, 100);    }  else#endif    c = getchar ();  /* Quit if we get EOF. */  if (c == -1)    stop ();    return console_translate_key (c);}/* returns packed values, LSB+1 is x, LSB is y */intconsole_getxy (void){  int y, x;#ifdef HAVE_LIBCURSES  if (use_curses)    getyx (stdscr, y, x);  else#endif  y = x = 0;  return (x << 8) | (y & 0xff);}voidconsole_gotoxy (int x, int y){#ifdef HAVE_LIBCURSES  if (use_curses)    move (y, x);#endif}/* low-level character I/O */voidconsole_cls (void){#ifdef HAVE_LIBCURSES  if (use_curses)    clear ();#endif}voidconsole_setcolorstate (color_state state){  console_current_color =     (state == COLOR_STATE_HIGHLIGHT) ? A_REVERSE : A_NORMAL;}voidconsole_setcolor (int normal_color, int highlight_color){  /* Nothing to do.  */}intconsole_setcursor (int on){  return 1;}/* Low-level disk I/O.  Our stubbed version just returns a file   descriptor, not the actual geometry. */intget_diskinfo (int drive, struct geometry *geometry){  /* FIXME: this function is truly horrid.  We try opening the device,     then severely abuse the GEOMETRY->flags field to pass a file     descriptor to biosdisk.  Thank God nobody's looking at this comment,     or my reputation would be ruined. --Gord */  /* See if we have a cached device. */  if (disks[drive].flags == -1)    {      /* The unpartitioned device name: /dev/XdX */      char *devname = device_map[drive];      char buf[512];      if (! devname)	return -1;      if (verbose)	grub_printf ("Attempt to open drive 0x%x (%s)\n",		     drive, devname);      /* Open read/write, or read-only if that failed. */      if (! read_only)	disks[drive].flags = open (devname, O_RDWR);      if (disks[drive].flags == -1)	{	  if (read_only || errno == EACCES || errno == EROFS)	    {	      disks[drive].flags = open (devname, O_RDONLY);	      if (disks[drive].flags == -1)		{		  assign_device_name (drive, 0);		  return -1;		}	    }	  else	    {	      assign_device_name (drive, 0);	      return -1;	    }	}      /* Attempt to read the first sector.  */      if (read (disks[drive].flags, buf, 512) != 512)	{	  close (disks[drive].flags);	  disks[drive].flags = -1;	  assign_device_name (drive, 0);	  return -1;	}      if (disks[drive].flags != -1)	get_drive_geometry (&disks[drive], device_map, drive);    }  if (disks[drive].flags == -1)    return -1;#ifdef __linux__  /* In Linux, invalidate the buffer cache, so that left overs     from other program in the cache are flushed and seen by us */  ioctl (disks[drive].flags, BLKFLSBUF, 0);#endif  *geometry = disks[drive];  return 0;}/* Read LEN bytes from FD in BUF. Return less than or equal to zero if an   error occurs, otherwise return LEN.  */static intnread (int fd, char *buf, size_t len){  int size = len;  while (len)    {      int ret = read (fd, buf, len);      if (ret <= 0)	{	  if (errno == EINTR)	    continue;	  else	    return ret;	}      len -= ret;      buf += ret;    }  return size;}/* Write LEN bytes from BUF to FD. Return less than or equal to zero if an   error occurs, otherwise return LEN.  */static intnwrite (int fd, char *buf, size_t len){  int size = len;  while (len)    {      int ret = write (fd, buf, len);      if (ret <= 0)	{	  if (errno == EINTR)	    continue;	  else	    return ret;	}      len -= ret;      buf += ret;    }  return size;}/* Dump BUF in the format of hexadecimal numbers.  */static voidhex_dump (void *buf, size_t size){  /* FIXME: How to determine which length is readable?  */#define MAX_COLUMN	70  /* use unsigned char for numerical computations */  unsigned char *ptr = buf;  /* count the width of the line */  int column = 0;  /* how many bytes written */  int count = 0;  while (size > 0)    {      /* high 4 bits */      int hi = *ptr >> 4;      /* low 4 bits */      int low = *ptr & 0xf;      /* grub_printf does not handle prefix number, such as %2x, so	 format the number by hand...  */      grub_printf ("%x%x", hi, low);      column += 2;      count++;      ptr++;      size--;      /* Insert space or newline with the interval 4 bytes.  */      if (size != 0 && (count % 4) == 0)	{	  if (column < MAX_COLUMN)	    {	      grub_printf (" ");	      column++;	    }	  else	    {	      grub_printf ("\n");	      column = 0;	    }	}    }  /* Add a newline at the end for readability.  */  grub_printf ("\n");}intbiosdisk (int subfunc, int drive, struct geometry *geometry,	  int sector, int nsec, int segment){  char *buf;  int fd = geometry->flags;  /* Get the file pointer from the geometry, and make sure it matches. */  if (fd == -1 || fd != disks[drive].flags)    return BIOSDISK_ERROR_GEOMETRY;  /* Seek to the specified location. */#if defined(__linux__) && (!defined(__GLIBC__) || \	((__GLIBC__ < 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ < 1))))  /* Maybe libc doesn't have large file support.  */  {    loff_t offset, result;    static int _llseek (uint filedes, ulong hi, ulong lo,			loff_t *res, uint wh);    _syscall5 (int, _llseek, uint, filedes, ulong, hi, ulong, lo,	       loff_t *, res, uint, wh);    offset = (loff_t) sector * (loff_t) SECTOR_SIZE;    if (_llseek (fd, offset >> 32, offset & 0xffffffff, &result, SEEK_SET))      return -1;  }#else  {    off_t offset = (off_t) sector * (off_t) SECTOR_SIZE;    if (lseek (fd, offset, SEEK_SET) != offset)      return -1;  }#endif  buf = (char *) (segment << 4);  switch (subfunc)    {    case BIOSDISK_READ:#ifdef __linux__      if (sector == 0 && nsec > 1)	{	  /* Work around a bug in linux's ez remapping.  Linux remaps all	     sectors that are read together with the MBR in one read.  It	     should only remap the MBR, so we split the read in two 	     parts. -jochen  */	  if (nread (fd, buf, SECTOR_SIZE) != SECTOR_SIZE)	    return -1;	  buf += SECTOR_SIZE;	  nsec--;	}#endif      if (nread (fd, buf, nsec * SECTOR_SIZE) != nsec * SECTOR_SIZE)	return -1;      break;    case BIOSDISK_WRITE:      if (verbose)	{	  grub_printf ("Write %d sectors starting from %d sector"		       " to drive 0x%x (%s)\n",		       nsec, sector, drive, device_map[drive]);	  hex_dump (buf, nsec * SECTOR_SIZE);	}      if (! read_only)	if (nwrite (fd, buf, nsec * SECTOR_SIZE) != nsec * SECTOR_SIZE)	  return -1;      break;    default:      grub_printf ("unknown subfunc %d\n", subfunc);      break;    }  return 0;}voidstop_floppy (void){  /* NOTUSED */}/* Fetch a key from a serial device.  */intserial_hw_fetch (void){  fd_set fds;  struct timeval to;  char c;  /* Wait only for the serial device.  */  FD_ZERO (&fds);  FD_SET (serial_fd, &fds);  to.tv_sec = 0;  to.tv_usec = 0;    if (select (serial_fd + 1, &fds, 0, 0, &to) > 0)    {      if (nread (serial_fd, &c, 1) != 1)	stop ();      return c;    }    return -1;}/* Put a character to a serial device.  */voidserial_hw_put (int c){  char ch = (char) c;    if (nwrite (serial_fd, &ch, 1) != 1)    stop ();}voidserial_hw_delay (void){#ifdef SIMULATE_SLOWNESS_OF_SERIAL  struct timeval otv, tv;  gettimeofday (&otv, 0);  while (1)    {      long delta;            gettimeofday (&tv, 0);      delta = tv.tv_usec - otv.tv_usec;      if (delta < 0)	delta += 1000000;            if (delta >= 1000000 / (serial_speed >> 3))	break;    }#endif /* SIMULATE_SLOWNESS_OF_SERIAL */}static speed_tget_termios_speed (int speed){  switch (speed)    {    case 2400: return B2400;    case 4800: return B4800;    case 9600: return B9600;    case 19200: return B19200;    case 38400: return B38400;#ifdef B57600    case 57600: return B57600;#endif#ifdef B115200          case 115200: return B115200;#endif    }  return B0;}/* Get the port number of the unit UNIT. In the grub shell, this doesn't   make sense.  */unsigned shortserial_hw_get_port (int unit){  return 0;}/* Initialize a serial device. In the grub shell, PORT is unused.  */intserial_hw_init (unsigned short port, unsigned int speed,		int word_len, int parity, int stop_bit_len){  struct termios termios;  speed_t termios_speed;  int i;    /* Check if the file name is specified.  */  if (! serial_device)    return 0;  /* If a serial device is already opened, close it first.  */  if (serial_fd >= 0)    close (serial_fd);    /* Open the device file.  */  serial_fd = open (serial_device,		    O_RDWR | O_NOCTTY#if defined(O_SYNC)		    /* O_SYNC is used in Linux (and some others?).  */		    | O_SYNC#elif defined(O_FSYNC)		    /* O_FSYNC is used in FreeBSD.  */		    | O_FSYNC#endif		    );  if (serial_fd < 0)    return 0;  /* Get the termios parameters.  */  if (tcgetattr (serial_fd, &termios))    goto fail;  /* Raw mode.  */  cfmakeraw (&termios);  /* Set the speed.  */  termios_speed = get_termios_speed (speed);  if (termios_speed == B0)    goto fail;    cfsetispeed (&termios, termios_speed);  cfsetospeed (&termios, termios_speed);  /* Set the word length.  */  termios.c_cflag &= ~CSIZE;  switch (word_len)    {    case UART_5BITS_WORD:      termios.c_cflag |= CS5;      break;    case UART_6BITS_WORD:      termios.c_cflag |= CS6;      break;    case UART_7BITS_WORD:      termios.c_cflag |= CS7;      break;    case UART_8BITS_WORD:      termios.c_cflag |= CS8;      break;    default:      goto fail;    }  /* Set the parity.  */  switch (parity)    {    case UART_NO_PARITY:      termios.c_cflag &= ~PARENB;      break;    case UART_ODD_PARITY:      termios.c_cflag |= PARENB;      termios.c_cflag |= PARODD;      break;    case UART_EVEN_PARITY:      termios.c_cflag |= PARENB;      termios.c_cflag &= ~PARODD;      break;    default:      goto fail;    }  /* Set the length of stop bit.  */  switch (stop_bit_len)    {    case UART_1_STOP_BIT:      termios.c_cflag &= ~CSTOPB;      break;    case UART_2_STOP_BITS:      termios.c_cflag |= CSTOPB;      break;    default:      goto fail;    }  /* Set the parameters.  */  if (tcsetattr (serial_fd, TCSANOW, &termios))    goto fail;#ifdef SIMULATE_SLOWNESS_OF_SERIAL  serial_speed = speed;#endif /* SIMUATE_SLOWNESS_OF_SERIAL */  /* Get rid of the flag TERM_NEED_INIT from the serial terminal.  */  for (i = 0; term_table[i].name; i++)    {      if (strcmp (term_table[i].name, "serial") == 0)	{	  term_table[i].flags &= ~(TERM_NEED_INIT);	  break;	}    }    return 1; fail:  close (serial_fd);  serial_fd = -1;  return 0;}/* Set the file name of a serial device (or a pty device). This is a   function specific to the grub shell.  */voidserial_set_device (const char *device){  if (serial_device)    free (serial_device);    serial_device = strdup (device);}/* There is no difference between console and hercules in the grub shell.  */voidhercules_putchar (int c){  console_putchar (c);}inthercules_getxy (void){  return console_getxy ();}voidhercules_gotoxy (int x, int y){  console_gotoxy (x, y);}voidhercules_cls (void){  console_cls ();}voidhercules_setcolorstate (color_state state){  console_setcolorstate (state);}voidhercules_setcolor (int normal_color, int highlight_color){  console_setcolor (normal_color, highlight_color);}inthercules_setcursor (int on){  return 1;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美v亚洲v综合ⅴ国产v| 国产不卡高清在线观看视频| 精品视频在线看| 亚洲成在人线免费| 91麻豆精品国产91久久久久| 奇米综合一区二区三区精品视频 | 男男视频亚洲欧美| 日韩视频在线你懂得| 激情综合网av| 中文字幕一区二区5566日韩| 日本伦理一区二区| 日本系列欧美系列| 国产人妖乱国产精品人妖| 91小视频免费观看| 日韩高清在线电影| 欧美国产日韩一二三区| 色噜噜偷拍精品综合在线| 男人的天堂久久精品| 国产欧美日韩不卡免费| 欧美色电影在线| 国产成人午夜电影网| 亚洲综合丁香婷婷六月香| 日韩视频一区二区在线观看| 成人18视频日本| 免费成人在线观看| 国产精品久久久久久久岛一牛影视 | 成人涩涩免费视频| 亚洲成人黄色小说| 国产欧美一区二区精品仙草咪| 色呦呦日韩精品| 国产精品一区二区在线播放| 亚洲一区自拍偷拍| 中文字幕久久午夜不卡| 欧美色电影在线| 波多野结衣亚洲| 美日韩一区二区| 一区二区三区高清不卡| 337p粉嫩大胆色噜噜噜噜亚洲| 99re这里只有精品视频首页| 麻豆精品新av中文字幕| 一区二区三区日韩| 国产欧美日韩精品a在线观看| 91精品国产综合久久精品图片| av中文字幕在线不卡| 国产一区亚洲一区| 日韩不卡一区二区三区| 亚洲一区在线观看网站| 中文字幕在线一区免费| 欧美大片在线观看一区二区| 在线观看视频欧美| 成人手机在线视频| 国内精品视频666| 美女视频免费一区| 亚洲成a人片在线观看中文| 中文字幕色av一区二区三区| 久久综合九色综合欧美亚洲| 日韩视频不卡中文| 欧美电影影音先锋| 欧美日韩国产经典色站一区二区三区 | www.欧美日韩国产在线| 韩国v欧美v日本v亚洲v| 九色porny丨国产精品| 日本va欧美va欧美va精品| 亚洲日本欧美天堂| 亚洲欧美另类图片小说| ●精品国产综合乱码久久久久 | 欧美日韩综合在线| 欧美中文字幕一区二区三区| 色美美综合视频| 91久久精品国产91性色tv| 91在线视频播放地址| 波多野结衣在线一区| 成人免费视频网站在线观看| 丰满白嫩尤物一区二区| 国产乱码精品一区二区三区忘忧草 | 91.xcao| 欧美高清激情brazzers| 欧美一区午夜精品| 日韩一级精品视频在线观看| 日韩一区二区麻豆国产| 欧美成人a∨高清免费观看| 2023国产精品自拍| 国产亚洲欧美日韩俺去了| 国产三级三级三级精品8ⅰ区| 欧美高清一级片在线观看| 国产精品网站导航| 国产精品福利一区| 亚洲激情在线激情| 偷偷要91色婷婷| 精品一区精品二区高清| 国产精品一区二区三区99| 不卡一区二区中文字幕| 91欧美激情一区二区三区成人| 91福利资源站| 欧美成人官网二区| 国产欧美日韩综合| 亚洲一区二区三区国产| 青娱乐精品视频| 国产精品自拍三区| 色老汉av一区二区三区| 欧美男女性生活在线直播观看| 日韩欧美第一区| 国产精品久久久久天堂| 亚洲自拍都市欧美小说| 久久精品国产久精国产爱| 国产成人精品免费视频网站| 99国产麻豆精品| 日韩一级二级三级| 中文字幕不卡在线播放| 亚洲sss视频在线视频| 精品一区二区三区的国产在线播放| 高清国产午夜精品久久久久久| 色婷婷激情久久| 欧美一区二区私人影院日本| 国产三级久久久| 日韩在线一二三区| zzijzzij亚洲日本少妇熟睡| 欧美色视频在线| 国产亚洲女人久久久久毛片| 一区二区三区蜜桃| 国产精品一区免费视频| 欧美日韩在线亚洲一区蜜芽| 国产日韩av一区二区| 天堂一区二区在线| av午夜一区麻豆| 精品福利av导航| 亚洲国产成人91porn| 国产成人夜色高潮福利影视| 欧美日韩国产大片| 国产精品卡一卡二| 精品影院一区二区久久久| 色综合久久久久综合体桃花网| 久久天堂av综合合色蜜桃网| 亚洲国产日韩精品| www.一区二区| 国产亚洲一区二区三区在线观看 | 美女视频黄频大全不卡视频在线播放| 成人a免费在线看| 精品国产一区二区三区忘忧草| 一区二区三区不卡在线观看| 国产成人小视频| 欧美成人一级视频| 水野朝阳av一区二区三区| 在线观看视频91| 亚洲人精品午夜| 成人黄页在线观看| 精品国产制服丝袜高跟| 日本欧美一区二区在线观看| 日本高清无吗v一区| 亚洲色图视频网| 99久久精品情趣| 中文字幕av在线一区二区三区| 国产麻豆精品一区二区| 欧美不卡在线视频| 视频一区中文字幕| 欧美精品在线一区二区三区| 亚洲一区二区三区四区的 | www.欧美亚洲| 中文字幕va一区二区三区| 国产激情91久久精品导航| 久久综合九色综合97婷婷女人| 久久99精品国产91久久来源| 51精品国自产在线| 免费人成在线不卡| 欧美一级免费大片| 免费人成黄页网站在线一区二区| 在线播放一区二区三区| 性做久久久久久免费观看| 欧美日韩国产综合视频在线观看| 樱花草国产18久久久久| 91官网在线免费观看| 亚洲第一会所有码转帖| 欧美日韩国产高清一区| 日韩国产一二三区| 日韩免费观看高清完整版| 另类人妖一区二区av| 欧美精品一区二区在线播放| 国产精品一区二区三区四区| 欧美国产欧美综合| 91视视频在线观看入口直接观看www | 国产毛片一区二区| 亚洲国产成人自拍| 91在线视频官网| 视频一区视频二区中文| 精品国精品自拍自在线| 大陆成人av片| 亚洲国产精品麻豆| 日韩一区二区三区视频在线| 国产高清一区日本| 亚洲欧洲性图库| 欧美二区乱c少妇| 国产一区二区不卡在线| 中文字幕一区二区三区色视频| 91成人免费电影| 久久精品二区亚洲w码| 国产欧美日产一区| 欧美猛男男办公室激情| 国产一区二区三区高清播放| 亚洲精品综合在线| 精品三级在线看|