summaryrefslogtreecommitdiff
path: root/Source/kwsys/Directory.cxx
AgeCommit message (Collapse)AuthorFilesLines
2016-10-11Remove unnecessary log messages.tizen_4.0.m2_releasetizen_4.0.m1_releasetizen_4.0.IoT.p2_releasetizen_4.0.IoT.p1_releasesubmit/tizen_base/20161013.120021submit/tizen_4.0_base/20170828.000001submit/tizen_4.0_base/20170828.000000submit/tizen_4.0_base/20170811.071500submit/tizen_3.0_base/20161028.062323submit/tizen_3.0.m2_base/20170104.073748submit/tizen_3.0.m2_base/20170104.072059accepted/tizen/base/20161016.035647accepted/tizen/4.0/base/20170828.221332accepted/tizen/4.0/base/20170811.093030accepted/tizen/3.0/base/20161028.102928accepted/tizen/3.0.m2/base/20170104.082105tizen_base_2.8.12.2tizen_4.0_tvtizen_4.0_basetizen_3.0_basetizen_3.0.m2_basesandbox/tcshin93/3.9.4_testaccepted/tizen_4.0_baseaccepted/tizen_3.0_baseaccepted/tizen_3.0.m2_baseJunghyun Kim1-2/+0
Change-Id: Ib216a5e593ddf5a7c8fe1f3f39e7a559387d0edb Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
2016-08-05List of files are sorted when using aux_source_directory() and file(glob).submit/tizen_base/20160805.051525accepted/tizen/base/20160805.171158Junghyun Kim1-6/+12
If aux_source_directory(. SRCS) or file(glob SRCS "*.c") is used, files in SRCS are not sorted. This can cause different orders of files across machines. Even though it does not have any correctness issue, there is a problem. If we have a build infrastructure (e.g., OBS), the result binaries can be different on each machine. In this case, build results can be different on two different machines even if we have the same source files. For example, 1. ld -o liba.a a.o b.o SRCS=a.c b.c 2. ld -o libb.a b.o a.o SRCS=b.c a.c Then, liba.a and libb.a are different. REASON This is because of the system call readdir(). The system call readdir() returns a file in the directory in any order. SOLUTION Intead of readdir(), scandir() is used with alphasort(). This makes the list of files are sorted alphabetically. AMENDED 1. another free() is added to free malloc()ed objects (Reviewed by Chan Lee). 2. remove "#include <errno.h>" (Reviewed by Chan Lee). Change-Id: Id8aff23b2761ea04c1c49c91fcc511b9bc2b1228 Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
2012-10-30Imported Upstream version 2.8.9upstream/2.8.9Anas Nashif1-0/+250