Linux CD burning under the
linux CD burning under very simple, just enter the following command in a terminal window, you can:
cdrecord-v speed = 2 dev = 0,0,0 cd.iso
cdrecord software release generally, if it is not installed when you install the system in your installation disks should be able to find where to install it .
speed is an indication of the speed of recording options, can be set according to actual situation, but no more than CD-R and the maximum speed limit burner; dev is the recording equipment, options, may be
cdrecord-scanbus
command to obtain, cd.iso is to burn the image file, you can join the path of the actual situation.
how like? Simple, right?
Now, there are several issues worthy of note:
1 image file how to do
linux there is a mkisofs command is very powerful, can do data CD-ROM, CD-ROM and other systems, but also can be done bootable CD-ROM.
mkisofs-r-o cd.iso-m temp burn /
is the basic use,-o cd.iso specify the CD-ROM image file name,-m temp to exclude temp directory or file, burn / will be The directory files added to the image, the more advanced use please refer to the documentation, or man.
2 CD-ROM copies of
like MS system under the dual disc burning on the disc is not tried, but made the image file and then burn more secure, even been to make this method, then do not need to re-use mkisofs command, and there are even more simple way, so that CD-ROM is not a trace of information leakage, including start-up information:
dd if = / dev / cdrom of = cd.iso
/ dev / cdrom device name for the CD-ROM , usually / dev / cdrom, can be given according to the actual situation; cd.iso it would not have to speak.
3 burner installation
linux system only recognized SCSI burner, now mostly used the IDE interface, needs to do a conversion, hardware, link, run the command cdrecord-scanbus, if not following a similar message of the equipment has not been systematically identified:
Cdrecord 1.11a15 (i586-mandrake-linux-gnu) Copyright (C) 1995-2001 J salamander g Schilling
Linux sg driver version: 3.1.22
Using libscg version 'schily-0.5'
scsibus0:
0,0,0 0) 'CD-RW' 'SMART CLONE32' 'XSW1' Removable CD-ROM
0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
The solution is in the / etc / lilo.conf file to add append = “hdb = ide -scsi “, hdb is the first IDE interface from the mouth, if your burner in the second IDE interface, should be changed to hdc (master) or a hdd (from), Save and then run lilo command, and then restart the system, then test, If that does not, in the / etc / modules.conf file by adding the following two lines to reboot the system
probeall scsi_hostadapter ide-scsi
probeall usb-interface usb-uhci ehci-hcd
If not, explain system kernel is not configured well, need to recompile the kernel.
Attached: dual lilo.conf (part)
boot = / dev / hda
map = / boot / map
install = / boot / boot.b
vga = normal
default = linux
keytable = / boot / us.klt
lba32
compact
prompt
nowarn
timeout = 100
message = / boot / message
menu-scheme = wb: bw: wb: bw
image = / boot / vmlinuz
label = linux
root = / dev / hda5
initrd = / boot / initrd.img
append = “devfs = mount mem = 383M hdc = ide-scsi”
read-only
4 linux burning under the very powerful, you can also burn VCD, CD and so on, can refer to the HOWTO and other documentation. For some graphical front-end software, even never use the command line is very simple why the mouse Gaode little less complicated? Of course, if you prefer you use, distribution generally take years.
5 on the MD5SUM
download the CD-ROM are generally mirror with MD5SUM checksum, which is used to detect whether or not the file the correct checksum in linux is very convenient to use them, as long as the terminal window Enter md5sum cd.iso, while you can calculate the mirror file MD5SUM, as long as he was compared with the site can be provided, if different, the documentation may be wrong, but it does not rule out the wrong website checksum the possibility of experiencing such a situation, in order to avoid re-download, it can be tested: If it is the system CD-ROM, the first test whether the use of vmware to start, if not start, it is best to re-download, if they can start, followed by detection of the various packages correctness, linux CD-ROM for each document within the basically provide a md5sum, file names are generally MD5SUMS, mirror file is loaded into the RPMS directory, run the md5sum *. rpm will be listed for each package md5sum then with a completely different one by one within the MD5SUMS file comparison (using the diff can increase the efficiency), if no errors, you can rest assured that boldly discs, if the package is not important is incorrect, you can also discs, when you do not choose to install the software bag no problem.
This article comes from ChinaUnix blog, if you look at the original please point: http://blog.chinaunix.net/u1/47604/showart_373152.html
fitted LumaQQ very long time, but can not be used Fcitx do not have time to get some time ago, in the official website (
http://www.fcitx.org/main/?q=node/81
), he used, but did not find out, today was finally Gao Ding.
I use: Radhat9.0 Fcitx3.4.2
http://www.fcitx.org/main/?q=node/9
First of all, make sure that ~ / .fcitx / config in the lumaQQ support is turned on (ie set to 1), and then start lumaQQ.
the user directory. fcitx directory config file
reads as follows:
[program]
display font (middle) =*
display font (English) = SimSun
display font size = 16
main window font size = 11
whether to use AA fonts = 1
[output]
number followed by the half-angle symbol = 1
Enter key behavior = 2
a semi-colon type English capital letters = 0
Enter English = 1
Lenovo way as to prohibit next page = 1
LumaQQ support = 0 This line is LumaQQ support items, should be 0 changed to 1
[interface]
candidate word number = 5
whether to use the main window 3D interface = 0
input of the use of 3D interfaces = 2
main window hidden mode = 0
whether to automatically hide the input section = 1
cursor-color = 92 210 131
The main window background color = 220 220 220
main window line color = 100 180 255
input the name of the main window, color = 170 170 170 150 200 150 0 0 255
input window background color = 240 240 240
input window prompts color = 255 0 0
input window user input color = 0 0 255
input window serial color = 200 0 0
input window of the first word of a candidate color = 0 150 100
# the color value is only used alphabet in the user-coinage
input window the user phrase color = 0 0 255
input window prompts encoded color = 100,100,255 ” br /> # Wubi, pinyin words / phrases are to use the color system
other text input window color = 0 0 0
input window line color = 100 200 255
input window the arrow-color = 255 150 255
# addition to the “in English and Chinese fast-switching keys”, the other hot keys can be set to 2, in the middle, separated by spaces
[hotkey]
open / close input = CTRL_SPACE
# in English and Chinese fast-switching keys can be set to L_CTRL R_CTRL L_SHIFT R_SHIFT
in English and Chinese fast-switching keys = L_CTRL
cursor to follow = CTRL_K
GBK support = CTRL_M <br / "Lenovo support = CTRL_L
full half-angle = SHIFT_SPACE
English punctuation = ALT_SPACE
Previous =-
Next ==
second and third choice candidate for the word key = CTRL
[input]
the use of phonetic = 1
the use of Semi = 0
the use of district-bit = 1
the use of code table = 1
Tips lexicon of phrases = 0
[Pinyin]
the use of phonetic spelling = 0
automatically complete words = 1
saved automatically complete words = 0
commonly used to increase phonetic word = CTRL_8
remove alphabet characters commonly used in phonetic = CTRL_7
delete user phrase = CTRL_DELETE
# alphabet to the word given the word key, immediately after the equal sign key, without spaces
Pinyin to be the word key word = []
# re-adjustment method statement yards :0 – “do not adjust 1 -” Quick adjustments 2 – “according to the frequency adjustment
phonetic code words and re-adjustment method = 2
phonetic phrases re-adjustment method yards = 1
phonetic code words commonly used weight adjustment method = 0
is an ambiguous and ang = 0
is vague en and eng = 0 <br / "Does fuzzy ian and iang = 0
is vague in and ing = 0
is vague ou, and u = 0
whether the fuzzy uan and uang = 0
whether the fuzzy c and ch = 0
is vague f and h = 0
is vague l and n = 0
is ambiguous s, sh = 0
is vague z, and zh = 0
This article comes from ChinaUnix blog, if you look at the original please point: http://blog.chinaunix.net/u1/39714/showart_373035.html
Everything here is related to Linux.
Only Linux and its relevant knowledge are discussed here.
Let's start it now.
This article from ChinaUnix blog If the view point of the original request: http://blog.chinaunix.net/ u1/47495/showart_372766.html
zchain game motorola linux phone E680/I/G A780 Department of Transplantation
screen.width * 0.7) (this.resized = true; this.width = screen.width * 0.7; this.alt = 'Click here to open new window \ nCTRL + Mouse wheel to zoom in / out ';) “onmouseover =” if (this.width> screen.width * 0.7) (this.resized = true; this.width = screen.width * 0.7; this.style.cursor =' hand '; this.alt = 'Click here to open new window \ nCTRL + Mouse wheel to zoom in / out';) “onclick =” if (! this.resized) (return true;) else (window.open ( 'http://blog. chinaunix.net/photo/19423_070901225039.jpg');}” onmousewheel = “return imgzoom (this);” alt = “” />
this article from ChinaUnix blog If the view point of the original request: http://blog.chinaunix.net/ u/19423/showart_372584.html
I had made at the forum's personal study notes address:
http://bbs.chinaunix.net/viewthread.php?tid=570072&highlight=lichuanhua
for the convenience of everyone, I have made a PDF files, you want to be useful to download, see attachment:
screen.width * 0.7) (this.resized = true; this.width = screen.width * 0.7; this.alt = 'Click here to open new window \ nCTRL + Mouse wheel to zoom in / out';) ” onmouseover = “if (this.width> screen.width * 0.7) (this.resized = true; this.width = screen.width * 0.7; this.style.cursor = 'hand'; this.alt = 'Click here to open new window \ nCTRL + Mouse wheel to zoom in / out ';) “onclick =” if (! this.resized) (return true;) else (window.open (' http://control.cublog.cn/fileicon / pdf.gif');}” onmousewheel = “return imgzoom (this);” alt = “” />
File:
Linux Study Notes _lichuanhua.pdf
Size:
199KB
Download:
download <br / ".
This article comes from ChinaUnix blog, if you look at the original please point: http://blog.chinaunix.net/u/8201/showart_372307.html
1. How can more easily edit multiple files at the same time, for example, to switch between multiple files,
Copy Paste content.
2. I want to edit the text to find a word, almost taught in the book are the use of “/ word”,
However, if the word is on the cursor, I have to a character a character Enter the word,
do is not very depressed? For example: / i_want_to_search_this_long_word.
3. My job is mainly C / C + + programming, really want to like VC, as in the left to see a list of files
the project, and the Class, Function, Struct list and have opted for
will be able to jump to the appropriate location.
4. is and programming related, in the VC inside, Build the Browse Info after, F12 on
can be very convenient in the class, variable, constant, etc. definition,
implementation or reference inter – jump, which is very convenient very useful.
5. In the VC inside, in a .C / .cpp file, for include files, for example,
# i nclude “foo.h”, you foo Office, + + g can jump
the header files go, is really easy ah. Is vim is not available?
6. If in Vi in the same view as the Explorer file list, and can choose just fine.
There are more problems, I do not have to list one by one, because my article was not to become a
Wikipedia book, but rather to those who used the vi later dropped (:-), Of course not switching to the Emacs kind),
and novice Linux / vi, but the Vi read books but I felt very nice people to read.
OK, the above six problems solution.
1. vim.sourceforge.net download ranked No. 3 of the bufexplorer.vim
2. vim.sf.net in the Tips of the No. 1 of the “Super Star”, Oh, when the cursor is in this
word on when, according * to be able to, and in Editplus, press Ctrl + F3 as easy.
Another tip is to start looking for write / post, you can put the word under the cursor
copied to the command buffer Department, a very useful Tip.
3. a) want to see Class, Struct and other lists, you need No. 1 of the taglist.vim,
With it, Vim is now looking much more pleasure to the eye. b) want to have the project file list: You need to
No.7 of Project.vim, there are the two, VC basically simulate the left side of the window out.
4. There taglist.vim help feel that you have a lot of convenience, taglist need ctags
can be achieved, ctags's role is to Symbol build C code tags, What are tags?
you have passed the Vim's Help (: help) to understand, Ting Xiang hyperlink. However ctags functionality
is not strong enough, because this work cscope do better than it did, but also stronger.
If you are interested in the use of cscope, then you should take a look at cscope.sf.net, while there are a lot of Vim version
no built-in support for cscope. You can use the Vim using: version view. If not,
to congratulate you, you have the opportunity to own Qin Shouba Vim compiled once. Oh, note that. / Configure
when the – enable-cscope. With cscope, see item code with Vim do even more powerful!
5. gf – It's that simple, Hehe. If you still can not find the header files, how can I do?
Please: help path. correctly set the path where the header files is very important.
6. Try: Ex and: Sex: e. and: e / usr / src, you will all understand.
Other
7. must go vim.sf.net on the Top10 of the script are placed in their own Vim try,
must take the No.2's Tip preserved view at any time. gvim = vim-g
PS
went to the bar here, writing this article because I spent a whole day of time to learn Vim,
and installation and testing the use of these Scripts, finally find Comparing the use of entry-level and smoothly by Vim.
In fact, access to and use of Vi is also a very long time, but never been to vim.sf.net, So
always felt that Vi is very easy to use, and now change in attitude, I hope this article will help
those who want to learn Vim's friends entry.
If you are learning Emacs, then you must go www.emacswiki.org look at the Tip,
download one of the script. But I think Vim has been good enough. Vi because I like the way
to move the cursor with j, rather than Emacs like Ctrl + n, need two hands, He He.
This article comes from ChinaUnix blog, if you look at the original please point: http://blog.chinaunix.net/u/24274/showart_372294.html
This paper describes a variety of games under LINUX, including LINUX comes with a small games, classic game simulator, support LINUX and other large-scale games, such as DOOM3, as well as run the WINDOWS way to introduce popular games. Game fans come with me! In this paper, REDHAT9 example
(This article published in the linux Union Station
http://www.xxlinux.com
Welcome to paste, but please keep the above information, there are problems to the site to the Forum)
1, LINUX next game that comes with playing cards
like a friend can play “patience” This poker game, if you install the fashion of the game, then on the game menu, which integrates 10 of several poker games are played, such as the neutral gear Solitaire, 48, Hearts, etc. There are also many traditional games are played strange games are played, we recommend everyone try, there is always a right for you ~ ~
mine but we are not familiar with it? In the LINUX Lane called Kmines, go look the same. There are many WIN a classic situation of having no games in my house, a single machine host a red 4.1, inside there were 33 titles as well: potatoes guy, KWIN4, Kbattleship are too many to see their own bar
2, FLASH games
As long as your browser, installed the FLASH plug-in, then had to play in the IE online FLASH game where you can still play, such as The King of Fighters 2000, Street Fighter, MM favorite games and so on, nagging one: I heard that swept the 1:00 a FIREFOX browser, recently discovered a fatal mistake, hope we do not forget patches (May 2005), the following excerpt of the game is my web site, we can come here and
http://gamezone.qq.com
3, simulator games” br /> 1, “Three Kingdoms”, “Tomahawk” and other Nintendo games that we can install the simulator in the WINDOWS game, also in LINUX can be, we only need to install Fce Ultra, which provides the code for the LINUX platform installation package:
http:// www.huihoo.com/game/linux/simulator/fceu096src.tar.gz
, compile install the emulator is a fairly simple thing: download fceu096src.tar.gz, Expand into a temporary directory, enter the directory will Makefile.unixsdl copying Makefile, then run make, if all goes well, will be generated in the directory fceu enforcement procedures. In the command line, type “$. / Fceu” will be command-line help, try the “$. / Fceu-fs contra.zip”, see you a long absence, “Contra” screen it? “-fs” option will allow fceu run in full-screen mode.
There are a number of different platforms simulator download addresses, please look at the demand to install:
2, family of five generations of simulators: Dgen / sdl
Download: http: / / www.pknet.com/ ~ joe / dgen-sdl-1.23.tar.gz
to install: # tar-jxvf dgen-sdl-1.23.tar.gz
; # cd dgen-sdl-1.23
#. / configure
# make
3, Super Nintendo emulator Snes9x
Download:
http : / / www.lysator.liu.se/snes9x/1.42/snes9x-1.42-linux-x86.tar.gz
to install: # tar zxvf snes9x-1.42-linux-x86 . tar.gz
4, PS emulator ePSXe
Download:
http://www.epsxe.com/files/epsxe160lin.zip
to install: # zip-d epsxe160lin.zip (extracted can be used directly)
5, arcade emulator, XMAME
Download:
http://yarrow.freshrpms.net/rpm.html?id=1342
Installation:
required to install all the packages to download in the same directory, then run:
# rpm-ivh *. rpm
4, large-scale 3D game
more small game you are not enjoyable , then I play with these large-scale 3D games, these games are the LINUX version up and running without any problems, such as: QUAKE 3, UT2004, DOOM 3 and other large 3D games
1, QUAKE 3
Download:
ftp://ftp.idsoftware.com/idstuff/
47M size.
installation: # chmod u + x linuxq3ademo-1_11-6_x86_gz.sh / / add the implementation of the permission
# ./linuxq3ademo-1_11-6_x86_gz.sh
installation process will prompt some of the problems, choose Y / N answer can be, and so simple to you in English I do not reprinted, mainly because you are prompted to install, whether to accept the license agreement, is to create a shortcut, is in need of help files.
As for how to play, I have more food anyway.
2, DOOM 1,2,3
before downloading take a look at your configuration, DOOM3 such a big game requires that your machine P4 1.5, RAM 384MB, at least 2.2G of hard disk space, 64M or more of video memory (remember that in order to have a super-rotten “Jiang Hu” and to upgrade the computer's scenario)
Download:
ftp://ftp.idsoftware.com/idstuff/
(download an excessive number of, as far as possible in a number of off-peak hours to download)
installation and QUAKE3 similar, then no, the information on to my stand to see LINUX installed software solution''_''
3, Unreal Tournament 2004 (UT2004)
Download:
http://www.unrealtournament.com/ut2004/downloads.php
Choose LINUX download the DEMO version, size 275MB
to install the same as
5, I'll play CS, Diablo, Star and other games, where you can go to download an emulator to run programs to see if, like Cedega,, they are the WINDOWS software simulation running on LINUX, many games It can be below the smooth operation, as to download and install, please yourself, and then the words would not come to my small station on the bar:
http://www.xxlinux.com
forum waiting for you ~ ~
Linux Alliance
to collect and collate
<b "This article from ChinaUnix blog, if you look at the original please point: http:// blog.chinaunix.net/u1/47415/showart_371701.html
command format:
wget [parameter list] [target software, web URL]
- start
;-V, – version show the version of wget exit
-h, – help ; print syntax help
-b, – background ; launch into the background after the implementation of
-e, – execute = COMMAND implementation of the `. wgetrc 'format command, wgetrc format, see the / etc / wgetrc or ~ /. wgetrc
- records and input file
-o, – output-file = FILE the record write FILE file
-a, – append-output = FILE append the record to the FILE file
-d, – debug print debug output
-q, – quiet Quiet mode (no output)
-v, – verbose ; verbose mode (which is the default setting)
-nv, – non-verbose turn off the verbose mode, but it is not Quiet mode
-i, – input-file = FILE download the file in the FILE appear URLs
-F, – force-html input file into HTML format file as a treat
-B, — base = URL to URL as-F-i parameter to specify the file appears in the relative link prefix
— -sslcertfile = FILE optional client certificate
– sslcertkey = KEYFILE optional client certificate KEYFILE
; – egd-file = FILE specify the EGD socket file name
- download
– bind-address = ADDRESS designated for local use address (host name or IP, when there are multiple IP or names for local use)
-t, – tries = NUMBER set the maximum number of times trying to link to (0 means unlimited).
-O — output-document = FILE write documents to FILE file
-nc, – no-clobber do not overwrite existing file or use. # prefix
-c, – continue and then download the file did not download the End
– progress = TYPE set the process of marking
-N, — timestamping do not re-download the file unless a new compared with the local file
-S, – server-response print server's response
– spider do not download anything
-T, – timeout = SECONDS set the response timeout in seconds
— w, – wait = SECONDS interval between the two try to SECONDS seconds
– waitretry = SECONDS to wait between re-link 1 … SECONDS seconds
– random-wait the download wait between 0 … 2 * WAIT seconds
-Y, – proxy = on / off open or close the agency
-Q, – quota = NUMBER set the download size limit
– limit-rate = RATE limit download transmission rates of
- directory
;-nd – no-directories do not create the directory
-x, – force – directories forced to create the directory
-nH, – no-host-directories do not create host directories
-P, – directory-prefix = PREFIX save files to the directory PREFIX /…
– cut-dirs = NUMBER ; ignore NUMBER layer remote directory
- HTTP options
– http -user = USER set the HTTP user name USER.
– http-passwd = PASS set http password to PASS.
-C, – cache = on / off to allow / not allow server-side data cache (generally permitted).
-E, – html-extension of all text / html documents to. html extension to save
– ignore -length ignore `Content-Length 'header field
– header = STRING insert in the headers string STRING
– proxy-user = USER set the proxy user name USER
– proxy-passwd = PASS set the proxy password is PASS
– referer = URL in the HTTP request contains the `Referer: URL 'header
-s, – save-headers save the HTTP header to the file
-U, ; – user-agent = AGENT set the agent name AGENT instead of Wget / VERSION.
– no-http-keep-alive off HTTP Activities link (always linked).
– cookies = off do not use cookies.
; – load-cookies = FILE at the beginning of the session before the load from the file FILE in the cookie
– save-cookies = FILE after the end of the session cookies saved to FILE file
- FTP options
-nr, – dont-remove-listing do not remove the `. listing ' File
-g, – glob = on / off to open or close the file name globbing mechanism
– passive-ftp using passive transfer mode (default).
– active-ftp use the active transfer mode
– retr-symlinks In the recursion, when the link points to the file (rather than the directory)
- recursive downloads
-r, – recursive ; recursive download – caution!
-l, – level = NUMBER maximum recursion depth (inf or 0 for infinity).
– delete-after in the present partial delete files after
-k, – convert-links convert non-relative links to relative links
-K, – backup-converted before converting file X, will be the backup for the X.orig
-m, – mirror is equivalent to-r-N-l inf -nr.
-p, – page-requisites to download all the pictures displayed HTML file
- recursive download containing and not containing (accept / reject)
-A, – accept = LIST pm delimited list of accepted extensions
-R, – reject = LIST semicolon are not separated list of accepted extensions
-D, – domains = LIST pm delimited list of accepted domains
– exclude-domains = LIST is not a semicolon-separated list of accepted domains
; – follow-ftp track HTML document in the FTP links
– follow-tags = LIST tracked a semicolon separated list of HTML tags
-G, – ignore-tags = LIST neglected semicolon separated list of HTML tags
-H, – span-hosts go to the external host when the recursion when
-L, – relative follow relative links only
-I, – include-directories = LIST list of allowed directories
-X, – exclude-directories = LIST list of directories will not be included
-np , – no-parent Do not be traced back to the parent directory
such as:
selective downloads.
You can specify a class for wget to download only the files, or do not download any files. For example:
wget-m – reject = gif
http://chinaunix.net
the download
http://chinaunix. net
, but ignore the gif file. – accept = LIST acceptable file types, – reject = LIST refused to accept the file type.
Wget Home:
http://www.gnu.org/software/wget/
This article comes from ChinaUnix blog, if you look at the original request Points: http://blog.chinaunix.net/u/26978/showart_371636 . html
$ cat / etc/X11/xinit/xinitrc.d/95scim
export LC_CTYPE = zh_CN.UTF-8
export XMODIFIERS = “@ im = scim”
export XIM = “scim”
export XIM_PROGRAM = “scim”
export XIM_ARGS = “-d”
export GTK_IM_MODULE = “scim”
export QT_IM_MODULE = “scim”
NOTE:
1, QT program will need to install the module plug-in scim-qtimm
2, chmod + x 95scim
;
This article comes from ChinaUnix blog, if you look at the original please point: http://blog.chinaunix.net/u/1129/showart_371606.html
http://sellroad.w58.ws86.com/jessinio/
which I think the most interesting aspects
thread, there are two:
1) can be cut into the thread
2) isolated threads and processes
thread Comparison:
difference: to create a new process is the parent process, where a section of code, function, or had the procedure; created thread is a function.
similarities: the process has its own attributes and resources, the thread, too.
/ * A `sigset_t 'has a bit for each signal. * /
# define _SIGSET_NWORDS (1024 / (8 * sizeof (unsigned long int)))
typedef struct
(
unsigned long int __val [_SIGSET_NWORDS];
) __sigset_t;
with a bit that a signal of up to 1024 signals. With the bits that can save space, but the setting is not easy, so there is a set of functions can be easily set these bits:
sigemptyset (Full set 0?)
Sigfillset (Full set 1?)
sigaddset
sigdelset
sigismember
——————–
to set up and modify the program signals receive :
that determine our procedures for dealing with the signal system, or occlusion (ignore), NOTE: It is blocking, rather than ignored. The two are different concepts.
the first thing to know:
a program by default has been set of 15 signals (process, resources, automatically generate a sigset_t type of space), and capture them to work with the default function, there is the default action. SIGSTOP (19), SIGKILL (9) These two signals can not be modified to capture or ignored.
the above five functions that we have set up just for sigset_t, the process does not modify the resources of the sigset_t space. We want to use:
sigprocmark (int how, const sigset_t * set, sigset_t * oldset)
be set.
this function is to understand that the difficulty:
sigset_t * set our own definition of the space program.
sigset_t * oldset resources for the process space. in order to get the last set the conditions exist.
you want to compare the two to get to deal with signals.
Function Description
sigprocmask () can be used to change the current signal mask, its operation in accordance with parameters of how to determine the
SIG_BLOCK new signal mask from the current signal mask and parameters set specified the signal mask for union, I understand that oldset and set the signal set are set (+)
SIG_UNBLOCK the current signal mask removed parameter set the signal mask specified (-)
SIG_SETMASK the current signal mask is set to set the specified parameters of the signal mask (=)
If oldset argument is not a NULL pointer, then the current signal mask will return this pointer. get old data, sigaction also have this capability.
return value
Success returns 0, -1 if an error is returned.
error code
EFAULT parameters set, oldset pointer address is not accessible.
EINTR The call was interrupted
——————-
to set up and modify the program signals Action :
int sigaction ((int signum, const struct sigaction * act, struct sigaction * oldact);
hard to understand where also lies in struct sigaction * oldact. This is in order to obtain the last signum of the right to set conditions exist.
This article comes from ChinaUnix blog, if you look at the original please point: http://blog.chinaunix.net/u1/44068/showart_371455.html