summaryrefslogtreecommitdiff
path: root/str.c (follow)
Commit message (Collapse)AuthorAge
* Switch back to variadic log macros.HEADpumasterAndre Noll2025-03-23
| | | | | | | | | | | | | This essentially reverts commit 66cdd5bc99a5 which aimed to make the dss log facility C89 conform. While this was a worthwhile goal in 2012, it has little value today, since in 2025 we can safely assume a C99 compliant compiler. The patch was created with git revert -Xours 66cdd5bc followed by manual tweaks to make it compile again.
* Dedoxify the source.Andre Noll2025-02-01
| | | | | | The doxygen comments actually make the source code harder to read, because they tend to document the obvious. Besides, they are not used uniformly accross the code base anyway.
* Consult $HOME and $LOGNAME rather than calling getpwuid(),Andre Noll2024-06-26
| | | | | | | | | | | | Quiting getpwnam(3): An application that wants to determine its user’s home directory should inspect the value of HOME (rather than the value getpwuid(getuid())->pw_dir) since this allows the user to modify their notion of "the home directory" during a login session. The old behaviour of get_homedir() to return "/tmp" in the error case is misleading at best, so abort in this case.
* Simplify split_args().Andre Noll2019-10-13
| | | | | Both callers pass the same value for the delimiters, so we can remove the last argument of the function.
* Replace license boilerplate with single line SPDX comments.Andre Noll2017-11-19
| | | | | | | | | | | | | | | | | | | | This gets rid of existing copyright templates in favor of just the one-liner SPDX (Software Package Data Exchange) notice. All files are licensed under the GPL-2.0, so the same tag is added to each file. No copyright is changed by this commit. Several files (mostly the very short ones) did not contain a license text so far. By default all files without license information are under the default license of this package, which is GPL version 2. This commit adds the missing SPDX line so that now all files except dss.css, index.html.in, INSTALL, NEWS and README have it. We also remove author and copyright year, since the author is the same everywhere, and the year hasn't been updated any more since at least six years. Accurate information is available from the git log. The COPYING file can also be removed because the license text at https://spdx.org/licenses/GPL-2.0.html is immutable.
* str.c: Remove vsnprintf() workaround for old glibc.Andre Noll2015-01-06
| | | | | Since glibc-2.1 was released 16 years ago, the workaround for glibc-2.0 is no longer necessary. Even the example code of printf(3) dropped it.
* str.c: Get rid of VSPRINTF macro.Andre Noll2015-01-06
| | | | | It has only one user, make_message(), so it's simpler to include the code there.
* Assorted typo fixes in comments.Andre Noll2015-01-06
|
* str.c: Remove pointless initialization.Andre Noll2015-01-06
| | | | | | | The variable p is initialized to a different value a few lines later and the value set in the definition is not used in between. Found by cppcheck.
* Change email address and URLs.Andre Noll2014-08-19
| | | | | | | | The web and email service of systemlinux.org was down for two weeks. Meanwhile the dss web pages found a new home at the MPI campus of Tübingen. This commit changes the email addresses and the home page URL.
* Merge branch 't/rename_system_files'Andre Noll2012-09-16
| | | | | | | | | | | | Has been cooking for several weeks. The conflicts daemon.c exec.c file.c ipc.c sig.c are trivial and can be resolved easily.
* Rename source files which also exist as system headers.Andre Noll2012-08-15
As pointed out by Daniel Richard G. some of the dss header files are named the same as system header files. This patch renames these headers as well as their corresponding .c files. Specifically, error.h, fd.h, signal.h, string.h and time.h become err.h, file.h, sig.h, str.h and tv.h.