/[hurd]/hurd/libthreads/call.c
ViewVC logotype

Diff of /hurd/libthreads/call.c

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

revision 1.2 by roland, Sat Mar 31 23:01:01 2001 UTC revision 1.3 by roland, Mon May 27 02:50:10 2002 UTC
# Line 1  Line 1 
1  /*  /*
2   * Mach Operating System   * Mach Operating System
3   * Copyright (c) 1991,1990,1989 Carnegie Mellon University   * Copyright (c) 1992,1991,1990,1989 Carnegie Mellon University
4   * All Rights Reserved.   * All Rights Reserved.
5   *   *
6   * Permission to use, copy, modify and distribute this software and its   * Permission to use, copy, modify and distribute this software and its
7   * documentation is hereby granted, provided that both the copyright   * documentation is hereby granted, provided that both the copyright
8   * notice and this permission notice appear in all copies of the   * notice and this permission notice appear in all copies of the
9   * software, derivative works or modified versions, and any portions   * software, derivative works or modified versions, and any portions
10   * thereof, and that both notices appear in supporting documentation.   * thereof, and that both notices appear in supporting documentation.
11   *   *
12   * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"   * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13   * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR   * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14   * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.   * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15   *   *
16   * Carnegie Mellon requests users of this software to return to   * Carnegie Mellon requests users of this software to return to
17   *   *
18   *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU   *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
19   *  School of Computer Science   *  School of Computer Science
20   *  Carnegie Mellon University   *  Carnegie Mellon University
21   *  Pittsburgh PA 15213-3890   *  Pittsburgh PA 15213-3890
22   *   *
23   * any improvements or extensions that they make and grant Carnegie Mellon   * any improvements or extensions that they make and grant Carnegie Mellon
24   * the rights to redistribute these changes.   * the rights to redistribute these changes.
25   */   */
26  /*  /*
27   * HISTORY   * HISTORY
28   * $Log$   * $Log$
29   * Revision 1.2  2001/03/31 23:01:01  roland   * Revision 1.3  2002/05/27 02:50:10  roland
30   * 2001-03-31  Roland McGrath  <roland@frob.com>   * 2002-05-26  Roland McGrath  <roland@frob.com>
31   *   *
32   *      * cthreads.h: Fix obsolescent #endif syntax.   *      Changes merged from CMU MK83a version:
33   *      * cthread_internals.h: Likewise.   *      * cthreads.h, options.h: Various cleanups.
34   *      * cancel-cond.c: Likewise.   *      * call.c, cthread_data.c, sync.c, mig_support.c: Likewise.
35   *      * stack.c: Likewise.   *      * i386/cthreads.h, i386/thread.c, i386/lock.s: Likewise.
36     *      * cthread_internals.h: Add decls for internal functions.
37     *      (struct cproc): Use vm_offset_t for stack_base and stack_size members.
38     *      Use natural_t for context member.
39     *      * cprocs.c: Use prototypes for all defns.
40   *      * cthreads.c: Likewise.   *      * cthreads.c: Likewise.
41   *      * cprocs.c: Likewise.   *      (cthread_exit): Cast any_t to integer_t before int.
  *      * call.c: Likewise.  
  *  
  * Revision 1.1  1992/10/06 18:31:03  mib  
  * entered into RCS  
42   *   *
43     * Revision 2.5  93/01/14  18:04:38  danner
44     *      Converted file to ANSI C.
45     *      [92/12/18            pds]
46     *
47   * Revision 2.4  91/05/14  17:56:00  mrt   * Revision 2.4  91/05/14  17:56:00  mrt
48   *      Correcting copyright   *      Correcting copyright
49   *   *
50   * Revision 2.3  91/02/14  14:19:20  mrt   * Revision 2.3  91/02/14  14:19:20  mrt
51   *      Added new Mach copyright   *      Added new Mach copyright
52   *      [91/02/13  12:40:44  mrt]   *      [91/02/13  12:40:44  mrt]
53   *   *
54   * Revision 2.2  90/01/19  14:36:50  rwd   * Revision 2.2  90/01/19  14:36:50  rwd
55   *      Created.  Routines to replace thread_* and cthread_call_on.   *      Created.  Routines to replace thread_* and cthread_call_on.
56   *      [90/01/03            rwd]   *      [90/01/03            rwd]
57   *   *
58   */   */
59    
60  #include <cthreads.h>  #include <cthreads.h>
61  #include "cthread_internals.h"  #include "cthread_internals.h"
62    
63  #ifdef THREAD_CALLS  #if     defined(THREAD_CALLS)
64  kern_return_t cthread_get_state(thread)  kern_return_t cthread_get_state(cthread_t thread)
 cthread_t thread;  
65  {  {
66          cproc_t p = thread->ur;          cproc_t p = thread->ur;
67  }  }
68    
69  kern_return_t cthread_set_state(thread)  kern_return_t cthread_set_state(cthread_t thread)
 cthread_t thread;  
70  {  {
71          cproc_t p = thread->ur;          cproc_t p = thread->ur;
72  }  }
73    
74  kern_return_t cthread_abort(thread)  kern_return_t cthread_abort(cthread_t thread)
 cthread_t thread;  
75  {  {
76          cproc_t p = thread->ur;          cproc_t p = thread->ur;
77  }  }
78    
79  kern_return_t cthread_resume(thread)  kern_return_t cthread_resume(cthread_t thread)
 cthread_t thread;  
80  {  {
81          cproc_t p = thread->ur;          cproc_t p = thread->ur;
82  }  }
83    
84  kern_return_t cthread_suspend(thread)  kern_return_t cthread_suspend(cthread_t thread)
 cthread_t thread;  
85  {  {
86          cproc_t p = thread->ur;          cproc_t p = thread->ur;
87  }  }
88    
89  kern_return_t cthread_call_on(thread)  kern_return_t cthread_call_on(cthread_t thread)
 cthread_t thread;  
90  {  {
91          cproc_t p = thread->ur;          cproc_t p = thread->ur;
92  }  }
93  #endif  /* THREAD_CALLS */  #endif  /* defined(THREAD_CALLS) */

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

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