4.115
Last change
on this file since a0e6c73 was
9b4422a2,
checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24
|
Remove All CVS Id Strings Possible Using a Script
Script does what is expected and tries to do it as
smartly as possible.
+ remove occurrences of two blank comment lines
next to each other after Id string line removed.
+ remove entire comment blocks which only exited to
contain CVS Ids
+ If the processing left a blank line at the top of
a file, it was removed.
|
-
Property mode set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | /* |
---|
2 | * COPYRIGHT (c) 1989-2007. |
---|
3 | * On-Line Applications Research Corporation (OAR). |
---|
4 | * |
---|
5 | * The license and distribution terms for this file may be |
---|
6 | * found in the file LICENSE in this distribution or at |
---|
7 | * http://www.rtems.com/license/LICENSE. |
---|
8 | */ |
---|
9 | |
---|
10 | #if HAVE_CONFIG_H |
---|
11 | #include "config.h" |
---|
12 | #endif |
---|
13 | |
---|
14 | #include <errno.h> |
---|
15 | #include <limits.h> |
---|
16 | #include <pthread.h> |
---|
17 | #include <string.h> |
---|
18 | |
---|
19 | #include <rtems/system.h> |
---|
20 | #include <rtems/score/thread.h> |
---|
21 | #include <rtems/score/wkspace.h> |
---|
22 | #include <rtems/posix/key.h> |
---|
23 | |
---|
24 | /* |
---|
25 | * 17.1.2 Thread-Specific Data Management, P1003.1c/Draft 10, p. 165 |
---|
26 | */ |
---|
27 | |
---|
28 | int pthread_setspecific( |
---|
29 | pthread_key_t key, |
---|
30 | const void *value |
---|
31 | ) |
---|
32 | { |
---|
33 | register POSIX_Keys_Control *the_key; |
---|
34 | uint32_t api; |
---|
35 | uint32_t index; |
---|
36 | Objects_Locations location; |
---|
37 | |
---|
38 | the_key = _POSIX_Keys_Get( key, &location ); |
---|
39 | switch ( location ) { |
---|
40 | |
---|
41 | case OBJECTS_LOCAL: |
---|
42 | api = _Objects_Get_API( _Thread_Executing->Object.id ); |
---|
43 | index = _Objects_Get_index( _Thread_Executing->Object.id ); |
---|
44 | the_key->Values[ api ][ index ] = (void *) value; |
---|
45 | _Thread_Enable_dispatch(); |
---|
46 | return 0; |
---|
47 | |
---|
48 | #if defined(RTEMS_MULTIPROCESSING) |
---|
49 | case OBJECTS_REMOTE: /* should never happen */ |
---|
50 | #endif |
---|
51 | case OBJECTS_ERROR: |
---|
52 | break; |
---|
53 | } |
---|
54 | |
---|
55 | return EINVAL; |
---|
56 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.