summaryrefslogtreecommitdiff
path: root/glib/glib-unix.h
Commit message (Collapse)AuthorAgeFilesLines
* glib: Add SPDX license headers automaticallyPhilip Withnall2022-05-181-0/+2
| | | | | | | | | | | | | | Add SPDX license (but not copyright) headers to all files which follow a certain pattern in their existing non-machine-readable header comment. This commit was entirely generated using the command: ``` git ls-files glib/*.[ch] | xargs perl -0777 -pi -e 's/\n \*\n \* This library is free software; you can redistribute it and\/or\n \* modify it under the terms of the GNU Lesser General Public/\n \*\n \* SPDX-License-Identifier: LGPL-2.1-or-later\n \*\n \* This library is free software; you can redistribute it and\/or\n \* modify it under the terms of the GNU Lesser General Public/igs' ``` Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Helps: #1415
* docs: mark macros, flags, enums with percent signGabor Karsay2022-03-041-1/+1
|
* glib-unix: Add g_unix_get_passwd_entry() functionPhilip Withnall2019-11-261-0/+4
| | | | | | | | | This is a convenience wrapper around getpwnam_r() which handles all the memory allocation faff. Signed-off-by: Philip Withnall <withnall@endlessm.com> Helps: #1687
* glib/: LGPLv2+ -> LGPLv2.1+Sébastien Wilmet2017-05-241-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All glib/*.{c,h} files have been processed, as well as gtester-report. 12 of those files are not licensed under LGPL: gbsearcharray.h gconstructor.h glibintl.h gmirroringtable.h gscripttable.h gtranslit-data.h gunibreak.h gunichartables.h gunicomp.h gunidecomp.h valgrind.h win_iconv.c Some of them are generated files, some are licensed under a BSD-style license and win_iconv.c is in the public domain. Sub-directories inside glib/: deprecated/: processed in a previous commit glib-mirroring-tab/: already LGPLv2.1+ gnulib/: not modified, the code is copied from gnulib libcharset/: a copy pcre/: a copy tests/: processed in a previous commit https://bugzilla.gnome.org/show_bug.cgi?id=776504
* docs: Remove a few trailing <literal>sMatthias Clasen2014-02-141-10/+8
|
* Updated FSF's addressDaniel Mustieles2014-01-311-3/+1
|
* Add a UNIX fd sourceRyan Lortie2013-01-151-0/+33
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=658020
* Annotate API introduced for 2.30 with GLIB_AVAILABLE_IN_2_30Colin Walters2012-05-261-0/+6
| | | | | | | | | | | | I didn't do this comprehensively, since there's a lot of it, mainly due to the GDBus object manager stuff, but anyone trying to use that would fail fast due to lack of the gdbus code generator. My main goal was to get API additions to existing classes like g_data_input_stream_read_line_utf8(), as well as the lower level new API like glib-unix.h. https://bugzilla.gnome.org/show_bug.cgi?id=676816
* documentation fixesStef Walter2011-12-131-2/+2
| | | | | | | | Fixes for gtk-doc warnings. http://bugzilla.gnome.org/show_bug.cgi?id=66469 https://bugzilla.gnome.org/show_bug.cgi?id=664699
* glib-unix.h: Add G_BEGIN/END_DECLSMatthias Clasen2011-11-121-1/+5
| | | | The omission was pointed out in bug 663880.
* gtk-doc fixups for glib/Ryan Lortie2011-09-051-5/+5
|
* unix signal watch: make API match other sourcesRyan Lortie2011-08-301-6/+10
| | | | | | | | Change the unix signal watch API to match other sources in both available functions, names of those functions and order of the parameters to the _full function. https://bugzilla.gnome.org/show_bug.cgi?id=657705
* Documentation tweaksMatthias Clasen2011-05-281-10/+10
| | | | Add Since tags, etc.
* Rename g_unix_pipe_flags to g_unix_open_pipeColin Walters2011-05-031-3/+3
| | | | | | From IRC discussion, people liked this name more. https://bugzilla.gnome.org/show_bug.cgi?id=649322
* Use g types in public API for consistencyColin Walters2011-05-031-9/+9
|
* g_unix_set_fd_nonblocking: New API to control file descriptor blocking stateColin Walters2011-05-031-0/+4
| | | | | | And use it in relevant places in GLib. https://bugzilla.gnome.org/show_bug.cgi?id=649225
* glib-unix.h: Unconditionally include unistd.hColin Walters2011-05-031-2/+0
| | | | | | danw points out it's part of POSIX. https://bugzilla.gnome.org/show_bug.cgi?id=649201
* Fix usage of _GNU_SOURCEDan Winship2011-05-031-8/+0
| | | | | | | | | | | | | | | | | | _GNU_SOURCE must be defined before including any other (system) header, so defining it in glib-unix.h (and hoping no one has included anything else before that) is wrong. And the "#define _USE_GNU" workaround for this problem in gnetworkingprivate.h is even wronger (and still prone to failure anyway due to single-include guards). Fix this by defining _GNU_SOURCE in config.h when building against glibc. In theory this is bad because new releases of glibc may include symbols that conflict with glib symbols, which could then cause compile failures. However, most people only see new releases of glibc when they upgrade their distro, at which point they also generally get new releases of gcc, which have new warnings/errors to clean up anyway. https://bugzilla.gnome.org/show_bug.cgi?id=649201
* glib-unix: New API to watch some Unix signalsColin Walters2011-04-271-5/+17
| | | | | | | | | | | | This new API allows watching a few select Unix signals; looking through the list on my system, I didn't see anything else that I think it'd reasonable to watch. We build on the previous patch to make the child watch helper thread that existed on Unix handle these signals in the threaded case. In the non-threaded case, they're just global variables. https://bugzilla.gnome.org/show_bug.cgi?id=644941
* glib-unix: New Unix-specific APIColin Walters2011-04-271-0/+70
GLib historically has been designed to be "mostly" portable; there are some functions only available on Unix like g_io_channel_unix_new(), but these are typically paired with obvious counterparts for Win32. However, as GLib is used not only by portable software, but components targeting Unix (or even just Linux), there are a few cases where it would be very convenient if GLib shipped built-in functionality. This initial patch is a basic wrapper around pipe2(), including fallbacks for older kernels. This pairs well with the existing g_spawn_*() API and its child_setup functionality. However, in the future, I want to add a signal() wrapper here, complete with proxying the signal to a mainloop. I have initial code for this, but doing it sanely (including factoring out gmain.c's private worker thread), is a complex task, and I don't want to block on that. See also gwin32.h for Win32 specific functionality. https://bugzilla.gnome.org/show_bug.cgi?id=644941