diff options
| author | Andreas Baumann <mail@andreasbaumann.cc> | 2026-03-27 11:14:20 +0100 |
|---|---|---|
| committer | Andreas Baumann <mail@andreasbaumann.cc> | 2026-03-27 11:14:20 +0100 |
| commit | 1113bbcd92d85b85579aa7feef511241e58fb0f5 (patch) | |
| tree | d69b7bcfe2f7e80fda9a1f4ddd38209d6cb7aaf0 /gl/open.c | |
| parent | 99283972fe3a74d3a1dea12c4099f76286130a67 (diff) | |
| parent | a71ce153082565e5728424749475593dc0623492 (diff) | |
| download | monitoring-plugins-1113bbcd92d85b85579aa7feef511241e58fb0f5.tar.gz | |
merged with mastercheck_snmp_fixes
Diffstat (limited to 'gl/open.c')
| -rw-r--r-- | gl/open.c | 12 |
1 files changed, 3 insertions, 9 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Open a descriptor to a file. | 1 | /* Open a descriptor to a file. |
| 2 | Copyright (C) 2007-2025 Free Software Foundation, Inc. | 2 | Copyright (C) 2007-2026 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is free software: you can redistribute it and/or modify | 4 | This file is free software: you can redistribute it and/or modify |
| 5 | it under the terms of the GNU Lesser General Public License as | 5 | it under the terms of the GNU Lesser General Public License as |
| @@ -38,13 +38,7 @@ orig_open (const char *filename, int flags, mode_t mode) | |||
| 38 | } | 38 | } |
| 39 | 39 | ||
| 40 | /* Specification. */ | 40 | /* Specification. */ |
| 41 | #ifdef __osf__ | 41 | #include <fcntl.h> |
| 42 | /* Write "fcntl.h" here, not <fcntl.h>, otherwise OSF/1 5.1 DTK cc eliminates | ||
| 43 | this include because of the preliminary #include <fcntl.h> above. */ | ||
| 44 | # include "fcntl.h" | ||
| 45 | #else | ||
| 46 | # include <fcntl.h> | ||
| 47 | #endif | ||
| 48 | 42 | ||
| 49 | #include "cloexec.h" | 43 | #include "cloexec.h" |
| 50 | 44 | ||
| @@ -100,7 +94,7 @@ open (const char *filename, int flags, ...) | |||
| 100 | #endif | 94 | #endif |
| 101 | 95 | ||
| 102 | #if defined _WIN32 && ! defined __CYGWIN__ | 96 | #if defined _WIN32 && ! defined __CYGWIN__ |
| 103 | if (strcmp (filename, "/dev/null") == 0) | 97 | if (streq (filename, "/dev/null")) |
| 104 | filename = "NUL"; | 98 | filename = "NUL"; |
| 105 | #endif | 99 | #endif |
| 106 | 100 | ||
