PDA

View Full Version : [SOLVED] accept man page help



spyder0080
February 23rd, 2008, 07:51 PM
hello all,

I'm currently trying to do socket programming for one of my classes and I wanted to look up the man page for accept(), but the result I got was not the one I wanted; the accept() I got was "accept jobs sent to a destination".
I installed the posix man pages via synaptic, so I should be able to access it. I tried "man accept(2)" but I got an error saying "bash: syntax error near unexpected token `('"

How am I supposed to access this man page (or any other man pages for functions that have multiple uses, like open()?)

thanks!

jeffus_il
February 23rd, 2008, 07:55 PM
Sometimes using google is easier than installing the man page:
http://linux.die.net/man/2/accept

Also I think your command should have been
man 2 accept

spyder0080
February 23rd, 2008, 09:06 PM
I checked to see if I forgot to install any man pages, and I found out that I didn't install the manpages-dev package.

After installing that, I tried the command you suggested and it worked! Thanks!