The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Интерактивная система просмотра системных руководств (man-ов)

 ТемаНаборКатегория 
 
 [Cписок руководств | Печать]

tcsetpgrp (3)
  • tcsetpgrp (3) ( Solaris man: Библиотечные вызовы )
  • >> tcsetpgrp (3) ( FreeBSD man: Библиотечные вызовы )
  • tcsetpgrp (3) ( Русские man: Библиотечные вызовы )
  • tcsetpgrp (3) ( Linux man: Библиотечные вызовы )
  • tcsetpgrp (3) ( POSIX man: Библиотечные вызовы )

  • BSD mandoc
     

    NAME

    
    
    tcsetpgrp
    
     - set foreground process group ID
    
     
    

    LIBRARY

    Lb libc
    
     
    

    SYNOPSIS

       #include <sys/types.h>
       #include <unistd.h>
    int tcsetpgrp (int fd pid_t pgrp_id);
     

    DESCRIPTION

    If the process has a controlling terminal, the tcsetpgrp ();
    function sets the foreground process group ID associated with the terminal device to Fa pgrp_id . The terminal device associated with Fa fd must be the controlling terminal of the calling process and the controlling terminal must be currently associated with the session of the calling process. The value of Fa pgrp_id must be the same as the process group ID of a process in the same session as the calling process.  

    RETURN VALUES

    Rv -std tcsetpgrp  

    ERRORS

    The tcsetpgrp ();
    function will fail if:

    Bq Er EBADF
    The Fa fd argument is not a valid file descriptor.
    Bq Er EINVAL
    An invalid value of Fa pgrp_id was specified.
    Bq Er ENOTTY
    The calling process does not have a controlling terminal, or the file represented by Fa fd is not the controlling terminal, or the controlling terminal is no longer associated with the session of the calling process.
    Bq Er EPERM
    The Fa pgrp_id argument does not match the process group ID of a process in the same session as the calling process.

     

    SEE ALSO

    setpgid(2), setsid(2), tcgetpgrp(3)  

    STANDARDS

    The tcsetpgrp ();
    function is expected to be compliant with the St -p1003.1-88 specification.


     

    Index

    NAME
    LIBRARY
    SYNOPSIS
    DESCRIPTION
    RETURN VALUES
    ERRORS
    SEE ALSO
    STANDARDS


    Поиск по тексту MAN-ов: 




    Партнёры:
    PostgresPro
    Inferno Solutions
    Hosting by Hoster.ru
    Хостинг:

    Закладки на сайте
    Проследить за страницей
    Created 1996-2024 by Maxim Chirkov
    Добавить, Поддержать, Вебмастеру