01-30-2002
Thanks Neo. I tried in that way. But I could not get what I wanted. I am looking for a material which can explain the concepts detailly. I may found if I spend too much time on research.
I am greateful if any body suggest the sites right away.
Regards
10 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
will anybody tell me how can i access all the fields of process table .if there is any structure and a system call please specify . (1 Reply)
Discussion started by: vish_shan
1 Replies
2. UNIX for Dummies Questions & Answers
I am currently a student at Bergen Community College. My major is Networking Administration. I am having a tough time with INF-254 (UNIX).
I need some help! What is "README bit"
I am having trouble understanding certain concepts:
For Example, what does it mean to set SUID, or SGID?
... (1 Reply)
Discussion started by: nelson ele
1 Replies
3. Programming
I know UNIX user level commands, shell scripts. But i have no idea about kernel level programming and networking. I know the terms semaphore,IPC,socket programming. But i don't know in details what are these. I need to know the following.
1. Unix kernel level programming.
2. Unix Internals.
3.... (4 Replies)
Discussion started by: digdarshan
4 Replies
4. Programming
HI Friends,
I wanted to start this thread inorder to keep all the Unix starters to easily find useful material through this thread...I request you all to provide with the URL address of any gud material you know...
thanks and regards... (2 Replies)
Discussion started by: rahul3894singh
2 Replies
5. Windows & DOS: Issues & Discussions
Hi,
Can anyone provide the UNIX material.
Thanks. (1 Reply)
Discussion started by: biyyanimv
1 Replies
6. UNIX for Dummies Questions & Answers
Any study material for begineers for UNIX please?? (2 Replies)
Discussion started by: niranjany
2 Replies
7. What is on Your Mind?
Hi,
I want to prepare and then appear for Unix admin certification. Please guide me for the study material and Exams that are required to be taken for UNIX certifcation.
Thanks in advance. (11 Replies)
Discussion started by: raman1605
11 Replies
8. UNIX for Dummies Questions & Answers
Hi all ,
I wanted to know how does a 'mail' command works in unix. Does it use an smtp server internally ?
How and where it is configured then ? I am trying to google out the same , but not getting much help.
Any suggestions with be of great help.
- Andy (5 Replies)
Discussion started by: anindyabecs
5 Replies
9. UNIX for Dummies Questions & Answers
Hi ,
Can anyone suggest me any UNIX Study material and UNIX Certification specific for TELECOM-DOMAIN.
Best Regards,
Om Prakash. (14 Replies)
Discussion started by: omprakash1986
14 Replies
10. What is on Your Mind?
Hello,
Long-time Unix hacker here - I've worked on four variants of the kernel prior to the introduction of Linux. In my spare time, I've written Linux (Ubuntu) device drivers, kernel modules, cross-compiled, and built the kernel.
I'd like to do Linux internals/device drivers as a day job,... (1 Reply)
Discussion started by: OriginalVersion
1 Replies
GETPGRP(2) BSD System Calls Manual GETPGRP(2)
NAME
getpgid, getpgrp -- get process group
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <unistd.h>
pid_t
getpgid(pid_t pid);
pid_t
getpgrp(void);
DESCRIPTION
The process group of the current process is returned by getpgrp(). The process group of the process identified by pid is returned by
getpgid(). If pid is zero, getpgid() returns the process group of the current process.
Process groups are used for distribution of signals, and by terminals to arbitrate requests for their input: processes that have the same
process group as the terminal are foreground and may read, while others will block with a signal if they attempt to read.
This call is thus used by programs such as csh(1) to create process groups in implementing job control. The tcgetpgrp() and tcsetpgrp()
calls are used to get/set the process group of the control terminal.
RETURN VALUES
The getpgrp() call always succeeds. Upon successful completion, the getpgid() call returns the process group of the specified process; oth-
erwise, it returns a value of -1 and sets errno to indicate the error.
ERRORS
getpgid() will succeed unless:
[ESRCH] There is no process whose process ID equals pid.
SEE ALSO
getsid(2), setpgid(2), termios(4)
HISTORY
The getpgrp() function call appeared in 4.0BSD. The getpgid() function call is derived from its usage in System V Release 4.
STANDARDS
The getpgrp() function call is expected to conform to ISO/IEC 9945-1:1990 (``POSIX.1'').
COMPATIBILITY
This version of getpgrp() differs from past Berkeley versions by not taking a pid_t pid argument. This incompatibility is required by
ISO/IEC 9945-1:1990 (``POSIX.1'').
From the ISO/IEC 9945-1:1990 (``POSIX.1'') Rationale:
4.3BSD provides a getpgrp() function that returns the process group ID for a specified process. Although this function is used to support
job control, all known job-control shells always specify the calling process with this function. Thus, the simpler AT&T System V UNIX
getpgrp() suffices, and the added complexity of the 4.3BSD getpgrp() has been omitted from POSIX.1. The old functionality is available from
the getpgid() function.
BSD
June 4, 1993 BSD