GNOME Bugzilla – Bug 555250
Posix binding!!
Last modified: 2009-05-09 15:46:34 UTC
Please describe the problem: Posix binding Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
Created attachment 120030 [details] posix binding
*** Bug 536692 has been marked as a duplicate of this bug. ***
I guess Dir.open can be a constructor.
Wouldn't it be "better" to make these constants enum's with Error being an ErrorDomain ?
Error handling does currently not work without GError.
My feeling is that we should keep the POSIX bindings on a very low level. Developers that want portable higher-level APIs should use GLib and GLib-based libraries. So my intention is to not use (many) nested namespaces and just provide a straight POSIX binding, which can be used if no higher-level API is available.
2009-01-18 Jürg Billeter <j@bitron.ch> * vapi/Makefile.am: * vapi/posix.vapi: Add stub POSIX binding
Created attachment 127416 [details] [review] more constants, structs and functions
2009-01-30 Jürg Billeter <j@bitron.ch> * vapi/posix.vapi: Add more bindings, patch by Matías De la Puente
Created attachment 127627 [details] [review] posix binding patch
Created attachment 127629 [details] [review] Other patch
Since the last patch i posted is large :) I will post little patches.
Created attachment 129218 [details] [review] Patch adding more function for string.h
Created attachment 132080 [details] [review] add termios binding
WARNING! Before commiting the last patch please add this at line 1050: [CCode (cheader_filename = "termios.h")] public const speed_t B4800; thanks!
Created attachment 132216 [details] [review] add termios binding This fix some errors in the previous patch.
Created attachment 132273 [details] [review] Add sys/select.h binding This should be commited after the termios patch.
Created attachment 132274 [details] [review] Fix type definitions This should be commited after the sys/select.h patch
Created attachment 132275 [details] [review] Fix type definitions This should be commited after the sys/select.h patch
Created attachment 132276 [details] [review] Fix type definitions This should be commited after the sys/select.h patch
Created attachment 132649 [details] [review] posix: fix c_iflag constants Should be commited after comment #20
Created attachment 132766 [details] [review] make public members of timespec and timeval structures Apply this after comment #21
Created attachment 132767 [details] [review] make nullable fd_set parameters of select and pselect functions Apply this patch after comment #22
*** Bug 578225 has been marked as a duplicate of this bug. ***
Bug 578225 has more patches.
commit dcad683f435baa0a944877465889e37ad078aa5d Author: Jukka-Pekka Iivonen <jukka-pekka.iivonen@nokia.com> Date: Sat May 9 17:44:04 2009 +0200 posix: Add poll.h and unistd.h bindings commit 0924bdc9f36ebe7b094fb57ce456861af21191b6 Author: Matias De la Puente <mfpuente.ar@gmail.com> Date: Tue Apr 7 11:40:56 2009 -0300 posix: Add sys/select.h bindings Signed-off-by: Matias De la Puente <mfpuente.ar@gmail.com> commit 652d5ae2af46d7fc7ee07bc77851eca757450968 Author: Matias De la Puente <mfpuente.ar@gmail.com> Date: Mon Apr 6 16:53:43 2009 -0300 posix: Add termios.h bindings Signed-off-by: Matias De la Puente <mfpuente.ar@gmail.com> commit c7d0d4bcfd8ed1093da0adbb453727d9428b8133 Author: Matias De la Puente <mfpuente.ar@gmail.com> Date: Sat May 9 17:17:18 2009 +0200 posix: Add more string.h bindings