摘要: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)
阅读全文
摘要:[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±êÇ
阅读全文
摘要: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)
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:[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È
阅读全文
摘要: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"
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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:
阅读全文
摘要: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 .
阅读全文