473,748 Members | 2,578 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What IS THIS

hi
if we running a c program , that if u press ctrl +d or +z or +c ,
then program will closed.. what behind processing .........
by
KAST

Nov 15 '05 #1
6 1914
On Wed, 13 Jul 2005 04:11:09 -0700, Seven Kast USA wrote:
hi
if we running a c program , that if u press ctrl +d or +z or +c ,
then program will closed.. what behind processing .........
by
KAST


You have posted a whole bunch of rather general and vague questions, most
of which are not about standard C specifically hence are off topic for
this newsgroup.

For example C doesn't define any special meaning for contyrol sequences
auch as ctrl-d etc. How these are interpreted if yuo type them in on a
keyboard is down to your OS/command line evironment, they will probably
affect programs written in a language other than C in a similar way. So
you need to 1) establish what OS/environment you are using and 2) ask in a
newsgroup appropriate to that, by try checking the documentation first.

Lawrence

Nov 15 '05 #2
Lawrence Kirby wrote:
You have posted a whole bunch of rather general and vague questions, most
of which are not about standard C specifically hence are off topic for
this newsgroup.


....and usually makes me think of those people as trolls ;-)
Nov 15 '05 #3
In article <ok************ *******@tornado .fastwebnet.it> ,
Andrea Laforgia <xx@xx.xx> wrote:
Lawrence Kirby wrote:
You have posted a whole bunch of rather general and vague questions, most
of which are not about standard C specifically hence are off topic for
this newsgroup.


...and usually makes me think of those people as trolls ;-)


And, in other news, water is wet.

Nov 15 '05 #4
Seven Kast USA wrote:
hi
if we running a c program , that if u press ctrl +d or +z or +c ,
then program will closed.. what behind processing .........
by
KAST


That's not for this newsgroup, but CTRL-C is sending a break to the
program, which usually makes the operating system stop it (you can set
up signals to catch this, but again, thats not for this group). CTRL-D
/ CTRL-Z are EOF markers, depending on your operating system.. Yet
again, not for this group. Assuming you're using UNIX, check
comp.unix.progr ammer.
Nov 15 '05 #5
Kristofer wrote:
Seven Kast USA wrote:
if we running a c program , that if u press ctrl +d or +z or +c ,
then program will closed.. what behind processing .........
by


That's not for this newsgroup, but CTRL-C is sending a break to the
program, which usually makes the operating system stop it (you can set
up signals to catch this, but again, thats not for this group). CTRL-D
/ CTRL-Z are EOF markers, depending on your operating system.. Yet
again, not for this group. Assuming you're using UNIX, check
comp.unix.progr ammer.


<OT>If the OP is using Unix, Ctrl-Z is likely not actually closing the
program but just pausing it. After pressing Ctrl-Z in a running program,
try the command "fg" to return it to the foreground, or "bg" to make it
continue running in the background.</OT>

--
Simon.
Nov 15 '05 #6
In article <42************ ***********@new s.cybernetik.ne t>,
Kristofer <kr*******@cybe rnetik.net> wrote:
Seven Kast USA wrote:
if we running a c program , that if u press ctrl +d or +z or +c ,
then program will closed.. what behind processing .........
That's not for this newsgroup, but CTRL-C is sending a break to the
program, which usually makes the operating system stop it (you can set
up signals to catch this, but again, thats not for this group).


[OT]

That's right, but for Unix in another way it isn't.

In Unix, each input stream may be interpreted by a "line discipline"
layer, which interprets the input and may perform special processing.
In Ye Olde Dayes, only interactive serial lines had line disciplines;
after several years, "pseudo-terminals" were added that could have line
disciplines too. In Unix systems that handle inputs in terms of
"Streams" [note the capital S], -any- input stream can have a line
discipline module added to it (possibly leading to unintended
results...)

A line discipline layer examines each character as it comes in, and
does whatever processing it's configuration tables tells it to. That
processing might include echoing the character as well as buffering it,
or might include deleting a character from the input buffer, or
suspending the current job, or a number of other things.

When a line discipline layer reads the character that is currently
configured as the interrupt character (control-C and DEL are the two
most common settings for this, but it is configurable), then -if it is
in the appropriate processing context[*]-, the layer would use kill()
or raise() other appropriate call in order to send a signal to the
program that is being controlled. The way that program reacts will
depend upon what signal handler is in effect for the appropriate
signal.

The fundamental difference between this description and the previous is
in the phrase "sending a break to the program". A "break" would be an
inband marker, but udp has no mechanism for indicating breaks and the
tcp mechanism that could convey breaks is optional and not implemented
particularily commonly, and the appropriate detection mechanism for
that tcp facility are built into programs even less commonly. A signal,
though, is an out-of-band operation undertaken by the operating system
(and which can often only be carried to local processes.)

[*] "In the right processing context" -- there can be several contexts
in which the interrupt character does not mean "interrupt" . For
example, it might have been proceeded by a quote-next-character
indicator, or the input layer might be in an editting mode in which the
interrupt character might mean something else completely such as
"delete the previous character" or "copy the saved input buffer".

--
Entropy is the logarithm of probability -- Boltzmann
Nov 15 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
3891
by: Randell D. | last post by:
I have just recompiled, upgraded to PHP 4.3.4. As an exercise (and curiosity) I've decided to test out PDF functions and got the test in the PHP online manual working. I had one problem whereby the example refered to Times New Roman - I didn't have this, but I did have Times-Roman which worked. My question - How do I know what fonts I *do* have available? I've run phpinfo() and gd_info() which I hope is enough to tell some wise person...
2
3094
by: thecrow | last post by:
Alright, what the hell is going on here? In the following code, I expect the printed result to be: DEBUG: frank's last name is burns. Instead, what I get is: DEBUG: frank's last name is burns. Here is the code: $frank = "burns";
220
19114
by: Brandon J. Van Every | last post by:
What's better about Ruby than Python? I'm sure there's something. What is it? This is not a troll. I'm language shopping and I want people's answers. I don't know beans about Ruby or have any preconceived ideas about it. I have noticed, however, that every programmer I talk to who's aware of Python is also talking about Ruby. So it seems that Ruby has the potential to compete with and displace Python. I'm curious on what basis it...
699
34068
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro capabilities, unfortunately. I'd like to know if it may be possible to add a powerful macro system to Python, while keeping its amazing syntax, and if it could be possible to add Pythonistic syntax to Lisp or Scheme, while keeping all of the...
9
2677
by: Martin Maney | last post by:
In my copious spare time I've been dabbling at getting a computerized version of a board game working. After deciding that tk just made me want to vomit, and wx was like swimming through concrete slurry, and others I have mercifully forgotten about, I stumbled across pygame. (maybe not for the first time; I think I set it aside earlier because it was described as being aimed at a different sort of game, and besides, I had hoped wx might...
92
6510
by: Reed L. O'Brien | last post by:
I see rotor was removed for 2.4 and the docs say use an AES module provided separately... Is there a standard module that works alike or an AES module that works alike but with better encryption? cheers, reed
3
2428
by: Ron_Adam | last post by:
Ok... it's works! :) So what do you think? Look at the last stacked example, it process the preprocess's first in forward order, then does the postprocess's in reverse order. Which might be usefull. Interesting in any case. Making decorators with this class is a snap!
12
11170
by: Dario | last post by:
The following simple program behaves differently in Windows and Linux . #include <stdexcept> #include <iostream> #include <string> using namespace std; class LogicError : public logic_error { public: string desc;
30
15442
by: James Conrad StJohn Foreman | last post by:
After 3 years of using DB2 on Linux, I'm leaving my current employers to go work for a SQL Server shop instead. In order to find my replacement, they're trying to put together a set of questions to get both some understanding of how wide candidates knowledge is, and how much DB2 specifics they know. Of the questions below, how many do you think are useful in determining if you've got somebody capable of keeping a DB2 instance up,...
2
1635
by: yogesh | last post by:
char TCGI::x2c(char *what) { register char digit; digit = (char) ((what >= 'A' ? ((what & 0xdf) - 'A')+10 : (what - '0'))); digit *= (char) 16; digit += (char) ((what >= 'A' ? ((what & 0xdf) - 'A')+10 : (what - '0'))); return(digit); }
0
8996
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
9333
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9254
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8255
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6078
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4608
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3319
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2217
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.