Port to libgsystem errno API, hard depend on 2014.3

This is long overdue to make it to libgsystem.  Update our dependency.
This commit is contained in:
Colin Walters committed 2015-01-04 21:17:11 -05:00
1 parent 1bcc7a8e3a
commit 1e8e070102
13 files changed
+71 -84

No files matched your search

+14 -14
View File
@@ -69,7 +69,7 @@ checkout_object_for_uncompressed_cache (OstreeRepo *self,
while (G_UNLIKELY (res == -1 && errno == EINTR));
if (G_UNLIKELY (res == -1))
{
ot_util_set_error_from_errno (error, errno);
gs_set_error_from_errno (error, errno);
goto out;
}
@@ -86,7 +86,7 @@ checkout_object_for_uncompressed_cache (OstreeRepo *self,
{
if (errno != EEXIST)
{
ot_util_set_error_from_errno (error, errno);
gs_set_error_from_errno (error, errno);
g_prefix_error (error, "Storing file '%s': ", temp_filename);
goto out;
}
@@ -130,7 +130,7 @@ write_regular_file_content (OstreeRepoCheckoutMode mode,
while (G_UNLIKELY (res == -1 && errno == EINTR));
if (G_UNLIKELY (res == -1))
{
ot_util_set_error_from_errno (error, errno);
gs_set_error_from_errno (error, errno);
goto out;
}
@@ -139,7 +139,7 @@ write_regular_file_content (OstreeRepoCheckoutMode mode,
while (G_UNLIKELY (res == -1 && errno == EINTR));
if (G_UNLIKELY (res == -1))
{
ot_util_set_error_from_errno (error, errno);
gs_set_error_from_errno (error, errno);
goto out;
}
@@ -152,7 +152,7 @@ write_regular_file_content (OstreeRepoCheckoutMode mode,
if (fsync (fd) == -1)
{
ot_util_set_error_from_errno (error, errno);
gs_set_error_from_errno (error, errno);
goto out;
}
@@ -186,7 +186,7 @@ checkout_file_from_input_at (OstreeRepoCheckoutMode mode,
while (G_UNLIKELY (res == -1 && errno == EINTR));
if (res == -1)
{
ot_util_set_error_from_errno (error, errno);
gs_set_error_from_errno (error, errno);
goto out;
}
@@ -197,7 +197,7 @@ checkout_file_from_input_at (OstreeRepoCheckoutMode mode,
g_file_info_get_attribute_uint32 (file_info, "unix::gid"),
AT_SYMLINK_NOFOLLOW) == -1))
{
ot_util_set_error_from_errno (error, errno);
gs_set_error_from_errno (error, errno);
goto out;
}
@@ -225,7 +225,7 @@ checkout_file_from_input_at (OstreeRepoCheckoutMode mode,
while (G_UNLIKELY (fd == -1 && errno == EINTR));
if (fd == -1)
{
ot_util_set_error_from_errno (error, errno);
gs_set_error_from_errno (error, errno);
goto out;
}
temp_out = g_unix_output_stream_new (fd, TRUE);
@@ -301,7 +301,7 @@ checkout_file_unioning_from_input_at (OstreeRepoCheckoutMode mode,
if (G_UNLIKELY (renameat (destination_dfd, temp_filename,
destination_dfd, destination_name) == -1))
{
ot_util_set_error_from_errno (error, errno);
gs_set_error_from_errno (error, errno);
goto out;
}
@@ -357,7 +357,7 @@ checkout_file_hardlink (OstreeRepo *self,
else
{
g_prefix_error (error, "Hardlinking %s to %s: ", loose_path, destination_name);
ot_util_set_error_from_errno (error, errno);
gs_set_error_from_errno (error, errno);
goto out;
}
@@ -578,7 +578,7 @@ checkout_tree_at (OstreeRepo *self,
did_exist = TRUE;
else
{
ot_util_set_error_from_errno (error, errno);
gs_set_error_from_errno (error, errno);
goto out;
}
}
@@ -663,7 +663,7 @@ checkout_tree_at (OstreeRepo *self,
while (G_UNLIKELY (res == -1 && errno == EINTR));
if (G_UNLIKELY (res == -1))
{
ot_util_set_error_from_errno (error, errno);
gs_set_error_from_errno (error, errno);
goto out;
}
}
@@ -677,7 +677,7 @@ checkout_tree_at (OstreeRepo *self,
while (G_UNLIKELY (res == -1 && errno == EINTR));
if (G_UNLIKELY (res == -1))
{
ot_util_set_error_from_errno (error, errno);
gs_set_error_from_errno (error, errno);
goto out;
}
}
@@ -690,7 +690,7 @@ checkout_tree_at (OstreeRepo *self,
{
if (fsync (destination_dfd) == -1)
{
ot_util_set_error_from_errno (error, errno);
gs_set_error_from_errno (error, errno);
goto out;
}
}