/[hurd]/hurd/console/display.c
ViewVC logotype

Diff of /hurd/console/display.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.14 by marcus, Sun Jul 14 23:54:30 2002 UTC revision 1.15 by marcus, Thu Aug 22 19:10:52 2002 UTC
# Line 304  nowait_file_changed (mach_port_t notify_ Line 304  nowait_file_changed (mach_port_t notify_
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    {    {
# Line 335  nowait_file_changed (mach_port_t notify_ Line 335  nowait_file_changed (mach_port_t notify_
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,
# Line 345  nowait_file_changed (mach_port_t notify_ Line 345  nowait_file_changed (mach_port_t notify_
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,
# Line 372  nowait_file_changed (mach_port_t notify_ Line 372  nowait_file_changed (mach_port_t notify_
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    
# Line 1752  display_destroy_complete (void *pi) Line 1752  display_destroy_complete (void *pi)
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)

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26