/[hurd]/hurd/libps/host.c
ViewVC logotype

Diff of /hurd/libps/host.c

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

revision 1.5 by roland, Sat Mar 31 23:09:21 2001 UTC revision 1.6 by roland, Mon Dec 31 23:54:28 2001 UTC
# Line 37  Line 37 
37  */  */
38    
39  /* Return the current host port.  */  /* Return the current host port.  */
40  host_t  mach_port_t
41  ps_get_host ()  ps_get_host ()
42  {  {
43    static host_t host = MACH_PORT_NULL;    static mach_port_t host = MACH_PORT_NULL;
44    if (host == MACH_PORT_NULL)    if (host == MACH_PORT_NULL)
45      host = mach_host_self ();      host = mach_host_self ();
46    return host;    return host;
# Line 59  ps_host_basic_info (host_basic_info_t *i Line 59  ps_host_basic_info (host_basic_info_t *i
59    if (!initialized)    if (!initialized)
60      {      {
61        int size = sizeof (buf);        int size = sizeof (buf);
62        error_t err = host_info (ps_get_host (), HOST_BASIC_INFO,        error_t err = host_info (ps_get_host (), HOST_BASIC_INFO,
63                                (host_info_t) &buf, &size);                                (host_info_t) &buf, &size);
64        if (err)        if (err)
65          return err;          return err;
# Line 83  ps_host_sched_info (host_sched_info_t *i Line 83  ps_host_sched_info (host_sched_info_t *i
83    if (!initialized)    if (!initialized)
84      {      {
85        int size = sizeof (buf);        int size = sizeof (buf);
86        error_t err = host_info (ps_get_host (), HOST_SCHED_INFO,        error_t err = host_info (ps_get_host (), HOST_SCHED_INFO,
87                                (host_info_t) &buf, &size);                                (host_info_t) &buf, &size);
88        if (err)        if (err)
89          return err;          return err;

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

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