summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2019-02-01Replace hardcoded gcc with CC, define HOSTCCsandbox/nmerinov/llvmNikolai Merinov1-1/+1
2018-04-17Revert "Add -Wprint-abs-path to generate absolute path for buildwarnings"submit/tizen_5.0/20181101.000008submit/tizen/20180417.090848accepted/tizen/unified/20180417.173239accepted/tizen/5.0/unified/20181102.025606tizen_5.0accepted/tizen_5.0_unifiedJaehun Jeong2-2/+2
This reverts commit 06c4c30907004afb917eb3c00856adadbffebfda. Change-Id: I8bf28b2a5e5426b8f002ce2cbdfcfa4b2a0be28b
2018-03-15Add -Wprint-abs-path to generate absolute path for buildwarningssubmit/tizen/20180320.043504submit/tizen/20180318.232021submit/tizen/20180318.231541accepted/tizen/unified/20180320.141338Jaehun Jeong2-2/+2
Change-Id: Ife735f35dacad281c5d291eaad32fd867aa796dd Signed-off-by: Jaehun Jeong <jh4u.jeong@samsung.com>
2017-09-28Fix defect detected by static analyzersubmit/tizen/20170928.232941accepted/tizen/unified/20170929.081853Jiung1-4/+5
Change-Id: Ida9d618ce50bed3500414cd3752d7999c338468c Signed-off-by: Yu jiung <jiung.yu@samsung.com>
2017-06-01[dhcpd] Append DHCP option fields to DHCP ACKsubmit/tizen_4.0/20170828.100007submit/tizen_4.0/20170811.094300submit/tizen/20170607.064606accepted/tizen/unified/20170608.072307accepted/tizen/4.0/unified/20170828.221523accepted/tizen/4.0/unified/20170816.012444Seonah Moon1-0/+2
Change-Id: I265952ac7adfd829c1e4ff46639e4b6afc097583 Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
2016-08-17Defragment per-profile dependenciestizen_4.0.m1_releasesubmit/tizen_unified/20170308.100417submit/tizen_3.0_wearable/20161015.000006submit/tizen_3.0_tv/20161015.000006submit/tizen_3.0_mobile/20161015.000007submit/tizen_3.0_ivi/20161010.000007submit/tizen_3.0_common/20161104.104000submit/tizen_3.0.m2/20170104.093755submit/tizen/20160831.004932accepted/tizen/wearable/20160831.124336accepted/tizen/unified/20170309.040646accepted/tizen/tv/20160831.124315accepted/tizen/mobile/20160831.124304accepted/tizen/ivi/20160831.124353accepted/tizen/common/20160831.161415accepted/tizen/3.0/wearable/20161015.084349accepted/tizen/3.0/tv/20161016.005944accepted/tizen/3.0/mobile/20161015.034428accepted/tizen/3.0/ivi/20161011.065215accepted/tizen/3.0/common/20161114.111920accepted/tizen/3.0.m2/wearable/20170105.025743accepted/tizen/3.0.m2/tv/20170105.025657accepted/tizen/3.0.m2/mobile/20170105.025510tizen_3.0_tvtizen_3.0.m2tizen_3.0accepted/tizen_wearableaccepted/tizen_tvaccepted/tizen_mobileaccepted/tizen_iviaccepted/tizen_commonaccepted/tizen_3.0_wearableaccepted/tizen_3.0_tvaccepted/tizen_3.0_mobileaccepted/tizen_3.0_iviaccepted/tizen_3.0_commonaccepted/tizen_3.0.m2_wearableaccepted/tizen_3.0.m2_tvaccepted/tizen_3.0.m2_mobileMyungJoo Ham4-16/+44
General packages especially at lower layers should avoid being direclty dependent on profile information, which enforces build system to build things redundantly and makes much difficult to configure a system. Change-Id: I5ee2715c537c4ad61c903a436bd8f8552111bd49 Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
2016-06-22Replace ping command with BSD-3 clause based for temporal usesubmit/tizen/20160721.043037accepted/tizen/wearable/20160721.091627accepted/tizen/tv/20160721.091619accepted/tizen/mobile/20160721.092745accepted/tizen/ivi/20160721.092137accepted/tizen/common/20160721.180419Yu Jiung3-111/+514
Change-Id: I57de29f91d945f2122c27f57bc8fd2a833eb0b74 Signed-off-by: Yu jiung <jiung.yu@samsung.com>
2016-05-20Add BSD License fileSeonah Moon2-3/+29
Change-Id: Ida6ed51cefb34826dbc01792155bcab7d280c99a Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
2016-03-23Fix Licensesubmit/tizen/20160328.042832submit/tizen/20160323.054927accepted/tizen/wearable/20160405.005257accepted/tizen/wearable/20160323.134925accepted/tizen/tv/20160405.005240accepted/tizen/tv/20160323.135304accepted/tizen/mobile/20160405.005227accepted/tizen/mobile/20160323.134807accepted/tizen/ivi/20160405.005315accepted/tizen/ivi/20160323.140529accepted/tizen/common/20160329.050418accepted/tizen/common/20160323.184656Yu Jiung1-3/+3
Change-Id: I69ab6705c718f52afaaea472d1be911bcf56e683
2016-03-21Add ping command for TV profile and samsung developed nslookup commandYu Jiung7-2/+208
Change-Id: I0680bbfdd709d26064ae67f595da692bf60b7dae
2016-03-17Revert back to upstream 0.6.0 and remove all except for dhcp relatedsubmit/tizen/20160323.053424Yu Jiung63-1780/+476
Change-Id: Ide839cfefc7c4049715f86a2bf769c333175b2bf
2016-01-04Merge "use consistent string for security context" into tizenHyejin Kim2-4/+4
2015-12-17Revert "Support patch, diff, sed, grep, egrep, fgrep, find commands"Hurnjoo Lee3-32/+9
This reverts commit db57410065811e90515b62e22945f9b96140a3ac. Change-Id: I71086db47d303cce381d769566988e68846d0dd9 Signed-off-by: Hurnjoo Lee <hurnjoo.lee@samsung.com>
2015-12-15Support patch, diff, sed, grep, egrep, fgrep, find commandsHurnjoo Lee3-9/+32
Change-Id: I13abf52981096e383bf2abb0afb013a9f02d5e05 Signed-off-by: Hurnjoo Lee <hurnjoo.lee@samsung.com>
2015-10-13use consistent string for security contextHyejin Kim2-4/+4
Change-Id: Ieb878c674e058170051b1e6256a88da8cc3bf819
2015-09-24support smack feature for install, mv, cp and stattizen_3.0.m2.a1_tv_releasetizen_3.0.m2.a1_mobile_releasesubmit/tizen_ivi/20160217.000007submit/tizen_ivi/20160217.000000submit/tizen_common/20151229.154718submit/tizen_common/20151229.144031submit/tizen_common/20151229.142028submit/tizen/20160323.232819submit/tizen/20150924.044319accepted/tizen/wearable/20160323.233632accepted/tizen/wearable/20150924.051217accepted/tizen/tv/20160323.233621accepted/tizen/tv/20150924.051206accepted/tizen/mobile/20160323.233607accepted/tizen/mobile/20150924.051151accepted/tizen/ivi/20160323.233653accepted/tizen/ivi/20160218.025722accepted/tizen/common/20160324.084130Hyejin Kim3-33/+147
and enable all smack feature Change-Id: I303da3d33c726c8b1125a8d85fd309a41e7368f6
2015-09-22support nslookup commandHyejin Kim5-1/+192
Change-Id: I8f677c6b41e1244af404e4fe995599780d01480e
2015-09-04unregister service for klogd, syslogdtizen_3.0.m1_tv_releasetizen_3.0.m1_mobile_releasesubmit/tizen_common/20151026.085049submit/tizen_common/20151023.083358submit/tizen/20150904.073051accepted/tizen/wearable/20150904.105108accepted/tizen/tv/20150904.104917accepted/tizen/mobile/20150904.104647tizen_3.0.m1_tvtizen_3.0.m1_mobileHyejin Kim1-13/+13
Change-Id: Ie14cf29b932ad1a9c0729595f4482b5cb8ef3027
2015-09-02syslogd : add the buffering option to keep logs in memory buffersubmit/tizen/20150903.070527accepted/tizen/wearable/20150903.111041accepted/tizen/tv/20150903.110912accepted/tizen/mobile/20150903.110754Hyejin Kim1-4/+26
Change-Id: Ia6f475fa1e6bef4b867694a398f6f15d34480d6e
2015-08-20Merge branch 'upstream' into tizensubmit/tizen/20150901.111553accepted/tizen/wearable/20150902.004616accepted/tizen/tv/20150902.004610accepted/tizen/mobile/20150902.004600Hyejin Kim47-426/+1292
And version 0.6.0 applied Change-Id: Iabc3dc2fc4bd984a114445d8b70df57eb43c3b16
2015-08-18apply default manifest for service of syslogd, klogdsubmit/tizen/20150818.071556accepted/tizen/wearable/20150818.101647accepted/tizen/tv/20150818.101344accepted/tizen/mobile/20150818.100907Yeongdeok Suh2-24/+6
Change-Id: If720a5a800aea7764f81325fed678a1b52dbb419
2015-08-12Merge remote-tracking branch 'toybox/master' into upstreamupstreamHyejin Kim45-424/+1286
2015-08-12syslogd,klogd : remove SmackProcessLabel and change install path of .service ↵submit/tizen/20150812.061719accepted/tizen/wearable/20150812.110531accepted/tizen/tv/20150812.110514accepted/tizen/mobile/20150812.110503Yeongdeok Suh3-11/+9
file Change-Id: I102fa968d392e6b120f3f154d7fd816214d85998 Signed-off-by: Yeongdeok Suh <yduck.suh@samsung.com>
2015-08-11Fix more date bugs.Elliott Hughes2-24/+43
Correctly and portably check for non-normal dates, and explicitly show the "before" and "after" dates (in the format of the user's choosing). Clear the struct tm in date_main rather than parse_default because on one path the struct tm is actually initialized. Explicitly clear the tm_sec field in parse_default because -- experiment shows -- that should not be preserved. Only do the "what does this 2-digit year mean?" dance if we actually parsed a 2-digit year. Show the right string in the error message if strptime fails. Also add more tests, and use UTC in the tests to avoid flakiness.
2015-08-11Bugfixes from Elliott Hughes: debug code got checked in (oops) andRob Landley1-3/+2
uninitialized trash in struct tm fields could segfault glibc's strftime().
2015-08-08Different tools have different ideas about what human-readable outputElliott Hughes4-7/+9
looks like. dd uses "7 MB" where du uses "7M", for example. this patch adds flags, similar to the BSD humanize_number. most callers will pass 0.
2015-08-08First pass at proper bunzip2 command line handling.Rob Landley2-12/+83
2015-08-08Fix ls -l user/group field ordering.Elliott Hughes1-6/+7
It's user then group, not the other way round.
2015-08-08More Android roadmap updates.Elliott Hughes1-10/+4
mkbootimg was rewritten as a python script a while ago, and I just deleted gpttool. (gptfdisk is in external/, but I'm assuming the existing entry for fdisk is meant to cover that.)
2015-08-08login: execl() requires a path, not a file nameIsaac Dunham1-2/+2
2015-08-08Isaac Dunham pointed out that SIGINT's handler was set twice in init.c.Rob Landley1-1/+0
2015-08-08scripts/mkflags.c: add missing unistd.h, ctype.hIsaac Dunham1-0/+2
2015-08-08modprobe: use -q to silenceIsaac Dunham1-2/+3
2015-08-08modprobe: use basename_r()Isaac Dunham1-4/+2
2015-08-08modprobe: delete perror_exit() that makes no senseIsaac Dunham1-1/+0
Given modprobe -a, it's important to not exit early for a failure to load a module; additionally, the rest of the code presumes that this can fail without exiting.
2015-08-08Fix switch_root implementation.Alistair Strachan1-1/+24
Add the MS_MOVE of cwd to / and chroot into it. chdir is also called to ensure cwd does not point outside the chroot. The switch_root toy was also blocking any case where NEW_ROOT/init did not exist, even though NEW_INIT was a required parameter and did not have to be '/init'. Change it to handle any NEW_INIT passed as either a relative or absolute path. With this change, the switch_root toy actually works from initramfs.
2015-08-08Teach date @unixtime[.fraction], switch -s to be -D (matching busybox andRob Landley1-45/+70
not stomping on gnu's "an extra argument tells it to set the time so let's add -s to do the same thing" extension). Nanoseconds aren't uniformly supported by these apis, so had to stick it in GLOBALS() and pull it out later. Awkward, open to suggestions for a better way. (Also, the setting API is microseconds, not nanoseconds. Collect nano, convert to micro so we can switch APIs later without changing date's external UI again.) Oh, and shrink really_long_name_mktime() with a for() loop (and rename it) although I may go back and redo that for portability to hypothetical libraries if I can convert this mess to struct timespec with proper nanoseconds support. But that needs an extended strptime() which needs an extended struct tm, and between us and that is convincing posix computers got fast enough to care about fractions of a second. (Yes, I'm aware gnu added %N to date without adding it to strptime, implying they reimplemented strptime longhand inside date. I'm not doing that.)
2015-08-08Reject invalid dates in date(1).Elliott Hughes2-2/+30
Humans get upset when date(1) lets mktime(3) work out what the 99th day of the 99th month would be rather than rejecting the invalid date. For the subtly wrong cases, rather than get into the leap year business, let's rely on localtime_r(3).
2015-08-06Detect swap partitions, inline loop_partitions(), various cleanups.Rob Landley1-29/+24
2015-08-06Initialize uninitialized variable. (Oops.)Rob Landley1-0/+2
2015-08-06Adjust xexec() exit code to be 127, and tweaks for nommu friendliness.Rob Landley1-3/+6
2015-08-06Make multiplexer's "command not found" exit 127.Rob Landley1-1/+4
Somebody (carsonh on freenode) objected that they were running something like "toybox test 1 == 2" and couldn't distinguish the test failing from toybox not having the test command. Why they were running toybox out of the multiplexer instead of having a test symlink in the $PATH, I couldn't tell you. (Is "I know toybox is on this system, but don't know how it was configured" a problem people actually have?) *shrug* They care about it more than I do, so now you can't distinguish between the multiplexer not being found and the command the multiplexer tried to run not being found. Progress!
2015-08-05I've added support for running blkid without specifying a partition (so it ↵Dima Krasner1-4/+29
scans /proc/partitions).
2015-08-05Minor tweak of reboot.cRob Landley1-6/+5
2015-08-05reboot: signal init, add -f option to call reboot();Isaac Dunham2-8/+15
init: use SIGINT, use xsignal() Now that oneit supports the same signals as our "sysv"-init for shutdown, make reboot et al. signal pid 1 with the appropriate signal. Of these signals, only SIGINT works with sysvinit 2.88, causing a reboot. The others are only supported in Busybox init. Also, make init accept SIGINT and use xsignal().
2015-08-05Cosmetic tweak: newline at the end of "make change".Rob Landley1-0/+1
2015-08-05Switch nbd_client to xconnect() and make xconnect() try all returned addressesRob Landley2-20/+11
before failing.
2015-08-05Tweak xconnect: socket can be a string (ala "ftp") from /etc/services.Rob Landley3-9/+7
Still need a rethink on how to handle socket/bind/connect sequence.
2015-08-03Factor out xconnect(), plus some other small cleanups to telnet.c.Rob Landley3-40/+35
2015-08-02Mark command-local functions static.Rob Landley15-24/+21