12 2013 档案

system call - close calling path
摘要:close (user-space)-> syscall expcetion syscall ( linux2.6.29.4\arch\mips\kernel\scall32-o32.S) ---------> sys_exit(unsigned int fd) SYSCALL_DEFINE1(close, unsigned int, fd) (linux2.6.29.4\fs\open.c) ---------> int filp_close(struct file *filp, fl_owner_t id) retval = filp_close(filp, files) 阅读全文

posted @ 2013-12-26 18:45 Shawn X.Y. Bai 阅读(273) 评论(0) 推荐(0)

[quote] How to hg with english?
摘要:[xbai@cn0571soft01 montage-tech]$ LANG=en_US hg tipchangeset: 6550:3fd86b1549f9tag: tipparent: 6548:24c138637d84parent: 6549:15c997e301dcdate: Fri Dec 20 17:40:46 2013 +0800description:[xbai@cn0571soft01 montage-tech]$ hg tipÐ޸ļ¯: 6550:3fd86b1549f9±êÇ&# 阅读全文

posted @ 2013-12-20 18:23 Shawn X.Y. Bai 阅读(141) 评论(0) 推荐(0)

[quote] How to comment multi-lines in bash shell script.
摘要:Fromhttp://stackoverflow.com/questions/947897/block-comments-in-a-shell-scriptIn bash:#!/bin/bashecho before comment: <<'END'bla blablurflENDecho after commentThe ' and ' around the first END delimiter is important, otherwise things inside the block like for example $(command) 阅读全文

posted @ 2013-12-20 17:37 Shawn X.Y. Bai 阅读(362) 评论(0) 推荐(0)

[quote] How ot calculate date in linux cmd
摘要:Fromhttp://linuxconfig.org/addition-and-subtraction-arithmetics-with-linux-date-commandAddition and subtraction arithmetics with Linux date commandThis article features some simple examples on how to add or subtract a time from a current date. At first we use a native date sytax to do this trick and 阅读全文

posted @ 2013-12-20 15:05 Shawn X.Y. Bai 阅读(395) 评论(0) 推荐(0)

[quote]termcap for cross-building gdb
摘要:1. configure../gdb-7.1/configure --host=mips-linux-gnu --prefix=~/packages/gdb/gdb-output/ --build=x86_64checking for long long support in compiler... yeschecking for long long support in printf... nochecking for long double support in compiler... yeschecking for long double support in printf... noc 阅读全文

posted @ 2013-12-18 10:45 Shawn X.Y. Bai 阅读(1127) 评论(0) 推荐(0)

[requote] How to solve - gdbserver readchar: Got EOF
摘要:When running gdbserver on the embedded board, use gdb on host PC to connect with the board, maybe some infos on the board will be displayed as follows.Listening on port 2345Remote debugging from host 192.168.1.1readchar: Got EOFRemote side has terminated connection. GDBserver will reopen the connect 阅读全文

posted @ 2013-12-17 13:17 Shawn X.Y. Bai 阅读(2460) 评论(0) 推荐(0)

infos about pstack
摘要:[glib-2.36.4]$ type pstackpstack is hashed (/usr/bin/pstack)[glib-2.36.4]$[glib-2.36.4]$ rpm -q -f /usr/bin/pstackpstack-1.2-7.2.2[glib-2.36.4]$ rpm -iq pstackName : pstack Relocations: (not relocatable)Version : 1.2 Vendor: CentOSRelease : 7.2.2 Build Date: 2007Äê01ÔÂ07È 阅读全文

posted @ 2013-12-14 18:17 Shawn X.Y. Bai 阅读(265) 评论(0) 推荐(0)

How to add a option in right-key short-cut.
摘要:HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\notepad++HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\notepad++\Command"D:\software\npp.6.1.1.bin\unicode\notepad++.exe" "%1" 阅读全文

posted @ 2013-12-12 10:38 Shawn X.Y. Bai 阅读(161) 评论(0) 推荐(0)

[quote]HowTo Format Date For Display or Use In a Shell Script
摘要:From http://www.cyberciti.biz/faq/linux-unix-formatting-dates-for-display/SyntaxThe syntax is date +FORMATOR date +"%FORMAT"OR date +"%FORMAT%FORMAT"OR date +"%FORMAT-%FORMAT"Task: Display date in mm-dd-yy formatOpen a terminal and type the following date command: $ dat 阅读全文

posted @ 2013-12-05 21:08 Shawn X.Y. Bai 阅读(299) 评论(0) 推荐(0)

[quote] standard Input and Output Redirection
摘要:From http://sc.tamu.edu/help/general/unix/redirection.htmlStandard Input and Output RedirectionThe shell and many UNIX commands take their input from standard input (stdin), write output to standard output (stdout), and write error output to standard error (stderr). By default, standard input is con 阅读全文

posted @ 2013-12-05 21:05 Shawn X.Y. Bai 阅读(370) 评论(0) 推荐(0)

[quote] Re: [ECOS] printf and diag_printf go to nowhere 2
摘要:Skip to site navigation (Press enter)Re: [ECOS] printf and diag_printf go to nowhereSergei Gavrikov Sun, 12 Apr 2009 08:42:27 -0700On Sun, Apr 12, 2009 at 03:14:38PM +0200, Robert Brusa wrote:> On Sat, 11 Apr 2009 18:44:34 +0200, Sergei Gavrikov > wrote:>>> On Sat, Apr 11, 2009 at 06: 阅读全文

posted @ 2013-12-02 21:20 Shawn X.Y. Bai 阅读(609) 评论(0) 推荐(0)

[quote] Re: [ECOS] printf and diag_printf go to nowhere
摘要:Skip to site navigation (Press enter)Re: [ECOS] printf and diag_printf go to nowhereRobert Brusa Sun, 12 Apr 2009 06:15:18 -0700On Sat, 11 Apr 2009 18:44:34 +0200, Sergei Gavrikov wrote:On Sat, Apr 11, 2009 at 06:15:50PM +0300, Sergei Gavrikov wrote:On Sat, Apr 11, 2009 at 12:42:50PM +0200, Robert . 阅读全文

posted @ 2013-12-02 21:13 Shawn X.Y. Bai 阅读(545) 评论(0) 推荐(0)

导航