openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/glib-2.0/1_2.60.3-r0/glib-2.60.3/gio/gfile.c
gboolean g_file_make_directory(GFile* file, GCancellable* cancellable,
                               GError** error)
{
    GFileIface* iface;

    g_return_val_if_fail(G_IS_FILE(file), FALSE);

    if (g_cancellable_set_error_if_cancelled(cancellable, error))
        return FALSE;

    iface = G_FILE_GET_IFACE(file);

    if (iface->make_directory == NULL)
    {
        g_set_error_literal(error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
                            _("Operation not supported"));
        return FALSE;
    }

    return (*iface->make_directory)(file, cancellable, error);
}
/**
 * g_file_make_directory:
 * @file: input #GFile
 * @cancellable: (nullable): optional #GCancellable object,
 *     %NULL to ignore
 * @error: a #GError, or %NULL
 *
 * Creates a directory. Note that this will only create a child directory
 * of the immediate parent directory of the path or URI given by the #GFile.
 * To recursively create directories, see g_file_make_directory_with_parents().
 * This function will fail if the parent directory does not exist, setting
 * @error to %G_IO_ERROR_NOT_FOUND. If the file system doesn't support
 * creating directories, this function will fail, setting @error to
 * %G_IO_ERROR_NOT_SUPPORTED.
 *
 * For a local #GFile the newly created directory will have the default
 * (current) ownership and permissions of the current process.
 *
 * If @cancellable is not %NULL, then the operation can be cancelled by
 * triggering the cancellable object from another thread. If the operation
 * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
 *
 * Returns: %TRUE on successful creation, %FALSE otherwise.
 */
@file: input #GFile
@cancellable: (nullable): optional #GCancellable object,
%NULL to ignore
@error: a #GError, or %NULL

Creates a directory. Note that this will only create a child directory
of the immediate parent directory of the path or URI given by the #GFile.
To recursively create directories, see g_file_make_directory_with_parents().
This function will fail if the parent directory does not exist, setting
@error to %G_IO_ERROR_NOT_FOUND. If the file system doesn't support
creating directories, this function will fail, setting @error to
%G_IO_ERROR_NOT_SUPPORTED.

For a local #GFile the newly created directory will have the default
(current) ownership and permissions of the current process.

If @cancellable is not %NULL, then the operation can be cancelled by
triggering the cancellable object from another thread. If the operation
was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.

%TRUE on successful creation, %FALSE otherwise.
@file : input #GFile @cancellable : ( nullable ) : optional #GCancellable object %NULL to ignore @error : a #GError or %NULL Creates a directory . Note that this will only create a child directory of the immediate parent directory of the path or URI given by the #GFile . To recursively create directories see g_file_make_directory_with_parents () . This function will fail if the parent directory does not exist setting @error to %G_IO_ERROR_NOT_FOUND . If the file system doesn ' t support creating directories this function will fail setting @error to %G_IO_ERROR_NOT_SUPPORTED . For a local #GFile the newly created directory will have the default ( current ) ownership and permissions of the current process . If @cancellable is not %NULL then the operation can be cancelled by triggering the cancellable object from another thread . If the operation was cancelled the error %G_IO_ERROR_CANCELLED will be returned . %TRUE on successful creation %FALSE otherwise .
gboolean g_file_make_directory(GFile* file, GCancellable* cancellable,
                               GError** error)
{
    GFileIface* iface;
    g_return_val_if_fail(G_IS_FILE(file), FALSE);
    if (g_cancellable_set_error_if_cancelled(cancellable, error))
        return FALSE;
    iface = G_FILE_GET_IFACE(file);
    if (iface->make_directory == NULL)
    {
        g_set_error_literal(error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
                            _("Operation not supported"));
        return FALSE;
    }
    return (*iface->make_directory)(file, cancellable, error);
}
gboolean g_file_make_directory ( GFile * file , GCancellable * cancellable , GError * * error ) { GFileIface * iface ; g_return_val_if_fail ( G_IS_FILE ( file ) , FALSE ) ; if ( g_cancellable_set_error_if_cancelled ( cancellable , error ) ) return FALSE ; iface = G_FILE_GET_IFACE ( file ) ; if ( iface -> make_directory == NULL ) { g_set_error_literal ( error , G_IO_ERROR , G_IO_ERROR_NOT_SUPPORTED , _ ( " " ) ) ; return FALSE ; } return ( * iface -> make_directory ) ( file , cancellable , error ) ; }
g_file_make_directory:
 @file: input #GFile
 @cancellable: (nullable): optional #GCancellable object,
     %NULL to ignore
 @error: a #GError, or %NULL
g_file_make_directory : @file : input #GFile @cancellable : ( nullable ) : optional #GCancellable object %NULL to ignore @error : a #GError or %NULL