summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-12-19thread(2): fix description of when/why procexec(l) functions returnAlex Musolino
2019-12-19pc, pc64: fix cputemp decimal handling in amd10temprd (thanks Robert Ransom)Alex Musolino
2019-12-18flate(2): fix typos (thanks rgl)Alex Musolino
2019-12-15ip(3): document special null-address hack for accepting all incoming connectionscinap_lenrek
2019-12-14date: make ISO 8601 time output compatible to RFC3339cinap_lenrek
RFC3339 is a stricter subset of ISO 8601, in particular the timezone offset needs to be specified as +HH:MM while in ISO 8601 the colon is optional.
2019-12-11normalize error messages in yacc, stop writing to closed fd.Ori Bernstein
2019-12-11mergecinap_lenrek
2019-12-11devcons: fix write length of writebintime() (thanks BurnZeZ)cinap_lenrek
2019-12-10remove unused code.Ori Bernstein
2019-12-10only ensurecache() on doplumb().Ori Bernstein
2019-12-10mergeOri Bernstein
2019-12-10crop(1): remove duplicate -b option in synopsisAlex Musolino
2019-12-09upas/fs plumb flag changes.Ori Bernstein
This patch makes 3 changes: - It makes upas/fs send plumb messages when a message changes in the background (eg, someone on another imap connection opens a message and sets the read flag) - It makes faces not complain when it gets one of these new modify messages. - It makes acme/Mail update the flags in the display when it gets one of these messages.
2019-12-09riostart: when system uses serial console, provide a system shell on itcinap_lenrek
on systems with serial console and graphics such as the raspberry pi, it is nice to get a system shell on the serial console even when no monitor is connected.
2019-12-09console(8): add console command and manpagecinap_lenrek
the console command runs a command or the system shell under a new instance of kbdfs, optionally providing a serial console when $console environment variable is set.
2019-12-09mergecinap_lenrek
2019-12-09hgfs: fix loadrevinfo() breakage on long lines using libbio (thanks deuterion)cinap_lenrek
2019-12-08hack around timezone issues.Ori Bernstein
2019-12-08mergeOri Bernstein
2019-12-08fix filetype detecton by suffix so that multiple dots dont confuse it. ↵Ori Bernstein
(thanks kvik)
2019-12-07pc: replace duplicated and broken mmu flush code in vunmap()cinap_lenrek
comparing m with MACHP() is wrong as m is a constant on 386. add procflushothers(), which flushes all processes except up using common procflushmmu() routine.
2019-12-07kernel: avoid useless mmu flushes, implement better wait condition for ↵cinap_lenrek
procflushmmu() procflushmmu() returns once all *OTHER* processors that had matching processes running on them flushed ther tlb/mmu state. the caller of procflush...() takes care of flushing "up" by calling flushmmu() later. if the current process matched, then that means m->flushmmu would be set, and hzclock() would call flushmmu() again. to avoid this, we now check up->newtlb in addition to m->flushmmu in hzclock() before calling flushmmu(). we also maintain information on which process on what processor to wait for locally, which helps making progress when multiple procflushmmu()'s are running concurrently. in addition, this makes the wait condition for procflushmmu() more sophisticated, by validating if the processor still runs the selected process and only if it matchatches, considers the MACHP(nm)->flushmmu flag.
2019-12-06fix some acme memory leaksOri Bernstein
(imported from plan9port 7ca1c90109e17dced4b38fbaadea9d2cf39871b7, some tag restoration lines not relevant.)
2019-12-06hoc: don't nest calls to follow() when lexing ++/+= and --/-= (#287)Ori Bernstein
The code had a nested use of the follow() function that could cause +=+ and -=- to register as ++ and --. The first follow() to execute could consume a character and match and then the second follow() could consume another character and match. For example i-=-10 would result in a syntax error and i-=- would decrement i. (imported from plan9port commit f1dd3f065a97f57bf59db2e3284868e181734159)
2019-12-06words: transgenderSigrid
2019-12-05delete obsolete comments (replies are flagged elsewhere)Ori Bernstein
2019-12-04mergecinap_lenrek
2019-12-04bcm: use extended small pages so XN bit can workcinap_lenrek
the change to support no-execute bits broke the original raspberry pi1, as it uses backwards compatible page table format. to use the XN bit, subpage AP bits have to be disabled using the XP bit in CP15 Control Register c1 Bit 23.
2019-12-049/boot/net.rc: suppress error from grep if ethernet ifstats file is not foundcinap_lenrek
this can happen with nusb/ether, which does not implement ifstats file.
2019-12-04acme: Apply each -/+ only once (#156)Ori Bernstein
When plumbing an address like `3-`, Acme selects line 1, and similarly `3+` selects line 5. The same problem can be observed for character addresses (`#123+`) but _not_ for ones like `+`, `.+` or `/foo/+`: The problem only occurs when a number is followed by a direction (`-`/`+`). Following along with the example `3-` through `address` (in addr.c): We read `3` into `c` and match the `case` on line 239. The `while` loop on line 242ff reads additional digits into `c` and puts the first non-digit back by decrementing the index `q`. Then we find the range for line 3 on line 251 and continue. On the next iteration, we set `prevc` to the last `c`, but since that part read ahead _into `c`_, `c` is currently the _next_ character we will read, `-`, and now `prevc` is too. Then in the case block (line 210) the condition on line 211 holds and Acme believes that it has read two `-` in sequence and modifies the range to account for the “first” `-`. The “second” `-` gets applied after the loop is done, on line 292. So the general problem is: While reading numbers, Acme reads the next character after the number into `c`. It decrements the counter to ensure it will read it again on the next iteration, but it still uses it to update `prevc`. This change solves the problem by reading digits into `nc` instead. This variable is used to similar effect in the block for directions (line 212) and fills the role of “local `c` that we can safely use to read ahead” nicely. (imported from plan9front a82a8b6368274d77d42f526e379b74e79c137e26)
2019-12-04acme: avoid division by zero when resizing col (#189)Ori Bernstein
To reproduce, create a column with at least two windows and resize acme to have almost zero height. (imported from plan9port commit 76b9347a5fa3a0970527c6ee1b97ef1c714f636b)
2019-12-04acme, sam: handle >1GB files correctlyOri Bernstein
imported from plan9port, edfe3c016fe6ef10c55f7a17aab668214ec21efc
2019-12-03mergecinap_lenrek
2019-12-03cmd(3): fix typo, Close -> Closed (thanks kivik)cinap_lenrek
2019-12-03rio(4): fix bad cross-reference formatAlex Musolino
2019-12-03seconds(1): add SOURCE sectionAlex Musolino
2019-12-03always zero initialize Tm structure for tm2sec()cinap_lenrek
2019-12-02Remove reply print.Ori Bernstein
2019-12-02mergecinap_lenrek
2019-12-02pc, pc64: clear debug watchpoint registers on exec and exitcinap_lenrek
when a process does an exec syscall, procsetup() is called and we have to disable the debug watchpoint registers. just clearing p->dr is not enougth as we are not going thru a procsave() and procrestore() cycle which would disable and reload the saved debug registers. instead of clearing debug registers in procfork(), we should clear the saved debug registers before a process goes to die (pexit() calls sched() with up->state = Moribund) as the Proc structure can get reused for kernel processes (kproc) which never call procfork() and would therefore have debug registers loaded.
2019-12-02remove debug printOri Bernstein
2019-12-02simplify flag parsing.Ori Bernstein
we've only got a few flags, a linear search is good enough, and is obviously correct; the old search wasn't.
2019-12-02os(1): fix a typoSigrid
2019-12-02mergecinap_lenrek
2019-12-02vgai81x: remove unused mach0 variablecinap_lenrek
2019-12-02pc: fix ldt memory leak in procsetup()cinap_lenrek
2019-12-02kernel: add missing FPillegal definition for kw and omap kernelscinap_lenrek
2019-12-01fix typo: we don't have cache insurance.Ori Bernstein
2019-12-01show and update flags in acme mailOri Bernstein
now, it's possible to tell whether you've read or replied to a message.
2019-12-01upas/fs imap fixes and improvementsOri Bernstein
do incremental imap fetches after startup, fixes validity handling, record flags correctly when we aren't in the process of directly updating a message, fixes off by one in flag parsing, fixes mis-indexing messages in sync when we get an unsolicited fetch response.