commit 4880c021c1752b24fe2ae63df46e479b31394b38
parent ee9c889bc08b80d70de0b6adcae499844f7551a5
Author: Mallory Adams <malloryadams@fastmail.com>
Date: Wed, 22 May 2024 09:32:28 -0400
all: replace spaces with tabs
Diffstat:
6 files changed, 39 insertions(+), 39 deletions(-)
diff --git a/cmd/haredoc/doc/html.ha b/cmd/haredoc/doc/html.ha
@@ -517,7 +517,7 @@ pre {
}
pre .keyword {
- color: #008;
+ color: #008;
}
pre .type {
diff --git a/fs/types.ha b/fs/types.ha
@@ -211,9 +211,9 @@ export type fchmodfunc = fn(fd: io::file, mode: mode) (void | error);
export type chownfunc = fn(fs: *fs, path: str, uid: uint, gid: uint) (void | error);
export type fchownfunc = fn(fd: io::file, uid: uint, gid: uint) (void | error);
export type chtimesfunc = fn(fs: *fs, path: str, atime: (time::instant | void),
- mtime: (time::instant | void)) (void | error);
+ mtime: (time::instant | void)) (void | error);
export type fchtimesfunc = fn(fd: io::file, atime: (time::instant | void),
- mtime: (time::instant | void)) (void | error);
+ mtime: (time::instant | void)) (void | error);
export type resolvefunc = fn(fs: *fs, path: str) str;
export type readlinkfunc = fn(fs: *fs, path: str) (str | error);
export type linkfunc = fn(fs: *fs, old: str, new: str) (void | error);
diff --git a/os/+freebsd/dirfdfs.ha b/os/+freebsd/dirfdfs.ha
@@ -341,12 +341,12 @@ fn fs_chtimes(fs: *fs::fs, path: str, atime: (time::instant | void),
instant_to_timespec(atime),
instant_to_timespec(mtime),
];
- let fs = fs: *os_filesystem;
- match (rt::utimensat(fs.dirfd, path, &utimes, 0)) {
- case let err: rt::errno =>
- return errno_to_fs(err);
- case void => void;
- };
+ let fs = fs: *os_filesystem;
+ match (rt::utimensat(fs.dirfd, path, &utimes, 0)) {
+ case let err: rt::errno =>
+ return errno_to_fs(err);
+ case void => void;
+ };
};
fn fs_fchtimes(fd: io::file, atime: (time::instant | void),
@@ -355,11 +355,11 @@ fn fs_fchtimes(fd: io::file, atime: (time::instant | void),
instant_to_timespec(atime),
instant_to_timespec(mtime),
];
- match (rt::futimens(fd, &utimes)) {
- case let err: rt::errno =>
- return errno_to_fs(err);
- case void => void;
- };
+ match (rt::futimens(fd, &utimes)) {
+ case let err: rt::errno =>
+ return errno_to_fs(err);
+ case void => void;
+ };
};
fn fs_resolve(fs: *fs::fs, path: str) str = {
diff --git a/os/+linux/dirfdfs.ha b/os/+linux/dirfdfs.ha
@@ -372,12 +372,12 @@ fn fs_chtimes(fs: *fs::fs, path: str, atime: (time::instant | void),
instant_to_timespec(atime),
instant_to_timespec(mtime),
];
- let fs = fs: *os_filesystem;
- match (rt::utimensat(fs.dirfd, path, &utimes, 0)) {
- case let err: rt::errno =>
- return errno_to_fs(err);
- case void => void;
- };
+ let fs = fs: *os_filesystem;
+ match (rt::utimensat(fs.dirfd, path, &utimes, 0)) {
+ case let err: rt::errno =>
+ return errno_to_fs(err);
+ case void => void;
+ };
};
fn fs_fchtimes(fd: io::file, atime: (time::instant | void),
@@ -386,11 +386,11 @@ fn fs_fchtimes(fd: io::file, atime: (time::instant | void),
instant_to_timespec(atime),
instant_to_timespec(mtime),
];
- match (rt::futimens(fd, &utimes)) {
- case let err: rt::errno =>
- return errno_to_fs(err);
- case void => void;
- };
+ match (rt::futimens(fd, &utimes)) {
+ case let err: rt::errno =>
+ return errno_to_fs(err);
+ case void => void;
+ };
};
fn fs_resolve(fs: *fs::fs, path: str) str = {
diff --git a/os/+openbsd/dirfdfs.ha b/os/+openbsd/dirfdfs.ha
@@ -365,12 +365,12 @@ fn fs_chtimes(fs: *fs::fs, path: str, atime: (time::instant | void),
instant_to_timespec(atime),
instant_to_timespec(mtime),
];
- let fs = fs: *os_filesystem;
- match (rt::utimensat(fs.dirfd, path, &utimes, 0)) {
- case let err: rt::errno =>
- return errno_to_fs(err);
- case void => void;
- };
+ let fs = fs: *os_filesystem;
+ match (rt::utimensat(fs.dirfd, path, &utimes, 0)) {
+ case let err: rt::errno =>
+ return errno_to_fs(err);
+ case void => void;
+ };
};
fn fs_fchtimes(fd: io::file, atime: (time::instant | void),
@@ -379,11 +379,11 @@ fn fs_fchtimes(fd: io::file, atime: (time::instant | void),
instant_to_timespec(atime),
instant_to_timespec(mtime),
];
- match (rt::futimens(fd, &utimes)) {
- case let err: rt::errno =>
- return errno_to_fs(err);
- case void => void;
- };
+ match (rt::futimens(fd, &utimes)) {
+ case let err: rt::errno =>
+ return errno_to_fs(err);
+ case void => void;
+ };
};
// TODO: cannot handle errors, i.e. path too long or cannot resolve.
diff --git a/os/os.ha b/os/os.ha
@@ -82,9 +82,9 @@ export fn chtimes(
// Changes the access and modification time of an [[io::file]]. A void value
// will leave the corresponding time unchanged.
export fn fchtimes(
- fd: io::file,
- atime: (time::instant | void),
- mtime: (time::instant | void)
+ fd: io::file,
+ atime: (time::instant | void),
+ mtime: (time::instant | void)
) (void | fs::error) = fs::fchtimes(cwd, fd, atime, mtime);
// Resolves a path to its absolute, normalized value. Relative paths will be