Path: csiph.com!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Jeff Higgins Newsgroups: comp.lang.java.programmer Subject: Re: compile directly into a .zip/.jar file? Date: Wed, 16 Apr 2014 10:58:46 -0400 Organization: A noiseless patient Spider Lines: 22 Message-ID: References: <1l96oa6aew63h$.1wt64t9w3vv91.dlg@40tude.net> <534ad197$0$301$14726298@news.sunsite.dk> <534c8e5e$0$297$14726298@news.sunsite.dk> <534dc817$0$300$14726298@news.sunsite.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Wed, 16 Apr 2014 15:02:27 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="6b9e92482af47766954d85fb77d372f5"; logging-data="24528"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX182QLz/hu2+GjmoNTOk4+/SWbL3/jZI+po=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10 In-Reply-To: Cancel-Lock: sha1:3S9NWRz59BujmnBMVjxXrZiAAzY= Xref: csiph.com comp.lang.java.programmer:28104 On 04/16/2014 08:29 AM, Martin Gregorie wrote: > On Tue, 15 Apr 2014 20:00:22 -0400, Arne Vajhøj wrote: > >> AFAIK then fflush only move data from user space to system space. >> >> To get data on the plates you need fsync. >> > The manpages for fflush()m and fsync() could be a little clearer, but I > read them as saying that both functions force a write to disk. The only > difference is the type of file reference argument they take: fflush() > takes a FILE* stream reference while fsync() takes an int file > description. > > That is pretty much the same as the difference between read() and fread() > or write() and fwrite(). > > as an adjunct to the manpages "The Linux Programming Interface" 13.3 Controlling Kernel Buffering of File I/O