当前位置: 首页 > wzjs >正文

三站合一网站建设最新seo视频教程

三站合一网站建设,最新seo视频教程,建设企业网站的流程,可以做哪方面的网站系列文章目录 GNU-ncurses库简介 文章目录 系列文章目录前言总结lxdialog分析Config.in文件修改示例 前言 busybox终端图形化配置界面,和内核的相似 总结 进程启动,准备数据调用子程序 子程序负责渲染 line [0]: ./scripts/kconfig/lxdialog/lxdialo…

系列文章目录

GNU-ncurses库简介


文章目录

  • 系列文章目录
  • 前言
  • 总结
  • lxdialog分析
  • Config.in文件修改示例


前言

busybox终端图形化配置界面,和内核的相似


总结

进程启动,准备数据调用子程序
子程序负责渲染

line [0]: ./scripts/kconfig/lxdialog/lxdialog

line [1]: --backtitle

line [2]: BusyBox 1.37.0 Configuration

line [3]: --title

line [4]: README

line [5]: --textbox

line [6]: .help.tmp

line [7]: 40

line [8]: 96

backtitle(BusyBox 1.37.0 Configuration)
---------------------------------------title(README)
menu_instructions
+-------------------------------------
| textbox read from temp file .help.tmp
|
+line [7]: height
line [8]: width
char* args[1024] = {bufptr1, bufptr2...}
**argptr = args+-----------------
| buf
+-----------------^
|
bufptr

显示内容通过文件配置,主进程负责读取和解析Config.in,并为子进程生成要渲染的数据,子进程负责实际的渲染工作。

内容配置文件有简单的语法定义

void conf_parse(const char *name);
// 解析 conf_parse 文件struct expr {enum expr_type type;union expr_data left, right;
};
struct property {struct property *next;struct symbol *sym;enum prop_type type;const char *text;    // 显示的文本 Busybox Configurationstruct expr_value visible;struct expr *expr;   // struct menu *menu;struct file *file;int lineno;
};
struct symbol {struct symbol *next;  // 用于 hash 冲突的表链char *name;           // sym namechar *help;enum symbol_type type;   // 符号的数据类型struct symbol_value curr, user;tristate visible;int flags;             // 一些flagstruct property *prop;  // 属性链表,新增属性放入链表后面struct expr *dep, *dep2;struct expr_value rev_dep;
};1. zconf_initscan(name); 打开文件 current_file指向它
2. sym_init();struct symbol *sym_lookup(const char *name, int isconst)struct symbol *symbol_hash[257]; 中找到name对应的符号,若找到则返回,否则放入hash table"ARCH", 0   "KERNELVERSION", 0  "UNAME_RELEASE", 0初始化3符号
3. void menu_init(void)此时menu为空4.	struct property *menu_add_prop(enum prop_type type, char *prompt, struct expr *expr, struct expr *dep)conf_read(NULL);

保存文件的结构

[glogal] file_list is a list point to headstruct file {struct file *next;struct file *parent;char *name;int lineno;int flags;
};

父进程的主要初始化操作:

setlocale(LC_ALL, "");bindtextdomain(PACKAGE, LOCALEDIR);textdomain(PACKAGE);tcgetattr(1, &ios_org);void init_wsize(void); 检查窗口大小conf(&rootmenu); loop here  子进程 fd=2为管道写端

lxdialog分析

argc = 5
argv[4]
offset < 4

offset = 0 1 2 3^

xx --title title-name --backtitle name --yesno txt prompt 16 141
offset+1 offset+2 ^

–title title-name --backtitle name --yesno promt 30 30

Config.in文件修改示例

部分 xxx/Config.in文件是从代码中的注释生成的

#
# For a description of the syntax of this configuration file,
# see docs/Kconfig-language.txt.
#mainmenu "Configuration"config HAVE_DOT_CONFIGbooldefault ymenu "Settings"choiceprompt "Additional debugging library"default NO_DEBUG_LIBhelpUsing an additional debugging library will make busybox becomeconsiderably larger and will cause it to run more slowly. Youshould always leave this option disabled for production use.dmalloc support:----------------This enables compiling with dmalloc ( http://dmalloc.com/ )which is an excellent public domain mem leak and malloc problemdetector. To enable dmalloc, before running busybox you willwant to properly set your environment, for example:export DMALLOC_OPTIONS=debug=0x34f47d83,inter=100,log=logfileThe 'debug=' value is generated using the following commanddmalloc -p log-stats -p log-non-free -p log-bad-space \-p log-elapsed-time -p check-fence -p check-heap \-p check-lists -p check-blank -p check-funcs -p realloc-copy \-p allow-free-nullElectric-fence support:-----------------------This enables compiling with Electric-fence support. Electricfence is another very useful malloc debugging library which usesyour computer's virtual memory hardware to detect illegal memoryaccesses. This support will make busybox be considerably largerand run slower, so you should leave this option disabled unlessyou are hunting a hard to find memory problem.config NO_DEBUG_LIBbool "None"config DMALLOCbool "Dmalloc"config EFENCEbool "Electric-fence"endchoice#source libbb/Config.inendmenucomment "Appletsxx"
comment "UserDefined2"#source init/Config.in#source archival/Config.in
#source coreutils/Config.in
#source console-tools/Config.in#source debianutils/Config.in
source klibc-utils/Config.in
#source editors/Config.in#source findutils/Config.in
#source loginutils/Config.in
#source e2fsprogs/Config.in
#source modutils/Config.in
#source util-linux/Config.in
#source miscutils/Config.in
#source networking/Config.in
#source printutils/Config.in
#source mailutils/Config.in
#source procps/Config.in
#source runit/Config.in
#source selinux/Config.in
#ource shell/Config.in
#source sysklogd/Config.in
http://www.dtcms.com/wzjs/276465.html

相关文章:

  • 建设网站各方面费用预算南昌seo优化
  • 洮南网站网站维护一年一般多少钱?
  • 企业网站建设方案费用预算晚上看b站
  • 沈阳网站专业seo官网优化详细方法
  • 网站定制开发是什么意思浙江短视频seo优化网站
  • 做奢侈品的网站北京网站建设
  • html5做服装网站大连网站搜索排名
  • 商城网站设计与实现杭州全网推广
  • 奇月网络官方网站环球军事新闻最新消息
  • 杭州网站建设 乐云践新专家免费引流推广的方法
  • 一个网站的优势有哪些网络营销主要做什么
  • 望城经开区建设开发公司门户网站广告媒体资源平台
  • 做教学的视频网站有哪些橘子seo历史查询
  • 睢县做网站哪家好友情链接平台广告
  • 做网站赚钱的时代过去了吗长尾词优化外包
  • 东莞网站建设信科分公司aso优化推广
  • 建一个网站需要购买域名 虚拟主机青岛seo整站优化
  • bluehost 安装wordpress宁波seo网络推广多少钱
  • 建设手机网银可以自己提升额度吗网站优化公司排名
  • 网站备案工信部时间青岛seo青岛黑八网络最强
  • 合肥网站系统建设公司企业的互联网推广
  • 网络推广的方式都有哪些西安网站优化公司
  • 西安教育平台网站建设网络运营是什么意思
  • 免费企业网站建设介绍app营销策略都有哪些
  • 广告设计制作图片seo教学平台
  • 首页网站关键词优化教程互联网营销策略有哪些
  • 邢台哪儿做wap网站好免费合作推广
  • 肯尼亚网站域名今年疫情最新消息
  • 对于网站建设的体会优化师的工作内容
  • asp中用jqure做网站外贸营销型网站制作公司