2016-09-11 21:01:06 -07:00
|
|
|
const system = switch(@compileVar("os")) {
|
2017-03-26 03:39:28 -07:00
|
|
|
Os.linux => @import("os/linux.zig"),
|
|
|
|
Os.darwin => @import("os/darwin.zig"),
|
2016-09-11 21:01:06 -07:00
|
|
|
else => @compileError("Unsupported OS"),
|
|
|
|
};
|
|
|
|
|
2017-03-26 03:39:28 -07:00
|
|
|
const errno = @import("os/errno.zig");
|
2016-02-27 21:06:46 -08:00
|
|
|
const math = @import("math.zig");
|
2016-08-17 20:11:04 -07:00
|
|
|
const debug = @import("debug.zig");
|
|
|
|
const assert = debug.assert;
|
2017-03-26 03:39:28 -07:00
|
|
|
const os = @import("os/index.zig");
|
2016-09-22 23:00:23 -07:00
|
|
|
const mem = @import("mem.zig");
|
2017-02-28 00:07:11 -08:00
|
|
|
const Buffer0 = @import("cstr.zig").Buffer0;
|
2017-03-09 16:12:15 -08:00
|
|
|
const fmt = @import("fmt.zig");
|
2015-12-14 23:07:51 -08:00
|
|
|
|
2016-01-20 17:18:50 -08:00
|
|
|
pub var stdin = InStream {
|
2017-04-02 15:19:59 -07:00
|
|
|
.fd = system.STDIN_FILENO,
|
2016-01-20 17:18:50 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
pub var stdout = OutStream {
|
2017-04-02 15:19:59 -07:00
|
|
|
.fd = system.STDOUT_FILENO,
|
2016-01-22 21:02:07 -08:00
|
|
|
.buffer = undefined,
|
2016-01-20 17:18:50 -08:00
|
|
|
.index = 0,
|
|
|
|
};
|
|
|
|
|
|
|
|
pub var stderr = OutStream {
|
2017-04-02 15:19:59 -07:00
|
|
|
.fd = system.STDERR_FILENO,
|
2016-01-22 21:02:07 -08:00
|
|
|
.buffer = undefined,
|
2016-01-20 17:18:50 -08:00
|
|
|
.index = 0,
|
|
|
|
};
|
|
|
|
|
2016-01-24 21:53:00 -08:00
|
|
|
/// The function received invalid input at runtime. An Invalid error means a
|
|
|
|
/// bug in the program that called the function.
|
2016-12-17 14:48:07 -08:00
|
|
|
error Invalid;
|
2016-01-24 21:53:00 -08:00
|
|
|
|
|
|
|
/// When an Unexpected error occurs, code that emitted the error likely needs
|
|
|
|
/// a patch to recognize the unexpected case so that it can handle it and emit
|
|
|
|
/// a more specific error.
|
2016-12-17 14:48:07 -08:00
|
|
|
error Unexpected;
|
|
|
|
|
|
|
|
error DiskQuota;
|
|
|
|
error FileTooBig;
|
|
|
|
error Io;
|
|
|
|
error NoSpaceLeft;
|
|
|
|
error BadPerm;
|
|
|
|
error PipeFail;
|
|
|
|
error BadFd;
|
|
|
|
error IsDir;
|
|
|
|
error NotDir;
|
|
|
|
error SymLinkLoop;
|
|
|
|
error ProcessFdQuotaExceeded;
|
|
|
|
error SystemFdQuotaExceeded;
|
|
|
|
error NameTooLong;
|
|
|
|
error NoDevice;
|
|
|
|
error PathNotFound;
|
|
|
|
error NoMem;
|
|
|
|
error Unseekable;
|
|
|
|
error Eof;
|
2016-01-20 17:18:50 -08:00
|
|
|
|
2016-01-22 22:24:09 -08:00
|
|
|
const buffer_size = 4 * 1024;
|
2016-01-20 17:18:50 -08:00
|
|
|
|
2016-04-08 13:13:33 -07:00
|
|
|
pub const OpenRead = 0b0001;
|
|
|
|
pub const OpenWrite = 0b0010;
|
|
|
|
pub const OpenCreate = 0b0100;
|
|
|
|
pub const OpenTruncate = 0b1000;
|
|
|
|
|
2016-12-18 14:24:52 -08:00
|
|
|
pub const OutStream = struct {
|
2016-07-26 20:40:11 -07:00
|
|
|
fd: i32,
|
2016-01-20 17:18:50 -08:00
|
|
|
buffer: [buffer_size]u8,
|
2016-07-26 20:40:11 -07:00
|
|
|
index: usize,
|
2016-01-20 17:18:50 -08:00
|
|
|
|
2017-04-03 01:58:19 -07:00
|
|
|
/// `path` may need to be copied in memory to add a null terminating byte. In this case
|
|
|
|
/// a fixed size buffer of size std.os.max_noalloc_path_len is an attempted solution. If the fixed
|
|
|
|
/// size buffer is too small, and the provided allocator is null, error.NameTooLong is returned.
|
|
|
|
/// otherwise if the fixed size buffer is too small, allocator is used to obtain the needed memory.
|
|
|
|
/// Call close to clean up.
|
|
|
|
pub fn open(path: []const u8, allocator: ?&mem.Allocator) -> %OutStream {
|
|
|
|
switch (@compileVar("os")) {
|
|
|
|
Os.linux, Os.darwin, Os.macosx, Os.ios => {
|
|
|
|
const flags = system.O_LARGEFILE|system.O_WRONLY|system.O_CREAT|system.O_CLOEXEC|system.O_TRUNC;
|
|
|
|
const fd = %return os.posixOpen(path, flags, 0o666, allocator);
|
|
|
|
return OutStream {
|
|
|
|
.fd = fd,
|
|
|
|
.index = 0,
|
|
|
|
.buffer = undefined,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
else => @compileError("Unsupported OS"),
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-09-13 23:44:31 -07:00
|
|
|
pub fn writeByte(self: &OutStream, b: u8) -> %void {
|
|
|
|
if (self.buffer.len == self.index) %return self.flush();
|
|
|
|
self.buffer[self.index] = b;
|
|
|
|
self.index += 1;
|
2016-07-26 18:13:22 -07:00
|
|
|
}
|
|
|
|
|
2017-01-23 22:58:20 -08:00
|
|
|
pub fn write(self: &OutStream, bytes: []const u8) -> %void {
|
2017-04-03 01:58:19 -07:00
|
|
|
if (bytes.len >= buffer_size) {
|
|
|
|
%return self.flush();
|
|
|
|
return os.posixWrite(self.fd, bytes);
|
|
|
|
}
|
|
|
|
|
2016-12-17 22:54:27 -08:00
|
|
|
var src_index: usize = 0;
|
2016-01-20 17:18:50 -08:00
|
|
|
|
2017-03-09 16:12:15 -08:00
|
|
|
while (src_index < bytes.len) {
|
|
|
|
const dest_space_left = self.buffer.len - self.index;
|
|
|
|
const copy_amt = math.min(dest_space_left, bytes.len - src_index);
|
|
|
|
mem.copy(u8, self.buffer[self.index...], bytes[src_index...src_index + copy_amt]);
|
2016-09-13 23:44:31 -07:00
|
|
|
self.index += copy_amt;
|
2017-03-09 16:12:15 -08:00
|
|
|
assert(self.index <= self.buffer.len);
|
2016-09-13 23:44:31 -07:00
|
|
|
if (self.index == self.buffer.len) {
|
|
|
|
%return self.flush();
|
2016-01-20 17:18:50 -08:00
|
|
|
}
|
2017-03-09 16:12:15 -08:00
|
|
|
src_index += copy_amt;
|
2016-01-20 17:18:50 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-01-23 22:58:20 -08:00
|
|
|
/// Calls print and then flushes the buffer.
|
|
|
|
pub fn printf(self: &OutStream, comptime format: []const u8, args: ...) -> %void {
|
2017-03-09 16:12:15 -08:00
|
|
|
%return self.print(format, args);
|
2016-09-13 23:44:31 -07:00
|
|
|
%return self.flush();
|
2016-01-24 21:53:00 -08:00
|
|
|
}
|
|
|
|
|
2017-03-09 16:12:15 -08:00
|
|
|
/// Does not flush the buffer.
|
|
|
|
pub fn print(self: &OutStream, comptime format: []const u8, args: ...) -> %void {
|
|
|
|
var context = PrintContext {
|
|
|
|
.self = self,
|
|
|
|
.result = {},
|
|
|
|
};
|
|
|
|
_ = fmt.format(&context, printOutput, format, args);
|
|
|
|
return context.result;
|
2017-01-23 22:58:20 -08:00
|
|
|
}
|
2017-03-09 16:12:15 -08:00
|
|
|
const PrintContext = struct {
|
|
|
|
self: &OutStream,
|
|
|
|
result: %void,
|
|
|
|
};
|
|
|
|
fn printOutput(context: &PrintContext, bytes: []const u8) -> bool {
|
|
|
|
context.self.write(bytes) %% |err| {
|
|
|
|
context.result = err;
|
|
|
|
return false;
|
|
|
|
};
|
|
|
|
return true;
|
2017-02-23 15:56:10 -08:00
|
|
|
}
|
|
|
|
|
2016-09-13 23:44:31 -07:00
|
|
|
pub fn flush(self: &OutStream) -> %void {
|
2017-04-03 01:58:19 -07:00
|
|
|
if (self.index != 0) {
|
|
|
|
%return os.posixWrite(self.fd, self.buffer[0...self.index]);
|
2016-09-13 23:44:31 -07:00
|
|
|
self.index = 0;
|
2016-01-20 17:18:50 -08:00
|
|
|
}
|
|
|
|
}
|
2016-02-28 06:22:09 -08:00
|
|
|
|
2016-12-31 14:10:29 -08:00
|
|
|
pub fn close(self: &OutStream) {
|
2017-04-03 01:58:19 -07:00
|
|
|
assert(self.index == 0);
|
|
|
|
os.posixClose(self.fd);
|
2016-02-28 06:22:09 -08:00
|
|
|
}
|
2016-12-18 14:24:52 -08:00
|
|
|
};
|
2016-01-20 17:18:50 -08:00
|
|
|
|
2016-08-17 20:11:04 -07:00
|
|
|
// TODO created a BufferedInStream struct and move some of this code there
|
|
|
|
// BufferedInStream API goes on top of minimal InStream API.
|
2016-12-18 14:24:52 -08:00
|
|
|
pub const InStream = struct {
|
2016-07-26 20:40:11 -07:00
|
|
|
fd: i32,
|
2016-08-17 20:11:04 -07:00
|
|
|
|
2017-04-03 01:58:19 -07:00
|
|
|
/// `path` may need to be copied in memory to add a null terminating byte. In this case
|
|
|
|
/// a fixed size buffer of size std.os.max_noalloc_path_len is an attempted solution. If the fixed
|
|
|
|
/// size buffer is too small, and the provided allocator is null, error.NameTooLong is returned.
|
|
|
|
/// otherwise if the fixed size buffer is too small, allocator is used to obtain the needed memory.
|
2016-08-17 20:11:04 -07:00
|
|
|
/// Call close to clean up.
|
2017-04-03 01:58:19 -07:00
|
|
|
pub fn open(path: []const u8, allocator: ?&mem.Allocator) -> %InStream {
|
2016-08-31 20:23:47 -07:00
|
|
|
switch (@compileVar("os")) {
|
2017-04-03 01:58:19 -07:00
|
|
|
Os.linux, Os.darwin, Os.macosx, Os.ios => {
|
|
|
|
const flags = system.O_LARGEFILE|system.O_RDONLY;
|
|
|
|
const fd = %return os.posixOpen(path, flags, 0, allocator);
|
|
|
|
return InStream {
|
|
|
|
.fd = fd,
|
|
|
|
};
|
2016-08-31 20:23:47 -07:00
|
|
|
},
|
2017-04-03 01:58:19 -07:00
|
|
|
else => @compileError("Unsupported OS"),
|
2016-04-08 13:13:33 -07:00
|
|
|
}
|
2016-01-20 17:18:50 -08:00
|
|
|
}
|
2016-02-28 06:22:09 -08:00
|
|
|
|
2016-09-08 11:21:42 -07:00
|
|
|
/// Upon success, the stream is in an uninitialized state. To continue using it,
|
|
|
|
/// you must use the open() function.
|
2017-04-03 01:58:19 -07:00
|
|
|
pub fn close(self: &InStream) {
|
2016-08-31 20:23:47 -07:00
|
|
|
switch (@compileVar("os")) {
|
2017-04-03 01:58:19 -07:00
|
|
|
Os.linux, Os.darwin, Os.macosx, Os.ios => {
|
|
|
|
os.posixClose(self.fd);
|
2016-08-31 20:23:47 -07:00
|
|
|
},
|
2017-04-03 01:58:19 -07:00
|
|
|
else => @compileError("Unsupported OS"),
|
2016-02-28 06:22:09 -08:00
|
|
|
}
|
|
|
|
}
|
2016-08-17 20:11:04 -07:00
|
|
|
|
|
|
|
/// Returns the number of bytes read. If the number read is smaller than buf.len, then
|
|
|
|
/// the stream reached End Of File.
|
|
|
|
pub fn read(is: &InStream, buf: []u8) -> %usize {
|
|
|
|
switch (@compileVar("os")) {
|
2016-12-31 14:10:29 -08:00
|
|
|
Os.linux, Os.darwin => {
|
2016-08-31 20:23:47 -07:00
|
|
|
var index: usize = 0;
|
|
|
|
while (index < buf.len) {
|
2016-09-11 21:01:06 -07:00
|
|
|
const amt_read = system.read(is.fd, &buf[index], buf.len - index);
|
|
|
|
const read_err = system.getErrno(amt_read);
|
2016-08-17 20:11:04 -07:00
|
|
|
if (read_err > 0) {
|
|
|
|
switch (read_err) {
|
|
|
|
errno.EINTR => continue,
|
2017-03-26 01:58:48 -07:00
|
|
|
errno.EINVAL => unreachable,
|
|
|
|
errno.EFAULT => unreachable,
|
2016-08-17 20:11:04 -07:00
|
|
|
errno.EBADF => return error.BadFd,
|
|
|
|
errno.EIO => return error.Io,
|
|
|
|
else => return error.Unexpected,
|
|
|
|
}
|
|
|
|
}
|
2016-08-31 20:23:47 -07:00
|
|
|
if (amt_read == 0) return index;
|
|
|
|
index += amt_read;
|
2016-08-17 20:11:04 -07:00
|
|
|
}
|
2016-08-31 20:23:47 -07:00
|
|
|
return index;
|
2016-08-17 20:11:04 -07:00
|
|
|
},
|
2017-04-02 15:19:59 -07:00
|
|
|
else => @compileError("Unsupported OS"),
|
2016-08-17 20:11:04 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn readNoEof(is: &InStream, buf: []u8) -> %void {
|
|
|
|
const amt_read = %return is.read(buf);
|
|
|
|
if (amt_read < buf.len) return error.Eof;
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn readByte(is: &InStream) -> %u8 {
|
|
|
|
var result: [1]u8 = undefined;
|
2017-02-12 14:22:35 -08:00
|
|
|
%return is.readNoEof(result[0...]);
|
2016-08-17 20:11:04 -07:00
|
|
|
return result[0];
|
|
|
|
}
|
|
|
|
|
2017-01-22 16:51:37 -08:00
|
|
|
pub fn readIntLe(is: &InStream, comptime T: type) -> %T {
|
2016-08-17 20:11:04 -07:00
|
|
|
is.readInt(false, T)
|
|
|
|
}
|
|
|
|
|
2017-01-22 16:51:37 -08:00
|
|
|
pub fn readIntBe(is: &InStream, comptime T: type) -> %T {
|
2016-08-17 20:11:04 -07:00
|
|
|
is.readInt(true, T)
|
|
|
|
}
|
|
|
|
|
2017-01-22 16:51:37 -08:00
|
|
|
pub fn readInt(is: &InStream, is_be: bool, comptime T: type) -> %T {
|
2017-02-12 14:22:35 -08:00
|
|
|
var bytes: [@sizeOf(T)]u8 = undefined;
|
|
|
|
%return is.readNoEof(bytes[0...]);
|
|
|
|
return mem.readInt(bytes, T, is_be);
|
2016-08-17 20:11:04 -07:00
|
|
|
}
|
|
|
|
|
2017-01-22 16:51:37 -08:00
|
|
|
pub fn readVarInt(is: &InStream, is_be: bool, comptime T: type, size: usize) -> %T {
|
2016-09-22 23:00:23 -07:00
|
|
|
assert(size <= @sizeOf(T));
|
|
|
|
assert(size <= 8);
|
|
|
|
var input_buf: [8]u8 = undefined;
|
|
|
|
const input_slice = input_buf[0...size];
|
|
|
|
%return is.readNoEof(input_slice);
|
2017-02-12 14:22:35 -08:00
|
|
|
return mem.readInt(input_slice, T, is_be);
|
2016-08-17 20:11:04 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
pub fn seekForward(is: &InStream, amount: usize) -> %void {
|
2016-08-31 20:23:47 -07:00
|
|
|
switch (@compileVar("os")) {
|
2016-12-31 14:10:29 -08:00
|
|
|
Os.linux, Os.darwin => {
|
2016-09-11 21:01:06 -07:00
|
|
|
const result = system.lseek(is.fd, amount, system.SEEK_CUR);
|
|
|
|
const err = system.getErrno(result);
|
2016-08-31 20:23:47 -07:00
|
|
|
if (err > 0) {
|
|
|
|
return switch (err) {
|
|
|
|
errno.EBADF => error.BadFd,
|
|
|
|
errno.EINVAL => error.Unseekable,
|
|
|
|
errno.EOVERFLOW => error.Unseekable,
|
|
|
|
errno.ESPIPE => error.Unseekable,
|
|
|
|
errno.ENXIO => error.Unseekable,
|
|
|
|
else => error.Unexpected,
|
|
|
|
};
|
|
|
|
}
|
|
|
|
},
|
2016-09-05 14:01:54 -07:00
|
|
|
else => @compileError("unsupported OS"),
|
2016-08-31 20:23:47 -07:00
|
|
|
}
|
2016-08-17 20:11:04 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
pub fn seekTo(is: &InStream, pos: usize) -> %void {
|
2016-08-31 20:23:47 -07:00
|
|
|
switch (@compileVar("os")) {
|
2016-12-31 14:10:29 -08:00
|
|
|
Os.linux, Os.darwin => {
|
2016-09-11 21:01:06 -07:00
|
|
|
const result = system.lseek(is.fd, pos, system.SEEK_SET);
|
|
|
|
const err = system.getErrno(result);
|
2016-08-31 20:23:47 -07:00
|
|
|
if (err > 0) {
|
|
|
|
return switch (err) {
|
|
|
|
errno.EBADF => error.BadFd,
|
|
|
|
errno.EINVAL => error.Unseekable,
|
|
|
|
errno.EOVERFLOW => error.Unseekable,
|
|
|
|
errno.ESPIPE => error.Unseekable,
|
|
|
|
errno.ENXIO => error.Unseekable,
|
|
|
|
else => error.Unexpected,
|
|
|
|
};
|
|
|
|
}
|
|
|
|
},
|
2016-09-05 14:01:54 -07:00
|
|
|
else => @compileError("unsupported OS"),
|
2016-08-31 20:23:47 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn getPos(is: &InStream) -> %usize {
|
|
|
|
switch (@compileVar("os")) {
|
2016-12-31 14:10:29 -08:00
|
|
|
Os.linux, Os.darwin => {
|
2016-09-11 21:01:06 -07:00
|
|
|
const result = system.lseek(is.fd, 0, system.SEEK_CUR);
|
|
|
|
const err = system.getErrno(result);
|
2016-08-31 20:23:47 -07:00
|
|
|
if (err > 0) {
|
|
|
|
return switch (err) {
|
|
|
|
errno.EBADF => error.BadFd,
|
|
|
|
errno.EINVAL => error.Unseekable,
|
|
|
|
errno.EOVERFLOW => error.Unseekable,
|
|
|
|
errno.ESPIPE => error.Unseekable,
|
|
|
|
errno.ENXIO => error.Unseekable,
|
|
|
|
else => error.Unexpected,
|
|
|
|
};
|
|
|
|
}
|
|
|
|
return result;
|
|
|
|
},
|
2016-09-05 14:01:54 -07:00
|
|
|
else => @compileError("unsupported OS"),
|
2016-08-31 20:23:47 -07:00
|
|
|
}
|
2016-08-17 20:11:04 -07:00
|
|
|
}
|
|
|
|
|
2016-08-31 20:23:47 -07:00
|
|
|
pub fn getEndPos(is: &InStream) -> %usize {
|
2016-09-11 21:01:06 -07:00
|
|
|
var stat: system.stat = undefined;
|
|
|
|
const err = system.getErrno(system.fstat(is.fd, &stat));
|
2016-08-17 20:11:04 -07:00
|
|
|
if (err > 0) {
|
|
|
|
return switch (err) {
|
|
|
|
errno.EBADF => error.BadFd,
|
|
|
|
errno.ENOMEM => error.NoMem,
|
|
|
|
else => error.Unexpected,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return usize(stat.size);
|
|
|
|
}
|
2017-02-28 00:07:11 -08:00
|
|
|
|
|
|
|
pub fn readAll(is: &InStream, buf: &Buffer0) -> %void {
|
|
|
|
%return buf.resize(buffer_size);
|
|
|
|
|
|
|
|
var actual_buf_len: usize = 0;
|
|
|
|
while (true) {
|
|
|
|
const dest_slice = buf.toSlice()[actual_buf_len...];
|
|
|
|
const bytes_read = %return is.read(dest_slice);
|
|
|
|
actual_buf_len += bytes_read;
|
|
|
|
|
|
|
|
if (bytes_read != dest_slice.len) {
|
|
|
|
return buf.resize(actual_buf_len);
|
|
|
|
}
|
|
|
|
|
|
|
|
%return buf.resize(actual_buf_len + buffer_size);
|
|
|
|
}
|
|
|
|
}
|
2016-12-18 14:24:52 -08:00
|
|
|
};
|
2016-01-20 17:18:50 -08:00
|
|
|
|
2017-04-03 01:58:19 -07:00
|
|
|
pub fn openSelfExe() -> %InStream {
|
2016-08-17 20:11:04 -07:00
|
|
|
switch (@compileVar("os")) {
|
2016-12-31 14:10:29 -08:00
|
|
|
Os.linux => {
|
2017-04-03 01:58:19 -07:00
|
|
|
return InStream.open("/proc/self/exe", null);
|
2016-08-17 20:11:04 -07:00
|
|
|
},
|
2016-12-31 14:10:29 -08:00
|
|
|
Os.darwin => {
|
2017-04-03 01:58:19 -07:00
|
|
|
debug.panic("TODO: openSelfExe on Darwin");
|
2016-09-13 23:44:31 -07:00
|
|
|
},
|
2017-04-03 01:58:19 -07:00
|
|
|
else => @compileError("Unsupported OS"),
|
2016-08-17 20:11:04 -07:00
|
|
|
}
|
|
|
|
}
|
2017-04-03 01:58:19 -07:00
|
|
|
|
|
|
|
/// `path` may need to be copied in memory to add a null terminating byte. In this case
|
|
|
|
/// a fixed size buffer of size std.os.max_noalloc_path_len is an attempted solution. If the fixed
|
|
|
|
/// size buffer is too small, and the provided allocator is null, error.NameTooLong is returned.
|
|
|
|
/// otherwise if the fixed size buffer is too small, allocator is used to obtain the needed memory.
|
|
|
|
pub fn writeFile(path: []const u8, data: []const u8, allocator: ?&mem.Allocator) -> %void {
|
|
|
|
// TODO have an unbuffered File abstraction and use that here.
|
|
|
|
// Then a buffered out stream abstraction can go on top of that for
|
|
|
|
// use cases like stdout and stderr.
|
|
|
|
var out_stream = %return OutStream.open(path, allocator);
|
|
|
|
defer out_stream.close();
|
|
|
|
%return out_stream.write(data);
|
|
|
|
%return out_stream.flush();
|
|
|
|
}
|