- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
syscall-sparc-sunos-5.3.S
上传用户:tsgydb
上传日期:2007-04-14
资源大小:10674k
文件大小:1k
源码类别:
MySQL数据库
开发平台:
Visual C++
- /* ==== syscall.S ============================================================
- * Copyright (c) 1994 Chris Provenzano, proven@mit.edu
- * All rights reserved.
- *
- */
- #ifndef lint
- .text
- .asciz "$Id$";
- #endif
- #define _ASM
- #include <sys/syscall.h>
- /*
- * Initial asm stuff for all functions.
- */
- .text
- .align 4
- /* ==========================================================================
- * error code for all syscalls. The error value is returned as the negative
- * of the errno value.
- */
- 1:
- sub %r0, %o0, %o0
- 2:
- retl
- nop
- /* ==========================================================================
- * machdep_sys_fork()
- */
- .globl machdep_sys_fork;
- machdep_sys_fork:;
- mov SYS_fork, %g1;
- ta 0;
- bcs 1b;
- nop;
- tst %o1
- bne,a __fork_parent
- mov %g0, %o0
- __fork_parent:;
- retl
- nop; /* Added by monty to keep sparc assembler happy */
- /* ==========================================================================
- * Berkeley socket stuff
- *
- * ==========================================================================
- * machdep_sys_socketcall()
- */
- .globl machdep_sys_socketcall;
- machdep_sys_socketcall:;
- mov 83, %g1;
- ta 0;
- bcs,a 2b;
- sub %r0,%o0,%o0;
- retl
- nop; /* Added by monty to keep sparc assembler happy */