Changeset 8a637a4 in mainline
- Timestamp:
- 2015-09-30T17:47:41Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1f7584
- Parents:
- a955fcc
- Files:
-
- 24 edited
Legend:
- Unmodified
- Added
- Removed
-
abi/include/abi/errno.h
ra955fcc r8a637a4 62 62 #define EPARTY -8 63 63 64 #define EEXIST S-9 /* Entry already exists */64 #define EEXIST -9 /* Entry already exists */ 65 65 #define EBADMEM -10 /* Bad memory pointer */ 66 66 #define ENOTSUP -11 /* Not supported */ -
kernel/generic/src/ipc/event.c
ra955fcc r8a637a4 251 251 * 252 252 * @return EOK if the subscription was successful. 253 * @return EEXIST Sif the notifications of the given type are253 * @return EEXIST if the notifications of the given type are 254 254 * already subscribed. 255 255 * … … 269 269 res = EOK; 270 270 } else 271 res = EEXIST S;271 res = EEXIST; 272 272 273 273 spinlock_unlock(&event->lock); … … 282 282 * 283 283 * @return EOK if the subscription was successful. 284 * @return EEXIST Sif the notifications of the given type are284 * @return EEXIST if the notifications of the given type are 285 285 * already subscribed. 286 286 * … … 334 334 * @return EOK on success. 335 335 * @return ELIMIT on unknown event type. 336 * @return EEXIST Sif the notifications of the given type are336 * @return EEXIST if the notifications of the given type are 337 337 * already subscribed. 338 338 * -
kernel/generic/src/ipc/irq.c
ra955fcc r8a637a4 351 351 352 352 free(irq); 353 return EEXIST S;353 return EEXIST; 354 354 } 355 355 -
uspace/app/bdsh/errors.h
ra955fcc r8a637a4 42 42 #define CL_ENOTSUP 6 43 43 #define CL_EEXEC 7 44 #define CL_EEXIST S844 #define CL_EEXIST 8 45 45 #define CL_ETOOBIG 9 46 46 -
uspace/app/trace/errors.c
ra955fcc r8a637a4 46 46 [-EPERM] = { "EPERM", "Permission denied" }, 47 47 [-EHANGUP] = { "EHANGUP", "Answerbox closed connection" }, 48 [-EEXIST S] = { "EEXISTS", "Entry already exists" },48 [-EEXIST] = { "EEXIST", "Entry already exists" }, 49 49 [-EBADMEM] = { "EBADMEM", "Bad memory pointer" }, 50 50 -
uspace/app/untar/main.c
ra955fcc r8a637a4 104 104 { 105 105 int rc = mkdir(header->filename, 0755); 106 if ( (rc == EEXIST) || (rc == EEXISTS)) {106 if (rc == EEXIST) { 107 107 // printf("Note: directory %s already exists.\n", header->filename); 108 108 rc = EOK; -
uspace/app/vuhid/device.c
ra955fcc r8a637a4 123 123 /* Already used interface. */ 124 124 if (iface->vuhid_data != NULL) { 125 return EEXIST S;125 return EEXIST; 126 126 } 127 127 -
uspace/drv/test/test1/test1.c
ra955fcc r8a637a4 186 186 (void) register_fun_verbose(dev, 187 187 "cloning myself twice ;-)", "clone", 188 "virtual&test1", 10, EEXIST S, NULL);188 "virtual&test1", 10, EEXIST, NULL); 189 189 } else if (str_cmp(dev_name, "clone") == 0) { 190 190 (void) register_fun_verbose(dev, -
uspace/lib/c/include/errno.h
ra955fcc r8a637a4 47 47 #define ENOTDIR (-258) 48 48 #define ENOSPC (-259) 49 #define EEXIST (-260)50 49 #define ENOTEMPTY (-261) 51 50 #define EBADF (-262) -
uspace/lib/drv/generic/driver.c
ra955fcc r8a637a4 945 945 if (rc != EOK) { 946 946 printf("Error: Failed to register driver with device manager " 947 "(%s).\n", (rc == EEXIST S) ? "driver already started" :947 "(%s).\n", (rc == EEXIST) ? "driver already started" : 948 948 str_error(rc)); 949 949 -
uspace/lib/nettl/src/amap.c
ra955fcc r8a637a4 349 349 * @param aepp Place to store actual endpoint pair, possibly with allocated port 350 350 * 351 * @return EOK on success, EEXIST Sif conflicting epp exists,351 * @return EOK on success, EEXIST if conflicting epp exists, 352 352 * ENOMEM if out of memory 353 353 */ … … 394 394 * @param aepp Place to store actual endpoint pair, possibly with allocated port 395 395 * 396 * @return EOK on success, EEXIST Sif conflicting epp exists,396 * @return EOK on success, EEXIST if conflicting epp exists, 397 397 * ENOMEM if out of memory 398 398 */ … … 438 438 * @param aepp Place to store actual endpoint pair, possibly with allocated port 439 439 * 440 * @return EOK on success, EEXIST Sif conflicting epp exists,440 * @return EOK on success, EEXIST if conflicting epp exists, 441 441 * ENOMEM if out of memory 442 442 */ … … 482 482 * @param aepp Place to store actual endpoint pair, possibly with allocated port 483 483 * 484 * @return EOK on success, EEXIST Sif conflicting epp exists,484 * @return EOK on success, EEXIST if conflicting epp exists, 485 485 * ENOMEM if out of memory 486 486 */ … … 515 515 * @param aepp Place to store actual endpoint pair, possibly with allocated port 516 516 * 517 * @return EOK on success, EEXIST Sif conflicting epp exists,517 * @return EOK on success, EEXIST if conflicting epp exists, 518 518 * ENOMEM if out of memory 519 519 */ -
uspace/lib/nettl/src/portrng.c
ra955fcc r8a637a4 88 88 * @param apnum Place to store allocated port number 89 89 * 90 * @return EOK on success, ENOENT if no free port number found, EEXIST S90 * @return EOK on success, ENOENT if no free port number found, EEXIST 91 91 * if @a pnum is specified but it is already allocated, 92 92 * EINVAL if @a pnum is specified from the system range, but … … 137 137 if (port->pn == pnum) { 138 138 log_msg(LOG_DEFAULT, LVL_DEBUG2, "port already used"); 139 return EEXIST S;139 return EEXIST; 140 140 } 141 141 } -
uspace/lib/usbdev/src/pipesinit.c
ra955fcc r8a637a4 190 190 191 191 if (ep_mapping->present) { 192 return EEXIST S;192 return EEXIST; 193 193 } 194 194 -
uspace/lib/usbhost/src/usb_device_manager.c
ra955fcc r8a637a4 150 150 if (instance->devices[address].handle != 0) { 151 151 fibril_mutex_unlock(&instance->guard); 152 return EEXIST S;152 return EEXIST; 153 153 } 154 154 instance->devices[address].handle = handle; -
uspace/lib/usbhost/src/usb_endpoint_manager.c
ra955fcc r8a637a4 253 253 if (endpoint != NULL) { 254 254 fibril_mutex_unlock(&instance->guard); 255 return EEXIST S;255 return EEXIST; 256 256 } 257 257 list_append(&ep->link, get_list(instance, ep->address)); … … 339 339 if (ep != NULL) { 340 340 fibril_mutex_unlock(&instance->guard); 341 return EEXIST S;341 return EEXIST; 342 342 } 343 343 -
uspace/srv/audio/hound/audio_sink.c
ra955fcc r8a637a4 103 103 if (!pcm_format_is_any(&sink->format)) { 104 104 log_debug("Sink %s already has a format", sink->name); 105 return EEXIST S;105 return EEXIST; 106 106 } 107 107 const pcm_format_t old_format = sink->format; -
uspace/srv/audio/hound/hound.c
ra955fcc r8a637a4 267 267 if (dev->id == id) { 268 268 log_debug("Device with id %zu is already present", id); 269 return EEXIST S;269 return EEXIST; 270 270 } 271 271 } … … 274 274 if (dev) { 275 275 log_debug("Device with name %s is already present", name); 276 return EEXIST S;276 return EEXIST; 277 277 } 278 278 … … 341 341 log_debug("Source by that name already exists"); 342 342 fibril_mutex_unlock(&hound->list_guard); 343 return EEXIST S;343 return EEXIST; 344 344 } 345 345 list_append(&source->link, &hound->sources); … … 365 365 log_debug("Sink by that name already exists"); 366 366 fibril_mutex_unlock(&hound->list_guard); 367 return EEXIST S;367 return EEXIST; 368 368 } 369 369 list_append(&sink->link, &hound->sinks); -
uspace/srv/devman/drv_conn.c
ra955fcc r8a637a4 101 101 driver->name); 102 102 fibril_mutex_unlock(&driver->driver_mutex); 103 async_answer_0(callid, EEXIST S);103 async_answer_0(callid, EEXIST); 104 104 return NULL; 105 105 } … … 278 278 fibril_rwlock_write_unlock(&tree->rwlock); 279 279 dev_del_ref(pdev); 280 async_answer_0(callid, EEXIST S);280 async_answer_0(callid, EEXIST); 281 281 printf(NAME ": Warning, driver tried to register `%s' twice.\n", 282 282 fun_name); -
uspace/srv/locsrv/locsrv.c
ra955fcc r8a637a4 412 412 { 413 413 if (server == NULL) 414 return EEXIST S;414 return EEXIST; 415 415 416 416 fibril_mutex_lock(&servers_list_mutex); … … 511 511 free(service->name); 512 512 free(service); 513 async_answer_0(iid, EEXIST S);513 async_answer_0(iid, EEXIST); 514 514 return; 515 515 } … … 951 951 loc_namespace_find_id(IPC_GET_ARG1(*icall)); 952 952 if (namespace == NULL) 953 async_answer_0(iid, EEXIST S);953 async_answer_0(iid, EEXIST); 954 954 else 955 955 async_answer_1(iid, EOK, namespace->refcnt); -
uspace/srv/net/inetsrv/addrobj.c
ra955fcc r8a637a4 87 87 /* Duplicate address name */ 88 88 fibril_mutex_unlock(&addr_list_lock); 89 return EEXIST S;89 return EEXIST; 90 90 } 91 91 -
uspace/srv/net/tcp/conn.c
ra955fcc r8a637a4 1223 1223 rc = amap_insert(amap, &conn->ident, conn, af_allow_system, &aepp); 1224 1224 if (rc != EOK) { 1225 assert(rc != EEXIST S);1225 assert(rc != EEXIST); 1226 1226 assert(rc == ENOMEM); 1227 1227 log_msg(LOG_DEFAULT, LVL_ERROR, "Out of memory."); -
uspace/srv/ns/service.c
ra955fcc r8a637a4 143 143 { 144 144 if (hash_table_find(&service_hash_table, &service)) 145 return EEXIST S;145 return EEXIST; 146 146 147 147 hashed_service_t *hashed_service = -
uspace/srv/ns/task.c
ra955fcc r8a637a4 235 235 ht_link_t *link = hash_table_find(&phone_to_id, &call->in_phone_hash); 236 236 if (link != NULL) 237 return EEXIST S;237 return EEXIST; 238 238 239 239 p2i_entry_t *entry = (p2i_entry_t *) malloc(sizeof(p2i_entry_t)); -
uspace/srv/vfs/vfs_register.c
ra955fcc r8a637a4 162 162 fibril_mutex_unlock(&fs_list_lock); 163 163 free(fs_info); 164 async_answer_0(rid, EEXIST S);164 async_answer_0(rid, EEXIST); 165 165 return; 166 166 }
Note:
See TracChangeset
for help on using the changeset viewer.