1、dup函数
作用:复制一个新的文件描述符
man 2 dupDESCRIPTION The dup() system call creates a copy of the file descriptor oldfd, using the lowest-numbered unused file descriptor for the new descriptor. 就是会用空闲的最小的文件描述符去创建oldfd的…
dup是duplicate的缩写,重复的意思; 用来定义重复的字节、字、双字、结构等内存缓冲区;
db x dup(),x是重复的次数,()里是要重复的数,逗号分隔; db 重复的次数 dup &…