Wrapper function: Difference between revisions

Content deleted Content added
Library functions and system calls: Incorrect usage of "system call"
SmackBot (talk | contribs)
m Date maintenance tags and general fixes: build 420:
Line 2:
 
==Adapting class/object interfaces==
{{mainMain|Adapter pattern}}
Wrapper functions can be used to adapt an existing class or object to have a different interface. This is especially useful when using existing library code.
 
Line 39:
 
==Library functions and system calls==
Many library functions such as in the [[C Standard Library]] act as an interface (abstraction) for [[system call]]s. For example, "fork" and "execve" are GLIBC functions that call the "fork" and "execve" system calls, respectively. This often leads to incorrect use of the terms "system call" and "syscall" to refer to the library calls that are wrappers for the actual system calls with the same name.{{citation-Citation needed|date=June 2010}}
 
==See also==
Line 45:
 
==References==
{{reflistReflist}}
 
[[Category:Control flow]]