in reply to system function

What's the return value of system? And if the return value of system is -1, what's the value of $! after calling system?