]> git.lizzy.rs Git - plan9front.git/log
plan9front.git
3 years agolex: fix uninitialized fds (thanks きゐ)
Ori Bernstein [Wed, 16 Jun 2021 00:28:01 +0000 (00:28 +0000)]
lex: fix uninitialized fds (thanks きゐ)

3 years agotroff: fix mangled fonts and character files
Anthony Martin [Tue, 15 Jun 2021 16:13:59 +0000 (16:13 +0000)]
troff: fix mangled fonts and character files
All of these files appear to have been imported from sources in a
case-insensitive manner and consequently lost their original content.

- Hx, Hb, and Hi fonts should be narrow versions of Helvetica

- c[1-3] fonts should be condensed versions of Century Old Style

- the lH character should be a filled left hand symbol

- the rh character should be a stroked right hand symbol

- the rc character should be the right ceiling symbol

I've verified that these are the only files that collide with others
when ignoring case (aside from rc/bin/[Kk]ill but those are correct).

3 years agogit/import: handle mails with line wrapping and mime
Ori Bernstein [Tue, 15 Jun 2021 21:29:22 +0000 (21:29 +0000)]
git/import: handle mails with line wrapping and mime

git/import expected a patch, however upas/fs serves
either a raw file without any of the mime decoding
and line joining, or a directory, with the headers
and body split out.

This makes it a pain to apply some mails.

So, here we teach git to import upas dirs natively,
making it easy to handle all patches that come in
as emails.

3 years agoircrc: freenode -> oftc
glenda [Tue, 15 Jun 2021 14:28:00 +0000 (14:28 +0000)]
ircrc: freenode -> oftc

3 years agosysupdate: clean up transitional code
Ori Bernstein [Mon, 14 Jun 2021 23:58:09 +0000 (23:58 +0000)]
sysupdate: clean up transitional code

we just need git/pull now

3 years agopython, hg: tow outside the environment.
Ori Bernstein [Mon, 14 Jun 2021 00:00:37 +0000 (00:00 +0000)]
python, hg: tow outside the environment.

they've served us well, and can ride off into the sunset.

3 years ago/sys/lib/dist/mkfile: test for .git directory
glenda [Sun, 13 Jun 2021 13:21:12 +0000 (13:21 +0000)]
/sys/lib/dist/mkfile: test for .git directory

3 years agosam: remove refrence to /srv file in man page
Jacob Moody [Sat, 12 Jun 2021 18:44:17 +0000 (18:44 +0000)]
sam: remove refrence to /srv file in man page

3 years agolib9p: add auth* functions to man page
Jacob Moody [Sat, 12 Jun 2021 23:12:41 +0000 (23:12 +0000)]
lib9p: add auth* functions to man page

3 years agogit/push, git/send: get better about erroring out early
Ori Bernstein [Sun, 13 Jun 2021 12:48:49 +0000 (12:48 +0000)]
git/push, git/send: get better about erroring out early

git/push died within a subshell, which prevented the
whole program from exiting, and lead to an incorrect
ref update line that confused people.

git/send would eventually error out, but would push
all the data before that happened; this was annoying.

3 years agoa.out(1): update manpage to be 64 bit inclusive
jacob gw [Sat, 5 Jun 2021 18:48:10 +0000 (18:48 +0000)]
a.out(1): update manpage to be 64 bit inclusive

3 years agogit/branch: preserve checked in permissions on branch update
Ori Bernstein [Sun, 13 Jun 2021 01:20:46 +0000 (01:20 +0000)]
git/branch: preserve checked in permissions on branch update

we need to copy the files, and we should copy them with the
permissions that exist in the repo.

3 years agoB: expand path when plumbing files
Ori Bernstein [Sat, 12 Jun 2021 18:03:26 +0000 (18:03 +0000)]
B: expand path when plumbing files

When we plumb a file, we open it in the current working
directory if it exists. However, if it doesn't exist,
we end up opening it relative to the editor's working
directory.

Expanding the path to works around this issue.

3 years agoB, sam: remove sam srv file
Fulton Browne [Sat, 12 Jun 2021 17:20:53 +0000 (17:20 +0000)]
B, sam: remove sam srv file
No need for 2 programs doing the same job.

3 years agogit/add: clear qid cache as side effect
Ori Bernstein [Sat, 12 Jun 2021 14:57:58 +0000 (14:57 +0000)]
git/add: clear qid cache as side effect

this is an occasionally useful side effect when
doing surgery on repos, so let's have it.

3 years agomothra: read the content-type header over file(1) to determine type (thanks james...
Ori Bernstein [Sat, 12 Jun 2021 14:32:16 +0000 (14:32 +0000)]
mothra: read the content-type header over file(1) to determine type (thanks james palmer)

this fixes some pages being classified as xml by file(1),
meaning they would be rendered as plain text rather than as html.

3 years agoRemove ap(1)
Fulton Browne [Fri, 11 Jun 2021 23:26:50 +0000 (23:26 +0000)]
Remove ap(1)
Cool script - does not work.

3 years agogit/conf: check in /sys/lib/git/config as a fallback to user-wide config
kemal [Tue, 8 Jun 2021 20:13:57 +0000 (20:13 +0000)]
git/conf: check in /sys/lib/git/config as a fallback to user-wide config

3 years agogit/revert: fork the namespace before running git/fs
kvik [Tue, 8 Jun 2021 20:20:06 +0000 (20:20 +0000)]
git/revert: fork the namespace before running git/fs

3 years agohomespool: remove obsolete lp config tool
Ori Bernstein [Mon, 7 Jun 2021 16:46:57 +0000 (16:46 +0000)]
homespool: remove obsolete lp config tool

homespool configures directories that it seems
lp no longer usees. we can drop it.

3 years agosysinfo(1): we don't do '-i' for sysupdate any more.
Ori Bernstein [Mon, 7 Jun 2021 02:17:30 +0000 (02:17 +0000)]
sysinfo(1): we don't do '-i' for sysupdate any more.

3 years agoacme(4): document rdsel, wrsel (thanks foura)
Ori Bernstein [Mon, 7 Jun 2021 01:39:05 +0000 (01:39 +0000)]
acme(4): document rdsel, wrsel (thanks foura)

3 years agogit: avoid uninterruptible temporary warning
Ori Bernstein [Sun, 6 Jun 2021 23:50:45 +0000 (23:50 +0000)]
git: avoid uninterruptible temporary warning

dont' fall into the rathole.

3 years agorio: match background screen color format (thanks noam)
Ori Bernstein [Sun, 6 Jun 2021 22:44:36 +0000 (22:44 +0000)]
rio: match background screen color format (thanks noam)

3 years agosysinfo(1): we're on git now.
Ori Bernstein [Sun, 6 Jun 2021 22:26:07 +0000 (22:26 +0000)]
sysinfo(1): we're on git now.

3 years agodistproto: remove .hgnore and .hg and add .git directory
Ori Bernstein [Sun, 6 Jun 2021 18:09:33 +0000 (18:09 +0000)]
distproto: remove .hgnore and .hg and add .git directory

again.

3 years agosee last try.
Ori Bernstein [Sun, 6 Jun 2021 17:44:10 +0000 (17:44 +0000)]
see last try.

3 years agodistproto: sync with hg
Ori Bernstein [Sun, 6 Jun 2021 17:21:53 +0000 (13:21 -0400)]
distproto: sync with hg

3 years agogit/branch: diff clean and dirty lists correctly
Ori Bernstein [Sun, 6 Jun 2021 15:57:31 +0000 (11:57 -0400)]
git/branch: diff clean and dirty lists correctly

no spaces in our lists.

3 years agogit/branch: revert optimization fully
Ori Bernstein [Sun, 6 Jun 2021 13:27:33 +0000 (09:27 -0400)]
git/branch: revert optimization fully

it doesn't help *that* much, and confuses the code.

3 years agogit/branch: somewhere in the syncing, the fix for junk files was lost
Ori Bernstein [Sun, 6 Jun 2021 13:11:10 +0000 (09:11 -0400)]
git/branch: somewhere in the syncing, the fix for junk files was lost

bring it back.

3 years agogit/send: allow the remote to have refs that we don't
Ori Bernstein [Sun, 6 Jun 2021 03:29:57 +0000 (23:29 -0400)]
git/send: allow the remote to have refs that we don't

It's not fatal for someone else to push a branch
with objects that we don't have. We should deal
with it gracefully, and act as though it doesn't
exist.

3 years agogit/commit: allow passing absolute paths
Ori Bernstein [Sun, 6 Jun 2021 02:07:57 +0000 (22:07 -0400)]
git/commit: allow passing absolute paths

we would treat paths as relative, and not
step past leading '/'s, leading to an infinte
loop.

3 years agosysupdate: revert thumbstone temporarily
cinap_lenrek [Sat, 5 Jun 2021 23:58:24 +0000 (01:58 +0200)]
sysupdate: revert thumbstone temporarily

experiencing some issues with git9 transition... we likely need
to update git9 again before doing another attempt...

3 years agogit/branch: merge correct set of files
glenda [Sat, 5 Jun 2021 18:50:20 +0000 (18:50 +0000)]
git/branch: merge correct set of files

we were switching branches before we got the full list
of modified files, which could garble what we were trying
to merge.

3 years agogit/{branch,pull}: merge files correctly
Ori Bernstein [Sat, 5 Jun 2021 17:42:05 +0000 (17:42 +0000)]
git/{branch,pull}: merge files correctly

merge1 would clobber the global '$base' variable,
which is not what we wanted. Run it in a subshell
with its own env.

3 years agodistproto: remove .hgnore and .hg and add .git directory
glenda [Sat, 5 Jun 2021 17:21:09 +0000 (17:21 +0000)]
distproto: remove .hgnore and .hg and add .git directory

3 years agogit: handle absolute paths better
Ori Bernstein [Sat, 5 Jun 2021 13:40:28 +0000 (13:40 +0000)]
git: handle absolute paths better

we were catting $gitrel onto absolute paths. stop it.

3 years agosysupdate: insert tombstone
Ori Bernstein [Sat, 5 Jun 2021 12:17:03 +0000 (05:17 -0700)]
sysupdate: insert tombstone

after this update, we're on git: update sysupdate
to switch repositories.

3 years agomerge
Alex Musolino [Fri, 4 Jun 2021 16:12:10 +0000 (01:42 +0930)]
merge

3 years agoupas/Mail: fix bug where Redraw must be executed twice to have an effect
Alex Musolino [Fri, 4 Jun 2021 15:51:55 +0000 (01:21 +0930)]
upas/Mail: fix bug where Redraw must be executed twice to have an effect

In showlist, call bwindata instead of bwinopen in order to use a
pre-existing fd to write to the data file.  This existing fd will
properly honour any address set by a previous write to the addr file.
Specifically, the redraw function sets addr to "," before calling
showlist in order to overwrite the entire contents of the window.

3 years agogit: allow local repository directories as remote uri's
cinap_lenrek [Fri, 4 Jun 2021 15:47:26 +0000 (17:47 +0200)]
git: allow local repository directories as remote uri's

This is implemented by checking first if the uri is
a directory containing the .git/ subdirectory.
If this is the case, we fork git/serve serving the
repository on a pipe.

3 years agogit/serve: remove undocumented -n namespace option and -r /usr/git default
cinap_lenrek [Fri, 4 Jun 2021 15:44:29 +0000 (17:44 +0200)]
git/serve: remove undocumented -n namespace option and -r /usr/git default

This makes it easier to serve local repositories where the sandboxing
gets in the way.

3 years agogit/log: show first commit as file change
Ori Bernstein [Thu, 3 Jun 2021 23:15:16 +0000 (16:15 -0700)]
git/log: show first commit as file change

We checked if the file was changed from its parents.
If there were no parents, the answer was no, but it
should be yes.

3 years agogit/init: create fs dir
Ori Bernstein [Tue, 1 Jun 2021 02:30:07 +0000 (19:30 -0700)]
git/init: create fs dir

3 years agogit/send: pick minimal delta set correctly (thanks igor)
Ori Bernstein [Tue, 1 Jun 2021 01:02:23 +0000 (18:02 -0700)]
git/send: pick minimal delta set correctly (thanks igor)

We weren't giving all objects to the twixt() function, and
it was making bad life choices -- gambling, smoking, drinking,
and packing in too much data.

With more information, it doesn't do the last.

3 years agosdvirtio: accept multi-queue devices
Ori Bernstein [Mon, 31 May 2021 17:59:45 +0000 (10:59 -0700)]
sdvirtio: accept multi-queue devices

Sdvirtio supports multiple queues per device.
We only use one queue, but we shouldn't skip the
devices because of that.

3 years agogit/branch: ...all the debug prints.
Ori Bernstein [Mon, 31 May 2021 02:21:57 +0000 (19:21 -0700)]
git/branch: ...all the debug prints.

3 years agogit/branch: remove debug prints
Ori Bernstein [Mon, 31 May 2021 02:07:11 +0000 (19:07 -0700)]
git/branch: remove debug prints

3 years agogit/branch: reduce execs to sync working dir
Ori Bernstein [Mon, 31 May 2021 02:06:01 +0000 (19:06 -0700)]
git/branch: reduce execs to sync working dir

We were execing a lot to copy the data -- do less of it.

3 years agogit/fs: move mount point to $repo/.git/fs
Ori Bernstein [Mon, 31 May 2021 00:46:21 +0000 (17:46 -0700)]
git/fs: move mount point to $repo/.git/fs

Moving the mount point to within the repo
directory means that we can have multiple
git repos mounted at once with no conflict.

3 years agovac: add -t flag to exclude temporary files and directories (thanks foura)
cinap_lenrek [Sun, 30 May 2021 12:30:50 +0000 (14:30 +0200)]
vac: add -t flag to exclude temporary files and directories (thanks foura)

3 years ago[9front] vga: Add U+29FA DOUBLE PLUS (thanks jmi2k)
cinap_lenrek [Sun, 30 May 2021 12:26:28 +0000 (14:26 +0200)]
[9front] vga: Add U+29FA DOUBLE PLUS (thanks jmi2k)

3 years agomerge
cinap_lenrek [Sat, 29 May 2021 12:20:04 +0000 (14:20 +0200)]
merge

3 years agokernel: use 64-bit virtual entry point for expanded header, document behaviour in...
cinap_lenrek [Sat, 29 May 2021 12:18:35 +0000 (14:18 +0200)]
kernel: use 64-bit virtual entry point for expanded header, document behaviour in a.out(6)

For 64-bit architectures, the a.out header has the HDR_MAGIC flag set
in the magic and is expanded by 8 bytes containing the 64-bit virtual
address of the programs entry point. While Exec.entry contains physical
address for kernel images.

Our sysexec() would always use Exec.entry, even for 64-bit a.out binaries,
which worked because PADDR(entry) == entry for userspace pointers.

This change fixes it, having the kernel use the 64-bit entry point
and document the behaviour in the manpage.

3 years agozuke: treat toggle as play in stopped state
Sigrid [Fri, 28 May 2021 11:02:58 +0000 (13:02 +0200)]
zuke: treat toggle as play in stopped state

3 years agozuke: fix seeking in paused mode
Sigrid [Thu, 27 May 2021 05:47:10 +0000 (07:47 +0200)]
zuke: fix seeking in paused mode

3 years agomkpaqfs(8): allow setting compression level
cinap_lenrek [Sun, 23 May 2021 15:06:14 +0000 (17:06 +0200)]
mkpaqfs(8): allow setting compression level

3 years ago/sys/lib/kbmap/colemak: map capslock to backspace (thanks jacob wb)
cinap_lenrek [Thu, 20 May 2021 19:29:43 +0000 (21:29 +0200)]
/sys/lib/kbmap/colemak: map capslock to backspace (thanks jacob wb)

3 years agogit: add missing file
Ori Bernstein [Mon, 17 May 2021 20:46:44 +0000 (13:46 -0700)]
git: add missing file

Forgot to add common.rc in the initial commit.

3 years ago9pfid(2): document Srv* in Req (thanks kjn)
Ori Bernstein [Mon, 17 May 2021 16:17:22 +0000 (09:17 -0700)]
9pfid(2): document Srv* in Req (thanks kjn)

This struct member is available for any user of
the library, and is not part of our internal API.
It should be documented.

3 years agogit: got git?
Ori Bernstein [Mon, 17 May 2021 01:49:45 +0000 (18:49 -0700)]
git: got git?

Add a snapshot of git9 to 9front.

3 years agomemory(2): mention tsmemcmp (thanks kemal)
cinap_lenrek [Sat, 15 May 2021 10:40:11 +0000 (12:40 +0200)]
memory(2): mention tsmemcmp (thanks kemal)

3 years agoip/ftpd: Add explict and implicit FTPS support.
foura [Sun, 2 May 2021 14:29:43 +0000 (15:29 +0100)]
ip/ftpd: Add explict and implicit FTPS support.

Removed:
- Challenge reponse auth.
- Noworld login.
- Anonymous users writing files to /incoming.

3 years agolibpanel: fix text sliding around in libpanel text entry widgets.
james palmer [Thu, 13 May 2021 20:29:19 +0000 (21:29 +0100)]
libpanel: fix text sliding around in libpanel text entry widgets.

3 years agopc64: avoid getcr3() in mmuflushtlb()
cinap_lenrek [Wed, 12 May 2021 20:40:51 +0000 (22:40 +0200)]
pc64: avoid getcr3() in mmuflushtlb()

it turns out that calculating physical address of pml4 is faster
than reading the machine register, so pass it explicitely.

3 years agodevvmx: remove unncessary locking in gotcmd() sleep test function
cinap_lenrek [Wed, 12 May 2021 20:24:36 +0000 (22:24 +0200)]
devvmx: remove unncessary locking in gotcmd() sleep test function

3 years agovmx: fix 9p debug server and make it compatible to /proc
cinap_lenrek [Wed, 12 May 2021 16:17:06 +0000 (18:17 +0200)]
vmx: fix 9p debug server and make it compatible to /proc

The 9p debug server was broken as it assumed the first
tree file added would have a qid of 0 (it has a qid
of 1 as the root directory is using 0 already).

Instead, just compare File* pointers and get rid of
the table (less code).

When passing 64-bit unsigned addresses as 64-bit signed
file offsets, we have to make sure to not pass negative
offsets (filtered out by kernel and lib9p)!
This is solved by clearing and sign bit in encoding and
63-bit sign extension on decoding.

Make the mem file writable (needed for acid).

The 9p debug server provided a single directory containing
mem and regs files. This patch renames the regs file
(which is in vmx specific text format) to "xregs" and
adds "regs" and "kregs" file which use the same format
as exported by the kernels /proc filesystem.

This allows one to bind the vmx directory over a proc
directory and attach acid to a running system like:

mount -b /srv/vmx /proc/1
acid -k -lkernel 1 /sys/src/9/pc64/9pc64

3 years agovmx: avoid strdup() register names for register cache
cinap_lenrek [Wed, 12 May 2021 16:04:25 +0000 (18:04 +0200)]
vmx: avoid strdup() register names for register cache

If we tokenize the register file contents in a static buffer,
we can avoid having to duplicate the register names.

All callers to rpoke() provide constant register arguments
so they also do not need to be duplicated.

3 years agovmx: implement long mode page table translation
cinap_lenrek [Wed, 12 May 2021 16:00:46 +0000 (18:00 +0200)]
vmx: implement long mode page table translation

This allows vmx to translate virtual addresses to physical
when the gues runs in long mode.

3 years agoiwhois: add some improvements (thanks gall0ws)
cinap_lenrek [Sun, 9 May 2021 13:19:05 +0000 (15:19 +0200)]
iwhois: add some improvements (thanks gall0ws)

patch from gall0ws:

> It's impossible to get whois right and probably nobody cares about it,
> nevertheless this small patch fixes some issues with the current version:
>
> * use a more common filter for default boilerplate (useful when
>   following the referral chain)
> * updated boilerplate for *.co.uk *.net.uk *.org.uk
> * added case *.com *.net (got it from iana.org)
> * use ARIN for IPv6 addresses
> * when unsure, check first whether whois.nic.$tld exists otherwise
>   usual fallback to InterNIC
> * fixed regexp for the referral chain (case, extra spaces or /)

- add usage handling.

--
cinap

3 years agogames/opl3: use correct sampling rate
qwx [Wed, 5 May 2021 14:57:19 +0000 (16:57 +0200)]
games/opl3: use correct sampling rate

games/dmid uses the same sample rate as the chip for music, but other
applications do not.  opl3 and its older version opl2 (not in 9front)
read an input stream of commands in basically IMF format, something
used in other id Software games and some others, which assumes a
given input sampling rate:  700 Hz for Wolfenstein 3D music, 560 Hz
for Commander Keen, 60 Hz for Ultima 6, etc.

The opl3 emulation on the other hand is not really intended to run at
a sampling rate different that the chip's 49.716 kHz sampling rate.
Previously, we assumed it runs at 44.1 kHz and just used the input
rate as a divisor to get the number of samples per delay tic.

From what I understand, the correct way to use it for accurate
emulation is to run the opl chip emulator at its intended sampling
frequency, then downsample to 44.1 kHz.  This means better output
but more code.  The alternative is to basically do the same as
before rev 8433, except with no buffering, but at accuracy/quality
loss.  This change implements the former and just forks pcmconv to
deal with resampling.

3 years agomerge
cinap_lenrek [Tue, 4 May 2021 23:51:20 +0000 (01:51 +0200)]
merge

3 years agocpu: properly handle end of file in readstr()
cinap_lenrek [Tue, 4 May 2021 23:50:09 +0000 (01:50 +0200)]
cpu: properly handle end of file in readstr()

3 years agozuke(1): more fixes (thanks humm)
Sigrid [Tue, 4 May 2021 13:32:35 +0000 (15:32 +0200)]
zuke(1): more fixes (thanks humm)

3 years agozuke(1): engrish (thanks qwx)
Sigrid [Tue, 4 May 2021 13:21:44 +0000 (15:21 +0200)]
zuke(1): engrish (thanks qwx)

3 years agoadd zuke(1) manpage (thanks kemal & humm)
Sigrid [Tue, 4 May 2021 12:52:05 +0000 (14:52 +0200)]
add zuke(1) manpage (thanks kemal & humm)

3 years agolibtags: upstream updates
Sigrid [Mon, 3 May 2021 19:04:39 +0000 (21:04 +0200)]
libtags: upstream updates

3 years agoMail: remove message about cyclic threads
Ori Bernstein [Sat, 1 May 2021 19:33:31 +0000 (15:33 -0400)]
Mail: remove message about cyclic threads

They happen, and we break the cycle. There's nothing
the user can do, so there's no point in warning.

3 years agolib9p: remove Srv.srvfd, make postsrv() and threadpostsrv() return the mountable...
cinap_lenrek [Sat, 1 May 2021 17:58:58 +0000 (19:58 +0200)]
lib9p: remove Srv.srvfd, make postsrv() and threadpostsrv() return the mountable file descriptor, update documentation

Now that we have these new functions,
we can also make them return an error
instead of calling sysfatal() like
postmountsrv().

Remove the confusing Srv.srvfd, as it
is only temporarily used and return
it from postsrv() instead.

3 years agolib9p: remove unneccesary headers
cinap_lenrek [Sat, 1 May 2021 15:03:03 +0000 (17:03 +0200)]
lib9p: remove unneccesary headers

3 years agolib9p: expose Srv.forker handler and srvforker(), threadsrvforker() and threadsrv...
cinap_lenrek [Sat, 1 May 2021 14:37:00 +0000 (16:37 +0200)]
lib9p: expose Srv.forker handler and srvforker(), threadsrvforker() and threadsrv() functions

To use srvrease()/srvaquire() we need to have a way to spawn
new processes to handle the service loop. This functionality
was provided by the internal _forker() function which was
eigther rfork or libthread based implementation depending on
if postmountsrv() or threadpostmountsrv() where called.

For servers who want to use srv() directly, _forker would not
be initialized so srvrelease() could not be used.

To untangle this, we get rid of the global _forker handler
and put the handler in the Srv structure. Which will get
initialized (when nil) to eigther srvforker() or threadsrvforker()
depending on if the thread or non-thread entry points where used.

For symmetry, we provde new threadsrv() and threadpostsrv()
functions which handle the default initialization of Srv.forker.

This also allows a user to provide his own forker function,
maybe to conserve stack space.

To avoid dead code, we put each of these function in their
own object file. Note, this also allows a user to define its
own srvforker() symbol.

3 years agolibtags: use nelem
Sigrid [Fri, 30 Apr 2021 10:36:01 +0000 (12:36 +0200)]
libtags: use nelem

3 years agolibtags: trim text tags and ignore empty values
Sigrid [Thu, 29 Apr 2021 22:20:39 +0000 (00:20 +0200)]
libtags: trim text tags and ignore empty values

3 years agolibtags: modules: ignore empty title
Sigrid [Thu, 29 Apr 2021 21:35:52 +0000 (23:35 +0200)]
libtags: modules: ignore empty title

3 years agolibtags: use CP437 as the default encoding for module formats
Sigrid [Thu, 29 Apr 2021 19:44:06 +0000 (21:44 +0200)]
libtags: use CP437 as the default encoding for module formats

3 years agoopl3(1), exec(2): fix manpage typos (thanks umbraticus)
qwx [Tue, 27 Apr 2021 14:08:06 +0000 (16:08 +0200)]
opl3(1), exec(2): fix manpage typos (thanks umbraticus)

3 years agogames/opl3: don't buffer output and simplify (thanks umbraticus)
qwx [Tue, 27 Apr 2021 07:48:14 +0000 (09:48 +0200)]
games/opl3: don't buffer output and simplify (thanks umbraticus)

this fixes real-time applications.

-n previously specified a rate divisor rather than the rate itself,
which was used for specific applications outside of 9front.  instead,
just set the rate directly, more useful and straightforward.

3 years agofile: partially revert 8419 to detect <?xml as html
Sigrid [Sun, 25 Apr 2021 19:49:01 +0000 (21:49 +0200)]
file: partially revert 8419 to detect <?xml as html

3 years agokernel: clean up Mach structure
cinap_lenrek [Sun, 25 Apr 2021 15:41:34 +0000 (17:41 +0200)]
kernel: clean up Mach structure

Remove unused fields and factor common fields into a
new PMach struct in port/portdat.h.

The fields machno, splpc and proc are not moved to
PMach as they are part of the known offsets from
assembly (l.s).

3 years agobcm: try ATAGS/DTB pointer from R2 on entry
cinap_lenrek [Sun, 25 Apr 2021 15:36:11 +0000 (17:36 +0200)]
bcm: try ATAGS/DTB pointer from R2 on entry

3 years agorio: avoid re-triggering clicks on resize/hide/unhide and send wctl when focus is...
cinap_lenrek [Sun, 25 Apr 2021 10:41:20 +0000 (12:41 +0200)]
rio: avoid re-triggering clicks on resize/hide/unhide and send wctl when focus is lost

3 years agoresample: improve performance (thanks José Miguel Sánchez García)
cinap_lenrek [Sun, 25 Apr 2021 10:16:40 +0000 (12:16 +0200)]
resample: improve performance (thanks José Miguel Sánchez García)

Resample is well known for taking a long time to resize an image. This
patch brings an important performance boost (in my test image, time
was reduced from ~2850ms to ~500ms). It does that by extracting FP
multiplication and division out of the innermost loop of
resamplex/resampley.

The results differ slightly from the current implementation: in my
test: ~0.3% of the bytes had a ±2 difference in their value, which I
attribute to rounding errors. I'm personally not concerned with that
deviation, given the performance gains. However, I recommend testing
it just to be sure I didn't overlook anything.

José Miguel Sánchez García

3 years agolibtags, zuke: add *.mod support (thanks kemal)
Sigrid [Sat, 24 Apr 2021 14:07:24 +0000 (16:07 +0200)]
libtags, zuke: add *.mod support (thanks kemal)

3 years agozuke: fix middle-click restarting playback if held while mouse pointer is moving
Sigrid [Fri, 23 Apr 2021 09:20:30 +0000 (11:20 +0200)]
zuke: fix middle-click restarting playback if held while mouse pointer is moving

3 years agozuke: fix position formatter using a wrong type
Sigrid [Thu, 22 Apr 2021 06:40:50 +0000 (08:40 +0200)]
zuke: fix position formatter using a wrong type

3 years agomerge
cinap_lenrek [Wed, 21 Apr 2021 14:58:27 +0000 (16:58 +0200)]
merge

3 years agovgadb: revert previous commit, the pci device id 8086/1c3a is the embedded controller!
cinap_lenrek [Wed, 21 Apr 2021 14:57:13 +0000 (16:57 +0200)]
vgadb: revert previous commit, the pci device id 8086/1c3a is the embedded controller!

3 years agoplumber: fix substrings in match rules
Humm [Wed, 21 Apr 2021 06:28:32 +0000 (08:28 +0200)]
plumber: fix substrings in match rules

Unmatched substrings are nil, so we can't rely on nil terminating the
array of substrings.

3 years agonusbrc: rndis with csp 0104ef
Sigrid [Tue, 20 Apr 2021 16:12:54 +0000 (18:12 +0200)]
nusbrc: rndis with csp 0104ef