* clear out some warnings by gcc 9.3.1.
[alpine.git] / pico / osdep / fsync.c
blob14a15d2957b0d34d589bed043c221ea9658d79fc
1 /*
2 * Program: File sync emulator
4 * ========================================================================
5 * Copyright 2006 University of Washington
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * ========================================================================
16 #include <system.h>
19 #ifndef HAVE_FSYNC
20 /* Emulator for BSD fsync() call
21 * Accepts: file name
22 * Returns: 0 if successful, -1 if failure
24 int
25 our_fsync(int fd)
27 sync();
28 return 0;
30 #endif /* !HAVE_FSYNC */