GETPID.2
Upload User: jnzhq888
Upload Date: 2007-01-18
Package Size: 51694k
Code Size: 1k
Category:

OS Develop

Development Platform:

WINDOWS

  1. ." Copyright (c) 1980 Regents of the University of California.
  2. ." All rights reserved.  The Berkeley software License Agreement
  3. ." specifies the terms and conditions for redistribution.
  4. ."
  5. ." @(#)getpid.2 6.3 (Berkeley) 5/13/86
  6. ."
  7. .TH GETPID 2 "May 13, 1986"
  8. .UC 4
  9. .SH NAME
  10. getpid, getppid - get process identification
  11. .SH SYNOPSIS
  12. .ft B
  13. .nf
  14. #include <sys/types.h>
  15. #include <unistd.h>
  16. pid_t getpid(void)
  17. pid_t getppid(void)
  18. .fi
  19. .ft R
  20. .SH DESCRIPTION
  21. .B Getpid
  22. returns
  23. the process ID of
  24. the current process.
  25. Most often it is used
  26. to generate uniquely-named temporary files.
  27. .PP
  28. .B Getppid
  29. returns the process ID of the parent
  30. of the current process. 
  31. .SH "SEE ALSO
  32. .BR fork (2).