From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <44AF7F9F.3070604@rambler.ru> Date: Sat, 08 Jul 2006 12:49:19 +0300 From: Olvin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050626) X-Accept-Language: en-us, en MIME-Version: 1.0 To: hihin@rambler.ru, ALT Linux Community References: <44AE8A7F.9090107@rambler.ru> <200607072147.06239@ruslandh> In-Reply-To: <200607072147.06239@ruslandh> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 8bit X-Auth-User: olvin, whoson: (null) Subject: Re: [Comm] =?koi8-r?b?89TSwc7O2cogc2VnbWVudGF0aW9uIGZhdWx0IC0g0M/N?= =?koi8-r?b?z8fJ1MUg0sHaz8LSwdTY09E=?= X-BeenThere: community@lists.altlinux.org X-Mailman-Version: 2.1.7 Precedence: list Reply-To: ALT Linux Community List-Id: ALT Linux Community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jul 2006 09:49:22 -0000 Archived-At: List-Archive: List-Post: Хихин Руслан wrote: > > #include > > > > int main (int argc, char *argv[]) { > > > > int fd,tmp,a; > > > > struct stat *buf; > > > > void *fb; > > > > fd = open("/tmp/tst",O_RDONLY); > > > > tmp = fstat(fd,buf); > > > > } > > > Под структуру stat вы не отвели место (buf указывает неизвестно куда) - > естественно после выполнения функции fstat задача разваливается - пишет > неизвестно куда. :) Да, вот что значит давно к Си не притрагивался.