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 555250 - Posix binding!!
Posix binding!!
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Bindings
0.5.x
Other All
: Normal enhancement
: ---
Assigned To: Jürg Billeter
Vala maintainers
: 536692 578225 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-10-06 15:39 UTC by Matias
Modified: 2009-05-09 15:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
posix binding (19.71 KB, text/plain)
2008-10-06 15:41 UTC, Matias
  Details
more constants, structs and functions (25.55 KB, patch)
2009-01-28 19:12 UTC, Matias
reviewed Details | Review
posix binding patch (21.65 KB, patch)
2009-01-31 15:09 UTC, Matias
none Details | Review
Other patch (20.97 KB, patch)
2009-01-31 15:17 UTC, Matias
none Details | Review
Patch adding more function for string.h (2.76 KB, patch)
2009-02-21 18:48 UTC, Matias
committed Details | Review
add termios binding (9.69 KB, patch)
2009-04-04 15:12 UTC, Matias
none Details | Review
add termios binding (9.88 KB, patch)
2009-04-06 20:04 UTC, Matias
committed Details | Review
Add sys/select.h binding (1.73 KB, patch)
2009-04-07 14:59 UTC, Matias
committed Details | Review
Fix type definitions (6.01 KB, patch)
2009-04-07 15:00 UTC, Matias
committed Details | Review
Fix type definitions (6.01 KB, patch)
2009-04-07 15:01 UTC, Matias
none Details | Review
Fix type definitions (6.01 KB, patch)
2009-04-07 15:02 UTC, Matias
none Details | Review
posix: fix c_iflag constants (835 bytes, patch)
2009-04-14 17:57 UTC, Matias
committed Details | Review
make public members of timespec and timeval structures (1.06 KB, patch)
2009-04-16 15:04 UTC, Matias
committed Details | Review
make nullable fd_set parameters of select and pselect functions (1.34 KB, patch)
2009-04-16 15:05 UTC, Matias
committed Details | Review

Description Matias 2008-10-06 15:39:52 UTC
Please describe the problem:
Posix binding

Steps to reproduce:
1. 
2. 
3. 


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Matias 2008-10-06 15:41:16 UTC
Created attachment 120030 [details]
posix binding
Comment 2 Jürg Billeter 2008-10-09 21:29:15 UTC
*** Bug 536692 has been marked as a duplicate of this bug. ***
Comment 3 Maciej (Matthew) Piechotka 2008-10-09 21:42:28 UTC
I guess Dir.open can be a constructor.
Comment 4 Andreas Brauchli 2009-01-02 13:43:29 UTC
Wouldn't it be "better" to make these constants enum's with Error being an ErrorDomain ?
Comment 5 Jürg Billeter 2009-01-07 22:22:46 UTC
Error handling does currently not work without GError.
Comment 6 Jürg Billeter 2009-01-18 11:13:31 UTC
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.
Comment 7 Jürg Billeter 2009-01-18 11:38:08 UTC
2009-01-18  Jürg Billeter  <j@bitron.ch>

	* vapi/Makefile.am:
	* vapi/posix.vapi:

	Add stub POSIX binding
Comment 8 Matias 2009-01-28 19:12:31 UTC
Created attachment 127416 [details] [review]
more constants, structs and functions
Comment 9 Jürg Billeter 2009-01-30 15:58:00 UTC
2009-01-30  Jürg Billeter  <j@bitron.ch>

	* vapi/posix.vapi:

	Add more bindings, patch by Matías De la Puente
Comment 10 Matias 2009-01-31 15:09:39 UTC
Created attachment 127627 [details] [review]
posix binding patch
Comment 11 Matias 2009-01-31 15:17:42 UTC
Created attachment 127629 [details] [review]
Other patch
Comment 12 Matias 2009-02-21 18:46:57 UTC
Since the last patch i posted is large :) I will post little patches.
Comment 13 Matias 2009-02-21 18:48:11 UTC
Created attachment 129218 [details] [review]
Patch adding more function for string.h
Comment 14 Matias 2009-04-04 15:12:03 UTC
Created attachment 132080 [details] [review]
add termios binding
Comment 15 Matias 2009-04-06 18:25:46 UTC
WARNING!

Before commiting the last patch please add this at line 1050:

	[CCode (cheader_filename = "termios.h")]
	public const speed_t B4800;

thanks!
Comment 16 Matias 2009-04-06 20:04:03 UTC
Created attachment 132216 [details] [review]
add termios binding

This fix some errors in the previous patch.
Comment 17 Matias 2009-04-07 14:59:48 UTC
Created attachment 132273 [details] [review]
Add sys/select.h binding

This should be commited after the termios patch.
Comment 18 Matias 2009-04-07 15:00:50 UTC
Created attachment 132274 [details] [review]
Fix type definitions

This should be commited after the sys/select.h patch
Comment 19 Matias 2009-04-07 15:01:37 UTC
Created attachment 132275 [details] [review]
Fix type definitions

This should be commited after the sys/select.h patch
Comment 20 Matias 2009-04-07 15:02:11 UTC
Created attachment 132276 [details] [review]
Fix type definitions

This should be commited after the sys/select.h patch
Comment 21 Matias 2009-04-14 17:57:36 UTC
Created attachment 132649 [details] [review]
posix: fix c_iflag constants

Should be commited after comment #20
Comment 22 Matias 2009-04-16 15:04:11 UTC
Created attachment 132766 [details] [review]
make public members of timespec and timeval structures

Apply this after comment #21
Comment 23 Matias 2009-04-16 15:05:15 UTC
Created attachment 132767 [details] [review]
make nullable fd_set parameters of select and pselect functions

Apply this patch  after comment #22
Comment 24 Jürg Billeter 2009-05-07 13:44:50 UTC
*** Bug 578225 has been marked as a duplicate of this bug. ***
Comment 25 Jürg Billeter 2009-05-07 13:45:38 UTC
Bug 578225 has more patches.
Comment 26 Jürg Billeter 2009-05-09 15:46:34 UTC
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