From patchwork Sat Oct 31 18:34:50 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 538681 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id ED55F14138C for ; Sun, 1 Nov 2015 05:36:05 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=b+MrJzmw; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 46E2E31F12; Sat, 31 Oct 2015 18:36:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id b+CvNSS4R6jU; Sat, 31 Oct 2015 18:36:00 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 661792EAC4; Sat, 31 Oct 2015 18:35:54 +0000 (UTC) X-Original-To: uclibc@lists.busybox.net Delivered-To: uclibc@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 436991C11FD for ; Sat, 31 Oct 2015 18:35:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 3F63E88467 for ; Sat, 31 Oct 2015 18:35:52 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wDeAyaEDGM9H for ; Sat, 31 Oct 2015 18:35:51 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qk0-f170.google.com (mail-qk0-f170.google.com [209.85.220.170]) by hemlock.osuosl.org (Postfix) with ESMTPS id 881A788449 for ; Sat, 31 Oct 2015 18:35:51 +0000 (UTC) Received: by qkcl124 with SMTP id l124so40115497qkc.3 for ; Sat, 31 Oct 2015 11:35:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=6W8PZZwGm/zBsrU3durh4amhHX15tifLuFV8KXCky40=; b=b+MrJzmw3UtwvzJhZtvXhf/hRZYwtFEgWdAN1iYt9juGBxG98osXtqUiyM6hHFX64P 6R+4yVi47K0PGrNc4KCj9KVbxBL/M6kahGc0vNRbta3W12oyIYRE7roFGtFi6x+HZZ4V yahJep1cH7t6VNRpbnDrOG+TR9YLGPL2rLw0wia2jWKsyk6NV8UQjtQqgomq7RMIuh9+ h7H6QtEBZVcgdRnrMgC9RKsv6lF4QVrsOgaxaT2R4fZuLfXv6F7u1GeXouW5Yf+HTO6a U26pOz+7DL1ATQU+aJSAmH7N+ewfQcjl+BUKewYAn41zAKihXaxQXDhZUNgj0CHEmtQW JqnQ== X-Received: by 10.55.73.216 with SMTP id w207mr18879643qka.90.1446316550889; Sat, 31 Oct 2015 11:35:50 -0700 (PDT) Received: from khem-dvm-001.sys.comcast.net (a-96-119-177-31.sys.comcast.net. [96.119.177.31]) by smtp.gmail.com with ESMTPSA id f7sm4832730qka.41.2015.10.31.11.35.50 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 31 Oct 2015 11:35:50 -0700 (PDT) From: Khem Raj To: uclibc@uclibc.org Subject: [PATCH 9/9] wire in syncfs Date: Sat, 31 Oct 2015 18:34:50 +0000 Message-Id: <1446316540-10027-4-git-send-email-raj.khem@gmail.com> X-Mailer: git-send-email 2.6.2 In-Reply-To: <1446316540-10027-1-git-send-email-raj.khem@gmail.com> References: <1446316540-10027-1-git-send-email-raj.khem@gmail.com> X-BeenThere: uclibc@uclibc.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Discussion and development of uClibc \(the embedded C library\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: uclibc-bounces@uclibc.org Sender: "uClibc" Signed-off-by: Khem Raj --- include/unistd.h | 2 +- libc/sysdeps/linux/common/syncfs.c | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 libc/sysdeps/linux/common/syncfs.c diff --git a/include/unistd.h b/include/unistd.h index 3793d2d..d01bb08 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -1073,7 +1073,7 @@ extern char *getpass (const char *__prompt) __nonnull ((1)); extern int fsync (int __fd); #endif /* Use BSD || X/Open || Unix98. */ -#if 0 /*def __USE_GNU */ +#ifdef __USE_GNU /* Make all changes done to all files on the file system associated * with FD actually appear on disk. */ extern int syncfs (int __fd) __THROW; diff --git a/libc/sysdeps/linux/common/syncfs.c b/libc/sysdeps/linux/common/syncfs.c new file mode 100644 index 0000000..d2eed05 --- /dev/null +++ b/libc/sysdeps/linux/common/syncfs.c @@ -0,0 +1,13 @@ +/* vi: set sw=4 ts=4: */ +/* + * fsync() for uClibc + * + * Copyright (C) 2000-2006 Erik Andersen + * + * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. + */ + +#include +#include + +_syscall1(int, syncfs, int, fd)