Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 11666
  • Last Modified:

pollsys system call, solaris, C language;

Dear Readers,
please help me if you know what the pollsys system call does;
I am trying to understand every detail  of what the following command produces:

                       truss -v all -w all -r 3 -f -a -e  ping 192.168.1.10 2>&1 | cat -n    

excerpt of output:
the only point I am missing is ``pollsys''
   ...   ...   ...

   270  645:    so_socket(PF_INET, SOCK_RAW, IPPROTO_ICMP, "", SOV_XPG4_2) = 3
   ...   ...   ...
    276  645:            AF_INET  to = 192.168.1.10  port = 0
   277  645:    sigaction(SIGALRM, 0x08047D30, 0x08047DB0)      = 0
   278  645:        new: hand = 0xFEE461A8 mask = 0xFFBFFEFF 0x0000FFFF 0 0 flags = 0x0000
   ... ... ...
   280  645:    schedctl()                                      = 0xFED8D000
   281  645:    lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
   282  645:    alarm(1)                                        = 0
 ***  283  645:    pollsys(0x08047C70, 1, 0x00000000, 0x00000000)  = 1   ***
   284  645:            fd=3  ev=POLLRDNORM rev=POLLRDNORM
   285  645:    recvmsg(3, 0x08047DA4, 32768)                   = 84
   ...   ...   ...
   294  192.168.1.10 is alive
   295  645:    write(1, 0xFEE800EC, 22)                        = 22
   296  645:       1 9 2 . 1 6 8 . 1 . 1 0   i s   a l i v e\n
   297  645:    alarm(0)                                        = 0
   298  645:    _exit(0)

   If you could give me a link to something resembling a manual page would be great ! Be assured that I did my best to
   search for it before asking for your help;
   I think 500 points could be fair for such an obscure item (at least to me) in Unix kernel
  Thanks
 
0
andrew_314
Asked:
andrew_314
1 Solution
 
NukfrorCommented:
According to this presentation:

http://www.filibeto.org/~aduritz/truetrue/solaris10/DTrace_in_a_Day.pdf

poll was used in Solaris 9 and below.  pollsys is the "poll" call of Solaris 10.
0
 
andrew_314Author Commented:

Thanks, the link is also very interesting !
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now