Path: csiph.com!aioe.org!.POSTED.nyPK7k8oeDafdNpooDsxZQ.user.gioia.aioe.org!not-for-mail From: Mateusz Viste Newsgroups: pl.comp.os.linux.programowanie Subject: Re: EINTR - sztuczne generowanie Date: Wed, 9 Sep 2020 13:27:23 +0200 Organization: . . . Lines: 31 Message-ID: <20200909132723.63eb392f@mateusz> References: <20200909101830.2170cf7b@mateusz> <1eed8657-10ca-4684-a383-fc7ff6908ec8@trust.no1> NNTP-Posting-Host: nyPK7k8oeDafdNpooDsxZQ.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Complaints-To: abuse@aioe.org X-Newsreader: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-suse-linux-gnu) X-Notice: Filtered by postfilter v. 0.9.2 Xref: csiph.com pl.comp.os.linux.programowanie:2236 2020-09-09 o 10:03 +0000, Queequeg napisa=C5=82: > Mateusz Viste wrote: >=20 > > ssize_t monkey_write(int fd, const void *buf, size_t cnt) { > > static int crazy_monkey; =20 >=20 > Hmm, jeste=C5=9B pewien, =C5=BCe statyczne, ale lokalne zmienne, s=C4=85 > inicjalizowane na 0? Tak. > Zawsze my=C5=9Bla=C5=82em, =C5=BCe dotyczy to tylko globalnych zmiennych > statycznych, ale teraz czytam i w sumie ju=C5=BC nie wiem. Mo=C5=BCe w tych nowoczesnych wynalazkach z plusami co=C5=9B si=C4=99 zmien= i=C5=82o, nie wiem. Ja =C5=BCyj=C4=99 w 1990 i dobrze mi tu. ISO/IEC 9899:1990(E), rozdzia=C5=82 6.5.7: "If an object that has static storage duration is not initialized explicitly, it is initialized implicitly as if every member that has arithmetic type were assigned 0 and every member that has pointer type were assigned a null pointer constant." =C5=BBadnych udziwnie=C5=84 typu "tak, ale tylko je=C5=9Bli..." nie widz=C4= =99. Mateusz