syscall man page on SunOS

Man page or keyword search:  
man Server   20652 pages
apropos Keyword Search (all sections)
Output format
SunOS logo
[printable version]

syscall(3UCB)	   SunOS/BSD Compatibility Library Functions	 syscall(3UCB)

NAME
       syscall - indirect system call

SYNOPSIS
       /usr/ucb/cc [ flag ... ] file ...
       #include <sys/syscall.h>

       int syscall(number, arg, ...)
       int number;

DESCRIPTION
       syscall()  performs  the function whose assembly language interface has
       the specified number, and arguments arg	....  Symbolic	constants  for
       functions can be found in the header <sys/syscall.h>.

RETURN VALUES
       On error syscall() returns −1 and sets the external variable errno (see
       intro(2)).

FILES
       <sys/syscall.h>

SEE ALSO
       cc(1B), intro(2), pipe(2)

NOTES
       Use of these interfaces should be restricted to only applications writ‐
       ten  on	BSD platforms.	Use of these interfaces with any of the system
       libraries or in multi-thread applications is unsupported.

WARNINGS
       There is no way to use syscall() to  call  functions  such  as  pipe(2)
       which return values that do not fit into one hardware register.

       Since  many  system  calls  are	implemented as library wrappers around
       traps to the kernel, these calls may  not  behave  as  documented  when
       called  from  syscall(),	 which bypasses these wrappers. For these rea‐
       sons, using syscall() is not recommended.

SunOS 5.10			  30 Oct 2007			 syscall(3UCB)
[top]

List of man pages available for SunOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net