]> git.lizzy.rs Git - plan9front.git/log
plan9front.git
2 years agovt: allow scrolling with the mouse.
Ori Bernstein [Sat, 26 Jun 2021 17:39:13 +0000 (17:39 +0000)]
vt: allow scrolling with the mouse.

2 years agovt, ssh: don't send interrupts on window resize
Ori Bernstein [Sat, 26 Jun 2021 17:29:27 +0000 (17:29 +0000)]
vt, ssh: don't send interrupts on window resize

When resizing windows, vt would signal ssh by updating
the window size and sending an interrupt. Ssh reacted
by forwarding both the winch and an interrupt.

This change adds a WINCH generation counter so that
ssh can differentiate between resizes and interrupts.
If an interrupt comes in, and the WINCH generation
changes, then the interrupt is taken as signalling a
WINCH.

2 years agokencc: revert back to "set but not used"
cinap_lenrek [Sat, 26 Jun 2021 13:16:36 +0000 (13:16 +0000)]
kencc: revert back to "set but not used"

The change to "assignment not used" breaks symmetry with
"used and not set" and removes the reference to the
specific warning mentioned in /sys/doc/comp.ms.

Also, the patch was half-assed as that it left some typos
in like "used an not set", which this change also fixed.

2 years agorc: skip arguments to Xsrcline, Xsrcfile in codefree
Ori Bernstein [Fri, 25 Jun 2021 23:10:07 +0000 (23:10 +0000)]
rc: skip arguments to Xsrcline, Xsrcfile in codefree

We weren't correctly skipping the location operators
in codefree. This would mostly be work, but sometimes
you'd get unlucky and have one of the argmuents mismatch,
and that would lead to an invalid free.

This correctly skips the args in codefree.

2 years agocc: create .$O files with DMTMP
Jacob Moody [Thu, 24 Jun 2021 13:53:37 +0000 (13:53 +0000)]
cc: create .$O files with DMTMP

2 years agotmdate(2): "ttt" is a valid format too, mention it
Sigrid Solveig Haflínudóttir [Wed, 23 Jun 2021 08:07:16 +0000 (08:07 +0000)]
tmdate(2): "ttt" is a valid format too, mention it

2 years agogit/fs: use a better heuristic for permissions.
Ori Bernstein [Tue, 22 Jun 2021 23:55:54 +0000 (23:55 +0000)]
git/fs: use a better heuristic for permissions.

Since we now store /dist/plan9front in git, the
initial assumption that the owner of the repo
is the person touching it is not always true.

This change gives us a better heuristic for the
file permissions we should have in the files we
copy around, basing it off of the permissions of
the .git directory.

2 years agorc: correct line numbers
Ori Bernstein [Tue, 22 Jun 2021 23:40:11 +0000 (23:40 +0000)]
rc: correct line numbers

When loading a file using ".", we could
end up with our line numbers thrown off
due to the mutation of lexline. Putting
lexline into the runq beside the file
that we're reading from causes it to get
pushed and popped correctly, so that we
no longer lose track of our location.

2 years agogit(1): we have rebase
Ori Bernstein [Mon, 21 Jun 2021 15:38:11 +0000 (15:38 +0000)]
git(1): we have rebase

2 years agoventi: make error messages consistent, remove duplicate messages.
Ori Bernstein [Mon, 21 Jun 2021 12:29:52 +0000 (12:29 +0000)]
venti: make error messages consistent, remove duplicate messages.

removes duplicate messaes about restrictions, and duplicate
checks, makes the error match the rest of the errors.

2 years ago/sys/man/mkfile: drop reference to non-existent realtime(3)
Alex Musolino [Mon, 21 Jun 2021 10:27:09 +0000 (10:27 +0000)]
/sys/man/mkfile: drop reference to non-existent realtime(3)

2 years agosched(9): replace '–' with '-' in NAME section
Alex Musolino [Mon, 21 Jun 2021 10:26:15 +0000 (10:26 +0000)]
sched(9): replace '–' with '-' in NAME section

This was causing the ptx utility in /sys/lib/man/permind
to barf.  As such, the PDF book of all manual sections
could not be built.

2 years ago/sys/man/mkfile: run eqn(1) for usb(3) section of book
Alex Musolino [Mon, 21 Jun 2021 10:22:49 +0000 (10:22 +0000)]
/sys/man/mkfile: run eqn(1) for usb(3) section of book

2 years agoventi: warn when opening /dev/swap fails
Noam Preil [Mon, 21 Jun 2021 03:56:14 +0000 (03:56 +0000)]
venti: warn when opening /dev/swap fails

2 years agoventi: fix detection of available RAM (fixes -m)
Noam Preil [Mon, 21 Jun 2021 03:52:09 +0000 (03:52 +0000)]
venti: fix detection of available RAM (fixes -m)

2 years agoventi: inform user when reducing memory consumption
Noam Preil [Mon, 21 Jun 2021 03:49:42 +0000 (03:49 +0000)]
venti: inform user when reducing memory consumption

2 years ago/sys/src: add arm64 to installall list
Noam Preil [Mon, 21 Jun 2021 03:34:47 +0000 (03:34 +0000)]
/sys/src: add arm64 to installall list

2 years agokencc: clarify warning for unused assignments
Noam Preil [Mon, 21 Jun 2021 03:29:58 +0000 (03:29 +0000)]
kencc: clarify warning for unused assignments

2 years agogit/revert: handle absolute paths gracefully (thanks deuteron)
Ori Bernstein [Mon, 21 Jun 2021 02:12:58 +0000 (02:12 +0000)]
git/revert: handle absolute paths gracefully (thanks deuteron)

when reverting files, absolute paths would get concatenated with
$gitrel; use `cleanname -d` to fix this.

2 years agolibsec: restore old behaviour for generating self signed cert
cinap_lenrek [Mon, 21 Jun 2021 00:38:06 +0000 (00:38 +0000)]
libsec: restore old behaviour for generating self signed cert

2 years agolibsec: emulate openssl asn1 when generating x509 csr
cinap_lenrek [Sun, 20 Jun 2021 23:33:13 +0000 (23:33 +0000)]
libsec: emulate openssl asn1 when generating x509 csr

when trying to request certificates from letsencrypt,
their test api would reject our csr because of
"tuncated sequence" unless we force subectAltName
by passing multiple domains (as comma separated list).

apparently, we need to provide the context specific tag
"cont [ 0 ]" for the extensions even when we do have
any extensions for the csr (triggered when we need to
have subjectAltNames).

for this, we change mkcont() to take a Elist* instead,
which then can be nil when not used. also put the tag
number argument first, which makes it easier to read.

2 years agogit/log: handle absolute paths gracefully.
Ori Bernstein [Sun, 20 Jun 2021 17:07:33 +0000 (17:07 +0000)]
git/log: handle absolute paths gracefully.

strip off the repo prefix if the path given
is absolute, and then look up as though it
was rooted in the repo.

2 years agothreadimpl.h: remove Printsize as well (unused)
Sigrid Solveig Haflínudóttir [Sun, 20 Jun 2021 14:59:10 +0000 (14:59 +0000)]
threadimpl.h: remove Printsize as well (unused)

2 years agothread.h: threadnonotes does not exist
Sigrid Solveig Haflínudóttir [Sun, 20 Jun 2021 14:55:13 +0000 (14:55 +0000)]
thread.h: threadnonotes does not exist

2 years agothreadimpl: remove unused fields from Proc struct
Sigrid Solveig Haflínudóttir [Sun, 20 Jun 2021 14:54:20 +0000 (14:54 +0000)]
threadimpl: remove unused fields from Proc struct

2 years agolibsec: move zero check to curve25519_dh_finish()
cinap_lenrek [Sun, 20 Jun 2021 14:41:26 +0000 (14:41 +0000)]
libsec: move zero check to curve25519_dh_finish()

As checking for all zero has to be done in a timing-safe
way to avoid a side channel, it is best todo this here
instead of letting the caller deal with it.

This adds a return type of int to curve25519_dh_finish()
where returning 0 means we got a all zero shared key.

RFC7748 states:

The check for the all-zero value results from the fact
that the X25519 function produces that value if it
operates on an input corresponding to a point with small
order, where the order divides the cofactor of the curve.

2 years agodate(1): list all option characters in SYNOPSIS
Alex Musolino [Sun, 20 Jun 2021 02:05:00 +0000 (02:05 +0000)]
date(1): list all option characters in SYNOPSIS

Now that -f is specifically mentioned (as it takes
an argument), might as well list the others in full.

2 years agolibsec: various changes to tls
kemal [Fri, 18 Jun 2021 19:12:44 +0000 (19:12 +0000)]
libsec: various changes to tls

1. add the curve x25519 to tls, both client and server.
it's more faster, immune to timing attacks by design,
does not require verifying if the public key is valid,
etc etc. server-side has to check if the client supports
the curve, so a new function has been introduced to parse
the client's extensions.

2. reject weak dhe primes that can be easily cracked with
the number field sieve algorithm. this avoids attacks like
logjam.

3. stop putting unix time to the first 4 bytes of client/
server random. it can allow fingerprinting, tls 1.3 doesn't
recommend it any more and there was a draft to deprecate
this behaviour earlier.[1]

4. simply prf code, remove useless cipher enums.

[1] https://datatracker.ietf.org/doc/html/draft-mathewson-no-gmtunixtime-00

2 years agonusbrc(8): fix typo (thanks igor@9lab.org)
kvik [Sat, 19 Jun 2021 12:03:53 +0000 (12:03 +0000)]
nusbrc(8): fix typo (thanks igor@9lab.org)

2 years agocal: fix days of week alignment for year view (thanks igor@9lab.org)
kvik [Sat, 19 Jun 2021 12:00:52 +0000 (12:00 +0000)]
cal: fix days of week alignment for year view (thanks igor@9lab.org)

  term% cal -s1 2021
                                  2021

           Jan                    Feb                    Mar
   M Tu  W Th  F Sa Su     M Tu  W Th  F Sa Su     M Tu  W Th  F Sa Su
               1  2  3    1  2  3  4  5  6  7    1  2  3  4  5  6  7
   4  5  6  7  8  9 10    8  9 10 11 12 13 14    8  9 10 11 12 13 14
  11 12 13 14 15 16 17   15 16 17 18 19 20 21   15 16 17 18 19 20 21
  18 19 20 21 22 23 24   22 23 24 25 26 27 28   22 23 24 25 26 27 28
  25 26 27 28 29 30 31                          29 30 31
  …

Note how the days (i.e. ' M Tu  W Th  F Sa Su') for Feb and Mar
do not align with the day numbers.

This is because an extra space is left *before* adding the terminating
'\0' via the pointer `dayw`.

With the patch applied the calendar aligns nicely for the year view:

  term% cal -s1 2021
                                  2021

           Jan                    Feb                    Mar
   M Tu  W Th  F Sa Su    M Tu  W Th  F Sa Su    M Tu  W Th  F Sa Su
               1  2  3    1  2  3  4  5  6  7    1  2  3  4  5  6  7
   4  5  6  7  8  9 10    8  9 10 11 12 13 14    8  9 10 11 12 13 14
  11 12 13 14 15 16 17   15 16 17 18 19 20 21   15 16 17 18 19 20 21
  18 19 20 21 22 23 24   22 23 24 25 26 27 28   22 23 24 25 26 27 28
  25 26 27 28 29 30 31                          29 30 31
  …

2 years agodate(1): document '-f' option
Ori Bernstein [Thu, 17 Jun 2021 21:12:26 +0000 (21:12 +0000)]
date(1): document '-f' option

2 years agogit/branch: resolve implicit branch switch before using it
Ori Bernstein [Wed, 16 Jun 2021 15:25:02 +0000 (15:25 +0000)]
git/branch: resolve implicit branch switch before using it

When switching a branch implicitly -- ie, creating a local
branch off of a remote branch -- we would get the list of
changed files before we would resolve the implicit branch
switch, leading to an empty list of changes.

2 years agolex: fix uninitialized fds (thanks きゐ)
Ori Bernstein [Wed, 16 Jun 2021 00:28:01 +0000 (00:28 +0000)]
lex: fix uninitialized fds (thanks きゐ)

2 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).

2 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.

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

2 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

2 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.

2 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

2 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

2 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

2 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.

2 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

2 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.

2 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.

2 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.

2 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.

2 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.

2 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.

2 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

2 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

2 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.

2 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.

2 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)

2 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.

2 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)

2 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.

2 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.

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

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

2 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.

2 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.

2 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.

2 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.

2 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.

2 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...

2 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.

2 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.

2 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

2 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.

2 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.

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

2 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.

2 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.

2 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.

2 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.

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

2 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.

2 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.

2 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.

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

2 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.

2 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.

2 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)

2 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)

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

2 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.

2 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

2 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

2 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