platform/upstream/glib.git
7 years agokdbus: fixed memory leak in "hello" command. 52/84052/1
Adrian Szyndela [Tue, 16 Aug 2016 09:39:58 +0000 (11:39 +0200)]
kdbus: fixed memory leak in "hello" command.

Change-Id: I0e411bc9dbaf0b08bb622650596e1c491d85d3e5

7 years agomodify signal subscribtion rule 10/84010/2
sanghyeok.oh [Tue, 16 Aug 2016 08:18:57 +0000 (17:18 +0900)]
modify signal subscribtion rule

Change-Id: I77ca7dc2222077ea0253aed7179582149b320b65
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
7 years agoMerge "kdbus: policy: add more detailed errors desciriptions" into tizen
Hyotaek Shim [Tue, 16 Aug 2016 08:13:19 +0000 (01:13 -0700)]
Merge "kdbus: policy: add more detailed errors desciriptions" into tizen

7 years agoMerge "Sync calls are now performed without lock held" into tizen
Hyotaek Shim [Tue, 16 Aug 2016 07:58:56 +0000 (00:58 -0700)]
Merge "Sync calls are now performed without lock held" into tizen

7 years agoSync calls are now performed without lock held 71/83571/1
Adrian Szyndela [Thu, 11 Aug 2016 15:38:34 +0000 (17:38 +0200)]
Sync calls are now performed without lock held

Sync calls were performed by function _g_kdbus_worker_send_message_sync()
called under connection lock. It was not necessary to hold the lock,
and it had side effects: holding another threads that wanted to call
something synchronically.

First argument of the function is connection->kdbus_worker. It is safe
to access this member, because it is read-only and outer context must keep
a reference to the connection, anyway. Worker itself is in turn kept
by reference from the connection.

The function uses only worker's read-only members, which are initialized
once at the creation of worker or connection. The only exception is
'matches' field, which is also modified in 'AddMatch'/'RemoveMatch'
method calls handler.

To sum up: I moved call to _g_kdbus_worker_send_message_sync() out of
connection lock and I have added a dedicated mutex for 'matches'.

Change-Id: I5895e591a9f32f085958b5b422d8b81110bd6c4d

7 years agomodify signal subscribe rule to allow-none 39/83339/3 accepted/tizen/common/20160812.140849 accepted/tizen/ivi/20160812.010743 accepted/tizen/mobile/20160812.010753 accepted/tizen/tv/20160812.010738 accepted/tizen/wearable/20160812.010736 submit/tizen/20160811.074510
sanghyeok.oh [Wed, 10 Aug 2016 07:29:04 +0000 (16:29 +0900)]
modify signal subscribe rule to allow-none

modified to allow signal subscribe for NameOwnerChanged by 'allow-none' setting(sender, path, interface)

Change-Id: I94d57ad4ca5a7db0bc5f734275835d04fe99a540
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
7 years agoset KDBUS_DEFAULT_TIMEOUT_NS to 25 seconds 82/83282/1 accepted/tizen/common/20160811.145425 accepted/tizen/ivi/20160810.082058 accepted/tizen/mobile/20160810.081945 accepted/tizen/tv/20160810.082004 accepted/tizen/wearable/20160810.082018 submit/tizen/20160810.025650 submit/tizen/20160810.025755
Hyotaek Shim [Wed, 10 Aug 2016 02:55:25 +0000 (11:55 +0900)]
set KDBUS_DEFAULT_TIMEOUT_NS to 25 seconds

Change-Id: Ibff1b1c07d94a3b7679752d6c2fa1fe8fdd15d44

7 years agokdbus: policy: add more detailed errors desciriptions 20/82520/2
Lukasz Skalski [Wed, 3 Aug 2016 14:38:12 +0000 (16:38 +0200)]
kdbus: policy: add more detailed errors desciriptions

Change-Id: I2bb44b798e2456809665205baec82d8436e935cd

7 years agoglobal construction for dbusconnection only on _TV_PROFILE 23/82223/1
MyoungJune Park [Tue, 2 Aug 2016 05:29:18 +0000 (14:29 +0900)]
global construction for dbusconnection only on _TV_PROFILE

Change-Id: Ie2430ed9210984ea012b37fa455229fc13895cdb
Signed-off-by: MyoungJune Park <mj2004.park@samsung.com>
7 years agoSubject: [PATCH 1/2] kdbus: Fix the overflow for timeout calculation 76/80576/1 accepted/tizen/common/20160719.172514 accepted/tizen/ivi/20160719.060824 accepted/tizen/mobile/20160719.060828 accepted/tizen/tv/20160719.060817 accepted/tizen/wearable/20160719.060814 submit/tizen/20160719.020831
INSUN PYO [Tue, 19 Jul 2016 01:55:58 +0000 (10:55 +0900)]
Subject: [PATCH 1/2] kdbus: Fix the overflow for timeout calculation

The maximum value of unsigned long is 4294967295 which is too small
for storing nano second. It makes the overflow in calculation.

Use LLU instead of LU for timeout calculation.

======================================================================

Subject: [PATCH 2/2] kdbus: adjust the default value for timeout to 50 sec

This definition is used by the default value for timeout value.
But in the other places, 50 sec is used by default value for timeout,
instead of using it.

Let's align it with the others.

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: I9fb9839a311daf0c5839c87cdde793c2a4118869

7 years agosvace: 74/78574/1 accepted/tizen/common/20160707.171231 accepted/tizen/ivi/20160706.083207 accepted/tizen/mobile/20160706.083152 accepted/tizen/tv/20160706.083122 accepted/tizen/wearable/20160706.083145 submit/tizen/20160706.070353
sanghyeok.oh [Wed, 6 Jul 2016 06:37:14 +0000 (15:37 +0900)]
svace:

[gio/gkdbus.c]
1. delete unreachable code
2. expand error check range

Change-Id: Ia36937b81d2e86111f9ce8a1f232ab0c842300e7
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
7 years agoMerge "kdbus: don't close the same memfd item twice" into tizen accepted/tizen/common/20160703.125859 accepted/tizen/ivi/20160629.020321 accepted/tizen/mobile/20160629.020355 accepted/tizen/tv/20160629.020324 accepted/tizen/wearable/20160629.020335 submit/tizen/20160628.005818 submit/tizen_common/20160701.180000
Hyotaek Shim [Tue, 28 Jun 2016 00:49:45 +0000 (17:49 -0700)]
Merge "kdbus: don't close the same memfd item twice" into tizen

7 years agoMerge "kdbus: fix sending memfd items" into tizen
Hyotaek Shim [Tue, 28 Jun 2016 00:49:31 +0000 (17:49 -0700)]
Merge "kdbus: fix sending memfd items" into tizen

7 years agokdbus: don't close the same memfd item twice 13/76613/1
Lukasz Skalski [Fri, 24 Jun 2016 11:46:35 +0000 (13:46 +0200)]
kdbus: don't close the same memfd item twice

Change-Id: I28e39b9dbbf58cb6fb16ba9721e5023208752777

7 years agoBug fix for signal hash(bloom filter) operations in gdbus-transport-kdbus 08/76508/1 accepted/tizen/common/20160627.191800 submit/tizen/20160624.064345
INSUN PYO [Fri, 24 Jun 2016 06:40:22 +0000 (15:40 +0900)]
Bug fix for signal hash(bloom filter) operations in gdbus-transport-kdbus

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: Ic051ee89a2e7bfb3c105be289082ebc5b6a94e88

8 years agokdbus: fix sending memfd items 71/72571/1
Lukasz Skalski [Wed, 1 Jun 2016 13:19:41 +0000 (15:19 +0200)]
kdbus: fix sending memfd items

Change-Id: Ibedc35ea0f3d443a8a3bde5151f145111a1eacf5

8 years agoMerge branch 'upstream' of ssh://review.tizen.org:29418/platform/upstream/glib into... 69/68869/1 upstream/2.48.0
DongHun Kwak [Tue, 10 May 2016 06:22:43 +0000 (15:22 +0900)]
Merge branch 'upstream' of ssh://review.tizen.org:29418/platform/upstream/glib into upstream

Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Conflicts:
gio/inotify/ginotifydirectorymonitor.c
gio/tests/.gitignore
glib/tests/.gitignore

Change-Id: If6fc8d87e436f1c57686a4b39b42804136a940c3

8 years agoImported Upstream version 2.48.0 68/68868/1
Ryan Lortie [Mon, 16 Mar 2015 19:22:03 +0000 (15:22 -0400)]
Imported Upstream version 2.48.0

Change-Id: Ie8c1fa7173d48588524ed4e85cffd9e9af340d97
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
8 years agokdbus: catch up with latest libdbuspolicy API changes 37/67837/1 accepted/tizen/common/20160429.170332 accepted/tizen/ivi/20160429.011828 accepted/tizen/mobile/20160429.011803 accepted/tizen/tv/20160429.011723 accepted/tizen/wearable/20160429.011729 submit/tizen/20160428.152642
Lukasz Skalski [Wed, 27 Apr 2016 09:32:05 +0000 (11:32 +0200)]
kdbus: catch up with latest libdbuspolicy API changes

Change-Id: I6bfb75785c7e817ad7a063f989671ab6d4279dc2

8 years agoMerge "gdbus-codegen: avoid warnings when generated code is compiled with -Wunused... accepted/tizen/common/20160413.130556 accepted/tizen/ivi/20160413.082555 accepted/tizen/mobile/20160413.073016 accepted/tizen/tv/20160413.075339 accepted/tizen/wearable/20160413.080325 submit/tizen/20160412.051622
Hyotaek Shim [Tue, 12 Apr 2016 05:10:05 +0000 (22:10 -0700)]
Merge "gdbus-codegen: avoid warnings when generated code is compiled with -Wunused-parameter" into tizen

8 years agoMerge "Revert "Temporarily removing BuildRequires to libdbuspolicy to check cyclic...
Hyotaek Shim [Tue, 12 Apr 2016 01:42:47 +0000 (18:42 -0700)]
Merge "Revert "Temporarily removing BuildRequires to libdbuspolicy to check cyclic build dep."" into tizen

8 years agoRevert "Temporarily removing BuildRequires to libdbuspolicy to check cyclic build... 30/65630/1
Hyotaek Shim [Tue, 12 Apr 2016 01:41:38 +0000 (18:41 -0700)]
Revert "Temporarily removing BuildRequires to libdbuspolicy to check cyclic build dep."

This reverts commit af3acf0be463fad4d470dbbab4b61b825edce0cf.

Change-Id: I5db890ca0e86f78d10736ec50ab82e0ab2f95c1d

8 years agogdbus-codegen: avoid warnings when generated code is compiled with -Wunused-parameter 12/65612/1
Lukasz Skalski [Mon, 11 Apr 2016 15:19:30 +0000 (17:19 +0200)]
gdbus-codegen: avoid warnings when generated code is compiled with -Wunused-parameter

Change-Id: Id62df4e7c7f7059a47ee7ee32aa054d91c6847a1

8 years agokdbus: don't check 'out' policy for method return 87/65587/1
Lukasz Skalski [Mon, 11 Apr 2016 13:07:10 +0000 (15:07 +0200)]
kdbus: don't check 'out' policy for method return

Change-Id: I7ac8abb8eebbc51d2dd20f632f0bc5d798fe4eae

8 years agokdbus: fix 'check in' policy 41/65341/1
Lukasz Skalski [Fri, 8 Apr 2016 12:27:39 +0000 (14:27 +0200)]
kdbus: fix 'check in' policy

Change-Id: If3e39fc8fb9890c35f788a466346471785d578b8

8 years agoTemporarily removing BuildRequires to libdbuspolicy to check cyclic build dep. 46/65246/1 submit/tizen/20160408.053422
Hyotaek Shim [Fri, 8 Apr 2016 05:32:17 +0000 (14:32 +0900)]
Temporarily removing BuildRequires to libdbuspolicy to check cyclic build dep.

Change-Id: Ic4bd089219fc91ba3b514879be1232a4bf2dddad
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
8 years agoMerge "Add BuildRequires to the libdbuspolicy package" into tizen
Hyotaek Shim [Tue, 5 Apr 2016 01:59:59 +0000 (18:59 -0700)]
Merge "Add BuildRequires to the libdbuspolicy package" into tizen

8 years agoAdd BuildRequires to the libdbuspolicy package 03/64703/1 accepted/tizen/common/20160406.143445 accepted/tizen/ivi/20160406.012223 accepted/tizen/mobile/20160406.012125 accepted/tizen/tv/20160406.012144 accepted/tizen/wearable/20160406.012203 submit/tizen/20160405.020018
Hyotaek Shim [Tue, 5 Apr 2016 01:58:44 +0000 (10:58 +0900)]
Add BuildRequires to the libdbuspolicy package

Change-Id: I2ff0b52b12b8ade8dcdf85427d23d2be2f26c027
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
8 years agokdbus: Fix memleak. Use proper kdbus device node path for session bus 60/64660/1
Lukasz Skalski [Mon, 4 Apr 2016 12:34:47 +0000 (14:34 +0200)]
kdbus: Fix memleak. Use proper kdbus device node path for session bus

Change-Id: Ic28fee3cf586d4f681ae35ec739fc95d023472c5

8 years agoglib2:svace for gkdbus 37/63737/1 accepted/tizen/common/20160331.125859 accepted/tizen/ivi/20160328.115425 accepted/tizen/mobile/20160328.115252 accepted/tizen/tv/20160328.115318 accepted/tizen/wearable/20160328.115357 submit/tizen/20160325.112342 submit/tizen/20160328.051919 submit/tizen_common/20160329.152300
sanghyeok.oh [Fri, 25 Mar 2016 11:18:25 +0000 (20:18 +0900)]
glib2:svace for gkdbus

Change-Id: Ieb227a765f3fa3fa8c3ad858beaaeb45aa01628a
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
8 years agoMinor fixes for build problems 56/63356/1 accepted/tizen/common/20160325.134933 accepted/tizen/ivi/20160323.140943 accepted/tizen/mobile/20160323.135615 accepted/tizen/tv/20160323.135853 accepted/tizen/wearable/20160323.135554 submit/tizen/20160323.092713
Hyotaek Shim [Wed, 23 Mar 2016 09:25:25 +0000 (18:25 +0900)]
Minor fixes for build problems

Change-Id: Ia998daae96c4bd9db2b65f26d977928b36f3fd2e
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
8 years agoFix for several memory leak cases when using _g_dbus_enum_to_string() 98/63298/1 submit/tizen/20160323.055512
Hyotaek Shim [Wed, 23 Mar 2016 05:51:57 +0000 (14:51 +0900)]
Fix for several memory leak cases when using _g_dbus_enum_to_string()

Change-Id: I11a9e08c79ffaf052e21cf0501c13bcc56f6cb13
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
8 years agoTemporarily removed BuildRequires for libdbuspolicy 60/63260/1 submit/tizen/20160323.031111 submit/tizen_ivi/20160323.050353 submit/tizen_mobile/20160323.050253 submit/tizen_tv/20160323.050314 submit/tizen_wearable/20160323.050327
Hyotaek Shim [Wed, 23 Mar 2016 03:08:40 +0000 (12:08 +0900)]
Temporarily removed BuildRequires for libdbuspolicy

Change-Id: I6b9b21dbd036896a8f5b4d635836c84cd639212e
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
8 years agoRemove cynara-client from BuildRequires section 93/60093/3 submit/tizen/20160314.050042
Lukasz Skalski [Tue, 23 Feb 2016 09:39:14 +0000 (10:39 +0100)]
Remove cynara-client from BuildRequires section

Change-Id: Ie9f9e1cf9900c24e1774e0ffde1892cbec52a39b

8 years agoMerge "kdbus: support for libdbuspolicy" into tizen accepted/tizen/common/20160222.162013 submit/tizen/20160222.000000 submit/tizen_common/20160222.070235
Karol Lewandowski [Thu, 28 Jan 2016 14:09:27 +0000 (06:09 -0800)]
Merge "kdbus: support for libdbuspolicy" into tizen

8 years agofixed race condition between source and worker 60/57160/1 submit/tizen/20160118.075940
Adrian Szyndela [Fri, 15 Jan 2016 13:15:24 +0000 (14:15 +0100)]
fixed race condition between source and worker

Change-Id: I67cb04512aa971d60889aabf641fbbdd3383efdd

8 years agokdbus: support for libdbuspolicy 08/53208/5
Lukasz Skalski [Wed, 2 Dec 2015 16:57:14 +0000 (17:57 +0100)]
kdbus: support for libdbuspolicy

Change-Id: I634ed6d0eeb7a27df504624577de5c22d2806a69

8 years agoFixed license declaration at spec file 43/55343/1
DongHun Kwak [Wed, 23 Dec 2015 08:30:03 +0000 (17:30 +0900)]
Fixed license declaration at spec file

Change-Id: I0ef9ac5f36d9d59af84313bc469e4be16a0c82d3
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
8 years agokdbus: bring back original gio semantic in d-bus name management 87/52487/1 accepted/tizen_base accepted/tizen/base/20151223.052341 accepted/tizen/common/20160107.114028 accepted/tizen/mobile/20151125.125334 accepted/tizen/tv/20151125.125346 accepted/tizen/wearable/20151125.125358 submit/tizen/20151125.071639 submit/tizen_base/20151223.111111 submit/tizen_base/20151223.111112 submit/tizen_common/20151229.142028 submit/tizen_common/20151229.144031 submit/tizen_common/20151229.154718 submit/tizen_common/20160104.112601
Lukasz Skalski [Mon, 23 Nov 2015 15:42:58 +0000 (16:42 +0100)]
kdbus: bring back original gio semantic in d-bus name management

Since when we have 'dbus1 compatibility layer' we do not have to use
our new API, which offers only synchronous calls. Thanks of that we don't
have to modify gdbusnameowning.c and gdbusnamewatching.c files what causes
that GLib kdbus port is easier to maintain/rebase.

Change-Id: I76bf7b436e3dd82f6cd7e309b4a08b6b49363edd

8 years agokdbus: fix bugs and defects found by Klocwork and CPP Test. Add more logs. 71/52171/2 accepted/tizen/mobile/20151124.233717 accepted/tizen/tv/20151124.233730 accepted/tizen/wearable/20151124.233752 submit/tizen/20151124.052044
Lukasz Skalski [Thu, 19 Nov 2015 12:33:23 +0000 (13:33 +0100)]
kdbus: fix bugs and defects found by Klocwork and CPP Test. Add more logs.

- fix memleak in g_kdbus_setup_bloom() function;
- add logs for synthetic method calls and replies;
- fix body signature check in gkdbusfakedaemon;

Change-Id: I33d5f645ad97cddff8a562400ec28d2b907449fa

8 years agokdbus: properly attach KDBUS_ITEM_CANCEL_FD item 54/52054/1
Lukasz Skalski [Wed, 18 Nov 2015 13:13:45 +0000 (14:13 +0100)]
kdbus: properly attach KDBUS_ITEM_CANCEL_FD item

Change-Id: I0ca3220b08a3e988502cfc4e47687d0faeeecde8

8 years agofixed memory-leak - loophole 67/51767/3
Adrian Szyndela [Fri, 13 Nov 2015 11:31:11 +0000 (12:31 +0100)]
fixed memory-leak - loophole

Change-Id: I205462ee6164bd336fa284e8076b327f15daadba

8 years agoadded newer kdbus return flags handling 68/51768/2
Adrian Szyndela [Fri, 13 Nov 2015 11:31:35 +0000 (12:31 +0100)]
added newer kdbus return flags handling

Change-Id: I6ec98cc2ec82340d1f300a7d620e74a63b5b1640

8 years agokdbus: fix 'GetConnectionCredentials' synthetic reply builder 23/50723/2 accepted/tizen/mobile/20151106.045630 accepted/tizen/tv/20151106.045654 accepted/tizen/wearable/20151106.045702 submit/tizen/20151105.103916
Lukasz Skalski [Fri, 30 Oct 2015 09:11:50 +0000 (10:11 +0100)]
kdbus: fix 'GetConnectionCredentials' synthetic reply builder

Change-Id: I24d19b567093dc9cffbe6b8093f3dc717353bd03

8 years agokdbus: Add support for GCanellable 04/50304/1
Lukasz Skalski [Tue, 27 Oct 2015 12:57:07 +0000 (13:57 +0100)]
kdbus: Add support for GCanellable

Change-Id: Ie2caf15feb018690fbf9d5abffc85a4bfbd19a87
Signed-off-by: Lukasz Skalski <l.skalski@samsung.com>
8 years agogdbus: integrate kdbus into GDBus core 75/46575/1 tizen_3.0.m1_mobile tizen_3.0.m1_tv accepted/tizen/mobile/20150903.233546 accepted/tizen/tv/20150903.233557 accepted/tizen/wearable/20150903.233610 submit/tizen/20150903.132411 submit/tizen_common/20151015.190624 submit/tizen_common/20151019.135620 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release
Lukasz Skalski [Fri, 21 Aug 2015 15:42:53 +0000 (17:42 +0200)]
gdbus: integrate kdbus into GDBus core

Patch includes also changes made by Ryan Lortie <desrt@desrt.ca>

https://bugzilla.gnome.org/show_bug.cgi?id=721861

Change-Id: I6bab6fee34787816efeb42d8e3e60c4c551a8a2b

8 years agogdbus: add kdbus core files 74/46574/1
Lukasz Skalski [Fri, 21 Aug 2015 15:41:27 +0000 (17:41 +0200)]
gdbus: add kdbus core files

Patch includes also changes made by Ryan Lortie <desrt@desrt.ca>
and Adrian Szyndela <a.szyndela@samsung.com>

https://bugzilla.gnome.org/show_bug.cgi?id=721861

Change-Id: Ie90076a28c611320cd9b5ed6f2123d0ef85c6326

8 years agogdbus: import kdbus interface header 73/46573/1
Lukasz Skalski [Fri, 21 Aug 2015 14:47:05 +0000 (16:47 +0200)]
gdbus: import kdbus interface header

kdbus.h taken from https://github.com/systemd/kdbus, commit 9c04b6b989c9.

Hosting of our own copy of the kdbus header is temporary solution.
In the future, we should include it from the system kernel headers.

https://bugzilla.gnome.org/show_bug.cgi?id=721861

Change-Id: I2a42c91648b10c7c14f4df9ce2755f7c60524903

8 years agogvariant: substantial rework for kdbus purposes 72/46572/1
Ryan Lortie [Fri, 21 Aug 2015 14:26:03 +0000 (16:26 +0200)]
gvariant: substantial rework for kdbus purposes

This patch is 'squashed' version of Ryan Lortie's patches from
wip/kdbus-junk branch [1].

Main changes:
- add GVariantVectors utility struct,
- support serialising/deserialising to/from GVariantVectors,
- support for single precision floats,
- GVariantVectors serialisation tests,

[1] https://git.gnome.org/browse/glib/log/?h=wip/kdbus-junk

https://bugzilla.gnome.org/show_bug.cgi?id=721861

Change-Id: If70bd22337b5a9cddac545dce45474eba542d0de

8 years agoglib-unix: add new internal header glib-linux.h 71/46571/1
Ryan Lortie [Fri, 21 Aug 2015 14:15:25 +0000 (16:15 +0200)]
glib-unix: add new internal header glib-linux.h

This defines some constants and syscall wrappers for features which may
not yet have appeared in the libc.

https://bugzilla.gnome.org/show_bug.cgi?id=721861

Change-Id: I7e83dadf8be9121f91fa0743bb8c1c612f923e13

8 years agoglib-unix: add function to ensure an fd is sealed 70/46570/1
David King [Fri, 21 Aug 2015 14:10:59 +0000 (16:10 +0200)]
glib-unix: add function to ensure an fd is sealed

Add a function that checks if a fd is sealed and, if it's not, seals it.

On Linux this is more or less an operation on memfd.  On other systems,
it currently always returns FALSE.

https://bugzilla.gnome.org/show_bug.cgi?id=721861

Change-Id: I021e40249c2cdd0f1137f6f9f3813f5d4e5083c5

8 years agogbytes: substantial rework for kdbus purposes 69/46569/1
Ryan Lortie [Fri, 21 Aug 2015 14:06:15 +0000 (16:06 +0200)]
gbytes: substantial rework for kdbus purposes

This patch is 'squashed' version of Ryan Lortie's patches from
wip/kdbus-junk branch [1].

Main changes:

- introduce a new type of GBytes: 'inline' -  this allows us to
  make a single allocation instead of two in the g_bytes_new() case,

- new g_bytes_take_zero_copy_fd() function - function takes a memfd,
  seals it, and creates a GBytes based on it,

- add g_bytes_get_zero_copy_fd() function - add a way to get the
  zero-copy fd back out of a GBytes that was created from one.

[1] https://git.gnome.org/browse/glib/log/?h=wip/kdbus-junk

https://bugzilla.gnome.org/show_bug.cgi?id=721861

Change-Id: I65c31e42c23346f3d7351f815ccbeda7461d3c01

8 years agopackaging: Bump to 2.44.1
Lukasz Skalski [Wed, 12 Aug 2015 15:09:22 +0000 (17:09 +0200)]
packaging: Bump to 2.44.1

Change-Id: I1eb90fc7dc9d717e16d30985a4458f2a2dba223c
Signed-off-by: Lukasz Skalski <l.skalski@samsung.com>
8 years agopackaging: Bump to 2.43.1
Philippe Coval [Wed, 26 Nov 2014 11:11:00 +0000 (12:11 +0100)]
packaging: Bump to 2.43.1

Change-Id: Id068a8288f85baef2ffada606d10bcb2dbf78cf4
Bug-Tizen: TC-2124
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
8 years agopackaging: Bump to 2.40.1
Philippe Coval [Wed, 26 Nov 2014 11:03:56 +0000 (12:03 +0100)]
packaging: Bump to 2.40.1

Change-Id: I23e399e680e58b26358c00e15cd4325c5eb08338
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
8 years agopackaging: Bump to 2.40.0
Philippe Coval [Tue, 1 Apr 2014 14:46:03 +0000 (16:46 +0200)]
packaging: Bump to 2.40.0

Change-Id: I6d64c12841cc6d0c536e27f1f3d69ec3a675d7d6
Bug-Tizen: PTREL-773
Bug-Tizen: TIVI-2898/part
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
8 years agoadd .gbs.conf and update to 2.36.4
Anas Nashif [Tue, 13 Aug 2013 15:21:17 +0000 (11:21 -0400)]
add .gbs.conf and update to 2.36.4

Change-Id: I0540f90b0b0ba28680cd5ae1d5186d07be078e61
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
8 years agoresetting manifest requested domain to floor
Alexandru Cornea [Fri, 28 Jun 2013 20:11:14 +0000 (23:11 +0300)]
resetting manifest requested domain to floor

8 years agochanges: Bug-Tizen: TZPC-3317 (... remove the fav apps icon ...)
Philippe Coval [Fri, 19 Jul 2013 13:00:32 +0000 (15:00 +0200)]
changes: Bug-Tizen: TZPC-3317 (... remove the fav apps icon ...)

Conflicts:
packaging/glib2.changes

8 years agoRemove empty docs package
Anas Nashif [Tue, 13 Aug 2013 15:18:01 +0000 (11:18 -0400)]
Remove empty docs package

8 years agoremove docs package
Anas Nashif [Tue, 13 Aug 2013 14:06:17 +0000 (10:06 -0400)]
remove docs package

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
8 years agoUpdate to 2.36.1
Anas Nashif [Sat, 27 Apr 2013 12:37:34 +0000 (05:37 -0700)]
Update to 2.36.1

8 years agoUpdate to 2.36.0
Anas Nashif [Wed, 27 Mar 2013 16:05:31 +0000 (09:05 -0700)]
Update to 2.36.0

8 years agoUpdate to 2.35.9
Anas Nashif [Fri, 22 Mar 2013 18:22:23 +0000 (11:22 -0700)]
Update to 2.35.9

8 years agoRemove previous crash fix (TZPC-453)
Anas Nashif [Tue, 5 Mar 2013 09:10:41 +0000 (01:10 -0800)]
Remove previous crash fix (TZPC-453)

8 years agoUpdate to 2.35.8
Anas Nashif [Tue, 26 Feb 2013 14:36:06 +0000 (06:36 -0800)]
Update to 2.35.8

8 years agoUpdate to 2.35.8
Anas Nashif [Tue, 26 Feb 2013 14:30:35 +0000 (06:30 -0800)]
Update to 2.35.8

8 years agoUpdate to 2.35.7
Anas Nashif [Thu, 7 Feb 2013 20:18:02 +0000 (12:18 -0800)]
Update to 2.35.7

8 years agocleanup spec file
Anas Nashif [Thu, 7 Feb 2013 20:17:15 +0000 (12:17 -0800)]
cleanup spec file

8 years agoUpdate to 2.35.4
Anas Nashif [Thu, 31 Jan 2013 16:51:26 +0000 (08:51 -0800)]
Update to 2.35.4

8 years agoUpdate to 2.35.4
Anas Nashif [Tue, 15 Jan 2013 15:00:05 +0000 (07:00 -0800)]
Update to 2.35.4

8 years agosplit commit
Anas Nashif [Tue, 5 Mar 2013 09:08:42 +0000 (01:08 -0800)]
split commit

8 years agoupdate to 2.35.3
Anas Nashif [Tue, 18 Dec 2012 20:46:15 +0000 (12:46 -0800)]
update to 2.35.3

8 years agoadd changelog
Anas Nashif [Mon, 10 Dec 2012 03:12:39 +0000 (19:12 -0800)]
add changelog

8 years agopackage license file
Anas Nashif [Mon, 10 Dec 2012 02:55:35 +0000 (18:55 -0800)]
package license file

8 years agoadd codegen to %files
Anas Nashif [Mon, 10 Dec 2012 01:03:26 +0000 (17:03 -0800)]
add codegen to %files

8 years agoBR glibc-devel
Anas Nashif [Mon, 10 Dec 2012 00:55:22 +0000 (16:55 -0800)]
BR glibc-devel

8 years agoadapt %files section
Anas Nashif [Thu, 20 Dec 2012 21:10:25 +0000 (13:10 -0800)]
adapt %files section

8 years agoupdate to 2.35.2
Anas Nashif [Tue, 4 Dec 2012 15:41:21 +0000 (07:41 -0800)]
update to 2.35.2

8 years agocleanup %files
Anas Nashif [Tue, 4 Dec 2012 14:39:56 +0000 (06:39 -0800)]
cleanup %files

8 years agocleanup %files
Anas Nashif [Tue, 4 Dec 2012 14:35:38 +0000 (06:35 -0800)]
cleanup %files

8 years agorun autogen
Anas Nashif [Tue, 4 Dec 2012 14:31:13 +0000 (06:31 -0800)]
run autogen

8 years agoadd packaging
Anas Nashif [Tue, 4 Dec 2012 13:59:21 +0000 (05:59 -0800)]
add packaging

8 years agoUpdated Norwegian bokmål translation.
Kjartan Maraas [Tue, 11 Aug 2015 17:41:08 +0000 (19:41 +0200)]
Updated Norwegian bokmål translation.

8 years agoUpdate Catalan translation
Jordi Mas [Tue, 11 Aug 2015 06:05:34 +0000 (08:05 +0200)]
Update Catalan translation

8 years agogio: g_menu_item_set_icon should not fail if icon is NULL
Felix Riemann [Sun, 9 Aug 2015 21:13:38 +0000 (23:13 +0200)]
gio: g_menu_item_set_icon should not fail if icon is NULL

It allows passing a NULL icon to unset the icon and thus should not
log a critical warning if used like that.

https://bugzilla.gnome.org/show_bug.cgi?id=753285

8 years agoUpdated Turkish translation
Muhammet Kara [Sun, 9 Aug 2015 15:46:12 +0000 (15:46 +0000)]
Updated Turkish translation

8 years agogio: fix a leftover GSimpleAsyncResult usage
Dan Winship [Fri, 7 Aug 2015 13:48:27 +0000 (09:48 -0400)]
gio: fix a leftover GSimpleAsyncResult usage

And remove remaining unnecessary gsimpleasyncresult.h includes

8 years agogsettings-tool: fix deprecated call
Dan Winship [Fri, 7 Aug 2015 13:47:09 +0000 (09:47 -0400)]
gsettings-tool: fix deprecated call

8 years agogdbus: fix gdbus-exit-on-close for gdbusconnection change
Dan Winship [Thu, 6 Aug 2015 21:00:16 +0000 (17:00 -0400)]
gdbus: fix gdbus-exit-on-close for gdbusconnection change

8 years agoglib: remove deprecated g_mem_is_system_malloc() check in gprintf.c
Dan Winship [Fri, 7 Aug 2015 13:46:49 +0000 (09:46 -0400)]
glib: remove deprecated g_mem_is_system_malloc() check in gprintf.c

8 years agoglib: drop array-test test for bug 568760
Dan Winship [Thu, 6 Aug 2015 19:45:47 +0000 (15:45 -0400)]
glib: drop array-test test for bug 568760

The test relied on g_mem_set_vtable(), so it fails now. But no one
ever touches that code so it's not like we're going to break it again
anyway.

8 years agoUpdated Lithuanian translation
Aurimas Černius [Thu, 6 Aug 2015 19:53:12 +0000 (22:53 +0300)]
Updated Lithuanian translation

8 years agogdbusconnection: Don't g_printerr() when exiting
Colin Walters [Mon, 5 Jan 2015 14:40:37 +0000 (09:40 -0500)]
gdbusconnection: Don't g_printerr() when exiting

exit-on-close for a DBus connection is a completely normal thing.  On
a regular GNOME login, gdm retains the X server, but terminates the
session login bus and associated helpers like gnome-settings-dameon,
the a11y tools, etc.

I've seen several downstream reports of confusion as to what these
apparent error messages mean in the system log.  It doesn't help
that they're so obtuse.

We're also printing them to stderr, when this is not an error.

The reason this was introduced is presumably some people were confused
as to why their process exited when the system bus did.  But the
solution for that I believe is documentation, not printing stuff to
everyone's system log in normal operation.

https://bugzilla.gnome.org/show_bug.cgi?id=742386

8 years agoDon't leak an error
Matthias Clasen [Wed, 5 Aug 2015 21:18:48 +0000 (17:18 -0400)]
Don't leak an error

The previous commit introduced a possible memory leak in cases
where we get a G_IO_ERROR_CLOSED error. Make sure to always
free an error, if we got one.

https://bugzilla.gnome.org/show_bug.cgi?id=753278

8 years agogdbus: Don't use g_assert_no_error() GDBusObjectManagerServer
Stef Walter [Wed, 5 Aug 2015 11:25:47 +0000 (13:25 +0200)]
gdbus: Don't use g_assert_no_error() GDBusObjectManagerServer

There are real world cases where emitting signals can fail, such
as if the DBus connection closes. Asserting and aborting the process
in these cases is just plain lazy.

Ignore the errors when the connection is closed, and turn the
others into warnings.

https://bugzilla.gnome.org/show_bug.cgi?id=753278

8 years agoUpdated Indonesian translation
Andika Triwidada [Mon, 3 Aug 2015 11:28:22 +0000 (11:28 +0000)]
Updated Indonesian translation

8 years agogmain: Document return value of GSourceFuncs.dispatch
Benjamin Otte [Sun, 2 Aug 2015 15:36:05 +0000 (17:36 +0200)]
gmain: Document return value of GSourceFuncs.dispatch

8 years agogio: Fix application of GNetworkMonitor:network-metered patch
Philip Withnall [Wed, 29 Jul 2015 10:56:41 +0000 (11:56 +0100)]
gio: Fix application of GNetworkMonitor:network-metered patch

The wrong patch from https://bugzilla.gnome.org/show_bug.cgi?id=750282
was applied, causing test failures due to not implementing the property
on GNetworkMonitorBase (plus some other omissions).

Fix that by reverting commit a80e7db1a8f26dc558085844dcb8003edb6eca74
and re-applying the correct patch over the top.

https://bugzilla.gnome.org/show_bug.cgi?id=750282

8 years agogresource: Clarify error docs for g_resource_enumerate_children()
Philip Withnall [Tue, 28 Jul 2015 09:13:12 +0000 (10:13 +0100)]
gresource: Clarify error docs for g_resource_enumerate_children()

Document that it returns G_RESOURCE_ERROR_NOT_FOUND if the path doesn’t
exist.