ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Peter V. Saveliev" <peet@infosite.ru>
To: mandrake-russian@altlinux.ru
Subject: Re: [mdk-re] Re: chdir
Date: Wed Mar 20 14:17:11 2002
Message-ID: <20020320141657.55d287b4.peet@infosite.ru> (raw)
In-Reply-To: <555448013.20020320124423@mail.ru>

On Wed, 20 Mar 2002 12:44:23 +0300
roman_tutov@mail.ru wrote:

<skip>
> CHDIR(2)          Руководство программиста Linux         CHDIR(2)
> 
> НАЗВАНИЕ
>        chdir, fchdir - изменить рабочий каталог
> 
> КРАТКАЯ СВОДКА
>        #include <unistd.h>
> 
>        int chdir(const char *path);
>        int fchdir(int fd);
> 
> ОПИСАНИЕ
>        chdir устанавливает рабочий каталог в значение path.
> 
>        fchdir  идентично  chdir,  только  каталог  задан  в  виде
>        открытого файлового дескриптора.
> 
<skip>

8<-----------------------------------------
#include <unistd.h>
#include <stdlib.h>

int main (int n_arg, char ** c_arg) {

if (n_arg <= 1) exit(1);
if (!chdir(c_arg[1])) exit(1);

exit(0);
};
8<-----------------------------------------

так, что ли? давно С не занимался... Но все-таки, в шелле проще
исползовать cd ;)))

-- 
С уважением, Петр.
E-mail: peet@peet.spb.ru
JID:    peet@peet.spb.ru



  parent reply	other threads:[~2002-03-20 14:17 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-20 11:26 [mdk-re] chdir roman_tutov
2002-03-20 11:33 ` [mdk-re] chdir Mikhail Zabaluev
2002-03-20 12:44   ` roman_tutov
2002-03-20 14:10     ` Mikhail Zabaluev
2002-03-20 14:17     ` Peter V. Saveliev [this message]
2002-03-20 14:19     ` Artem K. Jouravsky
2002-03-20 14:31     ` Leonid Sysoletin
2002-03-20 14:34     ` Alexander Bokovoy
2002-03-20 16:50     ` Antonio
2002-03-20 12:13 ` [mdk-re] chdir Alexey Morozov
2002-03-20 14:50   ` Re[2]: " roman_tutov
2002-03-20 15:49     ` AVL
2002-03-20 16:35       ` Re[4]: " roman_tutov
2002-03-20 17:13         ` AVL
2002-03-20 18:24           ` Re[6]: " roman_tutov
2002-03-20 18:47             ` Re[7]: " roman_tutov
2002-03-20 18:53               ` Sergey Vlasov
2002-03-21 12:14                 ` roman
2002-03-20 18:57               ` Re[8]: " Artem Pastuchov
2002-03-20 17:15         ` Re[5]: " Artem Pastuchov
2002-03-20 15:58     ` Re[3]: " Artem Pastuchov
2002-03-20 12:44 ` Yura Zotov
2002-03-20 13:49 ` Grigory Batalov
2002-03-20 14:12   ` [mdk-re] chdir Mikhail Zabaluev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020320141657.55d287b4.peet@infosite.ru \
    --to=peet@infosite.ru \
    --cc=mandrake-russian@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git