304 |
mach_msg_type_t changeType; |
mach_msg_type_t changeType; |
305 |
file_changed_type_t change; |
file_changed_type_t change; |
306 |
mach_msg_type_t startType; |
mach_msg_type_t startType; |
307 |
off_t start; |
loff_t start; |
308 |
mach_msg_type_t endType; |
mach_msg_type_t endType; |
309 |
off_t end; |
loff_t end; |
310 |
} Request; |
} Request; |
311 |
union |
union |
312 |
{ |
{ |
335 |
}; |
}; |
336 |
|
|
337 |
static const mach_msg_type_t startType = { |
static const mach_msg_type_t startType = { |
338 |
/* msgt_name = */ 2, |
/* msgt_name = */ 11, |
339 |
/* msgt_size = */ 32, |
/* msgt_size = */ 64, |
340 |
/* msgt_number = */ 1, |
/* msgt_number = */ 1, |
341 |
/* msgt_inline = */ TRUE, |
/* msgt_inline = */ TRUE, |
342 |
/* msgt_longform = */ FALSE, |
/* msgt_longform = */ FALSE, |
345 |
}; |
}; |
346 |
|
|
347 |
static const mach_msg_type_t endType = { |
static const mach_msg_type_t endType = { |
348 |
/* msgt_name = */ 2, |
/* msgt_name = */ 11, |
349 |
/* msgt_size = */ 32, |
/* msgt_size = */ 64, |
350 |
/* msgt_number = */ 1, |
/* msgt_number = */ 1, |
351 |
/* msgt_inline = */ TRUE, |
/* msgt_inline = */ TRUE, |
352 |
/* msgt_longform = */ FALSE, |
/* msgt_longform = */ FALSE, |
372 |
|
|
373 |
if (notify == MACH_PORT_NULL) |
if (notify == MACH_PORT_NULL) |
374 |
return mach_msg (&InP->Head, MACH_SEND_MSG | MACH_MSG_OPTION_NONE, |
return mach_msg (&InP->Head, MACH_SEND_MSG | MACH_MSG_OPTION_NONE, |
375 |
56, 0, MACH_PORT_NULL, MACH_MSG_TIMEOUT_NONE, |
64, 0, MACH_PORT_NULL, MACH_MSG_TIMEOUT_NONE, |
376 |
MACH_PORT_NULL); |
MACH_PORT_NULL); |
377 |
else |
else |
378 |
return mach_msg (&InP->Head, MACH_SEND_MSG | MACH_SEND_NOTIFY, |
return mach_msg (&InP->Head, MACH_SEND_MSG | MACH_SEND_NOTIFY, |
379 |
56, 0, MACH_PORT_NULL, MACH_MSG_TIMEOUT_NONE, |
64, 0, MACH_PORT_NULL, MACH_MSG_TIMEOUT_NONE, |
380 |
notify); |
notify); |
381 |
} |
} |
382 |
|
|
1752 |
} |
} |
1753 |
|
|
1754 |
|
|
1755 |
|
/* Return the dimension of the display in bytes. */ |
1756 |
|
off_t |
1757 |
|
display_get_size (display_t display) |
1758 |
|
{ |
1759 |
|
return sizeof (struct cons_display) |
1760 |
|
+ (sizeof (conchar_t) * display->user->screen.width |
1761 |
|
* display->user->screen.lines); |
1762 |
|
} |
1763 |
|
|
1764 |
|
|
1765 |
/* Return the dimensions of the display DISPLAY in *WINSIZE. */ |
/* Return the dimensions of the display DISPLAY in *WINSIZE. */ |
1766 |
void |
void |
1767 |
display_getsize (display_t display, struct winsize *winsize) |
display_getsize (display_t display, struct winsize *winsize) |