openbsd
8 years agoStyle, and clarify some out of date comments
mlarkin [Wed, 31 Aug 2016 06:55:39 +0000 (06:55 +0000)]
Style, and clarify some out of date comments

8 years agoFix a bogus comment: "factors of" -> "coprime to". Replace the
tb [Wed, 31 Aug 2016 04:48:43 +0000 (04:48 +0000)]
Fix a bogus comment: "factors of" -> "coprime to".  Replace the
nonsensical "if and only iff" with "if and only if" and zap some
trailing whitespace.

8 years agopool_setipl
dlg [Tue, 30 Aug 2016 23:30:37 +0000 (23:30 +0000)]
pool_setipl

ok markus@

8 years agopool_setipl
dlg [Tue, 30 Aug 2016 23:29:39 +0000 (23:29 +0000)]
pool_setipl

ok claudio@ mpi@

8 years agopool_setipl
dlg [Tue, 30 Aug 2016 23:29:04 +0000 (23:29 +0000)]
pool_setipl

ok yasuoka@

8 years agoTest handling of invalid pointers in the pages table.
schwarze [Tue, 30 Aug 2016 22:20:03 +0000 (22:20 +0000)]
Test handling of invalid pointers in the pages table.
In such cases, do not access NULL pointers in dbm_dump.
Make the setup in the run/Makefile a bit more systematic.
Output starts getting too long, so make everything silent;
you can always use "make -dl" to debug specific tests.

8 years agoWhen the database is corrupt in the sense of containing invalid
schwarze [Tue, 30 Aug 2016 21:58:59 +0000 (21:58 +0000)]
When the database is corrupt in the sense of containing invalid
pointers in the pages table, do not access NULL pointers, but
gracefully handle the errors.
Similar patches will be needed for the macro tables, too.
<attila at stalphonsos dot com> audited the code and pointed out to me
that dbm_get() can return NULL for corrupted databases, but that isn't
handled properly at various places.

8 years agoless confusing warning message about negative offsets
schwarze [Tue, 30 Aug 2016 21:36:54 +0000 (21:36 +0000)]
less confusing warning message about negative offsets

8 years agowhen configuring the daemon, assign values to the structure being conf-ed,
gilles [Tue, 30 Aug 2016 21:33:58 +0000 (21:33 +0000)]
when configuring the daemon, assign values to the structure being conf-ed,
not the global structure. this worked by accident.

ok eric@

8 years agoUse MaxMode to terminate the mode iteration. Actually the old way
yasuoka [Tue, 30 Aug 2016 20:31:09 +0000 (20:31 +0000)]
Use MaxMode to terminate the mode iteration.  Actually the old way
couldn't interate the ConsOut modes properly on qemu.

input NONAKA Kimihiro

8 years agoEnable raspos24 for efifb. This makes qemu with UEFI start working.
yasuoka [Tue, 30 Aug 2016 20:18:17 +0000 (20:18 +0000)]
Enable raspos24 for efifb.  This makes qemu with UEFI start working.

ok deraadt

8 years agoRevert "Implement VFS read clustering for MSDOSFS"
sf [Tue, 30 Aug 2016 19:47:23 +0000 (19:47 +0000)]
Revert "Implement VFS read clustering for MSDOSFS"

This caused garbage to be written instead of blocks of 0-bytes if a
file is extended by seeking past the end. This happens for example
when extracting files containing lots of 0-bytes with tar.

ok mpi@

Details of original commit:

  msdosfs_vnops.c revision 1.105
  denode.h revision 1.28
  date: 2016/01/13 10:00:55;  author: mpi;  commitid: ru9jHQwQX09BC5Bw;

  Implement VFS read clustering for MSDOSFS.

  The logic used in msdosfs_bmap() to loop calling pcbmap() comes from
  FreeBSD and is not really efficient but it is good enough since it is
  only called when generating I/O.

  With this diff I get a 100% improvement when reading big files from a
  crappy USB stick.

  With this and bread_cluster(9) modified to not re-fetch B_CACHED buffers,
  reading large contiguous files with chunk sizes of MAXPHYS is almost as
  fast as physio(9) on the same device.

  For a 'real world' example, when copying music files from a USB stick I
  see a speed jump from 15MB/s on -current to 24Mb/s with this diff.

  While here rename some 'lbn' variables into 'cn' to better reflect what
  we're dealing with.

  Tested by Mathieu, with support from deraadt@

8 years agoUse struct stat for storing attributes in fusebufs, because using struct
natano [Tue, 30 Aug 2016 16:45:54 +0000 (16:45 +0000)]
Use struct stat for storing attributes in fusebufs, because using struct
vattr in userspace is suboptimal as some related helpers are not
available, e.g. VATTR_NULL() and IFTOVT(). The conversion is now done in
the kernel where it belongs. As a side effect the <sys/vnode.h> include
can be removed from libfuse.

tweaks and ok guenther

8 years agoremove ifdef for all the features we have.
tedu [Tue, 30 Aug 2016 14:56:39 +0000 (14:56 +0000)]
remove ifdef for all the features we have.
retain disabled ip4in6 code until its future is decided.
ok deraadt jca

8 years agoUse a constant format string and output the variable part with %s
guenther [Tue, 30 Aug 2016 14:52:09 +0000 (14:52 +0000)]
Use a constant format string and output the variable part with %s

ok krw@ millert@

8 years agoUse O_CLOEXEC when opening fds local to a function
guenther [Tue, 30 Aug 2016 14:44:45 +0000 (14:44 +0000)]
Use O_CLOEXEC when opening fds local to a function

ok jca@ krw@

8 years agoAdd OPTION_ARG_TIME for parsing a (64 bit if needed) time_t
deraadt [Tue, 30 Aug 2016 14:34:59 +0000 (14:34 +0000)]
Add OPTION_ARG_TIME for parsing a (64 bit if needed) time_t
prodding & ok jsing

8 years agoKill (remove) the ps_pid from privsep struct since it is not being used
rzalamena [Tue, 30 Aug 2016 14:31:53 +0000 (14:31 +0000)]
Kill (remove) the ps_pid from privsep struct since it is not being used
anymore. Also fix the process initialization prototypes.

ok reyk@

8 years agosummary() is no longer called from a signal handler, so it can use
deraadt [Tue, 30 Aug 2016 14:28:31 +0000 (14:28 +0000)]
summary() is no longer called from a signal handler, so it can use
stdio and does not need the workarounds.
ok florian millert

8 years agoFix fd leak on error. OK jsg@
millert [Tue, 30 Aug 2016 14:08:16 +0000 (14:08 +0000)]
Fix fd leak on error.  OK jsg@

8 years agoAvoid calling summary() from a signal handler. This will allow us
millert [Tue, 30 Aug 2016 13:58:24 +0000 (13:58 +0000)]
Avoid calling summary() from a signal handler.  This will allow us
to go back to using stdio there.  OK florian@ deraadt@

8 years agoAvoid calling summary() from a signal handler. This will allow us
millert [Tue, 30 Aug 2016 13:58:12 +0000 (13:58 +0000)]
Avoid calling summary() from a signal handler.  This will allow us
to go back to using stdio there.  OK florian@ deraadt@

8 years agouse a mixture of .Dl and .Bd -compact to reduce the amount of
jmc [Tue, 30 Aug 2016 13:56:14 +0000 (13:56 +0000)]
use a mixture of .Dl and .Bd -compact to reduce the amount of
vertical whitespace, making it easier to see which hostname.if file
relates to which example;

8 years agoMake sure to not decrease packet size when running with -v.
florian [Tue, 30 Aug 2016 13:50:13 +0000 (13:50 +0000)]
Make sure to not decrease packet size when running with -v.
OK benno

8 years agoTerminate daemon using the socket status instead of watching SIGCHLD or
rzalamena [Tue, 30 Aug 2016 13:46:37 +0000 (13:46 +0000)]
Terminate daemon using the socket status instead of watching SIGCHLD or
kill()ing child process.

"Looks good to me" millert@
ok benno@

8 years agodoes not need sys/param.h
deraadt [Tue, 30 Aug 2016 13:39:53 +0000 (13:39 +0000)]
does not need sys/param.h

8 years agoRemove duplicated prototypes from header.
rzalamena [Tue, 30 Aug 2016 13:37:10 +0000 (13:37 +0000)]
Remove duplicated prototypes from header.

"Looks good to me" natano@

8 years agoMove DT_NUM from <sys/exec_elf.h> to resolv.h in ld.so where it belongs.
kettenis [Tue, 30 Aug 2016 12:47:19 +0000 (12:47 +0000)]
Move DT_NUM from <sys/exec_elf.h> to resolv.h in ld.so where it belongs.

ok guenther@

8 years agoMake the init code match the comment and disable watchdog
jsg [Tue, 30 Aug 2016 12:24:07 +0000 (12:24 +0000)]
Make the init code match the comment and disable watchdog
reset by mouse and keyboard instead of mouse and mouse.

8 years agoMask sb pci irq bits for a,b,c,d instead of a,b,b,d.
jsg [Tue, 30 Aug 2016 12:15:28 +0000 (12:15 +0000)]
Mask sb pci irq bits for a,b,c,d instead of a,b,b,d.
Couldn't find someone with a loongson 2e to test this on hardware.
"looks ok" visa@

8 years agousage() is __dead.
florian [Tue, 30 Aug 2016 12:10:10 +0000 (12:10 +0000)]
usage() is __dead.
While here remove one useless call to usage() that's covered by the
very next line.

8 years agobuf[][] with strange use all over the place is ridiculous, especially
deraadt [Tue, 30 Aug 2016 11:32:28 +0000 (11:32 +0000)]
buf[][] with strange use all over the place is ridiculous, especially
if buf[1] is never used.
ok guenther beck

8 years agoFix 32-bit time handling, using time_t and make it work on systems
deraadt [Tue, 30 Aug 2016 11:30:14 +0000 (11:30 +0000)]
Fix 32-bit time handling, using time_t and make it work on systems
where that is long long.
ok beck guenther

8 years agoProperly set "msb" and "bps" fields for both play and rec directions.
ratchov [Tue, 30 Aug 2016 11:20:09 +0000 (11:20 +0000)]
Properly set "msb" and "bps" fields for both play and rec directions.
Fixes "audio0: different play and record parameters ... " errors, and
probably other unreported errors.

help and ok landry@

8 years agoAdd destination IP to MAC, reduces difference to ping(8).
florian [Tue, 30 Aug 2016 11:15:16 +0000 (11:15 +0000)]
Add destination IP to MAC, reduces difference to ping(8).

8 years agoDo not assume that the full http response header is in the first
florian [Tue, 30 Aug 2016 10:54:42 +0000 (10:54 +0000)]
Do not assume that the full http response header is in the first
fastcgi stdout record. Keep processing stdout records until we found
the header / body separator and only then generate the header
response.
Problem reported by many.

OK jung@

8 years agoshorten rsautl;
jmc [Tue, 30 Aug 2016 07:53:59 +0000 (07:53 +0000)]
shorten rsautl;

8 years agorestrict monitor auth calls to be allowed only when their
djm [Tue, 30 Aug 2016 07:50:21 +0000 (07:50 +0000)]
restrict monitor auth calls to be allowed only when their
respective authentication methods are enabled in the configuration.

prompted by Solar Designer; ok markus dtucker

8 years agouse a per-table rwlock to serialize ART updates and walks, rather than
jmatthew [Tue, 30 Aug 2016 07:42:57 +0000 (07:42 +0000)]
use a per-table rwlock to serialize ART updates and walks, rather than
taking the kernel lock.

ok mpi@ dlg@

8 years agopool_setipl
dlg [Tue, 30 Aug 2016 07:40:35 +0000 (07:40 +0000)]
pool_setipl

ok natano@

8 years agopool_setipl for nfs pools
dlg [Tue, 30 Aug 2016 07:12:49 +0000 (07:12 +0000)]
pool_setipl for nfs pools

ok natano@

8 years agoChange le(4) buffer address to 0x71010000, which is the same address
aoyama [Mon, 29 Aug 2016 23:14:50 +0000 (23:14 +0000)]
Change le(4) buffer address to 0x71010000, which is the same address
with NetBSD/luna68k.

LUNA has 128KB so-called '3 port RAM' starting at 0x71000000.
Originally, first 64KB of this area is designed for I/O processor
HD647180, and next 64KB is designed for LANCE.

This makes possible to support I/O processor in the future:-)

8 years agoSyslogd tls config error messages have changed, adapt tests.
bluhm [Mon, 29 Aug 2016 20:34:59 +0000 (20:34 +0000)]
Syslogd tls config error messages have changed, adapt tests.

8 years agoAdd more information to syslogd tls config error messages.
bluhm [Mon, 29 Aug 2016 20:31:56 +0000 (20:31 +0000)]
Add more information to syslogd tls config error messages.
OK millert@

8 years agoSet MTU size to ~4k until the TX path is ready to deal with larger packets
mikeb [Mon, 29 Aug 2016 17:35:25 +0000 (17:35 +0000)]
Set MTU size to ~4k until the TX path is ready to deal with larger packets

8 years agoDon't count output errors twice
mikeb [Mon, 29 Aug 2016 17:27:04 +0000 (17:27 +0000)]
Don't count output errors twice

8 years agoMake socket splicing performance test pass in multiple environments.
bluhm [Mon, 29 Aug 2016 16:25:14 +0000 (16:25 +0000)]
Make socket splicing performance test pass in multiple environments.
When running the setup over two machines, build required binaries
on remote machine.  Avoid localhost nameserver lookup, just use
127.0.0.1.  Use greater timeout.

8 years agoFixup packet fragment unrolling procedure
mikeb [Mon, 29 Aug 2016 14:12:58 +0000 (14:12 +0000)]
Fixup packet fragment unrolling procedure

When bus_dmamap_load fails to load one of the buffers in the mbuf
chain, we need to revert all changes to transmit descriptors.  The
code to do that was prototyped but not tested.  However due to how
the Tx ring is set up in xnf(4) and generic lack of proper fragment
support in the Netfront design we're always limited to having 256
entries for distinct shared memory pages.  The mbuf chain is
traversed and attempt is made to load every data chunk into a 4k
sized DMA map segment which makes it impossible to reference a
buffer composed of multiple pages.  Current implementation lacks
support for this preventing reliable transmission of frames larger
than 4k.

Bug reported by Kirill Miazine <km at krot ! org>, thanks!

8 years agoStore the return value of mbrtowc() in a size_t, not int.
millert [Mon, 29 Aug 2016 12:20:57 +0000 (12:20 +0000)]
Store the return value of mbrtowc() in a size_t, not int.
OK schwarze@

8 years agoMake examples fit in 80 columns, reminded by jmc@
mpi [Mon, 29 Aug 2016 10:39:59 +0000 (10:39 +0000)]
Make examples fit in 80 columns, reminded by jmc@

8 years agofix uninitialised optlen in getsockopt() call; harmless on Unix/BSD
djm [Sun, 28 Aug 2016 22:28:12 +0000 (22:28 +0000)]
fix uninitialised optlen in getsockopt() call; harmless on Unix/BSD
but potentially crashy on Cygwin. Reported by James Slepicka
ok deraadt@

8 years agoGet rid of sxipio_ioh and sxipio_iot; they're not used (anymore).
kettenis [Sun, 28 Aug 2016 20:20:37 +0000 (20:20 +0000)]
Get rid of sxipio_ioh and sxipio_iot; they're not used (anymore).

8 years agoAdd a few missing sunxi-h3 clocks and resets.
kettenis [Sun, 28 Aug 2016 20:17:10 +0000 (20:17 +0000)]
Add a few missing sunxi-h3 clocks and resets.

8 years agoshorten the rsa text; of note, i've also reduced the description
jmc [Sun, 28 Aug 2016 19:34:15 +0000 (19:34 +0000)]
shorten the rsa text; of note, i've also reduced the description
for -inform/-outform/-text and removed the oft-repeated header/footer
blurb;

8 years agoFix the macros that determine the register offsets based on port and pin.
kettenis [Sun, 28 Aug 2016 17:31:44 +0000 (17:31 +0000)]
Fix the macros that determine the register offsets based on port and pin.
These were didn't work as I expected, and returned the wrong offsets.  As a
result, pinctrl and gpio code was twiddling the wrong bits.

8 years agoIf a line inside .Bl -column starts with a tab character
schwarze [Sun, 28 Aug 2016 16:13:51 +0000 (16:13 +0000)]
If a line inside .Bl -column starts with a tab character
and there was no preceding .It macro, do not read the byte
before the beginning of the line buffer.
Found by tb@ with afl@.

8 years agoReset the host controller after a failed command request to make sure it
mglocker [Sun, 28 Aug 2016 15:26:10 +0000 (15:26 +0000)]
Reset the host controller after a failed command request to make sure it
operates again.

ok kettenis

8 years agotypo
schwarze [Sun, 28 Aug 2016 12:57:02 +0000 (12:57 +0000)]
typo

8 years agoI don't dare to provide an OK for a rewrite of this program
schwarze [Sun, 28 Aug 2016 12:39:07 +0000 (12:39 +0000)]
I don't dare to provide an OK for a rewrite of this program
without having at least some systematic testing in place.

8 years agoCheck the MORE (or LESS) environment variables after forcing the various
nicm [Sun, 28 Aug 2016 07:25:47 +0000 (07:25 +0000)]
Check the MORE (or LESS) environment variables after forcing the various
more(1) options, so it is possible to change them using MORE. From Ross
L Richardson. ok deraadt millert

8 years agoRemove obsolete gre(4) ioctls GRESADDRS, GRESADDRD, GREGADDRS,
reyk [Sun, 28 Aug 2016 07:22:11 +0000 (07:22 +0000)]
Remove obsolete gre(4) ioctls GRESADDRS, GRESADDRD, GREGADDRS,
GREGADDRD, GRESPROTO, and GREGPROTO.  They have been replaced by
generic ioctls some time ago (eg. the "ifconfig gre0 tunnel") and
there is no need to keep the old ones around.  They are neither used
in base nor in ports.

OK sthen@

8 years agold.so doesn't need gettimeofday or lstat stubs any more
guenther [Sun, 28 Aug 2016 06:15:32 +0000 (06:15 +0000)]
ld.so doesn't need gettimeofday or lstat stubs any more

ok deraadt@

8 years agofix a comment
guenther [Sun, 28 Aug 2016 04:33:17 +0000 (04:33 +0000)]
fix a comment

8 years agoDon't call lstat() before readlink() just to see if it's a symlink,
guenther [Sun, 28 Aug 2016 04:08:59 +0000 (04:08 +0000)]
Don't call lstat() before readlink() just to see if it's a symlink,
as readlink() will tell you that more cheaply.

ok millert@

8 years agoPull in <time.h> for tzset()
guenther [Sun, 28 Aug 2016 00:51:48 +0000 (00:51 +0000)]
Pull in <time.h> for tzset()

8 years agoKill empty window after moving pane and updating current window, so that
nicm [Sat, 27 Aug 2016 23:35:00 +0000 (23:35 +0000)]
Kill empty window after moving pane and updating current window, so that
index is still valid before renumber-windows happens. Fixes issue
reported by Eric Pruitt.

8 years agoDelete debugging from when lazy binding was being implemented
guenther [Sat, 27 Aug 2016 22:52:21 +0000 (22:52 +0000)]
Delete debugging from when lazy binding was being implemented

ok deraadt@

8 years agofurther tweak previous: use the same text for norw as ro; ok tedu
jmc [Sat, 27 Aug 2016 22:30:23 +0000 (22:30 +0000)]
further tweak previous: use the same text for norw as ro; ok tedu

8 years agoshorten the req text;
jmc [Sat, 27 Aug 2016 20:43:05 +0000 (20:43 +0000)]
shorten the req text;

8 years agofor completeness, document (no)rw and ro options.
tedu [Sat, 27 Aug 2016 19:50:36 +0000 (19:50 +0000)]
for completeness, document (no)rw and ro options.

8 years agoin case we run delete_first (not enough room), delay the unlink of
espie [Sat, 27 Aug 2016 18:17:46 +0000 (18:17 +0000)]
in case we run delete_first (not enough room), delay the unlink of
tied items so we can still skip extracting them.

better than the stopgap measure I committed a few weeks ago.

8 years agoDeassert reset signals if there is a "resets" property. Implement mmc power
kettenis [Sat, 27 Aug 2016 18:12:16 +0000 (18:12 +0000)]
Deassert reset signals if there is a "resets" property.  Implement mmc power
sequencing like we have for imxesdhc(4).  Unfortunately that doesn't seem to
be enough to be able to see the onboard sdio wireless on my Banana Pi 2+.

8 years agoInitialize vdd to 0 in imxesdhc_bus_power() to avoiud using it uninitialized.
kettenis [Sat, 27 Aug 2016 17:32:35 +0000 (17:32 +0000)]
Initialize vdd to 0 in imxesdhc_bus_power() to avoiud using it uninitialized.

8 years agoReturn -1 if we try to set the frequency of a clock but couldn't find it.
kettenis [Sat, 27 Aug 2016 16:50:40 +0000 (16:50 +0000)]
Return -1 if we try to set the frequency of a clock but couldn't find it.

8 years agoAdd support for the SD/MMC clock to the geberic clock code and use it in
kettenis [Sat, 27 Aug 2016 16:41:52 +0000 (16:41 +0000)]
Add support for the SD/MMC clock to the geberic clock code and use it in
sximmc(4).

8 years agoMatch on "allwinner,sun8i-h3-ehci".
kettenis [Sat, 27 Aug 2016 16:40:31 +0000 (16:40 +0000)]
Match on "allwinner,sun8i-h3-ehci".

8 years agoStop recommending the non-standard and slightly dangerous fgetln(3).
schwarze [Sat, 27 Aug 2016 16:39:42 +0000 (16:39 +0000)]
Stop recommending the non-standard and slightly dangerous fgetln(3).
Recommend POSIX getline(3) instead.

8 years agoWhen a precision is specified for a string format use strnlen()
millert [Sat, 27 Aug 2016 16:10:40 +0000 (16:10 +0000)]
When a precision is specified for a string format use strnlen()
to determine the length instead of doing it manually.  OK schwarze@

8 years agoEnable ALPN regress now that it passes.
jsing [Sat, 27 Aug 2016 16:00:27 +0000 (16:00 +0000)]
Enable ALPN regress now that it passes.

8 years agoBe more strict when parsing TLS extensions.
jsing [Sat, 27 Aug 2016 15:58:06 +0000 (15:58 +0000)]
Be more strict when parsing TLS extensions.

Based on a diff from Kinichiro Inoguchi.

ok beck@

8 years agothe quotes in "unkempt thoughts" were authored by stanislaw lec,
jmc [Sat, 27 Aug 2016 14:29:22 +0000 (14:29 +0000)]
the quotes in "unkempt thoughts" were authored by stanislaw lec,
not stanislaw lem (an easy blunder, i'd say); i've also inserted the "J."
into one of these credits (Stanislaw J. Lec) since all the others have them;

credit to antoni grzymala; diff pockled from netbsd

8 years agoAdd support for the PXN bit in level 1 translation table descriptors and
kettenis [Sat, 27 Aug 2016 14:22:35 +0000 (14:22 +0000)]
Add support for the PXN bit in level 1 translation table descriptors and
enable it on CPUs that support it.  When enabled, this prevents the kernel
from executing userland code.

ok jsg@, tom@

8 years agoAdd support for the watchdog timer found on A31 and later SoCs, which has a
kettenis [Sat, 27 Aug 2016 14:13:14 +0000 (14:13 +0000)]
Add support for the watchdog timer found on A31 and later SoCs, which has a
slightly different register layout.  Also fix the watchdog such that it
actually disables itself when you set the period to 0 and actually gives you
a period that is close to what you asked for.

8 years agoHandle the quirky that the FIFO register sits at a different location on
kettenis [Sat, 27 Aug 2016 12:41:47 +0000 (12:41 +0000)]
Handle the quirky that the FIFO register sits at a different location on
the A31 and later SoCs.

8 years agoimprove revision 1.2: in unusual cases, fgetwc(3) can succeed
schwarze [Sat, 27 Aug 2016 12:08:38 +0000 (12:08 +0000)]
improve revision 1.2: in unusual cases, fgetwc(3) can succeed
even though ferror(3) is already set;
also from Andrey Chernov <ache at freebsd dot org>;
OK millert@

8 years agoAdd support for sun8i-h3, the Allwinner H3. For this SoC, the device tree
kettenis [Sat, 27 Aug 2016 11:39:59 +0000 (11:39 +0000)]
Add support for sun8i-h3, the Allwinner H3.  For this SoC, the device tree
contains a single clock control unit node that handles most clocks.  The
driver handles this through tables that describe the gating, reset signals
and the clock hierarchy.  This description is (deliberately) incomplete.  We
will add clocks on an as-needed basis.  You will need a recent device tree,
that includes a "allwinner,sun8i-h3-ccu" compatible node for things to work.

ok patrick@

8 years agoKill p_instance from proc.c and remove static proc_id unused variables.
rzalamena [Sat, 27 Aug 2016 11:13:16 +0000 (11:13 +0000)]
Kill p_instance from proc.c and remove static proc_id unused variables.

To keep the debug functionality intact and correct we'll use the pid
field in the imsg header to pass the instance number. Remember to always
pass 'ps_instance + 1' otherwise libutil will fill imsg header pid field
with the imsgbuf pid (which is the current process pid).

ok reyk@

8 years agoAdd missing $OpenBSD$ line and remove an unnecessary comment line.
yasuoka [Sat, 27 Aug 2016 09:04:20 +0000 (09:04 +0000)]
Add missing $OpenBSD$ line and remove an unnecessary comment line.

8 years agoPull in <stdio.h> for NULL
guenther [Sat, 27 Aug 2016 07:35:19 +0000 (07:35 +0000)]
Pull in <stdio.h> for NULL

ok deraadt@

8 years agoqaddr_t is (now) dead
guenther [Sat, 27 Aug 2016 05:14:42 +0000 (05:14 +0000)]
qaddr_t is (now) dead

ok deraadt@

8 years agoDeclare lseek() instead of assuming it'll be provided elsewhere
guenther [Sat, 27 Aug 2016 04:57:30 +0000 (04:57 +0000)]
Declare lseek() instead of assuming it'll be provided elsewhere

ok deraadt@

8 years agoMove up the <stdio.h> include so <dev/pci/*.h> have NULL
guenther [Sat, 27 Aug 2016 04:38:48 +0000 (04:38 +0000)]
Move up the <stdio.h> include so <dev/pci/*.h> have NULL

ok deraadt@

8 years agoPull in <stdio.h> for NULL
guenther [Sat, 27 Aug 2016 04:35:18 +0000 (04:35 +0000)]
Pull in <stdio.h> for NULL

ok deraadt@

8 years agoPull in <sys/time.h> for struct timeval
guenther [Sat, 27 Aug 2016 04:34:28 +0000 (04:34 +0000)]
Pull in <sys/time.h> for struct timeval
<sys/*.h> includes go before <*.h> includes

ok deraadt@

8 years agoPull in <sys/time.h> for gettimeofday()
guenther [Sat, 27 Aug 2016 04:32:44 +0000 (04:32 +0000)]
Pull in <sys/time.h> for gettimeofday()
Sort #includes

ok deraadt@

8 years agoALL HAIL ELF!
guenther [Sat, 27 Aug 2016 04:31:22 +0000 (04:31 +0000)]
ALL HAIL ELF!
Since <sys/param.h> isn't needed for __ELF__, pull in <stdio.h> for NULL

ok deraadt@

8 years agoPull in <stdio.h> for NULL
guenther [Sat, 27 Aug 2016 04:29:25 +0000 (04:29 +0000)]
Pull in <stdio.h> for NULL

ok deraadt@

8 years agoPull in <sys/select.h> for fd_set
guenther [Sat, 27 Aug 2016 04:28:28 +0000 (04:28 +0000)]
Pull in <sys/select.h> for fd_set

ok deraadt@

8 years agoPull in <sys/select.h> for fd_set
guenther [Sat, 27 Aug 2016 04:21:08 +0000 (04:21 +0000)]
Pull in <sys/select.h> for fd_set

ok deraadt@

8 years agoPull in <sys/time.h> for gettimeofday()
guenther [Sat, 27 Aug 2016 04:15:52 +0000 (04:15 +0000)]
Pull in <sys/time.h> for gettimeofday()

ok deraadt@