menu 简单麦麦
account_circle

启动Linux编程-Beginning Linux Programming

帮助2571人找到了他们想要的文件
上传于 2020-03-02 5次下载 4493次围观
文件编号:5065
文件详情
标题(title):Beginning Linux Programming
启动Linux编程
作者(author):Neil Matthew, Richard Stones
出版社(publisher):Wrox Press
大小(size):3 MB (2881740 bytes)
格式(extension):pdf
注意:如果文件下载完成后为无法打开的格式,请修改后缀名为格式对应后缀

If you've already got Linux up and running on your machine and you really want to exploit its capabilities, Beginning Linux Programming is packed full of useful information that will keep you busy for weeks. In spite of its title, Beginning Linux Programming isn't oriented toward novices. It assumes that you're a competent C programmer but are simply new to the specifics of Linux. Authors Neil Matthew and Richard Stones introduce a plethora of fundamental concepts including shell programming, file access, and using curses to write full-screen, character-based programs. But that's just the start. They cover advanced topics such as processes, pipes, semaphores, and sockets - and of course, they address issues common to Internet programming such as using CGI (Common Gateway Interface). The book is a superb resource for anyone who has really wanted to put the pedal to the metal in Linux. This revised second edition has been completely updated, and now covers programming in Perl, an introduction to writing applications for the GNOME desktop, and a new chapter about writing device drivers.
Table of contents :
Beginning Linux Programming, Second Edition......Page 20
Table of Contents......Page 2
Foreword......Page 24
What's Covered in the Book......Page 25
What You Need to Use this Book......Page 27
Conventions......Page 28
Why Should I Return the Reply Card?......Page 29
Distributions......Page 30
The GNU Project and the Free Software Foundation......Page 31
UNIX Programs......Page 32
Try It Out - Our First UNIX C Program......Page 33
Getting Help......Page 34
Try It Out - Manual Pages and info......Page 35
Programs......Page 36
Header Files......Page 37
Static Libraries......Page 38
Try It Out - Static Libraries......Page 39
Shared Libraries......Page 41
Flexibility......Page 42
Summary......Page 43
Overview......Page 44
What is a Shell?......Page 45
Redirecting Output......Page 46
Pipes......Page 47
Interactive Programs......Page 48
Creating a Script......Page 49
Making a Script Executable......Page 50
Shell Syntax......Page 51
Variables......Page 52
Conditions......Page 55
Control Structures......Page 57
Functions......Page 68
How It Works......Page 69
Try It Out - Returning a Value......Page 70
Commands......Page 71
Command Execution......Page 81
Try It Out - Using Here Documents......Page 85
Debugging Scripts......Page 86
Requirements......Page 87
Design......Page 88
Try It Out - A CD Application......Page 89
Notes......Page 95
Summary......Page 96
UNIX File Structure......Page 97
Files and Devices......Page 98
System Calls and Device Drivers......Page 100
Low-level File Access......Page 101
read......Page 102
open......Page 103
Initial Permissions......Page 104
umask......Page 105
Try It Out - A File Copy Program......Page 106
Other System Calls for Managing Files......Page 108
The Standard I/O Library......Page 110
fread......Page 111
fseek......Page 112
fgets, gets......Page 113
Formatted Input and Output......Page 114
Other Stream Functions......Page 117
Stream Errors......Page 118
Streams and File Descriptors......Page 119
unlink, link, symlink......Page 120
chdir, getcwd......Page 121
readdir......Page 122
closedir......Page 123
Try It Out - A Directory Scanning Program......Page 124
How It Works......Page 125
Advanced Topics......Page 126
fcntl......Page 127
mmap......Page 128
Try It Out - Using mmap......Page 129
Summary......Page 130
Program Arguments......Page 131
Try It Out - Program Arguments......Page 132
getopt......Page 133
Try It Out - getopt......Page 134
Environment Variables......Page 135
Try It Out - getenv and putenv0......Page 136
Use of Environment Variables......Page 137
Time and Date......Page 138
Try It Out - time......Page 139
Try It Out - gmtime......Page 140
How It Works......Page 141
How It Works......Page 142
Try It Out - strftime and strptime......Page 144
Temporary Files......Page 145
How It Works......Page 146
User Information......Page 147
Try It Out - User Information......Page 148
Other User Information Functions......Page 149
Try It Out - Host Information......Page 150
Logging......Page 151
Configuring Logs......Page 153
Try It Out - logmask......Page 154
Resources and Limits......Page 155
Try It Out - Resource Limits......Page 157
Summary......Page 159
Try It Out - Menu Routines in C......Page 160
How It Works......Page 161
Why It Doesn't Quite Work......Page 162
Try It Out - Checking for Output Redirection......Page 163
Talking to the Terminal......Page 164
Try It Out - Using /dev/tty......Page 165
Overview......Page 166
Hardware Model......Page 167
The termios Structure......Page 168
Input Modes......Page 169
Output Modes......Page 170
Local Modes......Page 171
Special Control Characters......Page 172
Additional Functions......Page 175
Try It Out - A Password Program with termios......Page 176
Try It Out - Reading Each Character......Page 177
Terminal Type......Page 178
Identify Your Terminal Type......Page 179
Using terminfo Capabilities......Page 181
Try It Out - Your Very Own kbhit......Page 186
Summary......Page 188
Compiling with curses......Page 189
Concepts......Page 190
Try It Out - A Simple curses Program......Page 191
Output to the Screen......Page 192
Reading from the Screen......Page 193
Character Attributes......Page 194
Try It Out - Moving, Inserting and Attributes......Page 195
Keyboard Modes......Page 196
Try It Out- Keyboard Modes and Input......Page 197
How It Works......Page 198
Generalized Functions......Page 199
Moving and Updating a Window......Page 200
Try It Out - Multiple Windows......Page 201
Optimizing Screen Refreshes......Page 203
Try It Out - Subwindows......Page 204
The Keypad......Page 206
Try It Out - Using the Keypad......Page 207
Color......Page 208
Try It Out - Colors......Page 209
Pads......Page 210
Try It Out - Using a Pad......Page 211
The CD Collection Application......Page 212
Try It Out - A New CD Collection Application......Page 213
Try It Out - The Menu......Page 215
Try It Out - Database File Manipulation......Page 217
Try It Out - Querying the CD Database......Page 221
Summary......Page 225
Simple Memory Allocation......Page 226
Allocating Lots of Memory......Page 227
How It Works......Page 228
How It Works......Page 229
Try It Out - Abuse Your Memory......Page 230
Try It Out - Accessing a Null Pointer......Page 231
Freeing Memory......Page 232
Other Memory Allocation Functions......Page 233
Creating Lock Files......Page 234
How It Works......Page 235
Try It Out - Cooperative Lock Files......Page 236
Locking Regions......Page 237
Try It Out - Locking a File with fcntl......Page 240
How It Works......Page 241
Try It Out - Testing Locks on a File......Page 242
How It Works......Page 244
Try It Out - Competing Locks......Page 245
Other Lock Commands......Page 247
The dbm Database......Page 248
The dbm Routines......Page 249
dbm Access Functions......Page 251
Additional dbm Functions......Page 254
The CD Application......Page 256
Try It Out - cd_data.h......Page 257
Try It Out - app_ui.c......Page 258
Try It Out - cd_access.c......Page 266
Summary......Page 272
Problems of Multiple Source Files......Page 273
Options and Parameters to make......Page 274
Macros in a makefile......Page 277
How It Works......Page 278
Try It Out - Multiple Targets......Page 279
Built-in Rules......Page 281
Try It Out - Suffix Rules......Page 282
Try It Out - Managing a Library......Page 283
How It Works......Page 284
GNU make and gcc......Page 285
RCS......Page 286
SCCS......Page 292
CVS......Page 293
Writing a Manual Page......Page 297
The patch Program......Page 300
Other Distribution Utilities......Page 302
Summary......Page 304
Coding Errors......Page 305
A Program with Bugs......Page 306
Code Inspection......Page 308
Instrumentation......Page 309
How It Works......Page 310
Controlled Execution......Page 311
Starting gdb......Page 312
Stack Trace......Page 313
Examining Variables......Page 314
Setting Breakpoints......Page 315
Patching with the Debugger......Page 318
More Debugging Tools......Page 319
Lint: Removing the Fluff from Your Programs......Page 320
Function Call Tools......Page 321
Assertions......Page 323
Try It Out - assert......Page 324
Memory Debugging......Page 325
Try It Out - ElectricFence......Page 326
Try It Out - Checker......Page 327
How It Works......Page 328
Summary......Page 329
Process Structure......Page 330
Viewing Processes......Page 332
System Processes......Page 333
Process Scheduling......Page 334
Try It Out - system......Page 335
Replacing a Process Image......Page 336
Try It Out - execlp......Page 337
Duplicating a Process Image......Page 338
Try It Out - fork......Page 339
Waiting for a Process......Page 340
Try It Out - wait......Page 341
Zombie Processes......Page 342
How It Works......Page 343
Try It Out - Redirection......Page 344
Signals......Page 345
Try It Out - Signal Handling......Page 347
How It Works......Page 348
Try It Out - An Alarm Clock......Page 349
How It Works......Page 350
Signal Sets......Page 353
Summary......Page 356
Advantages and Drawbacks of Threads......Page 357
Try it out - POSIX compliance test......Page 358
A First Threads Program......Page 359
Try it out - a simple threaded program.......Page 361
How it works.......Page 362
Try it out - simultaneous execution of two threads......Page 363
Synchronization with Semaphores......Page 364
Try it out - a thread semaphore.......Page 366
How it works.......Page 368
Try it out - a thread mutex.......Page 369
How it works.......Page 371
Thread Attributes......Page 372
schedpolicy......Page 373
Try it out - setting the detached state attribute......Pa
-到底部了哦-
微信扫码支付
启动Linux编程-Beginning Linux Programming
支付金额: 共计:¥0.0

添加收藏

创建新合集