.


:




:

































 

 

 

 


. .




, ​​ issig (), , , . issig () :

.

, .

³ , .

issig () , ​​ , sendsig (), , . sendsig () , , .

Unix 31 , :

, ' , : , , ' ..;

, ' : , , , ..;

, ' -, 䳿 -;

: , 䳿 - ..;

, ;

䳿 , .

:

:

SIGCHLD

:

SIGKILL

SIGSTOP

:

SIGBUS


23. .

, .

:

1) -

2) ,

3) ,


24. .

( , , ). , .

f o r k O,

. ,

ϳ 䳿.

1. , .

2. ' .

3. , ; , .

ϳ (, ); , . , ; , .

, . , , .

. ϳ , ,

25. 䳿 .


26. .


27. .


28. /.


29. /.

/ UNIX , , . UNIX , . '. , , . -. 볺 , , . - , , . ( ), 'user mode' - . . / .

ϳ , -, , '.

, , ( drive , ).

30. /. .

- . , . (, , ), - . , () . ( ). ', - ', ', , ' '.

UNIX . , . .


31. /.

UNIX , , , , / (stdio). ' . / , - . , / ѳ, UNIX ( MS-DOS).

stdio.h ( . standard input/output header - /) ѳ, , , . - , stdio.h : -.


32. /. .

UNIX , , , , / stdio. #include <stdio.h>.

- , .³ stdio.h.

stdio , fp, -, ' . ferror ' .

#include <stdio.h>

int ferror(FILE *fp);

fp , fclose , ( fflush (fp)).fclose 0, ( , fp - NULL ); EOF.

#include <stdio.h>

int fclose(FILE *fp);

fopen , . ' file, - mode. _fopen_r - . reent - , .

#include <stdio.h>

FILE *fopen(const char *file, const char *mode);

FILE *_fopen_r(void *reent, const char *file, const char *mode);

 

UNIX . , . .


33. . . .

. Գ , .

, . .

. Unix 6 :

1. - . .

2. .

3. .

4. (,, )

5. .

6. 䳿 .

, .

.

, , , , , . inode. , : , , . , . , ' .


34. /.

- Unix . , .

- 2 :

- . . ϳ , ' , . ϳ ', . .

- , .

, .

/ / . <stdio.h>.

( FILE), . / stdout, stderr , .

/, read (2).

:

1. . , / .

2. . / ( read (2) .

3. ³ . , . , , , .


35. .

ᒺ, , .

( ). .

:

1. , . ϳ ;

2. , .

() , 䳿 , , . .

:

- ;

- , () ;

- .

:

- - ;

- , ;

- , .

- , , . 䳿. - , , , ', .

 


36. . . , .

( ). UNIX ' ' - '. , , '.

UNIX . , .

, (, ', / ). , , , .

. , . , ( ), "" .


 

- , . , 䳿, , . , , .

, - ( . Hot spot - ) - , , , .

 


37. .

.

:

, . .

' . , , , (), , , . "", "".

. 㳿, ' , ' - (). ( + ) . , -

70- , Xerox Palo Alto Research Center (PARC) . ' ' , , . 8010 Star Information System PARC ' ' IBM 1981 . : , . : ' Atari Apple Macintosh, IBM- '.

. , , , - .

(, , ) ', , '.


38. .

. , , .

:

- - ;
- ;
- shell script ;
- , ;
- ' ' ;
- .

:

- , ;
- ;
- "" .

 

:

1. . , ', .

2. (). , , .

3. - .


39. . .

' , , , . , , .

䳿 ', ' (, , , , . .). , , ( ) '.

:

: , ;

-, : , ;

Linux.

ϳ , .

mc.

Linux :

(Session Failsave);

- ;

.

, , , xterm,

konsole . konsole KDE.

Linux ' .

.

n Ctrl + Alt + Fn. ϳ ,

(localhost login) (Password). ϳ , logout.

Alt + F8.


. .

'.

 

UNIX^

 

(, ), , - .

: , , ' .

' .

​​ ': ' , ', ' -'; ' .

​​ ': (), , , - -, , , ' .

init

. UNIX init, .

Linux Loader - , Unix-, Linux. , Unix, Windows. Linux LILO , MBR (Master Boot Record, ) , , . LILO Linux, , LILO .






:


: 2016-11-19; !; : 709 |


:

:

: , .
==> ...

1651 - | 1625 -


© 2015-2024 lektsii.org - -

: 0.07 .