Wednesday, July 23, 2014

Linux/UNIX System Programming course scheduled for October 2014

I've scheduled a further 5-day Linux/UNIX System Programming course to take place in Munich, Germany, for the week of 6-10 October 2014.

The course is intended for programmers developing system-level, embedded, or network applications for Linux and UNIX systems, or programmers porting such applications from other operating systems (e.g., Windows) to Linux or UNIX. The course is based on my book, The Linux Programming Interface (TLPI), and covers topics such as low-level file I/O; signals and timers; creating processes and executing programs; POSIX threads programming; interprocess communication (pipes, FIFOs, message queues, semaphores, shared memory),  network programming (sockets), and server design.
     
The course has a lecture+lab format, and devotes substantial time to working on some carefully chosen programming exercises that put the "theory" into practice. Students receive a copy of TLPI, along with a 600-page course book containing the more than 1000 slides that are used in the course. A reading knowledge of C is assumed; no previous system programming experience is needed.

Some useful links for anyone interested in the course:

Questions about the course? Email me via training@man7.org.

Wednesday, July 9, 2014

man-pages-3.70 is released

I've released man-pages-3.70. The release tarball is available on kernel.org. The browsable online pages can be found on man7.org. The Git repository for man-pages is available on kernel.org.

This is a relatively small release. As well as many smaller fixes to various pages, the more notable changes in man-pages-3.70 are the following:

  • A new sprof(1) page documents the sprof command provided by glibc.
  • The epoll_ctl(2) and epoll(7) pages add documentation of the EPOLLWAKEUP flag that appeared in Linux 3.5.
  • Various parts of the syslog(2) page were reworked and improved.
  • A number of details were added or improved in the inotify(7) page.

Sunday, June 15, 2014

man-pages-3.69 is released

I've released man-pages-3.69. The release tarball is available on kernel.org. The browsable online pages can be found on man7.org. The Git repository for man-pages is available on kernel.org.

Aside from minor improvements and fixes to various pages, the notable changes in man-pages-3.69 are the following:

  • A new iconv(1) page by Marko Myllynen documents the iconv command provided by glibc.
  • A new iconvconfig(8) page by Marko Myllynen documents the iconvconfig command provided by glibc.
  • Jeff Layton has added documentation in the fcntl(2) man page of the new "open file description locks" that was added in Linux 3.15. (In addition, I've made a number of other updates in this page, mainly to do with file locking commands.)
  • Peng Haitao continues adding information about thread safety in various manual pages, and has been joined in this task by Qian Lei.

Thursday, June 5, 2014

Linux/UNIX System Programming course scheduled for July

I've scheduled a further 5-day Linux/UNIX System Programming course to take place in Munich, Germany, for the week of 21-25 July 2014.

The course is intended for programmers developing system-level, embedded, or network applications for Linux and UNIX systems, or programmers porting such applications from other operating systems (e.g., Windows) to Linux or UNIX. The course is based on my book, The Linux Programming Interface (TLPI), and covers topics such as low-level file I/O; signals and timers; creating processes and executing programs; POSIX threads programming; interprocess communication (pipes, FIFOs, message queues, semaphores, shared memory),  network programming (sockets), and server design.
     
The course has a lecture+lab format, and devotes substantial time to working on some carefully chosen programming exercises that put the "theory" into practice. Students receive a copy of TLPI, along with a 600-page course book containing the more than 1000 slides that are used in the course. A reading knowledge of C is assumed; no previous system programming experience is needed.

Some useful links for anyone interested in the course:

Questions about the course? Email me via training@man7.org.

Wednesday, May 28, 2014

man-pages-3.68 is released

I've released man-pages-3.68. The release tarball is available on kernel.org. The browsable online pages can be found on man7.org. The Git repository for man-pages is available on kernel.org.

Aside from a larger-than-usual set of minor improvements and fixes to various pages, the notable changes in man-pages-3.68 are the following:

  • A new localedef(1) page documents the localedef command; thanks to Marko Myllynen, Richard Braakman, Alastair McKinstry, and Lars Wirzenius.
  • A number of the pages related to locales received significant updates, thanks to the efforts of Marko Myllynen.
  • Thanks to some nice scripting work, Rasmus Villemoes was able to uncover a number of subtle errors (missing "const" keywords, incorrect argument types, and so on) in the SYNOPSIS section of many pages. A large number of his patches to fix those problems were merged in this release.
  • Meanwhile, Peng Haitao continues his work on adding thread-safety information to the manual pages; by now, nearly one third of the roughly 800 Section 2 and 3 pages have an ATTRIBUTES section.

Friday, May 23, 2014

man-pages-3.67 is released

I've released man-pages-3.67. The release tarball is available on kernel.org. The browsable online pages can be found on man7.org. The Git repository for man-pages is available on kernel.org.

Aside from a larger-than-usual set of minor improvements and fixes to various pages, the notable changes in man-pages-3.67 are the following:

  • A new sched_setattr() manual page documents the sched_setattr() and sched_getattr() system calls added in Linux 3.14.
  • Much of the system(3) manual page have been rewritten, and various details added.
  • The sched(7) adds documentation of the new SCHED_DEADLINE scheduling policy added in Linux 3.14.

Thursday, May 8, 2014

man-pages-3.66 is released

I've released man-pages-3.66. The release tarball is available on kernel.org. The browsable online pages can be found on man7.org. The Git repository for man-pages is available on kernel.org.

Aside from a number of minor improvements and fixes to various pages, the notable changes in man-pages-3.66 are the following:

  • Thanks to some excellent work by Heinrich Schuchardt, the fanotify API that was added in Linux 2.6.37 if at last well documented in three new manual pages: fanotify_init(2), fanotify_mark(2), and fanotify(7).
  • A new sched(7) manual page provides an overview of the Linux scheduling APIs. Much of the material in this page was extracted from the sched_setscheduler(2), which has now been trimmed (and extensively rewritten) so that it contains just a description of the sched_getscheduler() and sched_setscheduler() system calls. These changes pave the way for new pages that will probably be added in man-pages-67 that document the new sched_setattr() and sched_getattr() system calls that were added in Linux 3.14.
  • The rename(2) manual page adds documentation of the renameat2() system call that was added in Linux 3.15.
  • The fallocate(2) man page adds documentation of the FALLOC_FL_ZERO_RANGE operation that was added in Linux 3.14.

Sunday, April 20, 2014

man-pages-3.65 is released

I've released man-pages-3.65. The release tarball is available on kernel.org. The browsable online pages can be found on man7.org. The Git repository for man-pages is available on kernel.org.

Aside from a number of minor improvements and fixes to various pages, the notable changes in man-pages-3.65 are the following:

  • A new inet_net_pton(3) page describes the inet_net_pton() and inet_net_ntop() library functions.
  • The fallocate(2) page adds documentation for the FALLOC_FL_COLLAPSE_RANGE operation added in Linux 3.15.
  • The prctl(2) page adds documentation of the PR_SET_THP_DISABLE and PR_GET_THP_DISABLE operations added in Linux 3.15.
  • Peng Haitao continued the task of adding thread-safety information to various man pages.

Sunday, April 6, 2014

man-pages-3.64 is released

I've released man-pages-3.64. The release tarball is available on kernel.org. The browsable online pages can be found on man7.org. The Git repository for man-pages is available on kernel.org.

Aside from a number of minor improvements and fixes to various pages, the notable changes in man-pages-3.64 are the following:

  • I've written a new open_by_name_at(2) page that documents the name_to_handle_at() and open_by_handle_at() system calls that were added to Linux in version 2.6.39.
  • I've made substantial updates to the inotify(7) man page to document some of the limitations, complexities, and pitfalls of the inotify API.

Tuesday, March 18, 2014

man-pages-3.63 is released

I've released man-pages-3.63. The release tarball is available on kernel.org. The browsable online pages can be found on man7.org. The Git repository for man-pages is available on kernel.org.

Most notable among the changes in the release are many new and modified pages related to locales. Among the changes in man-pages-3.63 are the following:

  • I've written new pages that document the APIs used to create, modify, use, duplicate, and free locale objects: newlocale(3), duplocale(3), and uselocale(3).
  • I added documentation of various functions that are analogues of traditional locale-dependent functions, but differ in that they allow the caller to explicitly specify a locale. In each case, the documentation was added to the existing page for the traditional functions.
    • isalnum_l(3), isalpha_l(3), isblank_l(3), iscntrl_l(3), isdigit_l(3), isgraph_l(3), islower_l(3), isprint_l(3), ispunct_l(3), isspace_l(3), isupper_l(3), isxdigit_l(3), and isascii_l(3) in isalpha(3).
    • strerror_l(3) in strerror(3).
    • toupper_l(3) and tolower_l(3) in toupper(3).
    • towlower_l(3) in towlower(3).
    • towupper_l(3) in towupper(3).
    • In addition, I also rewrote the descriptions of towupper(3) and towlower(3) to be simpler and (I hope) clearer.
  • I've added documentation of the following locale categories in locale(7): LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_NAME, LC_PAPER, and LC_TELEPHONE.
  • NOTE: There are many more locale-related APIs that remain to be documented (basically following the same pattern as in the above pages), as can be seen in the man-pages list of of missing pages. Assistance would be very welcome!

Wednesday, March 12, 2014

man-pages-3.62 is released

I've released man-pages-3.62. The release tarball is available on kernel.org. The browsable online pages can be found on man7.org. The Git repository for man-pages is available on kernel.org.

Among the more notable changes in man-pages-3.62 are the following:

  • A new locale(1) page documents the locale command provided by glibc.
  • The locale(5) page adds documentation of the (GNU-specific) LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_NAME, LC_PAPER, and LC_TELEPHONE locale categories. Many other details in this page were also added or improved.
  • Many pieces of information in the feature_test_macros(7) page were updated or improved.
  • Again, Peng Haitao continued adding notes on thread-safety to various manual pages.

Wednesday, February 26, 2014

man-pages-3.61 is released

I've released man-pages-3.61. The release tarball is available on kernel.org. The browsable online pages can be found on man7.org. The Git repository for man-pages is available on kernel.org.

This was a relatively small release. Among the more notable changes in man-pages-3.61 are the following:

  • As ever, Peng Haitao continued adding notes on thread-safety to various manual pages.
  • A note from Christoph Hellwig prompted me to perform a task that has been queued for a while: merging the text of the man pages for the "directory file descriptor" APIs into their corresponding traditional pages. When the "directory file descriptor" pages were originally written (mostly in 2006), the APIs were not part of POSIX and (in most cases) were not available on other systems. So, it made some sense to wall them off into their own separate pages. Eight years later, with the APIs now all in POSIX (except scandirat()), it is much more sensible to document the newer APIs alongside their traditional counterparts, so that the newer APIs are not "hidden", and the reader can more easily see the differences between the APIs.

    Thus, the text of 14 pairs of pages has been merged, and the "merged from" pages have been converted to links to the "merged to" pages. Along the way, a few other fixes were made to the pages, as noted below. The resulting merged pages are: access(2), chmod(2), chown(2), link(2), mkdir(2), mknod(2), open(2), readlink(2), rename(2), stat(2), symlink(2), unlink(2), mkfifo(3), and scandir(3).

    One page that did not undergo such a change was utimensat(2), which is different enough from utime(2) that it warrants a separate page. Unlike the other pages, the utimensat(2) page was also already self-contained, rather than defining itself in terms of differences from the traditional API as the other pages did.
In addition, smaller improvements and fixes have been made to many other pages.

Wednesday, February 19, 2014

Further Linux/UNIX System Programming courses scheduled

I've scheduled two further public iterations of my Linux/UNIX System Programming course in Munich, Germany, in April and June, and I hope to announce a San Francisco date soon as well. (I'm also available to give on-demand tailored versions of the course onsite at customer premises, in Europe, the US, and further afield.)
          
The 5-day course is intended for programmers developing system-level, embedded, or network applications for Linux and UNIX systems, or programmers porting such applications from other operating systems (e.g., Windows) to Linux or UNIX. The course is based on my book, The Linux Programming Interface (TLPI), and covers topics such as low-level file I/O; signals and timers; creating processes and executing programs; POSIX threads programming; interprocess communication (pipes, FIFOs, message queues, semaphores, shared memory),  network programming (sockets), and server design.
     
The course has a lecture+lab format, and devotes substantial time to working on some carefully chosen programming exercises that put the "theory" into practice. Students receive a copy of TLPI, along with a 600-page course book containing the more than 1000 slides that are used in the course. A reading knowledge of C is assumed; no previous system programming experience is needed.

Some useful links for anyone interested in the course:

Questions about the course? Email me via training@man7.org.

Sunday, February 16, 2014

man-pages-3.59 and man-pages-3.60 released

I've released man-pages-3.59. The release tarball is available on kernel.org. The browsable online pages can be found on man7.org. The Git repository for man-pages is available on kernel.org.

The sole change in this release is the conversion of various man pages that contained non-ASCII characters, as well as the changelog, to UTF-8 encoding, a task completed thanks largely to some scripts provided by Peter Schiffer.

Update, 2014-02-18: turns out that a couple of section 7 pages had encoding errors added in man-pages-3.59. So, I've decided to make a quick small 3.60 release that fixes those issues, and includes a few other unrelated minor fixes.

Tuesday, February 11, 2014

man-pages-3.58 is released

I've released man-pages-3.58. The release tarball is available on kernel.org. The browsable online pages can be found on man7.org. The Git repository for man-pages is available on kernel.org.

This was a relatively small release. Among the more notable changes in man-pages-3.58 are the following:

  • The pipe(2) man page adds documentation of the new O_DIRECT flag that was implemented for pipe2() in Linux 3.4.
  • Daniel Borkmann added a description of the PACKET_QDISC_BYPASS socket option to the packet(7) man page.
  • The recv(2) man page underwent some reworking to add some details and make its structure more comprehensible.
  • And, as ever, Peng Haitao continued adding notes on thread-safety to various manual pages.
In addition, smaller improvements and fixes have been made to many other pages.