]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - compat/shm.h
Source Format Enforcement (#532)
[thirdparty/squid.git] / compat / shm.h
index d1b66bd4260246c741d66042077cf0b030105192..ce9ef5f4e7e3eb3b5b1a3a6919d4f72f3f598b83 100644 (file)
@@ -1,6 +1,11 @@
 /*
- * $Id$
+ * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
+ *
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
  */
+
 #ifndef SQUID_COMPAT_SHM_H
 #define SQUID_COMPAT_SHM_H
 
 
 extern "C" {
 
-inline int
-shm_open(const char *, int, mode_t) {
-    errno = ENOTSUP;
-    return -1;
-}
+    inline int
+    shm_open(const char *, int, mode_t) {
+        errno = ENOTSUP;
+        return -1;
+    }
 
-inline int
-shm_unlink(const char *) {
-    errno = ENOTSUP;
-    return -1;
-}
+    inline int
+    shm_unlink(const char *) {
+        errno = ENOTSUP;
+        return -1;
+    }
 
 } /* extern "C" */
 
 #endif /* HAVE_SHM */
 
+/// Determines whether segment names are iterpreted as full file paths.
+bool shm_portable_segment_name_is_path();
+
 #endif /* SQUID_COMPAT_CPU_H */
+