pipe.s
来自「klibc精简化的c程序库」· S 代码 · 共 31 行
S
31 行
/* * arch/sparc64/pipe.S * * The pipe system call are special on sparc[64]: * they return the two file descriptors in %o0 and %o1. */#include <asm/unistd.h> .globl pipe .type pipe,#function .align 4pipe: mov __NR_pipe, %g1 or %o0, 0, %g4 t 0x6d bcc %xcc, 1f nop sethi %hi(errno), %g4 or %g4, %lo(errno), %g4 st %o0,[%g4] retl mov -1, %o01: st %o0,[%g4] st %o1,[%g4+4] retl mov 0, %o0 .size pipe,.-pipe
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?