mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-28 18:16:53 +02:00
Updates
This commit is contained in:
parent
0a57e7377c
commit
18ccd90ef8
@ -1,3 +1,14 @@
|
|||||||
|
2005-06-29 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/tmpl/threads.sgml:
|
||||||
|
* glib/tmpl/option.sgml:
|
||||||
|
* glib/tmpl/fileutils.sgml:
|
||||||
|
* glib/tmpl/iochannels.sgml:
|
||||||
|
* glib/tmpl/hooks.sgml:
|
||||||
|
* glib/tmpl/misc_utils.sgml:
|
||||||
|
* glib/tmpl/date.sgml:
|
||||||
|
* glib/glib-sections.txt: Updates
|
||||||
|
|
||||||
2005-06-24 Matthias Clasen <mclasen@redhat.com>
|
2005-06-24 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* glib/glib-sections.txt: Add GMappedFile functions.
|
* glib/glib-sections.txt: Add GMappedFile functions.
|
||||||
|
@ -985,6 +985,7 @@ g_file_test
|
|||||||
g_mkstemp
|
g_mkstemp
|
||||||
g_file_open_tmp
|
g_file_open_tmp
|
||||||
g_file_read_link
|
g_file_read_link
|
||||||
|
g_mkdir_with_parents
|
||||||
|
|
||||||
<SUBSECTION>
|
<SUBSECTION>
|
||||||
GDir
|
GDir
|
||||||
@ -1311,6 +1312,7 @@ g_get_system_data_dirs
|
|||||||
g_get_system_config_dirs
|
g_get_system_config_dirs
|
||||||
|
|
||||||
<SUBSECTION>
|
<SUBSECTION>
|
||||||
|
g_get_host_name
|
||||||
g_get_home_dir
|
g_get_home_dir
|
||||||
g_get_tmp_dir
|
g_get_tmp_dir
|
||||||
g_get_current_dir
|
g_get_current_dir
|
||||||
|
@ -125,12 +125,14 @@ date becomes valid after you set it to a Julian day or you set a day,
|
|||||||
month, and year.
|
month, and year.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@julian_days:
|
@julian_days: the Julian representation of the date
|
||||||
@julian:
|
@julian: this bit is set if @julian_days is valid
|
||||||
@dmy:
|
@dmy: this is set if @day, @month and @year are valid
|
||||||
@day:
|
@day: the day of the day-month-year representation of the date, as
|
||||||
@month:
|
a number between 1 and 31
|
||||||
@year:
|
@month: the day of the day-month-year representation of the date, as
|
||||||
|
a number between 1 and 12
|
||||||
|
@year: the day of the day-month-year representation of the date
|
||||||
|
|
||||||
<!-- ##### TYPEDEF GTime ##### -->
|
<!-- ##### TYPEDEF GTime ##### -->
|
||||||
<para>
|
<para>
|
||||||
@ -144,9 +146,9 @@ This enumeration isn't used in the API, but may be useful if you need
|
|||||||
to mark a number as a day, month, or year.
|
to mark a number as a day, month, or year.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@G_DATE_DAY:
|
@G_DATE_DAY: a day
|
||||||
@G_DATE_MONTH:
|
@G_DATE_MONTH: a month
|
||||||
@G_DATE_YEAR:
|
@G_DATE_YEAR: a year
|
||||||
|
|
||||||
<!-- ##### TYPEDEF GDateDay ##### -->
|
<!-- ##### TYPEDEF GDateDay ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
@ -262,6 +262,51 @@ An opaque structure representing an opened directory.
|
|||||||
@dir:
|
@dir:
|
||||||
|
|
||||||
|
|
||||||
|
<!-- ##### STRUCT GMappedFile ##### -->
|
||||||
|
<para>
|
||||||
|
The #GMappedFile represents a file mapping created with
|
||||||
|
g_mapped_file_new(). It has only private members and should
|
||||||
|
not be accessed directly.
|
||||||
|
</para>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- ##### FUNCTION g_mapped_file_new ##### -->
|
||||||
|
<para>
|
||||||
|
|
||||||
|
</para>
|
||||||
|
|
||||||
|
@filename:
|
||||||
|
@writable:
|
||||||
|
@error:
|
||||||
|
@Returns:
|
||||||
|
|
||||||
|
|
||||||
|
<!-- ##### FUNCTION g_mapped_file_free ##### -->
|
||||||
|
<para>
|
||||||
|
|
||||||
|
</para>
|
||||||
|
|
||||||
|
@file:
|
||||||
|
|
||||||
|
|
||||||
|
<!-- ##### FUNCTION g_mapped_file_get_length ##### -->
|
||||||
|
<para>
|
||||||
|
|
||||||
|
</para>
|
||||||
|
|
||||||
|
@file:
|
||||||
|
@Returns:
|
||||||
|
|
||||||
|
|
||||||
|
<!-- ##### FUNCTION g_mapped_file_get_contents ##### -->
|
||||||
|
<para>
|
||||||
|
|
||||||
|
</para>
|
||||||
|
|
||||||
|
@file:
|
||||||
|
@Returns:
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION g_open ##### -->
|
<!-- ##### FUNCTION g_open ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
|
||||||
|
@ -346,7 +346,9 @@ Flags used internally in the #GHook implementation.
|
|||||||
|
|
||||||
@G_HOOK_FLAG_ACTIVE: set if the hook has not been destroyed.
|
@G_HOOK_FLAG_ACTIVE: set if the hook has not been destroyed.
|
||||||
@G_HOOK_FLAG_IN_CALL: set if the hook is currently being run.
|
@G_HOOK_FLAG_IN_CALL: set if the hook is currently being run.
|
||||||
@G_HOOK_FLAG_MASK:
|
@G_HOOK_FLAG_MASK: A mask covering all bits reserved for
|
||||||
|
hook flags; see #G_HOOK_FLAGS_USER_SHIFT
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### MACRO G_HOOK_FLAGS ##### -->
|
<!-- ##### MACRO G_HOOK_FLAGS ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
@ -564,10 +564,10 @@ g_io_channel_set_flags().
|
|||||||
g_io_channel_write(), and g_io_channel_seek().
|
g_io_channel_write(), and g_io_channel_seek().
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@G_IO_ERROR_NONE:
|
@G_IO_ERROR_NONE: no error
|
||||||
@G_IO_ERROR_AGAIN:
|
@G_IO_ERROR_AGAIN: an EAGAIN error occurred
|
||||||
@G_IO_ERROR_INVAL:
|
@G_IO_ERROR_INVAL: an EINVAL error occurred
|
||||||
@G_IO_ERROR_UNKNOWN:
|
@G_IO_ERROR_UNKNOWN: another error occurred
|
||||||
|
|
||||||
<!-- ##### FUNCTION g_io_channel_write ##### -->
|
<!-- ##### FUNCTION g_io_channel_write ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
@ -233,6 +233,15 @@ The returned string should be freed when no longer needed.
|
|||||||
@Returns:
|
@Returns:
|
||||||
|
|
||||||
|
|
||||||
|
<!-- ##### FUNCTION g_build_filenamev ##### -->
|
||||||
|
<para>
|
||||||
|
|
||||||
|
</para>
|
||||||
|
|
||||||
|
@args:
|
||||||
|
@Returns:
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION g_build_path ##### -->
|
<!-- ##### FUNCTION g_build_path ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
|
||||||
@ -244,6 +253,16 @@ The returned string should be freed when no longer needed.
|
|||||||
@Returns:
|
@Returns:
|
||||||
|
|
||||||
|
|
||||||
|
<!-- ##### FUNCTION g_build_pathv ##### -->
|
||||||
|
<para>
|
||||||
|
|
||||||
|
</para>
|
||||||
|
|
||||||
|
@separator:
|
||||||
|
@args:
|
||||||
|
@Returns:
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION g_find_program_in_path ##### -->
|
<!-- ##### FUNCTION g_find_program_in_path ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
|
||||||
@ -330,8 +349,8 @@ Associates a string with a bit flag.
|
|||||||
Used in g_parse_debug_string().
|
Used in g_parse_debug_string().
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@key:
|
@key: the string
|
||||||
@value:
|
@value: the flag
|
||||||
|
|
||||||
<!-- ##### USER_FUNCTION GVoidFunc ##### -->
|
<!-- ##### USER_FUNCTION GVoidFunc ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
@ -124,6 +124,9 @@ main (int argc, char *argv[])
|
|||||||
|
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
<!-- ##### SECTION Stability_Level ##### -->
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### ENUM GOptionError ##### -->
|
<!-- ##### ENUM GOptionError ##### -->
|
||||||
<para>
|
<para>
|
||||||
Error codes returned by option parsing.
|
Error codes returned by option parsing.
|
||||||
@ -431,8 +434,6 @@ The type of function that can be called before and after parsing.
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
@context The active #GOptionContext
|
@context The active #GOptionContext
|
||||||
|
|
||||||
@context:
|
|
||||||
@group: The group to which the function belongs
|
@group: The group to which the function belongs
|
||||||
@data: User data added to the #GOptionGroup containing the option when it
|
@data: User data added to the #GOptionGroup containing the option when it
|
||||||
was created with g_option_group_new()
|
was created with g_option_group_new()
|
||||||
@ -458,8 +459,6 @@ occurs.
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
@context The active #GOptionContext
|
@context The active #GOptionContext
|
||||||
|
|
||||||
@context:
|
|
||||||
@group: The group to which the function belongs
|
@group: The group to which the function belongs
|
||||||
@data: User data added to the #GOptionGroup containing the option when it
|
@data: User data added to the #GOptionGroup containing the option when it
|
||||||
was created with g_option_group_new()
|
was created with g_option_group_new()
|
||||||
|
@ -1621,13 +1621,14 @@ you should also free the #GStaticPrivate.
|
|||||||
|
|
||||||
<!-- ##### STRUCT GOnce ##### -->
|
<!-- ##### STRUCT GOnce ##### -->
|
||||||
<para>
|
<para>
|
||||||
A <structname>GOnce</structname> struct controls a one-time initialization function.
|
A <structname>GOnce</structname> struct controls a one-time initialization
|
||||||
Any one-time initialization function must have its own unique <structname>GOnce</structname>
|
function. Any one-time initialization function must have its own unique
|
||||||
struct.
|
<structname>GOnce</structname> struct.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@status:
|
@status: the status of the #GOnce
|
||||||
@retval:
|
@retval: the value returned by the call to the function, if @status
|
||||||
|
is %G_ONCE_STATUS_READY
|
||||||
@Since: 2.4
|
@Since: 2.4
|
||||||
|
|
||||||
<!-- ##### ENUM GOnceStatus ##### -->
|
<!-- ##### ENUM GOnceStatus ##### -->
|
||||||
@ -1657,17 +1658,20 @@ GOnce my_once = G_ONCE_INIT;
|
|||||||
|
|
||||||
<!-- ##### MACRO g_once ##### -->
|
<!-- ##### MACRO g_once ##### -->
|
||||||
<para>
|
<para>
|
||||||
The first call to this routine by a process with a given #GOnce struct calls @func with the given
|
The first call to this routine by a process with a given #GOnce struct calls
|
||||||
argument. Thereafter, subsequent calls to g_once() with the same #GOnce struct do not call @func
|
@func with the given argument. Thereafter, subsequent calls to g_once() with
|
||||||
again, but return the stored result of the first call. On return from g_once(), the status of @once
|
the same #GOnce struct do not call @func again, but return the stored result
|
||||||
will be %G_ONCE_STATUS_READY.
|
of the first call. On return from g_once(), the status of @once will be
|
||||||
|
%G_ONCE_STATUS_READY.
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
For example, a mutex or a thread-specific data key must be created exactly once. In a threaded
|
For example, a mutex or a thread-specific data key must be created exactly
|
||||||
environment, calling g_once() ensures that the initialization is serialized across multiple threads.
|
once. In a threaded environment, calling g_once() ensures that the
|
||||||
|
initialization is serialized across multiple threads.
|
||||||
</para>
|
</para>
|
||||||
<note><para>
|
<note><para>
|
||||||
Calling g_once() recursively on the same #GOnce struct in @func will lead to a deadlock.
|
Calling g_once() recursively on the same #GOnce struct in @func will lead
|
||||||
|
to a deadlock.
|
||||||
</para></note>
|
</para></note>
|
||||||
<para>
|
<para>
|
||||||
<informalexample>
|
<informalexample>
|
||||||
@ -1686,8 +1690,9 @@ get_debug_flags ()
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
@once: a #GOnce structure
|
@once: a #GOnce structure
|
||||||
@func: the function associated to @once. This function is called only once, regardless of the
|
@func: the function associated to @once. This function is called only once,
|
||||||
number of times it and its associated #GOnce struct are passed to g_once() .
|
regardless of the number of times it and its associated #GOnce struct
|
||||||
|
are passed to g_once() .
|
||||||
@arg: data to be passed to @func
|
@arg: data to be passed to @func
|
||||||
@Since: 2.4
|
@Since: 2.4
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user