The OpenNET Project / Index page

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

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

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

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

    NAME

    getwd - get current working directory pathname
     
    

    SYNOPSIS

    #include <unistd.h>
    
    char *getwd(char *path_name);
    

     

    DESCRIPTION

    The getwd() function determines an absolute pathname of the current working directory of the calling process, and copies that pathname into the array pointed to by the path_name argument.

    If the length of the pathname of the current working directory is greater than (PATH_MAX + 1) including the null byte, getwd() fails and returns a null pointer.  

    RETURN VALUES

    Upon successful completion, a pointer to the string containing the absolute pathname of the current working directory is returned. Otherwise, getwd() returns a null pointer and the contents of the array pointed to by path_name are undefined.  

    ERRORS

    No errors are defined.  

    USAGE

    For portability to implementations conforming to versions of the X/Open Portability Guide prior to SUS, getcwd(3C) is preferred over this function.  

    ATTRIBUTES

    See attributes(5) for descriptions of the following attributes:

    ATTRIBUTE TYPEATTRIBUTE VALUE

    Interface StabilityStandard

     

    SEE ALSO

    getcwd(3C), attributes(5), standards(5)


     

    Index

    NAME
    SYNOPSIS
    DESCRIPTION
    RETURN VALUES
    ERRORS
    USAGE
    ATTRIBUTES
    SEE ALSO


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




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

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