Changeset 08e103d4 in mainline for uspace/lib/posix
- Timestamp:
- 2019-02-05T18:26:05Z (7 years ago)
- Children:
- 1d2f85e
- Parents:
- d066259
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-05 16:16:55)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-05 18:26:05)
- Location:
- uspace/lib/posix
- Files:
-
- 3 edited
-
src/stdio.c (modified) (1 diff)
-
test/stdio.c (modified) (3 diffs)
-
test/stdlib.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/src/stdio.c
rd066259 r08e103d4 238 238 if (failed(vfs_write(fildes, &posix_pos[fildes], str, size, &wr))) 239 239 return -1; 240 return str_n length(str, wr);240 return str_ncode_points(str, wr); 241 241 } 242 242 -
uspace/lib/posix/test/stdio.c
rd066259 r08e103d4 45 45 46 46 PCUT_ASSERT_TRUE(str_lcmp(p, "/tmp/tmp.", 47 str_ length("/tmp/tmp.")) == 0);47 str_code_points("/tmp/tmp.")) == 0); 48 48 49 49 f = fopen(p, "w+x"); … … 64 64 65 65 PCUT_ASSERT_TRUE(str_lcmp(p, "/tmp/tmp.", 66 str_ length("/tmp/tmp.")) == 0);66 str_code_points("/tmp/tmp.")) == 0); 67 67 68 68 f = fopen(p, "w+x"); … … 83 83 84 84 PCUT_ASSERT_TRUE(str_lcmp(p, P_tmpdir "/tmp.", 85 str_ length(P_tmpdir "/tmp.")) == 0);85 str_code_points(P_tmpdir "/tmp.")) == 0); 86 86 87 87 f = fopen(p, "w+x"); -
uspace/lib/posix/test/stdlib.c
rd066259 r08e103d4 54 54 PCUT_ASSERT_TRUE(p == buf); 55 55 PCUT_ASSERT_TRUE(str_lcmp(p, MKSTEMP_TEMPL, 56 str_ length(MKSTEMP_TEMPL) - 6) == 0);56 str_code_points(MKSTEMP_TEMPL) - 6) == 0); 57 57 58 58 file = open(p, O_CREAT | O_EXCL | O_RDWR, 0600); … … 76 76 PCUT_ASSERT_TRUE(p == buf1); 77 77 PCUT_ASSERT_TRUE(str_lcmp(p, MKSTEMP_TEMPL, 78 str_ length(MKSTEMP_TEMPL) - 6) == 0);78 str_code_points(MKSTEMP_TEMPL) - 6) == 0); 79 79 80 80 p = mktemp(buf2); 81 81 PCUT_ASSERT_TRUE(p == buf2); 82 82 PCUT_ASSERT_TRUE(str_lcmp(p, MKSTEMP_TEMPL, 83 str_ length(MKSTEMP_TEMPL) - 6) == 0);83 str_code_points(MKSTEMP_TEMPL) - 6) == 0); 84 84 85 85 PCUT_ASSERT_TRUE(str_cmp(buf1, buf2) != 0);
Note:
See TracChangeset
for help on using the changeset viewer.
