pause(2) vs. sigpause(3)

John Cowan cowan at marob.masa.com
Thu Nov 1 03:08:37 AEST 1990


In article <717 at inews.intel.com> bhoughto at cmdnfs.intel.com (Blair P. Houghton) writes:
>Is there a difference between `pause()' and `sigpause(0)'?
>
>I can't see one.
>
>Why obsoleted a perfectly simple system call with a
>library function?

As others have pointed out, pause(3) is the library routine and sigpause(2)
is the system call.  Pause used to be pause(2) on V7, but now is a
compatibility library routine calling sigpause(2).

Similar things have happened with exit(3), formerly exit(2) but now calling
_exit(2); alarm(3); signal(3); and so on.
-- 
cowan at marob.masa.com			(aka ...!hombre!marob!cowan)
			e'osai ko sarji la lojban



More information about the Comp.unix.programmer mailing list