Patent ID: 7251816
Filing Date: 2007-07-31
Classification: G06F

Abstract:
1. A method of replacing a system call with an alternative mechanism in a software application comprising: assigning the name of a library as a value for an environment variable in said software application, said library comprising software code for emulating said system call; launching said software application, said launching causing invocation of a loader associated with said software application; preloading said library into said software application, said preloading performed by said loader; redirecting said software application to invoke said alternative mechanism when said software application requests said system call, wherein invocation of said alternative mechanism implements said library as said system call; scanning file descriptors registered with said alternative mechanism and events of interest registered with said alternative mechanism upon said software application making said system call, wherein said file descriptors and said events of interest enable avoiding examination of sockets that are not of interest and wherein said alternative mechanism is provided by an operating system that said software application is operable on; and registering a plurality of file descriptors and events of interest with said alternative mechanism when said software application makes said system call with a list of file descriptors identifying sockets for which said software application has interest in events, wherein each of said plurality of file descriptors is related to an event of interest pertaining to an associated socket of interest.