⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 partx.h

📁 Util-linux 软件包包含许多工具。其中比较重要的是加载、卸载、格式化、分区和管理硬盘驱动器
💻 H
字号:
#ifndef PARTX_H_INCLUDED#define PARTX_H_INCLUDED/* * For each partition type there is a routine that takes * a block device and a range, and returns the list of * slices found there in the supplied array SP that can * hold NS entries. The return value is the number of * entries stored, or -1 if the appropriate type is not * present. *//* units: 512 byte sectors */struct slice {	unsigned int start;	unsigned int size;};typedef int (ptreader)(int fd, struct slice all, struct slice *sp, int ns);extern ptreader read_dos_pt, read_bsd_pt, read_solaris_pt, read_unixware_pt, read_gpt_pt;char *getblock(int fd, unsigned int secnr);static inline intfour2int(unsigned char *p) {	return p[0] + (p[1]<<8) + (p[2]<<16) + (p[3]<<24);}#endif /* PARTX_H_INCLUDED */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -