Changeset d1582b50 in mainline for uspace/lib/c
- Timestamp:
- 2020-12-14T20:41:53Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 02fe42e
- Parents:
- 1382446
- git-author:
- Jiri Svoboda <jiri@…> (2020-12-14 20:33:54)
- git-committer:
- Jiri Svoboda <jiri@…> (2020-12-14 20:41:53)
- Location:
- uspace/lib/c
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/adt/hash_table.c
r1382446 rd1582b50 331 331 } 332 332 333 /** Removes an item already present in the table. The item must be in the table. */333 /** Removes an item already present in the table. The item must be in the table. */ 334 334 void hash_table_remove_item(hash_table_t *h, ht_link_t *item) 335 335 { … … 393 393 } 394 394 395 /** Allocates and initializes the desired number of buckets. True if successful. */395 /** Allocates and initializes the desired number of buckets. True if successful. */ 396 396 static bool alloc_table(size_t bucket_cnt, list_t **pbuckets) 397 397 { -
uspace/lib/c/generic/double_to_str.c
r1382446 rd1582b50 245 245 } 246 246 247 /** Rounds the last digit of buf so that it is closest to the converted number. */247 /** Rounds the last digit of buf so that it is closest to the converted number. */ 248 248 static void round_last_digit(uint64_t rest, uint64_t w_dist, uint64_t delta, 249 249 uint64_t digit_val_diff, char *buf, int len) -
uspace/lib/c/generic/getopt.c
r1382446 rd1582b50 56 56 #define PRINT_ERROR ((opterr) && ((*options != ':') \ 57 57 || (IGNORE_FIRST && options[1] != ':'))) 58 /* HelenOS Port - POSIXLY_CORRECT is always false */58 /* HelenOS Port - POSIXLY_CORRECT is always false */ 59 59 #define IS_POSIXLY_CORRECT 0 60 60 #define PERMUTE (!IS_POSIXLY_CORRECT && !IGNORE_FIRST) -
uspace/lib/c/generic/inet/tcp.c
r1382446 rd1582b50 821 821 822 822 if (!ipc_get_imethod(&call)) { 823 /* Hangup */823 /* Hangup */ 824 824 async_answer_0(&call, EOK); 825 825 goto out; -
uspace/lib/c/generic/io/printf_core.c
r1382446 rd1582b50 1151 1151 } 1152 1152 } else { 1153 /* Convert to get the decimal exponent and digit count. */1153 /* Convert to get the decimal exponent and digit count. */ 1154 1154 len = double_to_short_str(val, buf, buf_size, &dec_exp); 1155 1155 assert(0 < len); -
uspace/lib/c/generic/rtld/symbol.c
r1382446 rd1582b50 68 68 elf_symbol_t *s, *sym; 69 69 elf_word nbucket; 70 /* elf_word nchain;*/70 /* elf_word nchain; */ 71 71 elf_word i; 72 72 char *s_name; … … 77 77 sym_table = m->dyn.sym_tab; 78 78 nbucket = m->dyn.hash[0]; 79 /* nchain = m->dyn.hash[1]; XXX Use to check HT range*/79 /* nchain = m->dyn.hash[1]; XXX Use to check HT range */ 80 80 81 81 bucket = elf_hash((unsigned char *)name) % nbucket; -
uspace/lib/c/include/double_to_str.h
r1382446 rd1582b50 46 46 #define MAX_DOUBLE_STR_BUF_SIZE 21 47 47 48 /* Fwd decl. */48 /* Fwd decl. */ 49 49 struct ieee_double_t_tag; 50 50 -
uspace/lib/c/include/nic/eth_phys.h
r1382446 rd1582b50 33 33 #include <stdint.h> 34 34 35 /* ****************************************************/36 /* Definitions of possible supported physical layers */ 37 /*****************************************************/35 /* 36 * Definitions of possible supported physical layers 37 */ 38 38 39 39 /* Ethernet physical layers */ … … 108 108 #define ETH_100GBASE_CR10 0x0080 109 109 110 /* *****************************************/111 /* Auto-negotiation advertisement options */ 112 /******************************************/110 /* 111 * Auto-negotiation advertisement options 112 */ 113 113 114 114 #define ETH_AUTONEG_10BASE_T_HALF UINT32_C(0x00000001) -
uspace/lib/c/test/stdio/scanf.c
r1382446 rd1582b50 317 317 } 318 318 319 /** Decimal ptrdiff_t-sized unsigned int */319 /** Decimal ptrdiff_t-sized unsigned int */ 320 320 PCUT_TEST(dec_unsigned_ptrdiff) 321 321 { -
uspace/lib/c/test/uuid.c
r1382446 rd1582b50 42 42 "69C7DB62-8309-4C58-831B-8C4E4161E8AC", 43 43 44 /* lower case */44 /* lower case */ 45 45 "c511bf24-70cb-422e-933b-2a74ab699a56", 46 46 "7b1abd05-456f-4661-ab62-917685069343",
Note:
See TracChangeset
for help on using the changeset viewer.