1 /* GIO - GLib Input, Output and Streaming Library
3 * Copyright (C) 2006-2007 Red Hat, Inc.
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General
16 * Public License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
18 * Boston, MA 02111-1307, USA.
20 * Author: Alexander Larsson <alexl@redhat.com>
30 * Return value: The quark used as %G_IO_ERROR
33 g_io_error_quark (void)
35 return g_quark_from_static_string ("g-io-error-quark");
39 g_io_error_from_errno (gint err_no)
45 return G_IO_ERROR_EXISTS;
51 return G_IO_ERROR_IS_DIRECTORY;
57 return G_IO_ERROR_PERMISSION_DENIED;
63 return G_IO_ERROR_FILENAME_TOO_LONG;
69 return G_IO_ERROR_NOT_FOUND;
75 return G_IO_ERROR_NOT_DIRECTORY;
81 return G_IO_ERROR_READ_ONLY;
87 return G_IO_ERROR_TOO_MANY_LINKS;
93 return G_IO_ERROR_NO_SPACE;
99 return G_IO_ERROR_NO_SPACE;
105 return G_IO_ERROR_INVALID_ARGUMENT;
111 return G_IO_ERROR_PERMISSION_DENIED;
117 return G_IO_ERROR_CANCELLED;
123 return G_IO_ERROR_NOT_EMPTY;
129 return G_IO_ERROR_NOT_SUPPORTED;
135 return G_IO_ERROR_TIMED_OUT;
141 return G_IO_ERROR_BUSY;
147 return G_IO_ERROR_WOULD_BLOCK;
152 return G_IO_ERROR_FAILED;