Release the item in the static array to the freed list. */
| 99 | |
| 100 | /* Release the item in the static array to the freed list. */ |
| 101 | static void shm_id_free(int id) |
| 102 | { |
| 103 | /* link the freed itme to the single-direction list */ |
| 104 | _shm_ary[id].addr = (size_t)shm_free_list; |
| 105 | shm_free_list = id; |
| 106 | } |
| 107 | |
| 108 | /* Locate the shared memory through 'key' or create a new one. */ |
| 109 | static int _lwp_shmget(size_t key, size_t size, int create) |
no outgoing calls
no test coverage detected