[libc-commits] [libc] [libc] Implement fallocate (PR #222843)
Pavel Labath via libc-commits
libc-commits at lists.llvm.org
Mon Sep 14 02:37:22 PDT 2026
================
@@ -7,20 +7,19 @@
//===----------------------------------------------------------------------===//
///
/// \file
-/// Implementation header for pthread_attr_setscope.
+/// Implementation header for fallocate
///
//===----------------------------------------------------------------------===//
-#ifndef LLVM_LIBC_SRC_PTHREAD_PTHREAD_ATTR_SETSCOPE_H
-#define LLVM_LIBC_SRC_PTHREAD_PTHREAD_ATTR_SETSCOPE_H
+#ifndef LLVM_LIBC_SRC_FCNTL_FALLOCATE_H
+#define LLVM_LIBC_SRC_FCNTL_FALLOCATE_H
-#include "hdr/types/pthread_attr_t.h"
+#include "hdr/types/off_t.h"
#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
-int pthread_attr_setscope(pthread_attr_t *attr, int contentionscope);
+int fallocate(int fd, int mode, off_t offset, off_t size);
+}
----------------
labath wrote:
nit: the unmatched blank lines are hurting my eyes :)
```suggestion
int fallocate(int fd, int mode, off_t offset, off_t size);
}
```
https://github.com/llvm/llvm-project/pull/222843
More information about the libc-commits
mailing list