Linux tputs

tputs(char *const str, int affcnt, int (*putfunc)(int))

设置终端输出显示参数

tputs(tmp, 1, putchar)

49c1: 48 8d 3d 44 17 00 00 lea 0x1744(%rip),%rdi # 610c <_IO_stdin_used@@Base+0x10c>

49c8: 31 f6 xor %esi,%esi

49ca: e8 a1 dc ff ff callq 2670 <tgetstr@plt> // tgetstr("md", NULL)

49cf: 48 89 c7 mov %rax,%rdi // tmp=tgetstr("md", NULL)

49d2: 48 85 c0 test %rax,%rax // tmp ?= NULL

49d5: 0f 84 6e fa ff ff je 4449 <__sprintf_chk@plt+0x1cd9>

49db: 48 8b 15 ee 45 00 00 mov 0x45ee(%rip),%rdx # 8fd0 <putchar@GLIBC_2.2.5>

49e2: be 01 00 00 00 mov $0x1,%esi
49e7: e8 24 da ff ff callq 2410 <tputs@plt> // tputs(tmp, 1, putchar)

49ec: e9 58 fa ff ff jmpq 4449 <__sprintf_chk@plt+0x1cd9>

putchar 原型:

int putchar(int char)

相关推荐
蚰蜒螟1 分钟前
深入 Linux 内核同步机制:从 futex 到 spinlock 的完整旅程
linux·windows·microsoft
运维全栈笔记3 分钟前
Linux安装配置Tomcat保姆级教程:从部署到性能调优
linux·服务器·中间件·tomcat·apache·web
dllmayday1 小时前
Linux 上用终端连接 WiFi
linux·服务器·windows
峥无2 小时前
Linux系统编程基石:静态库·动态库·ELF文件·进程地址空间全景图
linux·运维·服务器
用户2367829801683 小时前
从 chmod 755 说起:Unix 文件权限到底是怎么算的?
linux
Strugglingler3 小时前
【systemctl 学习总结】
linux·systemd·systemctl·journalctl·unit file
嵌入式×边缘AI:打怪升级日志4 小时前
100ASK-T113 Pro 开发板 Bootloader 完全开发指南
linux·ubuntu·bootloader
charlie1145141915 小时前
Linux 字符设备驱动:cdev、设备号与设备模型
linux·开发语言·驱动开发·c
handler015 小时前
Linux 内核剖析:进程优先级、上下文切换与 O(1) 调度算法
linux·运维·c语言·开发语言·c++·笔记·算法
zhouwy1135 小时前
Linux进程与线程编程详解
linux·c++