After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 590550 - POSIX bindings lacks SYNC
POSIX bindings lacks SYNC
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Bindings
0.7.x
Other Linux
: Normal minor
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2009-08-02 20:02 UTC by raster
Modified: 2009-08-16 20:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
posix: add sync, fsync, and fdatasync (905 bytes, patch)
2009-08-02 22:28 UTC, Evan Nemerson
none Details | Review

Description raster 2009-08-02 20:02:08 UTC
I needed to use the SYNC() call (man 2 sync) in a program, to ensure that some data has been written in the disk before validating it in a register. I tried to use Posix.sync(), but found that the bindings lacks them, so I had to use Process.spawn_command_line_sync("sync") to call the command line and do a sync.
Comment 1 Evan Nemerson 2009-08-02 22:28:07 UTC
Created attachment 139761 [details] [review]
posix: add sync, fsync, and fdatasync
Comment 2 Jürg Billeter 2009-08-16 20:26:13 UTC
commit 8579b7b19462ffedc7bacd661e94189ebed6716c
Author: Evan Nemerson <evan@polussystems.com>
Date:   Sun Aug 2 14:40:16 2009 -0700

    posix: Add sync, fsync, and fdatasync bindings
    
    Fixes bug 590550.