Debian Codegraph @

ChangeLog

raw
1 2023-12-17 Flavio Cruz <[email protected]>
2
3 x86_64: adapt MiG generated stubs to use mach_port_name_inlined_t for inlined port rights.
4 For i686, we just change the code to use mach_port_name_inlined_t when
5 defining the types. This is a no-op.
6
7 For x86_64, there's a few things that are different:
8 - In the server code, the server handler can get inlined ports and the
9 array will be resized and cast as an array of mach_port_name_t. Output
10 parameters have a similar treatment where the inlined array in the
11 output is used as an array of mach_port_name_t but resized to look like
12 a mach_port_name_inlined_t.
13 - In the user side, we follow the same approach. Input ports as arrays
14 of mach_port_name_t are expanded into an array of mach_port_name_inlined_t.
15 Output ports are then converted back into an array of
16 mach_port_name_inlined_t so that they fit into the expected message
17 format.
18
19 Essentially, regardless of whether port rights are inline or out of
20 line, user interfaces and server stubs always receive an array of port
21 rights, not mach_port_name_inlined_t. However, inlined port rights will
22 be exchanged using mach_port_name_inlined_t.
23
24 2023-12-03 Samuel Thibault <[email protected]>
25
26 Revert "x86_64: adapt MiG generated stubs to use mach_port_name_inlined_t for inlined port rights."
27 This reverts commit c40604042bd6e9f80e4f5fe6bc9deefb29c4b94a.
28
29 2023-12-03 Flavio Cruz <[email protected]>
30
31 x86_64: adapt MiG generated stubs to use mach_port_name_inlined_t for inlined port rights.
32 For i686, we just change the code to use mach_port_name_inlined_t when
33 defining the types. This is a no-op.
34
35 For x86_64, there's a few things that are different:
36 - In the server code, the server handler can get inlined ports and the
37 array will be resized and cast as an array of mach_port_name_t. Output
38 parameters have a similar treatment where the inlined array in the
39 output is used as an array of mach_port_name_t but resized to look like
40 a mach_port_name_inlined_t.
41 - In the user side, we follow the same approach. Input ports as arrays
42 of mach_port_name_t are expanded into an array of mach_port_name_inlined_t.
43 Output ports are then converted back into an array of
44 mach_port_name_inlined_t so that they fit into the expected message
45 format.
46
47 Essentially, regardless of whether port rights are inline or out of
48 line, user interfaces and server stubs always receive an array of port
49 rights, not mach_port_name_inlined_t. However, inlined port rights will
50 be exchanged using mach_port_name_inlined_t.
51 Message-ID: <[email protected]>
52
53 2023-09-24 Flavio Cruz <[email protected]>
54
55 Update code generation to handle the new 64 bit ABI
56 Mostly, we don't set the fields that do not exist and avoid type
57 mismatching (like casting unsigned short to unsigned char for
58 msgt_name).
59
60 We also revamp type checking to compare mach_msg_type_t to uint64_t
61 instead of just uint32_t as we now use the whole structure.
62 Message-Id: <ZGREMgn19Zptc/[email protected]>
63
64 2023-06-17 Sergey Bugaev <[email protected]>
65
66 Remove error procedure directives
67 Back in the wonderful old days of Mach 2, when there were no send-once
68 rights, dead names, or port reference counts, MIG used to have more
69 kinds of operations: there were functions, procedures, simpleprocedures,
70 routines, and simpleroutines. Routines returned an error code as their C
71 function return value, functions had real return values, procedures and
72 simpleprocedures returned void.
73
74 Functions, procedures, and simpleprocedures signalled errors by invoking
75 a global function. By default, a function named MsgError was invoked,
76 but a subsystem could specify a different function using the 'error'
77 directive:
78
79 error CustomErrorHandler;
80
81 In Mach 3, functions, procedures, and simpleprocedures are gone.
82 Routines and simpleroutines are the only remaining kinds of operations.
83 Some 26 years later, most of the code for generating functions,
84 procedures, and simpleprocedures was removed from GNU MIG in commit
85 7f10b4ed6a557b7a1fd1083939156a3dcf8b377e. Error directives remained,
86 seemingly due to an oversight. So remove them too.
87
88 Found while trying to use the word 'error' as an identifier and
89 receiving a cryptic syntax error from MIG.
90 Message-Id: <[email protected]>
91
92 2023-05-20 Samuel Thibault <[email protected]>
93
94 Fix printing size_t
95
96 2023-05-11 Flavio Cruz <[email protected]>
97
98 Check that msgt_name is always smaller than 255.
99 For the x86_64 ABI we want this to always fit into 1 byte. Even for
100 regular i686, msgt_name is always smaller than 25 (MACH_MSG_TYPE_LAST)
101 and we don't have plans to have more names.
102
103 Also throw an error if we deemed an RPC to be "TooLong" as that won't
104 work or work badly.
105
106 Tested by cross-compiling a basic Hurd system.
107 Message-Id: <[email protected]>
108
109 2023-03-08 Flavio Cruz <[email protected]>
110
111 Use designated initializers for mach_msg_type_t and mach_msg_type_long_t.
112 Message-Id: <[email protected]>
113
114 2023-02-27 Flavio Cruz <[email protected]>
115
116 Change complex_align_of to be sizeof(uintptr_t)
117 By using uintptr_t, we ensure that all 64 bit stubs are free of
118 undefined behavior since we support up to 8-byte alignment. This works
119 fine given that Mig will type check types that have higher alignment
120 requirements through the use of _Static_assert.
121
122 This even works for a 64 bit kernel / 32 bit user land since we can use
123 mig64 to build stubs for the 8-byte aligned kernel stubs and existing 32
124 bit mig to build the old user side stubs. Pragma is no longer required as we take
125 advantage of the compiler to drive the alignment and avoid undefined
126 behavior.
127 Message-Id: <Y/KsiXZKkq1q/[email protected]>
128
129 2023-02-27 Flavio Cruz <[email protected]>
130
131 Also align mach_msg_type_long_t to complex_alignof
132 This was a miss in the previous patch given that mach_msg_type_long_t is
133 12 bytes long so won't neatly align to 8 bytes.
134 Message-Id: <[email protected]>
135
136 2023-02-20 Flavio Cruz <[email protected]>
137
138 Stop including mach/msg_type.h in generated code.
139 File is not needed.
140 Message-Id: <Y/[email protected]>
141
142 2023-02-13 Flavio Cruz <[email protected]>
143
144 Introduce complex_alignof to replace word_size
145 Remove the concept of word_size since it is meaningless in some
146 architectures. This is also done in preparation to possibly introduce
147 8-byte aligned messages.
148 Message-Id: <Y+lkv0uMo/[email protected]>
149
150 2023-02-12 Sergey Bugaev <[email protected]>
151
152 Drop -undef -ansi from cpp flags
153 Since GNU Mach commit d30481122a5d24ad6b921062f93b9172ef922fc3,
154 i386/machine_types.defs defines types based on defined(__x86_64__).
155 Supressing the built-in macro definitions will now result in the wrong
156 type being silently selected.
157
158 -undef was initially introduced in commit
159 78b6a7665db7b2eae367e17102821cbdca231d19 without much of an explanation.
160 -ansi was introduced in commit 6940fb91859e46b2e96a331a029f2dc2a0ee51c9
161 "to avoid -Di386=1 and the like".
162
163 Since glibc has been using MIG with CPP set to a custom GCC invocation
164 which did *not* use either flag, it appears that everything works well
165 enough even without them. On the other hand, not having __x86_64__
166 defined most definetely causes issues for anything that does not set a
167 custom CPP when invoking MIG (i.e., most users). Other built-in
168 definitions could be used in the future in a similar way (e.g. on other
169 architectures); it's really more of a coincidence that they have not
170 been used until now, and things kept working with -undef.
171 Message-Id: <[email protected]>
172
173 2023-02-02 Flavio Cruz <[email protected]>
174
175 Do not generate the server routine for kernel servers.
176 The kernel does not use these functions so we can avoid a few compiler
177 warnings. I think we could make the hurd servers not use these also but
178 currently these are still needed.
179 Message-Id: <Y9tpQNDG/[email protected]>
180
181 2023-02-02 Samuel Thibault <[email protected]>
182
183 Avoid passing NULL to memcpy
184
185 2022-12-21 Samuel Thibault <[email protected]>
186
187 Fix make check
188 c7654756ee19 ("Provide intptr_t and uintptr_t as default types") added
189 intptr_t and uintptr_t, but missed updating the testsuite.
190
191 Fix make dist
192 7063f0aefd8a ("mig: replace boolean.h with stdbool.h") dropped
193 boolean.h, but missed dropping its installation.
194
195 2022-12-21 Flavio Cruz <[email protected]>
196
197 Provide intptr_t and uintptr_t as default types
198 Message-Id: <Y6CAwaY0IRqihOjU@mars>
199
200 2022-12-18 Flavio Cruz <[email protected]>
201
202 Generate cpu.h with -ffreestanding
203 During a system bootstrap, it is preferable that we don't require a full
204 hosted environment. For all other cases, we also do not need libc since
205 mach headers are self contained.
206 Message-Id: <Y5+WXzOwGkyvcDI0@mars>
207
208 2022-11-25 Flavio Cruz <[email protected]>
209
210 mig: replace boolean.h with stdbool.h
211 Message-Id: <Y3/Z1CGL8D4OwT66@viriathus>
212
213 2022-11-15 Flavio Cruz <[email protected]>
214
215 Initialize basic types once and print errors for duplicate definitions
216 For kernel server or user subsystems we would initialize basic types
217 twice, once in main() and again for the subsystem declaration. Instead,
218 initialize basic types when the subsystem is declared and then throw
219 errors when types are defined multiple times.
220 Message-Id: <Y3HUt/YAKaqMMTi3@viriathus>
221
222 2022-11-05 Flavio Cruz <[email protected]>
223
224 Add support to define structures in mig.
225 Basic syntax is presented below and allows users to define
226 nested structured types by using simpler or structure types as
227 members. Mig will use the C padding and alignment rules to produce
228 the same size as the corresponding C structures.
229
230 type timespec_t = struct {
231 uint32_t tv_sec;
232 uint32_t tv_nsec;
233 };
234
235 This allows us to build stubs that are more easily adaptable to other
236 architectures.
237 Message-Id: <Y2SjQSMOINY8I5Dy@viriathus>
238
239 2022-08-27 Luca Dariz <[email protected]>
240
241 fill msg size in the header for user stubs
242 * user.c:
243 - adjust comment in generated file
244 - set msgh_size with the same value passed to mach_msg()
245
246 Message-Id: <[email protected]>
247
248 2022-08-27 Luca Dariz <[email protected]>
249
250 add check for whole message size
251 * user.c: ensure fixed-length messages have the correct size. In
252 addition to the single-fields check, this also include padding.
253
254 Message-Id: <[email protected]>
255
256 2022-08-27 Luca Dariz <[email protected]>
257
258 fix message fields alignment for 64 bit
259 On x86_64 alignment of structures is different, as the pointer size is different.
260 For simplicity we keep the same 4-byte alignment as used on
261 32-bit. This simplifies the support for 32-bit rpc on 64-bit kernels,
262 and also it seems not worth as an optimization, as we would need to
263 add more code in the ipc_kmsg* routines.
264
265 * routine.c: align both short and long descriptors
266 * utils.c: use a fixed alignment for data fields in structures
267 representing messages.
268
269 Message-Id: <[email protected]>
270
271 2022-08-27 Luca Dariz <[email protected]>
272
273 improve error message
274 * parser.y: add information about type names
275
276 Message-Id: <[email protected]>
277
278 2022-08-27 Luca Dariz <[email protected]>
279
280 add separate port_size and mach_port_name_size definitions
281 * cpu.sym: retrieve size of vm_offset_t and mach_port_name_t from
282 gnumach headers at compile type.
283 * global.{c,h}: add port size as a variable and initialize it to the
284 port name size.
285 * lexxer.l: apply port or port name size to the corresponding types,
286 instead of using the word size.
287 * parser.y: update port size if we're generating for kernel-space
288 (server or client). Also re-initialize default port types to account
289 for this change.
290 * type.c: use port size instead of word size in default port types and
291 runtime checks.
292
293 There are many assumptions about mach_port_t:
294 - on kernel side, its size is the same as a pointer. This allows to
295 replace the port name with the address of the corresponding data
296 structure during copyin in mach_msg()
297 - in mig, this is also the "word size", which is derived from gnumach
298 headers as the size of integer_t
299 - its size is also the same as natural_t, so it's possible to model
300 structures like mach_port_status_t as an array of integer_t in
301 mig. This is convenient since arrays and structures can't have
302 mixed types.
303 - its size is always the same as the port name size
304
305 This patch does not change the current behaviour on 32-bit kernels,
306 but allows for some of these assumptions to be broken on 64-bit
307 kernels. This is needed to have 32-bit port names on 64-bit kernels
308 and be able to support a 32-bit userspace. It still leaves the choice
309 for a 64-bit userspace, if all integer_t and natural_t are to be
310 extended to 64 bit.
311
312 However keeping 32-bit port names seems to be the right thing, based on
313 previous discussions [1], even for a 64-bit kernel.
314
315 The only assumption kept is that in kernel-space ports are always the
316 size of a pointer, as they refer to a data structure and not to a
317 specific port name. To ensure this is true for various user/kernel
318 combinations, we dynamically change the port size if we're generating
319 code for kernel-space server or clients, and keep the size of a port the
320 same of a port name for user-space servers and clients.
321
322 [1] https://lists.gnu.org/archive/html/bug-hurd/2012-04/msg00000.html
323
324 Message-Id: <[email protected]>
325
326 2022-05-02 Guy-Fleury Iteriteka <[email protected]>
327
328 mig: remove local definition of 'vprintf'
329 autoconf consider that 'AC_FUNC_VPRINTF' is obsolescent.
330 see 'info autoconf AC_FUNC_VPRINTF'
331
332 * Makefile.am: remove 'vprint.c' on src files.
333 configure.ac: remove 'AC_FUNC_VPRINTF' macro.
334 vprint.c: delete file.
335 Message-Id: <Ym+H/OM0PnucKO4w@debian>
336
337 2022-01-21 Flavio Cruz <[email protected]>
338
339 Add _Static_assert when compiling server and user stubs.
340 This is only done when data is inlined with a concrete size. It
341 ensures the C and Mig types have the same size in the target arch.
342
343 Tested by building the hurd package. No assertions were triggered.
344
345 Message-Id: <YekIQaxvs+4FrHyw@viriathus>
346
347 2022-01-16 Samuel Thibault <[email protected]>
348
349 Also add const qualifiers on server side
350 Although in practice the buffers can be modified since they are from the
351 message, it leads to missing const where it would otherwise make sense.
352
353 Make dev_name_t also use const_dev_name_t
354 to avoid forcing the caller to respect the definite string size.
355
356 2021-02-11 Paul Dufresne <[email protected]>
357
358 Add noyywrap option
359 We do not actually use yywrap, and this allows to avoid requiring libflex,
360 making cross-compilations simpler.
361
362 * lexxer.l: Add noyywrap option.
363
364 2020-11-30 Samuel Thibault <[email protected]>
365
366 Make string_t always use const_string_t
367 This will allow to relieve constraints in callers, e.g. dir_lookup("") would
368 otherwise produce a warning with gcc-11 since char[1024] would mean that
369 dir_lookup would read all 1024 characters while it is not.
370
371 * utils.c (UserVarQualifier): Also use const_ qualifier when type is
372 string_t.
373 * tests/includes/types.h (const_string_t): New type.
374
375 2020-06-18 Samuel Thibault <[email protected]>
376
377 cpu.sym: Add more C types
378 * cpu.sym: Add sizeof_long, sizeof_float, sizeof_double.
379
380 2020-06-18 Samuel Thibault <[email protected]>
381
382 cpu.sym: Replace implementation from Utah with implementation from CMU
383 This replaces the implementation from the University of Utah, covered by the
384 advertising clause, with the implementation from CMU, picked up from the GNU
385 Mach source, which is free from the advertising clause.
386
387 This includes the addition of the sizeof as seen used by mig with
388 git grep word_size
389 git grep sizeof_
390
391 2020-06-18 Samuel Thibault <[email protected]>
392
393 message.h: Replace implementation from Utah with implementation from CMU
394 This replaces the implementation from the University of Utah, covered by the
395 advertising clause, with the implementation from CMU, picked up from the GNU
396 Mach source, which is free from the advertising clause.
397
398 boolean.h: Replace implementation from Utah with implementation from CMU
399 This replaces the implementation from the University of Utah, covered by the
400 advertising clause, with the implementation from CMU, picked up from the GNU
401 Mach source, which is free from the advertising clause.
402
403 2020-01-28 Flavio Cruz <[email protected]>
404
405 Make MIG recognize the basic C integral types.
406 Also removed itMakeIntType which was not used anymore.
407
408 Users can use char, int, and short types without having to define them.
409 These types are defined using the builtin MACH_MSG_TYPE_* types and are
410 architecture independent since they have the same size as the C char,
411 short and int.
412
413 If these basic types are redefined, MIG will still produce stub code but
414 will produce a warning.
415
416 * cpu.sym: Define sizeof_int, char, short.
417 * tests/base_types.defs: Remove int.
418 * tests/good/complex-types.defs: Use byte instead of char.
419 * tests/good/directions: Remove char and int.
420 * tests/good/types.defs: Remove char and also use short as a parameter
421 in 'alltypes'.
422 * type.c: Define itCIntTypeDecl. Remove itMakeIntType. Call itInsert for
423 char, short and int.
424 Message-Id: <20160419070513.GA12642@debian>
425
426 2018-11-06 Guillem Jover <[email protected]>
427
428 build: Distribute tarball compressed with xz instead of bzip2
429 * configure.ac (AM_INIT_AUTOMAKE): Change dist-bzip2 to dist-xz.
430
431 2018-03-04 Samuel Thibault <[email protected]>
432
433 Fix c89 compilation of mig headers
434 * header.c (WriteServerHeader): Print __inline instead of inline.
435
436 2018-01-28 Samuel Thibault <[email protected]>
437
438 Fix RPC build warnings
439 Users of RPCs want to be able to pass pointers to const data, so add
440 const qualifiers to RPCs as appropriate.
441
442 * utils.c (UserVarConst, UserVarQualifier): New functions.
443 (WriteUserVarDecl): Use UserVarQualifier to qualify function parameter.
444 (WriteFieldDeclPrim): Use UserVarConst to qualify pointer to user
445 variable.
446
447 2018-01-28 Samuel Thibault <[email protected]>
448
449 Fix compilation warnings
450 Nowadays' compilers are able to recognize memcpy and replace it
451 appropriately without having to tell them so through a structure
452 assignment. That also avoids warnings about type puning.
453
454 * utils.c (WriteCopyType): Emit memcpy call instead of type-puned
455 assignement.
456
457 2017-01-02 Samuel Thibault <[email protected]>
458
459 Fix spurious warning on MACH_MSG_TYPE_POLYMORPHIC value
460 * utils.c (WriteStaticLongDecl): Explicitly cast name to unsigned short to
461 ignore truncation of MACH_MSG_TYPE_POLYMORPHIC i.e. -1.
462
463 2016-12-19 Samuel Thibault <[email protected]>
464
465 Fix compiler warning
466
467 2016-12-18 Thomas Schwinge <[email protected]>
468
469 GNU MIG 1.8
470 * configure.ac (AC_INIT): Set version to 1.8.
471 * NEWS: Finalize for 1.8.
472
473 2016-12-13 Thomas Schwinge <[email protected]>
474
475 Remove bullet points from NEWS file
476 ... to match the GNU Mach and Hurd NEWS files.
477
478 * NEWS: Remove bullet points.
479
480 2016-12-09 Justus Winter <[email protected]>
481
482 Update the NEWS file
483
484 2016-10-10 Samuel Thibault <[email protected]>
485
486 Fix spurious warning on MACH_MSG_TYPE_POLYMORPHIC value
487 * utils.c (WriteCheckDecl, WriteStaticShortDecl): Explicitly cast name to
488 unsigned char to ignore truncation of MACH_MSG_TYPE_POLYMORPHIC i.e. -1.
489
490 2016-09-20 Samuel Thibault <[email protected]>
491
492 fix typo
493
494 2016-05-18 Thomas Schwinge <[email protected]>
495
496 GNU MIG 1.7
497 * configure.ac (AC_INIT): Set version to 1.7.
498 * NEWS: Finalize for 1.7.
499
500 2016-05-03 Samuel Thibault <[email protected]>
501
502 Add missing EXTRA_DIST
503 * tests/Makefile.am (EXTRA_DIST): Add base_types.defs test_lib.sh
504 includes/all.h includes/mach/mig_support.h includes/server.h
505 includes/types.h includes/user.h.
506 * tests/bad/Makefile.am (EXTRA_DIST): Add $(TESTS) run_bad_test.sh.
507 * tests/generate-only/Makefile.am (EXTRA_DIST): Add $(TESTS)
508 run_generate_only_test.sh.
509 * tests/good/Makefile.am (EXTRA_DIST): Add $(TESTS) run_good_test.sh.
510
511 2016-04-26 Flavio Cruz <[email protected]>
512
513 Simplify ArgumentType production rule.
514 * parser.y: Move syColon from ArgumentType into Argument.
515
516 2016-04-20 David Michael <[email protected]>
517
518 Make Git ignore some more automatically generated files
519 * .gitignore: Ignore parser.h and all Makefile/Makefile.in files.
520
521 Use the target platform compiler in the test scripts
522 * tests/Makeconf.am (AM_TESTS_ENVIRONMENT): Set CC to $(TARGET_CC).
523
524 2016-04-20 Justus Winter <[email protected]>
525
526 Update NEWS
527
528 2016-04-19 Flavio Cruz <[email protected]>
529
530 Simple testsuite for MIG.
531 This includes a set of valid and invalid definition files that MIG will
532 try to process. For valid definitions, GCC will compile the stubs to
533 check if valid C code was generated.
534
535 * configure.ac: Add new test Makefiles.
536 * Makefile.am: Add SUBDIRS.
537 * tests/Makeconf.am: Automake definitions shared by all test
538 subdirectories.
539 * tests/test_lib.sh: Library of functions shared by all test drivers.
540 * tests/good/run_good_test.sh: Script to run valid definition files.
541 * tests/good/Makefile.am: New file.
542 * tests/bad/Makefile.am: New file.
543 * tests/generate-only/Makefile.am: New file.
544 * tests/bad/run_bad_test.sh: Script to run invalid definition files.
545 * tests/generate-only/run_generate_only.sh: Script to run valid
546 definition files that should be generated only.
547 * tests/includes/*.h: Test header files that are included by test stubs.
548 * tests/good/*.defs: Valid definition files where
549 generated stubs can be compiled.
550 * tests/generate_only/*.defs: Valid definition files that can be
551 generated but no compilation should be attempted.
552 * tests/bad/*.defs: Definition files with problems that should be
553 detected by MIG.
554
555 2016-04-15 Justus Winter <[email protected]>
556
557 Update NEWS file
558
559 2016-04-05 Flavio Cruz <[email protected]>
560
561 Include stdint.h in stub code by default.
562 * server.c: Include stdint.h in the header code.
563 * user.c: Likewise.
564
565 2016-04-04 Flavio Cruz <[email protected]>
566
567 Use uint32_t instead of unsigned32_t.
568 * utils.c: Generate code using uint32_t.
569
570 2016-04-04 Flavio Cruz <[email protected]>
571
572 Fix use of stringize in lexxer.l
573 The fields instr and outstr should be set to a string and not to the
574 stringified number represented by the string. This improves the readability of
575 mig stubs code that creates mach_msg_type_t values for messages.
576
577 * lexxer.l: Inline stringize in TPRETURN and TRETURN.
578
579 2016-04-03 Flavio Cruz <[email protected]>
580
581 Use word_size instead of 4.
582 * server.c: Use word_size and update comments.
583 * type.c: Use word_size to compute padding.
584 * user.c: Use word_size and update comments.
585
586 2016-03-20 Flavio Cruz <[email protected]>
587
588 Remove functions, procedures and simple procedures.
589 This has been tested by cross-compiling a base Hurd system to make sure
590 these kinds of routines are no longer used.
591
592 * lexxer.l: Remove tokens.
593 * parser.y: Remove token types and production rules.
594 * routine.c: Remove rtMakeProcedure, rtMakeSimpleProcedure,
595 rtMakeFunction.
596 * routine.h: Remove enum values rkSimpleProcedure, rkProcedure,
597 rkFunction. Remove dead fields from struct routine.
598 * user.c: Simplify and remove dead code.
599
600 2016-03-19 Flavio Cruz <[email protected]>
601
602 Simpler lexer regexps of case insensitive keywords.
603 * lexxer.l: Use (?i) for matching case insensitive keywords.
604 * README: Fix typo.
605
606 2016-03-15 Flavio Cruz <[email protected]>
607
608 Automatically generate parser.h.
609 * Makefile.am: Set AM_YFLAGS to -d to generate parser.h. Add parser.h to
610 CLEANFILES and include parser.h as a dependency of lexxer.c.
611 * lexxer.l: Declare yyerror here.
612 * parser.h: Remove file since yacc will generate the same content
613 automatically.
614
615 2016-03-07 Flavio Cruz <[email protected]>
616
617 Correctly initialize prototype in itAlloc.
618 * type.c (itAlloc): Initialize itKernelPort to FALSE.
619
620 2016-02-09 Flavio Cruz <[email protected]>
621
622 Cast kernel server port arguments to the correct type.
623 * server.c: Add cast for ipc_port_t arguments that are handled differently.
624 * type.c: Set itKernelPort when the mach_port_t is treated as a ipc_port_t.
625 * type.h: Add itKernelPort to struct ipc_type.
626
627 2015-10-31 Thomas Schwinge <[email protected]>
628
629 GNU MIG 1.6
630 * configure.ac (AC_INIT): Set version to 1.6.
631 * NEWS: Finalize for 1.6.
632
633 2015-10-05 Justus Winter <[email protected]>
634
635 Update NEWS file
636
637 2015-06-05 David Michael <[email protected]>
638
639 Change x_server_routine functions to "static inline" for -std=gnu11
640 * header.c (WriteServerHeader): Replace "extern" with "static".
641 * server.c (WriteEpilog): Remove WriteSubsystemServerRoutine call.
642
643 2015-04-10 Thomas Schwinge <[email protected]>
644
645 GNU MIG 1.5.
646 * configure.ac (AC_INIT): Set version to 1.5.
647 * NEWS: Finalize for 1.5.
648
649 2015-02-15 Justus Winter <[email protected]>
650
651 Do not generate code dereferencing type-punned pointers
652 For variable-length arrays, up to 2048 bytes are transmitted inline.
653 If the array is larger, the data is transmitted out-of-line, and a
654 pointer to a vm_allocated region is stored at the beginning of the
655 array.
656
657 Previously, the generated code casted the field. Use a union instead.
658
659 This fixes the gcc warning `dereferencing type-punned pointer will
660 break strict-aliasing rules [-Wstrict-aliasing]'.
661
662 * global.c (OOLPostfix): New variable.
663 * global.h (OOLPostfix): New declaration.
664 * server.c (WriteServerCallArg): Avoid cast.
665 (WriteDestroyArg): Likewise.
666 (WritePackArgValue): Likewise.
667 (WritePackArg): Likewise.
668 * user.c (WriteExtractArgValue): Likewise.
669 * utils.c (WriteFieldDeclPrim): Generate a union with an additional
670 pointer field for variable-length arrays.
671
672 2015-02-06 David Michael <[email protected]>
673
674 Test the configured yacc program
675 * configure.ac (yacc_is_bison): Test the configured yacc program.
676
677 2015-02-06 Yves-Gael Cheny ( irc hurdman_begin ) <[email protected]>
678
679 Check that yacc is provided by bison
680 * configure.ac: Check that yacc --version contains bison.
681
682 2014-12-01 Justus Winter <[email protected]>
683
684 Add static branch prediction to type checks
685 Annotate generated type checks with static branch prediction
686 optimizing well-formed messages.
687
688 * utils.c (WriteBogusDefines): Define `mig_unlikely' if not defined.
689 * server.c: Use `mig_unlikely' in generated type checks.
690 * user.c: Likewise.
691
692 2014-11-06 Justus Winter <[email protected]>
693
694 Provide default implementations for server functions
695 By providing default implementations, servers can provide partial
696 implementations of protocols without having to stub out functions.
697
698 * server.c (WriteDefaultRoutine): New function.
699 (WriteRoutine): Call WriteDefaultRoutine.
700
701 2014-10-10 Justus Winter <[email protected]>
702
703 Add support for protected payloads
704 Add support for protected payloads. The new `intranpayload' option can
705 be used to specify a translation function translating payloads to
706 values of the translated type. This function will be used instead of
707 the `intran' function to to look up the receiving object of a message
708 in a server.
709
710 This makes it easy to use the protected payloads introduced in GNU
711 Mach 1.5.
712
713 An inTransPayload function translates payloads to objects, like an
714 inTrans function translates from port names to objects. Generate code
715 in the server routine to optimize lookups to the receiver of the
716 message.
717
718 Additionally, if no intran function is provided, but an intranpayload
719 function is, it is expected to translate from payloads to port names.
720 This is used to preserve the semantics in case the server routine
721 expects a port name.
722
723 * NEWS: Add item.
724 * lexxer.l: Emit syInTranPayload.
725 * parser.h: Define syInTranPayload.
726 * parser.y (TransTypeSpec): Handle syInTranPayload.
727 * type.h (struct ipc_type): Add itInTransPayload.
728 * server.c (WriteExtractArgValue): If a payload-aware intrans function
729 has been specified, use it to get a reference to the receiving object.
730 * routine.c (rtAugmentArgKind): Force the use of a local variable if a
731 payload-aware translate-in function is defined.
732
733 2014-09-24 Justus Winter <[email protected]>
734
735 Update NEWS file
736
737 2014-02-21 Justus Winter <[email protected]>
738
739 Fix variable-sized c strings
740 Previously, the terminating zero of variable-sized c strings was only
741 included when copying the message if the length of the string was not
742 a multiple of four. mig_strncpy returns the length of the string
743 excluding the terminating zero. Fix this by properly accounting for
744 the byte for the terminating zero in the array length.
745
746 * server.c (WritePackArgValue): Account for the terminating zero in
747 the array length.
748 * user.c (WritePackArgValue): Likewise.
749
750 2013-12-16 Justus Winter <[email protected]>
751
752 Generate a x_server_routine in the sheader so it can be inlined
753 * header.c (WriteServerHeader): Emit a x_server_routine that can be
754 inlined.
755 * server.c (WriteEpilog): Export the x_routines array so it can be
756 used from the inlined x_server_routine.
757
758 Move the generation of x_server_routine function into a function
759 * server.c (WriteSubsystemServerRoutine): New function.
760 (WriteEpilog): Adjust accordingly.
761 * write.h (WriteSubsystemServerRoutine): New declaration.
762
763 Clean up generated sources
764 * Makefile (CLEANFILES): Add generated source files lexxer.c and parser.c.
765
766 Avoid a compiler warning in WriteDefines
767 * header.c (WriteDefines): Avoid warning about unused parameter.
768
769 2013-12-16 Justus Winter <[email protected]>
770
771 Advise flex not to generate the input function
772 This avoids a warning about input being unused.
773
774 * lexxer.l: Define YY_NO_INPUT.
775
776 2013-12-15 Marin Ramesa <[email protected]>
777
778 mig/server.c (WriteVarDecls): quiet GCC warning about set but unused variable
779 This is again that code where variable is assigned to itself, but
780 I don't know how to fix this the other way.
781
782 * server.c (WriteVarDecls) (msgh_simple): Assign to itself.
783
784 2013-09-27 Thomas Schwinge <[email protected]>
785
786 GNU MIG 1.4.
787 * configure.ac (AC_INIT): Set version to 1.4.
788 * NEWS: Finalize changes for 1.4.
789 * README: Update.
790
791 Generate ChangeLog files for distributions.
792 * gitlog-to-changelog: New file; import from gnulib's
793 9fc81090f6c5590bd1b0e0fa5087577a2ee43a3e:build-aux/gitlog-to-changelog.
794 * Makefile.am (gen-ChangeLog): New target.
795 (dist-hook): Depend on it.
796
797 2013-09-04 Justus Winter <[email protected]>
798
799 Drop the auto keyword
800 Drop the auto keyword from the generated source code. auto is the
801 default storage type for variables anyway and it is customary to omit
802 it.
803
804 * utils.c (WriteCheckDecl): Drop auto from generated source.
805 (WriteStaticLongDecl): Likewise.
806 (WriteStaticShortDecl): Likewise.
807
808 2013-08-19 Justus Winter <[email protected]>
809
810 Drop alloca.c
811 This file was only used with GCC < 2, so it's time to drop it.
812
813 * alloca.c: Remove file.
814 * configure.ac: Remove test for alloca.
815 * Makefile.am (migcom_LDADD): Remove @ALLOCA@.
816
817 2013-08-19 Justus Winter <[email protected]>
818
819 Drop the register keyword
820 Drop the register keyword both from MIGs code and from the generated
821 code. The register keyword is only a hint and it is ignored by modern
822 compilers.
823
824 * alloca.c: Drop the register keyword.
825 * header.c: Likewise.
826 * lexxer.l: Likewise.
827 * parser.y: Likewise.
828 * routine.c: Likewise.
829 * server.c: Likewise.
830 * statement.c: Likewise.
831 * string.c: Likewise.
832 * type.c: Likewise.
833 * user.c: Likewise.
834 * utils.c: Likewise.
835 * vprint.c: Likewise.
836
837 2013-08-19 Justus Winter <[email protected]>
838
839 Remove unused file alloc.h
840 * alloc.h: Remove file.
841 * Makefile (migcom_SOURCES): Remove alloc.h.
842
843 2013-02-19 Olaf Buddenhagen <[email protected]>
844
845 Fix spurious deallocation
846 * server.c (WriteDestroyArg): Only dealloc out-of-line memory from
847 request message if KERN_SUCCESS.
848
849 2012-09-09 Thomas Schwinge <[email protected]>
850
851 Merge remote-tracking branch 'savannah/master'
852
853 2012-07-01 Samuel Thibault <[email protected]>
854
855 Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/mig
856
857 2012-07-01 Guillem Jover <[email protected]>
858
859 Fix format string build failure with _FORTIFY_SOURCE=2
860 * parser.y (yyerror): Use a format string instead of directly passing
861 the argument to error.
862
863 2012-03-19 Thomas Schwinge <[email protected]>
864
865 Make the installation tree relocatable.
866 * mig.in: Compute a relative path from the mig to migcom.
867
868 2011-09-07 Thomas Schwinge <[email protected]>
869
870 * .gitignore: Tighten some rules.
871
872 2011-08-30 Guillem Jover <[email protected]>
873
874 Add silent rules support if available and disable it by default
875 * configure.ac (AM_SILENT_RULES): Add silent rules support if available,
876 and disable it by default.
877 * Makefile.am (AWK_V, AWK_V_, AWK_V_0): New variables.
878 (.sym.symc): Use AWK_V in front of AWK.
879 (.symc.symo): Use AM_V_CC in front of TARGET_CC.
880 (.symo.h): Use AM_V_GEN in front of sed.
881
882 Add a .gitignore file
883 * .gitignore: New file.
884
885 2010-01-04 Samuel Thibault <[email protected]>
886
887 Fix indentation
888 * user.c (WriteCheckIdentity): Prepend `\t' before calling
889 WriteMsgError.
890
891 2009-10-25 Samuel Thibault <[email protected]>
892
893 Fix warning during mach compilation
894 * user.c (WriteIncludes): Include <kern/ipc_mig.h> when building kernel
895 user.
896
897 2009-07-11 Thomas Schwinge <[email protected]>
898
899 Switch to the new ChangeLog style.
900 * ChangeLog: Wipe out content, and add instructions about how to get it back.
901
902 2008-05-28 Thomas Schwinge <[email protected]>
903
904 [bug #23417: Building with -g3]
905 * lexxer.l (^\#define[ \t]): Ignore until EOL.
906
907 2007-06-02 Thomas Schwinge <[email protected]>
908
909 * global.c (LintLib): Remove definition.
910 * global.h (LintLib): Remove declaration.
911 * header.c (WriteUserRoutine, WriteServerRoutine): Don't emit `Lint'
912 code.
913 * user.c (WriteIncludes): Likewise.
914 * utils.c (WriteRCSDecl): Likewise.
915
916 2007-04-03 Thomas Schwinge <[email protected]>
917
918 * mig.in (--help): Document the ``-i'' option better.
919
920 2007-03-05 Thomas Schwinge <[email protected]>
921
922 * COPYING: Update the FSF's postal address.
923
924 Remove automatically regeneratable files.
925 * INSTALL: Remove file.
926 * Makefile.in: Likewise.
927 * aclocal.m4: Likewise.
928 * configure: Likewise.
929 * lexxer.c: Likewise.
930 * parser.c: Likewise.
931 * build-aux/config.guess: Likewise.
932 * build-aux/config.sub: Likewise.
933 * build-aux/depcomp: Likewise.
934 * build-aux/install-sh: Likewise.
935 * build-aux/missing: Likewise.
936 * build-aux/ylwrap: Likewise.
937
938 2006-12-04 Thomas Schwinge <[email protected]>
939
940 * Makefile.in: Regenerate.
941 * configure: Likewise.
942
943 * configure.ac (AM_INIT_AUTOMAKE): Add `dist-bzip2'.
944
945 * Makefile.am (AUTOMAKE_OPTIONS): Remove variable after having moved
946 the `gnu' option to...
947 * configure.ac (AM_INIT_AUTOMAKE): ... here.
948 Bump version to 1.3.1.99.
949 * NEWS: Update.
950 * README: Likewise.
951
952 2006-12-03 Leonardo Lopes Pereira <[email protected]>
953
954 [patch #5018 --- ``Remove support to msg_send interface.'']
955 * global.c (UseMsgRPC): Removed definition.
956 * global.h (UseMsgRPC): Removed declaration.
957 * mig.in (--help): Removed information about `-r' and `-R' options.
958 * migcom.c (parseArgs): Changed the switches `-r' and `-R' to deal with
959 the absence of obsolete the send/receive pairs.
960 * user.c (WriteRoutine): Adapted the use of `UseMsgRPC' as if it was
961 defined to `TRUE'.
962 (WriteMsgSendReceive): Removed, since it is not used anymore.
963
964 2006-11-29 Thomas Schwinge <[email protected]>
965
966 * configure: Regenerate.
967 * lexxer.c: Likewise.
968 * parser.c: Likewise.
969
970 Fix compiler, flex and bison warnings.
971 * error.c: Include <stdlib.h>.
972 * lexxer.h (yylex): Add declaration.
973 * migcom.c: Include <stdlib.h>.
974 (main): Set USER, SHEADER and IHEADER to `NULL' by default.
975 (myfclose): Add lost conversion specifications.
976 * parser.h (yyerror): Add declaration.
977 * routine.c (rtPrintArg, rtCheckRoutine): Add braces to avoid
978 ambiguousness.
979 * server.c (WriteSymTabEntries): Make NUM an `u_int'.
980 * user.c (WriteUserIndividual): Add a `default' case in a switch
981 statement and add lost conversion specifications.
982 * lexxer.l: Set option `nounput'.
983 * parser.y (%left): Change commas to spaces.
984
985 * configure.ac (AM_INIT_AUTOMAKE): Add the `no-define' option.
986
987 * build-aux/config.guess: New file, thanks to `autoreconf'.
988 * build-aux/config.sub: Likewise.
989 * build-aux/depcomp: Likewise.
990 * build-aux/install-sh: Likewise.
991 * build-aux/missing: Likewise.
992 * build-aux/ylwrap: Likewise.
993 * INSTALL: File updated by `autoreconf'.
994 * aclocal.m4: Likewise.
995 * Makefile.in: Likewise.
996 * configure: Likewise.
997
998 * mig.in: Adopt to the Autoconf update.
999
1000 * configure.in: Move to...
1001 * configure.ac: ... here and overhaul a bit.
1002
1003 * config.guess: Remove file.
1004 * config.sub: Likewise.
1005 * depcomp: Likewise.
1006 * install-sh: Likewise.
1007 * missing: Likewise.
1008 * mkinstalldirs: : Likewise.
1009
1010 [bug #17122 --- ``GNU MIG debian dir'']
1011 * Makefile.am (debian_files): Remove variable.
1012 (EXTRA_DIST): Remove files from `debian/'.
1013 * debian/README.Debian: Remove file.
1014 * debian/changelog: Likewise.
1015 * debian/control: Likewise.
1016 * debian/copyright: Likewise.
1017 * debian/rules: Likewise.
1018
1019 2006-07-29 Ognyan Kulev <[email protected]>
1020
1021 [patch #324]
1022 * migcom.c (myfclose): New function.
1023 (main): Use myfclose instead of fclose.
1024 * user.c (WriteUserIndividual): Check for errors when closing file.
1025
1026 2006-01-26 Thomas Schwinge <[email protected]>
1027
1028 * config.guess: Updated from the canonical source.
1029 * config.sub: Likewise.
1030
1031 2005-05-27 Thomas Schwinge <[email protected]>
1032
1033 [patch #2507]
1034 * mig.in (prj_quote_sh): New shell funcion; copied from Paul Jarc's
1035 prjlibs. Use that function to properly quote strings in $cppflags
1036 that contain whitespace.
1037
1038 2005-04-09 Thomas Schwinge <[email protected]>
1039
1040 * mig.in: Handle the preprocessor option '-isystem ...' correctly.
1041
1042 2004-03-18 Roland McGrath <[email protected]>
1043
1044 * utils.c (do_skip_vfprintf): New macro.
1045 (WriteCopyType, WritePackMsgType): Use that, so we do va_start and
1046 va_end independently around each SkipVFPrintf call.
1047
1048 2004-02-10 Roland McGrath <[email protected]>
1049
1050 * user.c (WriteTypeCheck): Use BAD_TYPECHECK macro instead of type-pun.
1051 * server.c (WriteTypeCheck): Likewise.
1052 * utils.c (WriteBogusDefines): Write a #define for that macro.
1053 * utils.c (WriteCheckDecl): Write auto const, not static const.
1054 (WriteStaticShortDecl, WriteStaticLongDecl): Likewise.
1055
1056 * INSTALL, config.guess, config.sub, missing, mkinstalldirs,
1057 install-sh: Update files from autoconf/automake.
1058
1059 2004-02-01 Roland McGrath <[email protected]>
1060
1061 * depcomp, Makefile.in, aclocal.m4, configure: Update generated files.
1062
1063 2002-08-29 Jeff Bailey <[email protected]>
1064
1065 * configure.in: Bump version to 1.3.1
1066 * configure: Regenerated.
1067
1068 * NEWS: Updated for 1.3.1 release.
1069
1070 2002-07-31 Marcus Brinkmann <[email protected]>
1071
1072 * routine.c (rtFindSize): Always add sizeof_mach_msg_type_t to
1073 SIZE for args not in long form, irregardless of the itSize.
1074
1075 2002-05-07 Roland McGrath <[email protected]>
1076
1077 * type.c (itMakeNaturalType): New function.
1078 (init_type): Use that instead of itMakeIntType for itWaitTimeType and
1079 itMsgOptionType--give them each their special typedef names.
1080 * routine.c (rtCheckArgTypes): Use itCheckNaturalType for rtMsgOption.
1081
1082 2002-04-05 Roland McGrath <[email protected]>
1083
1084 * Makefile.am (cpu.symc): Depend on gensym.awk.
1085 * Makefile.in: Regenerated.
1086
1087 * gensym.awk: Generate code with no unescaped newlines inside strings.
1088
1089 * vprint.c: Fix obsolete #endif syntax.
1090
1091 2002-03-06 Roland McGrath <[email protected]>
1092
1093 * configure.in: Bump version to 1.3.
1094 * configure, Makefile.in, aclocal.m4: Regenerated.
1095
1096 2001-12-31 Roland McGrath <[email protected]>
1097
1098 * lexxer.l: Grok "retcode" IPC flag as a no-op, for compatibility
1099 with OSF Mach mig syntax.
1100 * lexxer.c: Regenerated.
1101
1102 2001-12-28 Roland McGrath <[email protected]>
1103
1104 * mig.in (default_cpp): Add -ansi to avoid -Di386=1 and the like.
1105
1106 * mig.in (default_cpp): Put -undef here.
1107 (cppflags): Not here.
1108
1109 2001-10-03 Roland McGrath <[email protected]>
1110
1111 * mig.in (cppflags): Start with -undef.
1112
1113 2001-06-09 Marcus Brinkmann <[email protected]>
1114
1115 * Makefile.am (debian_files): New variable.
1116 (EXTRA_DIST): Add files in $(debian_files), prefixed with debian/.
1117 * configure, Makefile.in, aclocal.m4: Regenerated.
1118
1119 2001-06-08 Marcus Brinkmann <[email protected]>
1120
1121 * debian/rules: Fix directory permissions, set architecture relevant
1122 variables to default values, include section and priority in package,
1123 strip migcom down even further, as suggested by Lintian.
1124 * debian/changelog: Bump version to 1.2-1.
1125
1126 2001-06-07 Roland McGrath <[email protected]>
1127
1128 * configure.in: Bump version to 1.2.
1129 * configure, Makefile.in: Regenerated.
1130 * NEWS: Updated for changes since 1.1 release.
1131
1132 * header.c (WriteRoutineList): New function.
1133 * write.h: Declare it.
1134 * migcom.c (RoutineListFileName): New variable.
1135 (parseArgs): New option -list to set it.
1136 (main): If set, write the named output file with WriteRoutineList.
1137 * mig.in: Grok -list and put it in the usage message.
1138
1139 * global.c (DefaultFiles): New variable, boolean initialized to true.
1140 (more_global): Leave null file name variables alone if it's false.
1141 * global.h (DefaultFiles): Declare it.
1142 * migcom.c (parseArgs): New option -n clears it.
1143 * mig.in: Grok -n (pass it through) and put it in the usage message.
1144
1145 * statement.h: Fix obsolete #else/#endif syntax.
1146 * lexxer.l: Likewise.
1147 * lexxer.c: Regenerated.
1148
1149 2000-07-04 Marcus Brinkmann <[email protected]>
1150
1151 * debian: New directory for Debian packaging stuff.
1152 * debian/README.Debian: New file.
1153 * debian/changelog: Likewise.
1154 * debian/control: Likewise.
1155 * debian/rules: Likewise.
1156 * debian/copyright: Likewise.
1157
1158 1999-10-11 Roland McGrath <[email protected]>
1159
1160 * user.c (WriteIncludes): Fix missing newline in last change.
1161 * server.c (WriteIncludes): Likewise.
1162
1163 1999-10-08 Roland McGrath <[email protected]>
1164
1165 * server.c (WriteIncludes): Write:
1166 #ifndef _GNU_SOURCE
1167 #define _GNU_SOURCE 1
1168 #endif
1169 into the output before all else. This is required for building
1170 stubs with GNU libc's built-in Mach/MiG support code.
1171 * user.c (WriteIncludes): Likewise.
1172
1173 1999-06-22 Thomas Bushnell, BSG <[email protected]>
1174
1175 * configure.in: Bump version to 1.1. First official net release.
1176
1177 * configure, Makefile.in, aclocal.m4: Regenerated.
1178
1179 1999-05-23 Roland McGrath <[email protected]>
1180
1181 * configure.in: Bump version to 1.0.2.
1182
1183 * mig.in: Grok --help.
1184 Suggested by Jeff Bailey <[email protected]>.
1185
1186 1999-05-22 Roland McGrath <[email protected]>
1187
1188 * configure.in: Add AC_PROG_CPP.
1189 * mig.in (CC): Set this before default_cpp, which might use its value.
1190 Reported by Jeff Bailey <[email protected]>.
1191
1192 1999-04-14 Roland McGrath <[email protected]>
1193
1194 * mig.in (default_cpp, default_cc): New variables, @ expansions here.
1195 (CC): Make sure it's defined, in case ${CPP} refers to ${CC}.
1196 (cpp): Use ${default_cpp} instead of the literal multiword contents.
1197
1198 1999-03-20 Roland McGrath <[email protected]>
1199
1200 * mig.in (PACKAGE, VERSION): New variables, substituted by configure.
1201 Grok --version.
1202
1203 1998-12-04 Roland McGrath <[email protected]>
1204
1205 Version 1.0.1 released.
1206 * configure.in: Update version to 1.0.1.
1207
1208 1998-09-06 Roland McGrath <[email protected]>
1209
1210 * mig.in (cpp): Add `-x c' to TARGET_CC command.
1211
1212 1998-07-19 Roland McGrath <[email protected]>
1213
1214 * README, AUTHORS, NEWS: New files.
1215
1216 1998-07-18 Roland McGrath <[email protected]>
1217
1218 * lexxer.c, parser.c: Regenerated in srcdir so #line refs are good.
1219
1220 * migcom.c (main): Fix return type to int (not void), and use return.
1221
1222 Moved mig out of gnumach into standalone distribution with
1223 vanilla autoconf/automake build arrangement.
1224 * configure.in, Makefile.am: New files.
1225 * mig.sh: Renamed to mig.in.
1226 * mig.in (prefix, exec_prefix, libexecdir): New vars set by configure.
1227 (migcom): Find migcom in ${libexecdir}, and use @MIGCOM@ for its name.
1228 (cpp): Use @TARGET_CC@ -E instead of @CPP@.
1229
1230 * gensym.awk: New file, copied from gnumach top-level dir.
1231
1232 Thu Mar 20 14:56:34 1997 Thomas Bushnell, n/BSG <[email protected]>
1233
1234 * error.c (unix_error_string): Assume HAVE_STRERROR.
1235
1236 Wed May 15 13:55:01 1996 Miles Bader <[email protected]>
1237
1238 * user.c (WriteRequestArgs): Don't check args against akbUserArg.
1239 (WritePackArg): Do check poly args also against akbUserArg.
1240
1241 Thu May 2 19:13:32 1996 Miles Bader <[email protected]>
1242
1243 * routine.h (struct routine): Split rtReplyPort field into
1244 rtUReplyPort and rtSReplyPort fields.
1245 * routine.c (rtAddDummyReplyPort): Add USER arg, and use it.
1246 (rtCheckRoutineArg): Set user or server or both reply ports.
1247 (rtSetArgDefaults, rtCheckArgTypes, rtCheckRoutine): Deal with
1248 split reply ports.
1249 * user.c (WriteRequestHead, WriteMsgCheckReceive): Use
1250 rtUReplyPort field instead of rtReplyPort.
1251 (WriteRequestArgs): Only deal with user-side args.
1252
1253 Wed May 15 13:55:01 1996 Miles Bader <[email protected]>
1254
1255 * user.c (WriteRequestArgs): Don't check args against akbUserArg.
1256 (WritePackArg): Do check poly args also against akbUserArg.
1257
1258 Thu May 2 19:13:32 1996 Miles Bader <[email protected]>
1259
1260 * routine.h (struct routine): Split rtReplyPort field into
1261 rtUReplyPort and rtSReplyPort fields.
1262 * routine.c (rtAddDummyReplyPort): Add USER arg, and use it.
1263 (rtCheckRoutineArg): Set user or server or both reply ports.
1264 (rtSetArgDefaults, rtCheckArgTypes, rtCheckRoutine): Deal with
1265 split reply ports.
1266 * user.c (WriteRequestHead, WriteMsgCheckReceive): Use
1267 rtUReplyPort field instead of rtReplyPort.
1268 (WriteRequestArgs): Only deal with user-side args.
1269
1270 Thu Feb 29 12:46:40 1996 steve clawson <[email protected]>
1271
1272 * user.c (WriteMsgCheckReceive): If the reply-port isn't
1273 user-supplied and there was a message transmission error, then
1274 deallocate it. From Michael I Bushnell ([email protected]).
1275
1276 * user.c (WriteMsgCheckIdentity): Dealloc reply port if a
1277 mismatched reply comes in to avoid cascaded errors. From
1278 Michael I Bushnell ([email protected]).
1279
1280 Wed May 3 13:59:54 MDT 1995 Bryan Ford <[email protected]>
1281
1282 Merged in diffs from UK02p12 to UK02p15:
1283
1284 Wed May 3 10:47:41 MDT 1995 Bryan Ford <[email protected]>
1285
1286 * Released UK02p15.
1287
1288 * mig_string.h: include string.h instead of strings.h
1289
1290 * user.c, lexxer.l: changed index/rindex to strchr/strrchr.
1291
1292 Fri Feb 10 13:25:54 MST 1995 Bryan Ford <[email protected]>
1293
1294 Merged in diffs from UK02p7 to UK02p9:
1295
1296 Sun, 29 Jan 1995 [email protected] (Remy CARD)
1297
1298 Fixed a bug that causes mig to generate bad file names
1299 in #include directives when generating the user source file.
1300
1301 Fri Nov 25 13:56:32 MST 1994 Bryan Ford ([email protected])
1302
1303 Merged in diffs from UK02p6 to UK02p7:
1304
1305 * MIG now compiles under BSD without 'vm_???_t' types
1306 conflicting between host (BSD) and target (Mach)
1307 header files. Basically, the MIG source files compiled
1308 to run on the host machine no longer include mach/message.h;
1309 instead they get the needed defines through cpu.h
1310 which is built by compiling cpu.sym for the target machine.
1311
1312 Mon Aug 29 18:31:21 1994 Bryan Ford ([email protected])
1313
1314 * got rid of /usr/bin pathname in call to basename:
1315 basename isn't always in /usr/bin.
1316
1317 Fri Aug 26 11:36:10 1994 Louis-D. Dubeau ([email protected])
1318
1319 * Fixed mig.sh to pass -imacros flags to CPP correctly.
1320
1321 Tue Sep 6 10:00:29 1994 Roland McGrath ([email protected])
1322
1323 * Released UK02p6.
1324
1325 * use strerror instead of sys_errlist if it's available.
1326
1327 * Other minor portability fixes.
1328
1329 Mon Aug 15 18:37:47 1994 Roland McGrath <[email protected]>
1330
1331 * global.c (more_global): Prepend RoutinePrefix to ServerDemux
1332 even for non-default value of ServerDemux.
1333
1334 Fri Jul 8 14:36:53 1994 Roland McGrath ([email protected])
1335
1336 * routine.h (rtSkip): Take int arg.
1337 * routine.c (rtSkip): Take int arg and increment by that many.
1338 * parser.y (Statement): Grok `skip N;'; pass int arg to rtSkip.
1339
1340 Fri May 13 15:08:56 1994 Michael I Bushnell ([email protected])
1341
1342 * user.c (WriteMsgCheckReceive): Deallocate the reply port also if
1343 we get one of the send errors that can cause the message to be
1344 partially sent and then destroyed; otherwise we might later get a
1345 spurious send-once notification.
1346
1347 Wed Aug 4 10:34:42 1993 Michael I. Bushnell (mib at ernst.gnu.ai.mit.edu)
1348
1349 * Makefile: Don't use flex or bison; use lex and yacc instead.
1350
1351 * migcom.c (myfopen): Added extern declaration of errno.
1352
1353 Wed Jun 30 19:46:51 1993 Roland McGrath ([email protected])
1354
1355 * user.c (WriteUser): Call WriteImport for skImport and skUImport
1356 statements.
1357 (WriteUserIndividual): Write all the import and uimport statements
1358 to each file.
1359
1360 Mon Jun 28 22:07:14 1993 Roland McGrath ([email protected])
1361
1362 * utils.c (WriteStaticShortDecl, WriteCheckDecl,
1363 WriteStaticLongDecl): Generate a `const' definition.
1364
1365 Fri Jun 25 17:53:26 1993 Roland McGrath ([email protected])
1366
1367 * utils.c (WriteCopyType): Write SubrPrefix before `mig_strncpy'.
1368
1369 * user.c (WriteRequestHead): Write SubrPrefix before
1370 `mig_get_reply_port'.
1371 (WriteMsgCheckReceive): Write SubrPrefix before
1372 `mig_dealloc_reply_port'.
1373 (WritePackArgValue): Write SubrPrefix before `mig_strncpy'.
1374 (WriteExtractArgValue): Likewise.
1375 (WriteExtractArgValue): Write SubrPrefix before `mig_allocate'.
1376 (WriteMsgSend): Write SubrPrefix before `mach_msg_send_from_kernel'
1377 and `mach_msg'.
1378 (WriteMsgSendReceive): Write SubrPrefix before `mach_msg'.
1379 (WriteMsgRPC): Write SubrPrefix before `mach_msg_rpc_from_kernel'
1380 and `mach_msg'.
1381
1382 * server.c (WriteDestroyArg): Write SubrPrefix before `mig_deallocate'.
1383 (WritePackArgValue): Write SubrPrefix before `mig_strncpy'.
1384 (WriteDestroyPortArg): Write SubrPrefix before `ipc_port_release_send'.
1385 (WriteAdjustMsgCircular): Write SubrPrefix before
1386 `ipc_port_check_circularity'.
1387
1388 * routine.c (rtCheckRoutine): Prepend RoutinePrefix to
1389 RT->rtServerName and RT->rtUserName.
1390
1391 * migcom.c (parseArgs): Recognize -subrprefix and -prefix.
1392
1393 * global.c (SubrPrefix, RoutinePrefix): Define new variables.
1394 * global.h: Declare them.