OpenBSD CVS

CVS log for src/usr.sbin/ldomd/ds.c


[BACK] Up to [local] / src / usr.sbin / ldomd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.12 / (download) - annotate - [select for diffs], Wed Jul 27 19:42:22 2022 UTC (22 months, 2 weeks ago) by kn
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, HEAD
Changes since 1.11: +5 -3 lines
Diff to previous 1.11 (colored)

Print poll(2) errno

Distinguish between return values -1 (errno set) and 0.

OK kettenis

Revision 1.11 / (download) - annotate - [select for diffs], Sun Oct 24 21:24:18 2021 UTC (2 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

For open/openat, if the flags parameter does not contain O_CREAT, the
3rd (variadic) mode_t parameter is irrelevant.  Many developers in the past
have passed mode_t (0, 044, 0644, or such), which might lead future people
to copy this broken idiom, and perhaps even believe this parameter has some
meaning or implication or application. Delete them all.
This comes out of a conversation where tb@ noticed that a strange (but
intentional) pledge behaviour is to always knock-out high-bits from
mode_t on a number of system calls as a safety factor, and his bewilderment
that this appeared to be happening against valid modes (at least visually),
but no sorry, they are all irrelevant junk.  They could all be 0xdeafbeef.
ok millert

Revision 1.10 / (download) - annotate - [select for diffs], Thu Nov 28 18:40:42 2019 UTC (4 years, 6 months ago) by kn
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

Use scan_scaled(3) for memory in ldom.conf

Replace the hand-written routing with a proper library allowing even more
formats.

Since ldomctl's local util.h conflicts with the now used global util.h from
libutil, rename it to ldom_util.h.

Manual wording from amd64's vm.conf(5).

OK kettenis

Revision 1.9 / (download) - annotate - [select for diffs], Sun Oct 20 16:18:36 2019 UTC (4 years, 7 months ago) by kettenis
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

Print LDC protocol version in debug message.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Jul 13 08:46:07 2018 UTC (5 years, 10 months ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.7: +11 -4 lines
Diff to previous 1.7 (colored)

When we nack a domain service because we don't support the requested major
version, provide a major version that we do support.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Jul 13 07:29:08 2018 UTC (5 years, 10 months ago) by kettenis
Branch: MAIN
Changes since 1.6: +7 -5 lines
Diff to previous 1.6 (colored)

Check protocol version number before sending an ack indicating that we
support a domain services protocol.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Jul 9 14:46:08 2018 UTC (5 years, 11 months ago) by kettenis
Branch: MAIN
Changes since 1.5: +23 -3 lines
Diff to previous 1.5 (colored)

Nack LDC protocol versions that we don't support.  Avoids a hang on SPARC T3
systems (and possible newer systems as well).

Revision 1.5 / (download) - annotate - [select for diffs], Wed Oct 15 21:37:27 2014 UTC (9 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

create xreallocarray() and use it

Revision 1.4 / (download) - annotate - [select for diffs], Tue Feb 19 09:26:54 2013 UTC (11 years, 3 months ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

When opening a /dev/ldom-* device node fails, show its path in the error
message. Tweak error message wording while here for consistency.
tweaks and ok kettenis@

Revision 1.3 / (download) - annotate - [select for diffs], Sun Nov 4 23:28:07 2012 UTC (11 years, 7 months ago) by kettenis
Branch: MAIN
Changes since 1.2: +14 -15 lines
Diff to previous 1.2 (colored)

Consume ACKs when doing large sends.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Nov 4 18:57:10 2012 UTC (11 years, 7 months ago) by kettenis
Branch: MAIN
Changes since 1.1: +3 -4 lines
Diff to previous 1.1 (colored)

Call service start function if a particular domain service has been
successfully registered.  Export ds_conn_handle().

Revision 1.1 / (download) - annotate - [select for diffs], Sat Oct 27 18:34:03 2012 UTC (11 years, 7 months ago) by kettenis
Branch: MAIN

Give ldomd(8) its own copy of the domain services support code and modify it
to handle multiple channels.  Use it to provide the var-config domain service
to all the currently configured guest domains.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.