aboutsummaryrefslogtreecommitdiff
path: root/hurd
diff options
context:
space:
mode:
Diffstat (limited to 'hurd')
-rw-r--r--hurd/hurd.yaml107
-rw-r--r--hurd/path_max.c63
2 files changed, 0 insertions, 170 deletions
diff --git a/hurd/hurd.yaml b/hurd/hurd.yaml
deleted file mode 100644
index 88b8c33..0000000
--- a/hurd/hurd.yaml
+++ /dev/null
@@ -1,107 +0,0 @@
-kernel:
- site:
- home: https://www.gnu.org/software/hurd/index.html
- irc-archive: https://logs.guix.gnu.org/hurd/
-
- mailing-list:
- - address: bug-hurd@gnu.org
- archive: https://lists.gnu.org/archive/html/bug-hurd/
-
- project:
-
- - name: hurd
- git:
- my: https://crupest.life/git/love-hurd/hurd.git
- upstream: https://git.savannah.gnu.org/git/hurd/hurd.git
- debian: https://salsa.debian.org/hurd-team/hurd
-
- - name: gnumach
- git:
- my: https://crupest.life/git/love-hurd/gnumach.git
- upstream: https://git.savannah.gnu.org/git/hurd/gnumach.git
- debian: https://salsa.debian.org/hurd-team/gnumach
-
- - name: mig
- git:
- my: https://crupest.life/git/love-hurd/mig.git
- upstream: https://git.savannah.gnu.org/git/hurd/mig.git
- debian: https://salsa.debian.org/hurd-team/mig
-
- - name: glibc
- git:
- my: https://crupest.life/git/love-hurd/glibc.git
- upstream: git://sourceware.org/git/glibc.git
- debian: https://salsa.debian.org/glibc-team/glibc
- mirror: https://mirrors.tuna.tsinghua.edu.cn/git/glibc.git
-
- - name: web
- git:
- my: https://crupest.life/git/love-hurd/web.git
- upstream: https://git.savannah.gnu.org/git/hurd/web.git
-
-
-debian-port:
- site:
- home: https://www.debian.org/ports/hurd/
-
- mailing-list:
- - address: debian-hurd@lists.debian.org
- archive: https://lists.debian.org/debian-hurd/
-
- package:
-
- - name: abseil
- git:
- my: https://crupest.life/git/love-hurd/abseil.git
- debian: https://salsa.debian.org/debian/abseil
- upstream: https://github.com/abseil/abseil-cpp
- mail:
- - https://lists.debian.org/debian-hurd/2025/02/msg00011.html
- - https://lists.debian.org/debian-hurd/2025/02/msg00035.html
-
-
- - name: libgav1
- git:
- my: https://crupest.life/git/love-hurd/libgav1.git
- debian: https://salsa.debian.org/multimedia-team/libgav1
- upstream: https://chromium.googlesource.com/codecs/libgav1/
- mail:
- - https://lists.debian.org/debian-hurd/2025/02/msg00016.html
- gerrit:
- - https://chromium-review.googlesource.com/c/codecs/libgav1/+/6239812
-
- - name: pam
- git:
- my: https://crupest.life/git/love-hurd/pam.git
- debian: https://salsa.debian.org/vorlon/pam
- upstream: https://github.com/linux-pam/linux-pam
- mail:
- - https://lists.debian.org/debian-hurd/2025/02/msg00018.html
-
-cheatsheet:
- - name: Start Hurd in qemu kvm.
- tag:
- - run
- - setup
- command:
- - qemu-system-x86_64 -enable-kvm -m 4G -net nic -net user,hostfwd=tcp::3222-:22 -vga vmware -drive cache=writeback,file=[...]
-
- - name: Configure/Setup network.
- tag:
- - network
- - setup
- - configure
- command:
- - settrans -fgap /servers/socket/2 /hurd/pfinet -i /dev/eth0 -a 10.0.2.15 -g 10.0.2.2 -m 255.255.255.0
- - fsysopts /servers/socket/2 /hurd/pfinet -i /dev/eth0 -a 10.0.2.15 -g 10.0.2.2 -m 255.255.255.0
- - fsysopts /server/socket/2 -a 10.0.2.15 -g 10.0.2.2 -m 255.255.255.0
- note: -a 10.0.2.15 -g 10.0.2.2 -m 255.255.255.0 is used in VirtualBox.
-
- - name: Setup apt after system installation or when cert/gpg are outdated.
- tag:
- - setup
- - debian
- - apt
- command:
- - apt-get --allow-unauthenticated --allow-insecure-repositories update
- - apt-get --allow-unauthenticated upgrade
diff --git a/hurd/path_max.c b/hurd/path_max.c
deleted file mode 100644
index eee777c..0000000
--- a/hurd/path_max.c
+++ /dev/null
@@ -1,63 +0,0 @@
-#include <errno.h>
-#include <stdlib.h>
-#include <unistd.h>
-
-static inline char *xreadlink(const char *restrict path) {
- char *buffer;
- size_t allocated = 128;
- ssize_t len;
-
- while (1) {
- buffer = (char *)malloc(allocated);
- if (!buffer) {
- return NULL;
- }
- len = readlink(path, buffer, allocated);
- if (len < (ssize_t)allocated) {
- return buffer;
- }
- free(buffer);
- if (len >= (ssize_t)allocated) {
- allocated *= 2;
- continue;
- }
- return NULL;
- }
-}
-
-static inline char *xgethostname() {
- long max_host_name;
- char *buffer;
-
- max_host_name = sysconf(_SC_HOST_NAME_MAX);
- buffer = malloc(max_host_name + 1);
-
- if (gethostname(buffer, max_host_name + 1)) {
- free(buffer);
- return NULL;
- }
-
- buffer[max_host_name] = '\0';
- return buffer;
-}
-
-static inline char *xgetcwd() {
- char *buffer;
- size_t allocated = 128;
-
- while (1) {
- buffer = (char *)malloc(allocated);
- if (!buffer) {
- return NULL;
- }
- getcwd(buffer, allocated);
- if (buffer)
- return buffer;
- free(buffer);
- if (errno == ERANGE) {
- allocated *= 2;
- continue;
- }
- return NULL;
- }
-}