Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760490AbZCZWc2 (ORCPT ); Thu, 26 Mar 2009 18:32:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753427AbZCZWcT (ORCPT ); Thu, 26 Mar 2009 18:32:19 -0400 Received: from col0-omc4-s2.col0.hotmail.com ([65.55.34.204]:22050 "EHLO col0-omc4-s2.col0.hotmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752414AbZCZWcT convert rfc822-to-8bit (ORCPT ); Thu, 26 Mar 2009 18:32:19 -0400 Message-ID: X-Originating-IP: [76.197.186.32] From: Adam Turk To: CC: Subject: RE: recommended programming practices for writing (was Linux 2.6.29) Date: Thu, 26 Mar 2009 18:32:17 -0400 Importance: Normal In-Reply-To: References: Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginalArrivalTime: 26 Mar 2009 22:32:17.0738 (UTC) FILETIME=[B8368AA0:01C9AE62] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1663 Lines: 33 >> On Thu, Mar 26, 2009 at 8:03 PM, Adam Turk wrote: >> >> I have been reading the Linux 2.6.29 thread with interest. I have written several (10 or so) C programs that write large amounts of data (between 1 and 2 GB file sizes are common). A snippet of code looks like this: >> >> I learned C about 15 years ago and there was no mention of a fsync. My C book doesn't mention fsync either. Granted I have written only 25-30 applications in the last 15 years or so so I am not an expert C programmer. >> > > Your question is really off-topic for the Linux Kernel mailing list, > but let me point you somewhere else: > > There is (1) the C library and (2) the functions provided by your > operating system. Linux follows to some extend the POSIX functions for > (2). > > A good read is the book "Linux Systems Programming" if you want to go > beyond what the C library offers, for starters. > I don't think it is really off topic as in the original topic thread there were comments about lazy programmers who didn't write their code properly. Noone who made those comments gave examples of bad and good code so I decided to ask. Thank you for the recommendation. I will check the local bookstores. Thanks, Adam _________________________________________________________________ Windows Live? SkyDrive: Get 25 GB of free online storage. http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_skydrive_032009-- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/