Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
conv.h
Package: linux-2.4.20.tar.gz [view]
Upload User: jlfgdled
Upload Date: 2013-04-10
Package Size: 33168k
Code Size: 1k
Category:
Linux-Unix program
Development Platform:
Unix_Linux
- /* $Id: conv.h,v 1.4 1998/08/15 20:42:51 davem Exp $
- * conv.h: Utility macros for Solaris emulation
- *
- * Copyright (C) 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
- */
- /* #define DEBUG_SOLARIS */
- #define DEBUG_SOLARIS_KMALLOC
- #ifndef __ASSEMBLY__
- #include <asm/unistd.h>
- /* Use this to get at 32-bit user passed pointers. */
- #define A(__x)
- ({ unsigned long __ret;
- __asm__ ("srl %0, 0, %0"
- : "=r" (__ret)
- : "0" (__x));
- __ret;
- })
- extern unsigned sys_call_table[];
- extern unsigned sys_call_table32[];
- extern unsigned sunos_sys_table[];
- #define SYS(name) ((long)sys_call_table[__NR_##name])
- #define SUNOS(x) ((long)sunos_sys_table[x])
- #ifdef DEBUG_SOLARIS
- #define SOLD(s) printk("%s,%d,%s(): %sn",__FILE__,__LINE__,__FUNCTION__,(s))
- #define SOLDD(s) printk("solaris: "); printk s
- #else
- #define SOLD(s)
- #define SOLDD(s)
- #endif
- #endif /* __ASSEMBLY__ */