coreutils /coreutils-8.17/gnulib-tests /test-mbsalign.c
2. Copyright (C) 2010-2012 Free Software Foundation, Inc.
3.
19. #include <config.h>
20.
21. #include "mbsalign.h"
22. #include "macros.h"
23. #include <stdlib.h>
32. /* Test unibyte truncation. */
33. width = 4;
34. n = mbsalign ("t\tés", dest, sizeof dest, &width, MBS_ALIGN_LEFT, 0);
35. ASSERT (n == 4);
36.
37. /* Test center alignment. */
38. width = 4;
14 matches | 101 lines | C | Fedora Project
coreutils /coreutils-8.17/lib /mbsalign.c
19. #include <config.h>
20. #include "mbsalign.h"
21.
22. #include <stdlib.h>
110.
111. size_t
112. mbsalign (const char *src, char *dest, size_t dest_size,
113. size_t *width, mbs_align_t align, int flags)
114. {
133. {
134. if (flags & MBA_UNIBYTE_FALLBACK)
135. goto mbsalign_unibyte;
136. else
137. goto mbsalign_cleanup;
13 matches | 270 lines | C | Fedora Project
coreutils /coreutils-8.17/gnulib-tests /Makefile.in
144. test-mbrtowc-w32-4.sh test-mbrtowc-w32-5.sh \
145. test-mbsalign$(EXEEXT) test-mbscasecmp.sh test-mbsinit.sh \
146. test-mbsrtowcs1.sh test-mbsrtowcs2.sh test-mbsrtowcs3.sh \
147. test-mbsrtowcs4.sh test-mbsstr1$(EXEEXT) test-mbsstr2.sh \
277. test-malloc-gnu$(EXEEXT) test-malloca$(EXEEXT) \
278. test-math$(EXEEXT) test-mbrtowc$(EXEEXT) \
279. test-mbrtowc-w32$(EXEEXT) test-mbsalign$(EXEEXT) \
280. test-mbscasecmp$(EXEEXT) test-mbsinit$(EXEEXT) \
281. test-mbsrtowcs$(EXEEXT) test-mbsstr1$(EXEEXT) \
1220. test_mbrtowc_w32_DEPENDENCIES = libtests.a ../lib/libcoreutils.a \
1221. libtests.a $(am__DEPENDENCIES_1)
1222. test_mbsalign_SOURCES = test-mbsalign.c
1223. test_mbsalign_OBJECTS = test-mbsalign.$(OBJEXT)
1224. test_mbsalign_LDADD = $(LDADD)
16 matches | 8116 lines | Unknown | Fedora Project
coreutils /coreutils-8.17/lib /Makefile.in
39. # Generated by gnulib-tool.
40. # Reproduce by: gnulib-tool --import --dir=. --local-dir=gl --lib=libcoreutils --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=gnulib-tests --aux-dir=build-aux --with-tests --avoid=canonicalize-lgpl --avoid=dummy --makefile-name=gnulib.mk --no-conditional-dependencies --no-libtool --macro-prefix=gl acl alignof alloca announce-gen areadlink-with-size argmatch argv-iter assert autobuild backupfile base64 c-strcase c-strtod c-strtold calloc-gnu canon-host canonicalize chown cloexec closein closeout config-h configmake crypto/md5 crypto/sha1 crypto/sha256 crypto/sha512 cycle-check d-ino d-type di-set diacrit dirfd dirname do-release-commit-and-tag dtoastr dup2 environ error euidaccess exclude exitfail faccessat fadvise fchdir fchmodat fchownat fclose fcntl fcntl-safer fdatasync fdl fdopen fdutimensat file-type fileblocks filemode filenamecat filevercmp fnmatch-gnu fopen-safer fprintftime freopen freopen-safer fseeko fstatat fsusage fsync ftello ftoastr ftruncate fts full-read full-write getgroups gethrxtime getline getloadavg getlogin getndelim2 getopt-gnu getpagesize getpass-gnu gettext-h gettime gettimeofday getugroups getusershell git-version-gen gitlog-to-changelog gnu-make gnu-web-doc-update gnumakefile gnupload group-member hard-locale hash hash-pjw heap host-os human idcache ignore-value inttostr inttypes isapipe isatty isblank largefile lchmod lchown ldtoastr lib-ignore linebuffer link link-follow linkat long-options lstat maintainer-makefile malloc-gnu manywarnings mbrlen mbrtowc mbsalign mbswidth memcasecmp memchr memcmp2 mempcpy memrchr mgetgroups mkancesdirs mkdir mkdir-p mkfifo mknod mkstemp mktime modechange mountlist mpsort netinet_in nproc obstack parse-datetime pathmax perl physmem pipe posix-shell posixtm posixver priv-set progname propername pthread putenv quote quotearg randint randperm read-file readlink readtokens readtokens0 readutmp realloc-gnu regex remove rename rmdir root-dev-ino rpmatch safe-read same save-cwd savedir savewd selinux-at settime sig2str sigaction ssize_t stat-macros stat-size stat-time stdbool stdlib-safer stpcpy stpncpy strdup-posix strftime strncat strpbrk strsignal strtod strtoimax strtoumax symlink sys_ioctl sys_resource sys_stat sys_wait termios timer-time timespec tzset uname unicodeio unistd-safer unlink-busy unlinkat unlocked-io unsetenv update-copyright uptime useless-if-before-free userspec utimecmp utimens vasprintf-posix vc-list-files verify verror version-etc-fsf wcswidth wcwidth winsz-ioctl winsz-termios write-any-file xalloc xfreopen xgetcwd xgetgroups xgethostname xmemcoll xnanosleep xprintf xprintf-posix xreadlink xstrtod xstrtoimax xstrtol xstrtold xstrtoumax yesno
41.
42. VPATH = @srcdir@
339. linebuffer.c localcharset.h localcharset.c glthread/lock.h \
340. glthread/lock.c long-options.c malloca.c mbchar.c mbiter.h \
341. mbsalign.c mbsalign.h mbscasecmp.c mbslen.c mbsstr.c \
342. mbswidth.h mbswidth.c mbuiter.h memcasecmp.c memchr2.h \
343. memchr2.c memcmp2.c memcoll.c mgetgroups.c mkancesdirs.c \
403. ldtoastr.$(OBJEXT) linebuffer.$(OBJEXT) localcharset.$(OBJEXT) \
404. lock.$(OBJEXT) long-options.$(OBJEXT) malloca.$(OBJEXT) \
405. mbchar.$(OBJEXT) mbsalign.$(OBJEXT) mbscasecmp.$(OBJEXT) \
406. mbslen.$(OBJEXT) mbsstr.$(OBJEXT) mbswidth.$(OBJEXT) \
407. memcasecmp.$(OBJEXT) memchr2.$(OBJEXT) memcmp2.$(OBJEXT) \
5 matches | 4824 lines | Unknown | Fedora Project
coreutils /coreutils-8.17/lib /gnulib.mk
23. # Generated by gnulib-tool.
24. # Reproduce by: gnulib-tool --import --dir=. --local-dir=gl --lib=libcoreutils --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=gnulib-tests --aux-dir=build-aux --with-tests --avoid=canonicalize-lgpl --avoid=dummy --makefile-name=gnulib.mk --no-conditional-dependencies --no-libtool --macro-prefix=gl acl alignof alloca announce-gen areadlink-with-size argmatch argv-iter assert autobuild backupfile base64 c-strcase c-strtod c-strtold calloc-gnu canon-host canonicalize chown cloexec closein closeout config-h configmake crypto/md5 crypto/sha1 crypto/sha256 crypto/sha512 cycle-check d-ino d-type di-set diacrit dirfd dirname do-release-commit-and-tag dtoastr dup2 environ error euidaccess exclude exitfail faccessat fadvise fchdir fchmodat fchownat fclose fcntl fcntl-safer fdatasync fdl fdopen fdutimensat file-type fileblocks filemode filenamecat filevercmp fnmatch-gnu fopen-safer fprintftime freopen freopen-safer fseeko fstatat fsusage fsync ftello ftoastr ftruncate fts full-read full-write getgroups gethrxtime getline getloadavg getlogin getndelim2 getopt-gnu getpagesize getpass-gnu gettext-h gettime gettimeofday getugroups getusershell git-version-gen gitlog-to-changelog gnu-make gnu-web-doc-update gnumakefile gnupload group-member hard-locale hash hash-pjw heap host-os human idcache ignore-value inttostr inttypes isapipe isatty isblank largefile lchmod lchown ldtoastr lib-ignore linebuffer link link-follow linkat long-options lstat maintainer-makefile malloc-gnu manywarnings mbrlen mbrtowc mbsalign mbswidth memcasecmp memchr memcmp2 mempcpy memrchr mgetgroups mkancesdirs mkdir mkdir-p mkfifo mknod mkstemp mktime modechange mountlist mpsort netinet_in nproc obstack parse-datetime pathmax perl physmem pipe posix-shell posixtm posixver priv-set progname propername pthread putenv quote quotearg randint randperm read-file readlink readtokens readtokens0 readutmp realloc-gnu regex remove rename rmdir root-dev-ino rpmatch safe-read same save-cwd savedir savewd selinux-at settime sig2str sigaction ssize_t stat-macros stat-size stat-time stdbool stdlib-safer stpcpy stpncpy strdup-posix strftime strncat strpbrk strsignal strtod strtoimax strtoumax symlink sys_ioctl sys_resource sys_stat sys_wait termios timer-time timespec tzset uname unicodeio unistd-safer unlink-busy unlinkat unlocked-io unsetenv update-copyright uptime useless-if-before-free userspec utimecmp utimens vasprintf-posix vc-list-files verify verror version-etc-fsf wcswidth wcwidth winsz-ioctl winsz-termios write-any-file xalloc xfreopen xgetcwd xgetgroups xgethostname xmemcoll xnanosleep xprintf xprintf-posix xreadlink xstrtod xstrtoimax xstrtol xstrtold xstrtoumax yesno
25.
26.
2348. ## end gnulib module mbrtowc
2349.
2350. ## begin gnulib module mbsalign
2351.
2352. libcoreutils_a_SOURCES += mbsalign.c mbsalign.h
2353.
2354. ## end gnulib module mbsalign
2355.
2356. ## begin gnulib module mbscasecmp
4 matches | 5627 lines | Unknown | Fedora Project
coreutils /coreutils-8.17/gnulib-tests /gnulib.mk
1231.
1232. ## begin gnulib module mbsalign-tests
1233.
1234. TESTS += test-mbsalign
1235. check_PROGRAMS += test-mbsalign
1236. EXTRA_DIST += test-mbsalign.c macros.h
1237.
1238. ## end gnulib module mbsalign-tests
1239.
1240. ## begin gnulib module mbscasecmp-tests
5 matches | 2651 lines | Unknown | Fedora Project
coreutils /coreutils-8.17/gnulib-tests /gnulib.mk.configure
1231.
1232. ## begin gnulib module mbsalign-tests
1233.
1234. TESTS += test-mbsalign
1235. check_PROGRAMS += test-mbsalign
1236. EXTRA_DIST += test-mbsalign.c macros.h
1237.
1238. ## end gnulib module mbsalign-tests
1239.
1240. ## begin gnulib module mbscasecmp-tests
5 matches | 2651 lines | Unknown | Fedora Project
coreutils /coreutils-8.17/src /ls.c.roodirsymlink
108. #include "areadlink.h"
109. #include "mbsalign.h"
110.
111. /* Include <sys/capability.h> last to avoid a clash of <sys/types.h>
1050. size_t width = curr_max_width;
1051.
1052. size_t req = mbsalign (nl_langinfo (ABMON_1 + i),
1053. abmon[i], sizeof (abmon[i]),
1054. &width, MBS_ALIGN_LEFT, 0);
2 matches | 4884 lines | Unknown | Fedora Project
coreutils /coreutils-8.17/src /ls.c.selinux
108. #include "areadlink.h"
109. #include "mbsalign.h"
110.
111. /* Include <sys/capability.h> last to avoid a clash of <sys/types.h>
1050. size_t width = curr_max_width;
1051.
1052. size_t req = mbsalign (nl_langinfo (ABMON_1 + i),
1053. abmon[i], sizeof (abmon[i]),
1054. &width, MBS_ALIGN_LEFT, 0);
2 matches | 4879 lines | Unknown | Fedora Project
coreutils /coreutils-8.17/src /ls.c
108. #include "areadlink.h"
109. #include "mbsalign.h"
110.
111. /* Include <sys/capability.h> last to avoid a clash of <sys/types.h>
1059. size_t width = curr_max_width;
1060.
1061. size_t req = mbsalign (nl_langinfo (ABMON_1 + i),
1062. abmon[i], sizeof (abmon[i]),
1063. &width, MBS_ALIGN_LEFT, 0);
2 matches | 4978 lines | C | Fedora Project
coreutils /coreutils-8.17 /bootstrap.conf
1 matches | 357 lines | Unknown | Fedora Project
coreutils /coreutils-8.17/lib /mbsalign.h
41. size_t
42. mbsalign (const char *src, char *dest, size_t dest_size,
43. size_t *width, mbs_align_t align, int flags);
44.
45. char *
46. ambsalign (const char *src, size_t *width, mbs_align_t align, int flags);
47.
2 matches | 47 lines | C/C++ Header | Fedora Project
coreutils /coreutils-8.17 /ChangeLog
4302. * src/df.c (print_table): Don't try to output NULL
4303. if ambsalign() can't allocate memory. Instead just
4304. output the unaligned text.
4305.
4589. maint: remove doubled words in comments, e.g., s/to to/to/
4590. * tests/ls/color-norm: s/to to/to/
4591. * gl/lib/mbsalign.h (mbs_align_t): s/or or/or/
4592. * src/extent-scan.c (extent_scan_read): s/the the/the/
4593. * src/libstdbuf.c: s/the the/the/
4930.
4931. maint: use wcswidth from gnulib
4932. * gl/lib/mbsalign.c (rpl_wcswidth): Remove this in favor
4933. of the equivalent wcswidth replacement in gnulib.
4934. * bootstrap.conf: Depend on the wcswidth module.
29 matches | 19942 lines | Unknown | Fedora Project
coreutils /coreutils-8.17/m4 /gnulib-comp.m4
401. # Code from module mbrtowc-tests:
402. # Code from module mbsalign:
403. # Code from module mbsalign-tests:
404. # Code from module mbscasecmp:
405. # Code from module mbscasecmp-tests:
2685. lib/mbrlen.c
2686. lib/mbrtowc.c
2687. lib/mbsalign.c
2688. lib/mbsalign.h
2689. lib/mbscasecmp.c
2690. lib/mbsinit.c
3641. tests/test-mbrtowc3.sh
3642. tests/test-mbrtowc4.sh
3643. tests/test-mbsalign.c
5 matches | 3880 lines | m4 | Fedora Project
coreutils /coreutils-8.17/src /df.c.dfdirect
31. #include "human.h"
32. #include "mbsalign.h"
33. #include "mbswidth.h"
34. #include "mountlist.h"
229. else
230. {
231. cell = ambsalign (cell, &width, alignments[field], 0);
232. /* When ambsalign fails, output unaligned data. */
233. fputs (cell ? cell : table[row][field], stdout);
234. free (cell);
3 matches | 1111 lines | Unknown | Fedora Project
coreutils /coreutils-8.17/src /df.c
31. #include "human.h"
32. #include "mbsalign.h"
33. #include "mbswidth.h"
34. #include "mountlist.h"
234. else
235. {
236. cell = ambsalign (cell, &width, alignments[field], 0);
237. /* When ambsalign fails, output unaligned data. */
238. fputs (cell ? cell : table[row][field], stdout);
239. free (cell);
3 matches | 1142 lines | C | Fedora Project

