xref: /illumos-gate/usr/src/lib/libc/common/sys/fdsync.S (revision 4763305e3243687c189d755d737d52205b2614ed)
15d9d9091SRichard Lowe/*
25d9d9091SRichard Lowe * CDDL HEADER START
35d9d9091SRichard Lowe *
45d9d9091SRichard Lowe * The contents of this file are subject to the terms of the
55d9d9091SRichard Lowe * Common Development and Distribution License (the "License").
65d9d9091SRichard Lowe * You may not use this file except in compliance with the License.
75d9d9091SRichard Lowe *
85d9d9091SRichard Lowe * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
95d9d9091SRichard Lowe * or http://www.opensolaris.org/os/licensing.
105d9d9091SRichard Lowe * See the License for the specific language governing permissions
115d9d9091SRichard Lowe * and limitations under the License.
125d9d9091SRichard Lowe *
135d9d9091SRichard Lowe * When distributing Covered Code, include this CDDL HEADER in each
145d9d9091SRichard Lowe * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
155d9d9091SRichard Lowe * If applicable, add the following below this CDDL HEADER, with the
165d9d9091SRichard Lowe * fields enclosed by brackets "[]" replaced with your own identifying
175d9d9091SRichard Lowe * information: Portions Copyright [yyyy] [name of copyright owner]
185d9d9091SRichard Lowe *
195d9d9091SRichard Lowe * CDDL HEADER END
205d9d9091SRichard Lowe */
215d9d9091SRichard Lowe
225d9d9091SRichard Lowe/*	Copyright (c) 1988 AT&T	*/
235d9d9091SRichard Lowe/*	  All Rights Reserved	*/
245d9d9091SRichard Lowe
255d9d9091SRichard Lowe/*
265d9d9091SRichard Lowe * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
275d9d9091SRichard Lowe * Use is subject to license terms.
285d9d9091SRichard Lowe */
295d9d9091SRichard Lowe
305d9d9091SRichard Lowe	.file	"fdsync.s"
315d9d9091SRichard Lowe
32*4763305eSRobert Mustacchi/*
33*4763305eSRobert Mustacchi * Underlying function for the functions fsync(3C), fdatasync(3C), and
34*4763305eSRobert Mustacchi * syncfs(3C).
35*4763305eSRobert Mustacchi *
36*4763305eSRobert Mustacchi * int __fdsync(int filedes, uint32_t arg)
37*4763305eSRobert Mustacchi */
385d9d9091SRichard Lowe
395d9d9091SRichard Lowe#include "SYS.h"
405d9d9091SRichard Lowe
415d9d9091SRichard Lowe	SYSCALL2_RVAL1(__fdsync,fdsync)
425d9d9091SRichard Lowe	RETC
435d9d9091SRichard Lowe	SET_SIZE(__fdsync)
44