summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.editorconfig51
-rw-r--r--3rd-party/linux-errno.txt2
-rw-r--r--GNUmakefile6
-rw-r--r--lib9p/include/lib9p/linux-errno.h2
-rwxr-xr-xlib9p/linux-errno.txt.gen (renamed from build-aux/linux-errno.txt.gen)4
5 files changed, 41 insertions, 24 deletions
diff --git a/.editorconfig b/.editorconfig
index f907b33..3e9bbc8 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -15,6 +15,8 @@ indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true
+# By well-known name ###########################################################
+
[*.{c,h}]
_mode = c
@@ -27,20 +29,6 @@ _mode = cmake
[*.md]
_mode = markdown
-[*.9p{,.wip}]
-_mode = 9p
-
-[{lib9p/tests/test_server/static.h.gen,build-aux/embed-sources.h.gen,build-aux/lint-{generic,unknown},lib9p/tests/test_compile.c.gen}]
-_mode = sh
-
-[{build-aux/lint-h,build-aux/lint-bin,build-aux/get-dscname,build-aux/linux-errno.txt.gen,libusb/include/libusb/tusb_helpers.h.gen,lib9p/tests/runtest}]
-_mode = bash
-
-[{lib9p/proto.gen,lib9p/include/lib9p/linux-errno.h.gen,build-aux/stack.c.gen}]
-_mode = python3
-indent_style = space
-indent_size = 4
-
[*.py]
_mode = python3
indent_style = space
@@ -49,11 +37,40 @@ indent_size = 4
[requirements.txt]
_mode = pip
-[**/Documentation/**.txt]
-_mode = man-cat
-
[{.editorconfig,.gitmodules,.pylintrc}]
_mode = ini
[.gitignore]
_mode = gitignore
+
+# By specific filename (non-lib9p) #############################################
+
+[{build-aux/lint-{generic,unknown},build-aux/embed-sources.h.gen}]
+_mode = sh
+
+[{build-aux/lint-{bin,h},build-aux/get-dscname,libusb/include/libusb/tusb_helpers.h.gen}]
+_mode = bash
+
+[build-aux/stack.c.gen]
+_mode = python3
+indent_style = space
+indent_size = 4
+
+[**/Documentation/**.txt]
+_mode = man-cat
+
+# By specific filename (lib9p) #################################################
+
+[lib9p/idl/*.9p{,.wip}]
+_mode = 9p-idl
+
+[{lib9p/tests/test_server/static.h.gen,lib9p/tests/test_compile.c.gen}]
+_mode = sh
+
+[{lib9p/linux-errno.txt.gen,lib9p/tests/runtest}]
+_mode = bash
+
+[{lib9p/proto.gen,lib9p/include/lib9p/linux-errno.h.gen}]
+_mode = python3
+indent_style = space
+indent_size = 4
diff --git a/3rd-party/linux-errno.txt b/3rd-party/linux-errno.txt
index 839efc2..5b450f0 100644
--- a/3rd-party/linux-errno.txt
+++ b/3rd-party/linux-errno.txt
@@ -1,4 +1,4 @@
-# 3rd-party/linux-errno.txt - Generated from build-aux/linux-errno.txt.gen and linux.git v6.7. DO NOT EDIT!
+# 3rd-party/linux-errno.txt - Generated from lib9p/linux-errno.txt.gen and linux.git v6.14. DO NOT EDIT!
1 EPERM Operation not permitted
2 ENOENT No such file or directory
3 ESRCH No such process
diff --git a/GNUmakefile b/GNUmakefile
index f6ff6c3..6ea8b5e 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -34,7 +34,7 @@ generate/files += 3rd-party/COPYING.newlib.txt
cp $< $@
generate/files += 3rd-party/linux-errno.txt
-3rd-party/linux-errno.txt: build-aux/linux-errno.txt.gen
+3rd-party/linux-errno.txt: lib9p/linux-errno.txt.gen
$< $(linux.git) $@
generate/files += lib9p/include/lib9p/linux-errno.h
@@ -127,7 +127,7 @@ lint/python3: lint/%: build-aux/venv
./build-aux/venv/bin/pytest $(foreach f,$(sources_python3),$(if $(filter test_%.py,$(notdir $f)),$f))
lint/c: lint/%: build-aux/lint-h build-aux/get-dscname
./build-aux/lint-h $(filter %.h,$(sources_$*))
-lint/make lint/cmake lint/gitignore lint/ini lint/9p lint/markdown lint/pip lint/man-cat: lint/%:
+lint/make lint/cmake lint/gitignore lint/ini lint/9p-idl lint/markdown lint/pip lint/man-cat: lint/%:
@:
lint/unknown: lint/%: build-aux/lint-unknown
./build-aux/lint-unknown $(sources_$*)
@@ -145,7 +145,7 @@ format/sh format/bash: format/%
@:
format/c: format/%:
@: TODO: Adopt a C code-formatter
-format/make format/cmake format/gitignore format/ini format/9p format/markdown format/pip format/man-cat: format/%:
+format/make format/cmake format/gitignore format/ini format/9p-idl format/markdown format/pip format/man-cat: format/%:
@:
format/unknown: format/%:
@:
diff --git a/lib9p/include/lib9p/linux-errno.h b/lib9p/include/lib9p/linux-errno.h
index e7c74f5..e864fb6 100644
--- a/lib9p/include/lib9p/linux-errno.h
+++ b/lib9p/include/lib9p/linux-errno.h
@@ -1,5 +1,5 @@
/* lib9p/linux-errno.h - Generated by `lib9p/include/lib9p/linux-errno.h.gen 3rd-party/linux-errno.txt`. DO NOT EDIT! */
-/* 3rd-party/linux-errno.txt - Generated from build-aux/linux-errno.txt.gen and linux.git v6.7. DO NOT EDIT! */
+/* 3rd-party/linux-errno.txt - Generated from lib9p/linux-errno.txt.gen and linux.git v6.14. DO NOT EDIT! */
#ifndef _LIB9P_LINUX_ERRNO_H_
#define _LIB9P_LINUX_ERRNO_H_
diff --git a/build-aux/linux-errno.txt.gen b/lib9p/linux-errno.txt.gen
index f94178f..687e58b 100755
--- a/build-aux/linux-errno.txt.gen
+++ b/lib9p/linux-errno.txt.gen
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
-# build-aux/linux-errno.txt.gen - Generate a listing of Linux kernel errnos
+# lib9p/linux-errno.txt.gen - Generate a listing of Linux kernel errnos
#
-# Copyright (C) 2024 Luke T. Shumaker <lukeshu@lukeshu.com>
+# Copyright (C) 2024-2025 Luke T. Shumaker <lukeshu@lukeshu.com>
# SPDX-License-Identifier: AGPL-3.0-or-later
set -e