One of many newbie questions from me... Cant find the info I'm looking for.
If SIG_IGN is an acronym for signal ignore, then what does DFL mean?
I've know (well I presume) it restores default behavior, but the acronym?
On Sat, 08 Nov 2025 19:01:00 +0000, Michael Sanders wrote:
One of many newbie questions from me... Cant find the info I'm looking for. >>
If SIG_IGN is an acronym for signal ignore, then what does DFL mean?
I've know (well I presume) it restores default behavior, but the acronym?
From the C11 draft standard (yes, I know, but that's the most current I have)
7.14.1.1 The signal function
2. ... If the value of func is SIG_DFL, default handling for that
signal will occur.
Neither the C standard, nor the Posix standards or Unix manuals before that, seem to specify exactly _why_ SIG_DFL is named that way. Presumably because other abbreviations would somehow conflict or possibly be confused with existing nomenclature (SIGUSR1 and SIGUSR2, for instance, are user-DEFined signals, and SIG_DEF might confuse someone who isn't entirely familiar with the nomenclature), or because (like many abbreviations in Unix, "DeFauLt" made more sense to someone.
On Sat, 08 Nov 2025 19:01:00 +0000, Michael Sanders wrote:
One of many newbie questions from me... Cant find the info I'm looking for. >>
If SIG_IGN is an acronym for signal ignore, then what does DFL mean?
I've know (well I presume) it restores default behavior, but the acronym?
From the C11 draft standard (yes, I know, but that's the most current I have)
7.14.1.1 The signal function
2. ... If the value of func is SIG_DFL, default handling for that
signal will occur.
Neither the C standard, nor the Posix standards or Unix manuals before that, seem to specify exactly _why_ SIG_DFL is named that way.
On 2025-11-08, Lew Pitcher <lew.pitcher@digitalfreehold.ca> wrote:
On Sat, 08 Nov 2025 19:01:00 +0000, Michael Sanders wrote:
One of many newbie questions from me... Cant find the info I'm looking for. >>>From the C11 draft standard (yes, I know, but that's the most current I have)
If SIG_IGN is an acronym for signal ignore, then what does DFL mean?
I've know (well I presume) it restores default behavior, but the acronym? >>
7.14.1.1 The signal function
2. ... If the value of func is SIG_DFL, default handling for that >> signal will occur.
Neither the C standard, nor the Posix standards or Unix manuals before that, >> seem to specify exactly _why_ SIG_DFL is named that way.
It's not named SIGNAL_DEFAULT probably in order to harmonize with
strpbrk, which is not named string_pointer_to_break.
Programmers long ago loved creating "bumper stumpers" by removing
vowels and some consontants too.
I agree with them; I positively never want to write shit like
#include <standard_input_ouput.header>
or work in any tech stack where that is the norm.
The superfluous "std" should have been omitted from <stdio.h>; other standard headers do not carry a reminder that they are standard, like <string.h>, <math.h> or <assert.h>.
On Sat, 8 Nov 2025 19:28:20 -0000 (UTC), Lew Pitcher wrote:
On Sat, 08 Nov 2025 19:01:00 +0000, Michael Sanders wrote:
One of many newbie questions from me... Cant find the info I'm looking for. >>>From the C11 draft standard (yes, I know, but that's the most current I have)
If SIG_IGN is an acronym for signal ignore, then what does DFL mean?
I've know (well I presume) it restores default behavior, but the acronym? >>
7.14.1.1 The signal function
2. ... If the value of func is SIG_DFL, default handling for that >> signal will occur.
Neither the C standard, nor the Posix standards or Unix manuals before that, >> seem to specify exactly _why_ SIG_DFL is named that way. Presumably because >> other abbreviations would somehow conflict or possibly be confused with
existing nomenclature (SIGUSR1 and SIGUSR2, for instance, are user-DEFined >> signals, and SIG_DEF might confuse someone who isn't entirely familiar with >> the nomenclature), or because (like many abbreviations in Unix, "DeFauLt"
made more sense to someone.
Thanks again Lew. I'm running with: [D]e[F]ault [L]evel in my // comments.
Thanks again Lew. I'm running with: [D]e[F]ault [L]evel in my // comments.
That is likely apocryphal; since L is present in "default", the
simplest hypothesis is that the L in DFL is that one.
The argument in question is a handler not a level. That has an L,
but not in the leading position, making the revised origin hypothesis [D]e[F]ault hand[L]ing is even more farfetched.
One of many newbie questions from me... Cant find the info I'm looking for.
If SIG_IGN is an acronym for signal ignore, then what does DFL mean?
I've know (well I presume) it restores default behavior, but the acronym?
| Sysop: | DaiTengu |
|---|---|
| Location: | Appleton, WI |
| Users: | 1,076 |
| Nodes: | 10 (1 / 9) |
| Uptime: | 81:25:03 |
| Calls: | 13,805 |
| Files: | 186,990 |
| D/L today: |
7,288 files (2,449M bytes) |
| Messages: | 2,443,304 |