Commit Graph

283787 Commits

Author SHA1 Message Date
rillig a4123952e2 make(1): fix documentation of POSIX configuration
Empty commands are always allowed, whether in POSIX mode or not.
2020-12-11 22:53:08 +00:00
rillig fd30830cf1 make(1): remove DEFMAXLOCAL and DEFMAXJOBS
These have been hard-wired all the time.  The word LOCAL doesn't make
sense anymore since the code for running jobs remotely has gone.
2020-12-11 22:48:31 +00:00
jmcneill 64fce61f41 Simplify gits_command by getting rid of the _BYTE_ORDER test and just
always use the loop + htole64 path.
2020-12-11 22:42:31 +00:00
rillig 6bf5f23d39 make(1): mark strange code that calls exit(signo)
In other places, the exit status of make is carefully chosen to be 0
(success), 1 (did not make everything), 2 (other error).  Using a signal
number is not guaranteed to be consistent among operating systems and is
therefore a weird choice.
2020-12-11 22:33:06 +00:00
riastradh 800615b324 Touch up cgdconfig(8) man page.
- Suggest adiantum first.
- Remove references to Blowfish.
- Clarify that ivmethod is relevant only for ancient compatibility.
2020-12-11 21:52:19 +00:00
jmcneill 48ded1a4d9 Preserve ST Lower and Upper fields when clearing Mask bit in the MSI-X
vector control register.
2020-12-11 21:40:50 +00:00
jmcneill 7a2fe7e810 Fix spelling in comment. 2020-12-11 21:22:36 +00:00
ryoon 704d4179fb Describe after example like other examples 2020-12-11 18:49:37 +00:00
christos cf7777a2e0 PR/55851: Martin Husemann: recognize <symbol>.part.<n> names
This is gross; perhaps we should hide them completely (not print them
in stack traces etc.)
2020-12-11 18:25:45 +00:00
christos d8dceee84f fix aarch64 crossgdb 2020-12-11 18:23:25 +00:00
christos 22c0a8465b regen 2020-12-11 18:22:11 +00:00
skrll cde0ef3d27 s:aarch64/cpufunc.h:arm/cpufunc.h:
a baby step in the grand arm header unification challenge
2020-12-11 18:03:33 +00:00
nia d00c08ec75 add some basic tests for libossaudio
since there are already tests for audio this is focused on making
sure the ioctls translate properly and implement the necessary OSS
compat quirks.

right now this only covers the dsp ioctls, it should also cover the
mixer ioctls, although that's significantly harder.
2020-12-11 12:29:27 +00:00
skrll a319d98135 Multiple inclusion protection define consistency 2020-12-11 09:40:28 +00:00
knakahara 2348bef959 Fix build failure when XNEPV is defined. 2020-12-11 09:22:20 +00:00
dholland 0a0324410f arm copyin/out: make copyin not use copyout's epilogue (typo in labels)
The epilogues are the same, so this is harmless, but if they ever
changed (e.g. after rearranging the register usage) it would be broken
in a very confusing way.
2020-12-11 09:14:19 +00:00
dholland 53166c520a arm bswap32: fix fatal typo in thumb code (PR 55854) 2020-12-11 09:02:33 +00:00
skrll 0188024f31 Trailing whitespace 2020-12-11 08:23:46 +00:00
nonaka f9a11fc69d hvn(4): fix unable to ifconfig up/down. 2020-12-11 08:13:08 +00:00
knakahara f38b032d02 Not pic->pic_addroute but pic->pic_hwunmask should enable interrupts for MSI-X.
pic->pic_addroute should not enable interrupt, because callers expect
interrupts have been disabled until they call pic->pic_hwunmask.

By the way, the old implement writes zero to Vector Control for MSI-X Table
Entries, howerver it must be read and updated.  Because, there are not only
Mask Bit but also ST lower and ST upper.
2020-12-11 07:49:39 +00:00
simonb 28c9f023c7 Add ${LIBUTIL} to DPADD. 2020-12-11 07:24:38 +00:00
martin 66e4afe8fc Fix editor mishap in r1.18 2020-12-11 07:01:27 +00:00
msaitoh 79570ba1ba Don't use EIMC_OTHER bit because it's read only other than 82598.
Documents say:

  82598:
     All of bit 31(OTHER bit) of EIxx are reserved. In reality, at least
    EIMS_OTHER and EIMC_OTHER exist and the OTHER interrupt doesn't work
    without EIMS_OTHER.

  Other than 82598:
     EIMS_OTHER is read only and EIMC_OTHER doesn't exist. If one of
    bit 29..16 is set, EIMS_OTHER is set to 1 (Note that bit 30(TCP timer
    isn't included)). Even if write bit 31 of EIMC to 1, it's ignored
    (EIMS_OTHER doesn't set).

 We introduced new spin mutex in ixgbe.c rev. 1.260, so it's OK to remove
EIMC_OTHER stuff. We already set EIMS_OTHER in if_init(), so keep it for
82598. No functional change other than 82598.

 Another solution is to control bit 30..16 directly to mask/unmask interrupt
instead of the mutex.

TODO:
  Some MSI-X interrupt(LSC, module insertion/removal etc.)'s mask/unmask
  code between ixgbe_msix_admin() and ixgbe_handle_admin() may be wrong.
  It'll be fixed later.
2020-12-11 05:01:19 +00:00
thorpej 2ef9bcafb7 Use sel{record,remove}_knote(). 2020-12-11 03:00:09 +00:00
thorpej b56263bd4d Add sel{record,remove}_knote(), so hide some of the details surrounding
knote / kevent registration in the selinfo structure.
2020-12-11 01:25:29 +00:00
rillig 4ea80e710c make(1): document why runIgnImpl is used in jobs mode 2020-12-11 01:08:51 +00:00
rillig 428f1d7ff5 make(1): add tests for comments and non-comments in jobs mode 2020-12-11 01:06:10 +00:00
rillig 7700639ac4 make(1): rename shell flags in struct Shell
The previous name 'echo' was too unspecific, given that the other fields
in the same struct are called echoOff, echoOn, echoTmpl.
2020-12-11 00:29:01 +00:00
rillig c3ac7df32f make(1): clean up comments for struct Shell 2020-12-11 00:22:23 +00:00
rillig 2ef0fcb76c make(1): name Shell fields consistently
They are all templates with a single %s placeholder, so embed this
unambiguously in the variable name.  The previous variable names didn't
provide any clue that echoCmd, execIgnore and errExit had a lot in
common.
2020-12-10 23:54:41 +00:00
rillig 5a661125e0 make(1): clean up JobPrintCommand
The local variable 'cmd' had been used for both the unexpanded and the
expanded command.  This in turn had required the parameter to be
non-const.
2020-12-10 23:36:20 +00:00
rillig b49a832956 make(1): eliminate global variable numCommands
It had only been used in a very small scope.  The elimination of
Lst_ForEach made it easy to turn this global variable into a local
variable.
2020-12-10 23:12:59 +00:00
rillig db56543590 make(1): extract JobOpenTmpFile from JobStart 2020-12-10 23:03:00 +00:00
rillig 59fc03e088 make(1): rename RunFlags to CommandFlags
Flags of similar names are also available in CmdOpts (global command
line options) and Job.  The new name CommandFlags emphasizes that these
flags apply to the smallest scope possible, which is a single command,
as opposed to the whole GNode/Job.
2020-12-10 22:45:30 +00:00
rillig cdd16e62bf make(1): split Job.errOffOrExecIgnore into separate fields
Like errOnOrEcho, these two fields were completely unrelated.  One of
them expected a %s placeholder, the other didn't.
2020-12-10 22:34:39 +00:00
rillig f4364e07ec make(1): split Job.errOnOrEcho into separate fields
They have never been related.  Furthermore, Job.errOn is really tricky
to reach at all.  To do that, one has to define a custom shell and set
hasErrCtl=true.  The manual page has an example for that, but it's
probably not use in practice, just like the possibility to use the C
shell for all commands.
2020-12-10 22:17:37 +00:00
rillig ec213df12c make(1): negate Job.silent to echo
This gets rid of a few explicit negations and an implicit negation in
the variable name.
2020-12-10 21:41:35 +00:00
rillig a6d2ec5914 make(1): unpack struct JobFlags
The job flags are only used individually.
2020-12-10 21:33:25 +00:00
rillig e6318f0347 make(1): rename commandShell to shell
The word 'command' was not necessary for understanding the variable.
2020-12-10 21:09:58 +00:00
skrll ed48051c9f Another leading space 2020-12-10 20:50:24 +00:00
rillig c2147f488d make(1): split JobFlags into separate fields
Having all these flags in a single bitmask makes it harder to see where
exactly they can possibly be used since their state could also be
modified using the unsuspicious job->flags = 0.  Using individual names
just leaves the single memset, and that is only used during
initialization.
2020-12-10 20:49:11 +00:00
skrll 2d27dd3df7 Remove leading space that crept in in the last change 2020-12-10 20:48:33 +00:00
rillig 6d74c4fd10 make(1): in JobStart, negate 'noExec' to 'run' 2020-12-10 20:14:35 +00:00
rillig 8d426fd34d make(1): fix theoretical type mismatch for Job_Touch 2020-12-10 20:10:03 +00:00
rillig 13e47b6b33 make(1): fix test for command flags
The "false" is supposed to be run not only if the command has the '-'
flag, but also if the target is marked as .IGNORE or if the command line
option -i is given.

After the failed command, the remaining commands are skipped, therefore
the final echo for the empty line had to be moved up, at the beginning
of the target.
2020-12-10 17:55:30 +00:00
rillig 57bbdba1d0 make(1): test all combinations of switches for running commands
The code in JobPrintSpecials is rather complicated and contains
surprising interaction between some of the switches.

To see the exact effects of the switches, record the current state and
its output, to prevent accidental breakage during the upcoming
refactorings.
2020-12-10 17:06:13 +00:00
jdc 5b295983c9 Handle failing to acquire the iic bus.
Better handle errors when attaching sysmon sensors.
2020-12-10 17:02:51 +00:00
rillig 2e131e6594 make(1): document limitations of deferred '$' in ':?' modifier 2020-12-10 16:47:42 +00:00
rillig a108871569 make(1): add test demonstrating how to defer evaluation in :? modifier 2020-12-10 16:36:47 +00:00
martin 52d85f7124 Avoid an unused variable (breaking the build) 2020-12-10 16:07:26 +00:00