Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: "C" wapros


  • Subject: Re: lug-bg: "C" wapros
  • From: valery@xxxxxxxxxxxxx (Valery Dachev)
  • Date: Wed, 17 May 2000 23:32:43 +0300 (EEST)



On Tue, 16 May 2000, Valery Dachev wrote:

> On Tue, 16 May 2000, Georgi Chorbadzhiyski wrote:
> 
> > ...
> > int run_program(prog, args, must_exist, done, arg)
> >	...
> >         execvp(prog, args);
> >	...
> >     run_program("/usr/local/my_script", exec_buf, 0, NULL, NULL);
> >	...
> >     can't execute: /usr/local/my_script error: 14
> >	...
> wiv w /usr/include/asm/errno.h -> EFAULT /* Bad address */
> ... 
> Symnqwa me posledniq parametyr ... ne bi trqbwalo da e NULL ... probwaj
> kato podadesh dwe kawichki samo (""). 

IZWINQWAM SE. Imah predwid wtoriq parametyr "args", a ne
chetwyrtiq "arg". Naprawo zabrawi kakwo kazah za nego.

Imam obache chuwstwoto, che exec_buf ne e deklariran kato char **exec_buf 
ili char *execbuf[], ami kato naprimer char *exec_buf. Stawa boza s 
pecheni gybi. Bi trqbwalo kato go make-wash da ti pishti s
   warning: passing arg 2 of `run_program' from incompatible pointer type
ili neshto ot toq rod. Pri men pone w toq sluchaj gyrmi s EFAULT.
                                                                   Valery
.........................................................................
: User ID      : Valery Dachev <v.dachev@xxxxxxxx>                      :
: Homepage     : http://web.dir.bg/valery/                              :
: PGP Key ID   : 1024D/1C4C9712 (DSA)                                   :
: Fingerprint  : C451 0CC8 8EB4 655C D7C8  9D7F DCE9 C14E 1C4C 9712     :
:..............:........................................................:
: Organization : Bulgarian Linux Society : WWW : http://linux.home.bg/  :
:..............:.........................:.....:........................:

==================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
Otpiswaneto RABOTI !!! : Majordomo@xxxxxxxxxxxxxxxxxx UNSUBSCRIBE LUG-BG
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora



 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.