newsgnulib - GNU portability library - News

Show summaries for the latest news.

Latest News Approved - With Summaries
Gnulib helps you get away from fork() + exec()
     posted by haible, Sun 20 Nov 2022 04:27:43 PM UTC - 0 replies

Spawning a new process has traditionally been coded by a fork() call, followed by an execv/execl/execlp/execvp call in the child process. This is often referred to as the fork + exec idiom.

In 90% of the cases, there is something better: the posix_spawn/posix_spawnp functions. ...

[Read more]
Gnulib provides versatile bit-set implementations
     posted by akim, Wed 13 Jan 2021 12:17:37 PM UTC - 0 replies

Gnulib features bitset, a module to support operations on lists of bits.

Its API is rich, and includes:

  • all the expected operations on single bit (set, toggle, test, etc.);
  • all the traditional binary bitwise operators (and, or, xor), often in two flavors (return new values, or perform in place); ...

[Read more]
Gnulib supports portable multithreading
     posted by haible, Wed 30 Dec 2020 03:10:08 PM UTC - 0 replies

There are three main motivations for using multiple threads in a program:

  • To get computational tasks done is less time, by using more than one CPU core at once.
  • For event handling. The older approach with signals and/or file descriptors in ...

[Read more]
Gnulib helps you write efficient algorithms
     posted by haible, Wed 23 Dec 2020 01:42:02 PM UTC - 0 replies

When writing algorithmic code, the classical approach is to define the data structures, write the algorithm, debug it, and then profile it. It often occurs that you notice that a certain list, set, or map can get large and that this costs CPU time. ...

[Read more]
Gnulib can help your C++ programs
     posted by haible, Wed 16 Dec 2020 08:31:05 PM UTC - 0 replies

Typically you test your programs on glibc systems.  Gnulib helps you to have the same program compile and work fine on other platforms, such as musl libc systems, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Solaris, Cygwin, mingw, MSVC, Haiku, and even Minix and Android. ...

[Read more]
Gnulib helps you avoid integer overflow vulnerabilities
     posted by eggert, Tue 08 Dec 2020 01:47:09 AM UTC - 0 replies

Gnulib's intprops module has new macros INT_ADD_OK, INT_SUBTRACT_OK, and INT_MULTIPLY_OK that support portable overflow checking while doing integer arithmetic. On GNU platforms the macros typically use only a single machine instruction more than ordinary integer arithmetic would.

New features
     posted by haible, Sat 21 Apr 2012 07:22:08 PM UTC - 0 replies

New major features were added recently:

  • Large File Support on native Windows: The new module 'largefile' enables upport for files larger than 2 GiB not only on Unix platforms, but also on native Windows.
  • The Microsoft Visual C compiler is ...

[Read more]
New features
     posted by haible, Sun 03 Jul 2011 01:25:07 PM UTC - 0 replies

Recently added new major features:

  • 2011-06-21 Reliable error reporting through strerror_r, strerror, perror.
  • 2011-06-12 The 'acl' module now supports the ACLs of HP-UX 11.11 and newer.
  • Improvements for multiple invocations of gnulib-tool in the scope of the same ...

[Read more]

Back to the top

Powered by Savane 3.9