![]() |
#31
|
|||
|
|||
![]()
RU.UNIX.PROG FAQ poster написал(а) к All в Jun 16 10:17:07 по местному времени:
From: "RU.UNIX.PROG FAQ poster" <netch@segfault.kiev.ua> Unix Programming FAQ Question list only Archive-Name: unix-faq/programmer/faq Comp-unix-programmer-Archive-Name: faq URL: http://www.faqs.org/faqs/unix-faq/programmer/faq/ 1. Process Control 1.1 Creating new processes: fork() 1.1.1 What does fork() do? 1.1.2 What's the difference between fork() and vfork()? 1.1.3 Why use _exit rather than exit in the child branch of a fork? 1.2 Environment variables 1.2.1 Нow can I get/set an environment variable from a program? 1.2.2 Нow can I read the whole environment? 1.3 Нow can I sleep for less than a second? 1.4 Нow can I get a finer-grained version of alarm()? 1.5 Нow can a parent and child process communicate? 1.6 Нow do I get rid of zombie processes? 1.6.1 What is a zombie? 1.6.2 Нow do I prevent them from occuring? 1.7 Нow do I get my program to act like a daemon? 1.8 Нow can I look at process in the system like ps does? 1.9 Given a pid, how can I tell if it's a running program? 1.10 What's the return value of system/pclose/waitpid? 1.11 Нow do I find out about a process' memory usage? 1.12 Why do processes never decrease in size? 1.13 Нow do I change the name of my program (as seen by `ps')? 1.14 Нow can I find a process' executable file? 1.14.1 So where do I put my configuration files then? 1.15 Why doesn't my process get SIGНUP when its parent dies? 1.16 Нow can I kill all descendents of a process? 2. General File handling (including pipes and sockets) 2.1 Нow to manage multiple connections? 2.1.1 Нow do I use select()? 2.1.2 Нow do I use poll()? 2.1.3 Can I use SysV IPC at the same time as select or poll? 2.2 Нow can I tell when the other end of a connection shuts down? 2.3 Best way to read directories? 2.4 Нow can I find out if someone else has a file open? 2.5 Нow do I `lock' a file? 2.6 Нow do I find out if a file has been updated by another process? 2.7 Нow does the `du' utility work? 2.8 Нow do I find the size of a file? 2.9 Нow do I expand `~' in a filename like the shell does? 2.10 What can I do with named pipes (FIFOs)? 2.10.1 What is a named pipe? 2.10.2 Нow do I create a named pipe? 2.10.3 Нow do I use a named pipe? 2.10.4 Can I use a named pipe across NFS? 2.10.5 Can multiple processes write to the pipe simultaneously? 2.10.6 Using named pipes in applications 3. Terminal I/O 3.1 Нow can I make my program not echo input? 3.2 Нow can I read single characters from the terminal? 3.3 Нow can I check and see if a key was pressed? 3.4 Нow can I move the cursor around the screen? 3.5 What are pttys? 3.6 Нow to handle a serial port or modem? 3.6.1 Serial device names and types 3.6.2 Setting up termios flags 3.6.2.1 c_iflag 3.6.2.2 c_oflag 3.6.2.3 c_cflag 3.6.2.4 c_lflag 3.6.2.5 c_cc 4. System Information 4.1 Нow can I tell how much memory my system has? 4.2 Нow do I check a user's password? 4.2.1 Нow do I get a user's password? 4.2.2 Нow do I get shadow passwords by uid? 4.2.3 Нow do I verify a user's password? 5. Miscellaneous programming 5.1 Нow do I compare strings using wildcards? 5.1.1 Нow do I compare strings using filename patterns? 5.1.2 Нow do I compare strings using regular expressions? 5.2 What's the best way to send mail from a program? 5.2.1 The simple method: /bin/mail 5.2.2 Invoking the MTA directly: /usr/lib/sendmail 5.2.2.1 Supplying the envelope explicitly 5.2.2.2 Allowing sendmail to deduce the recipients 6. Use of tools 6.1 Нow can I debug the children after a fork? 6.2 Нow to build library from other libraries? 6.3 Нow to create shared libraries / dlls? 6.4 Can I replace objects in a shared library? 6.5 Нow can I generate a stack dump from within a running program? --- ifmail v.2.15dev5.4 |
#32
|
|||
|
|||
![]()
RU.UNIX.PROG FAQ poster написал(а) к All в Jun 16 10:16:56 по местному времени:
From: "RU.UNIX.PROG FAQ poster" <netch@segfault.kiev.ua> Unix Programming FAQ Question list only Archive-Name: unix-faq/programmer/faq Comp-unix-programmer-Archive-Name: faq URL: http://www.faqs.org/faqs/unix-faq/programmer/faq/ 1. Process Control 1.1 Creating new processes: fork() 1.1.1 What does fork() do? 1.1.2 What's the difference between fork() and vfork()? 1.1.3 Why use _exit rather than exit in the child branch of a fork? 1.2 Environment variables 1.2.1 Нow can I get/set an environment variable from a program? 1.2.2 Нow can I read the whole environment? 1.3 Нow can I sleep for less than a second? 1.4 Нow can I get a finer-grained version of alarm()? 1.5 Нow can a parent and child process communicate? 1.6 Нow do I get rid of zombie processes? 1.6.1 What is a zombie? 1.6.2 Нow do I prevent them from occuring? 1.7 Нow do I get my program to act like a daemon? 1.8 Нow can I look at process in the system like ps does? 1.9 Given a pid, how can I tell if it's a running program? 1.10 What's the return value of system/pclose/waitpid? 1.11 Нow do I find out about a process' memory usage? 1.12 Why do processes never decrease in size? 1.13 Нow do I change the name of my program (as seen by `ps')? 1.14 Нow can I find a process' executable file? 1.14.1 So where do I put my configuration files then? 1.15 Why doesn't my process get SIGНUP when its parent dies? 1.16 Нow can I kill all descendents of a process? 2. General File handling (including pipes and sockets) 2.1 Нow to manage multiple connections? 2.1.1 Нow do I use select()? 2.1.2 Нow do I use poll()? 2.1.3 Can I use SysV IPC at the same time as select or poll? 2.2 Нow can I tell when the other end of a connection shuts down? 2.3 Best way to read directories? 2.4 Нow can I find out if someone else has a file open? 2.5 Нow do I `lock' a file? 2.6 Нow do I find out if a file has been updated by another process? 2.7 Нow does the `du' utility work? 2.8 Нow do I find the size of a file? 2.9 Нow do I expand `~' in a filename like the shell does? 2.10 What can I do with named pipes (FIFOs)? 2.10.1 What is a named pipe? 2.10.2 Нow do I create a named pipe? 2.10.3 Нow do I use a named pipe? 2.10.4 Can I use a named pipe across NFS? 2.10.5 Can multiple processes write to the pipe simultaneously? 2.10.6 Using named pipes in applications 3. Terminal I/O 3.1 Нow can I make my program not echo input? 3.2 Нow can I read single characters from the terminal? 3.3 Нow can I check and see if a key was pressed? 3.4 Нow can I move the cursor around the screen? 3.5 What are pttys? 3.6 Нow to handle a serial port or modem? 3.6.1 Serial device names and types 3.6.2 Setting up termios flags 3.6.2.1 c_iflag 3.6.2.2 c_oflag 3.6.2.3 c_cflag 3.6.2.4 c_lflag 3.6.2.5 c_cc 4. System Information 4.1 Нow can I tell how much memory my system has? 4.2 Нow do I check a user's password? 4.2.1 Нow do I get a user's password? 4.2.2 Нow do I get shadow passwords by uid? 4.2.3 Нow do I verify a user's password? 5. Miscellaneous programming 5.1 Нow do I compare strings using wildcards? 5.1.1 Нow do I compare strings using filename patterns? 5.1.2 Нow do I compare strings using regular expressions? 5.2 What's the best way to send mail from a program? 5.2.1 The simple method: /bin/mail 5.2.2 Invoking the MTA directly: /usr/lib/sendmail 5.2.2.1 Supplying the envelope explicitly 5.2.2.2 Allowing sendmail to deduce the recipients 6. Use of tools 6.1 Нow can I debug the children after a fork? 6.2 Нow to build library from other libraries? 6.3 Нow to create shared libraries / dlls? 6.4 Can I replace objects in a shared library? 6.5 Нow can I generate a stack dump from within a running program? --- ifmail v.2.15dev5.4 |
#33
|
|||
|
|||
![]()
RU.UNIX.PROG FAQ poster написал(а) к All в Jul 16 10:17:10 по местному времени:
From: "RU.UNIX.PROG FAQ poster" <netch@segfault.kiev.ua> Unix Programming FAQ Question list only Archive-Name: unix-faq/programmer/faq Comp-unix-programmer-Archive-Name: faq URL: http://www.faqs.org/faqs/unix-faq/programmer/faq/ 1. Process Control 1.1 Creating new processes: fork() 1.1.1 What does fork() do? 1.1.2 What's the difference between fork() and vfork()? 1.1.3 Why use _exit rather than exit in the child branch of a fork? 1.2 Environment variables 1.2.1 Нow can I get/set an environment variable from a program? 1.2.2 Нow can I read the whole environment? 1.3 Нow can I sleep for less than a second? 1.4 Нow can I get a finer-grained version of alarm()? 1.5 Нow can a parent and child process communicate? 1.6 Нow do I get rid of zombie processes? 1.6.1 What is a zombie? 1.6.2 Нow do I prevent them from occuring? 1.7 Нow do I get my program to act like a daemon? 1.8 Нow can I look at process in the system like ps does? 1.9 Given a pid, how can I tell if it's a running program? 1.10 What's the return value of system/pclose/waitpid? 1.11 Нow do I find out about a process' memory usage? 1.12 Why do processes never decrease in size? 1.13 Нow do I change the name of my program (as seen by `ps')? 1.14 Нow can I find a process' executable file? 1.14.1 So where do I put my configuration files then? 1.15 Why doesn't my process get SIGНUP when its parent dies? 1.16 Нow can I kill all descendents of a process? 2. General File handling (including pipes and sockets) 2.1 Нow to manage multiple connections? 2.1.1 Нow do I use select()? 2.1.2 Нow do I use poll()? 2.1.3 Can I use SysV IPC at the same time as select or poll? 2.2 Нow can I tell when the other end of a connection shuts down? 2.3 Best way to read directories? 2.4 Нow can I find out if someone else has a file open? 2.5 Нow do I `lock' a file? 2.6 Нow do I find out if a file has been updated by another process? 2.7 Нow does the `du' utility work? 2.8 Нow do I find the size of a file? 2.9 Нow do I expand `~' in a filename like the shell does? 2.10 What can I do with named pipes (FIFOs)? 2.10.1 What is a named pipe? 2.10.2 Нow do I create a named pipe? 2.10.3 Нow do I use a named pipe? 2.10.4 Can I use a named pipe across NFS? 2.10.5 Can multiple processes write to the pipe simultaneously? 2.10.6 Using named pipes in applications 3. Terminal I/O 3.1 Нow can I make my program not echo input? 3.2 Нow can I read single characters from the terminal? 3.3 Нow can I check and see if a key was pressed? 3.4 Нow can I move the cursor around the screen? 3.5 What are pttys? 3.6 Нow to handle a serial port or modem? 3.6.1 Serial device names and types 3.6.2 Setting up termios flags 3.6.2.1 c_iflag 3.6.2.2 c_oflag 3.6.2.3 c_cflag 3.6.2.4 c_lflag 3.6.2.5 c_cc 4. System Information 4.1 Нow can I tell how much memory my system has? 4.2 Нow do I check a user's password? 4.2.1 Нow do I get a user's password? 4.2.2 Нow do I get shadow passwords by uid? 4.2.3 Нow do I verify a user's password? 5. Miscellaneous programming 5.1 Нow do I compare strings using wildcards? 5.1.1 Нow do I compare strings using filename patterns? 5.1.2 Нow do I compare strings using regular expressions? 5.2 What's the best way to send mail from a program? 5.2.1 The simple method: /bin/mail 5.2.2 Invoking the MTA directly: /usr/lib/sendmail 5.2.2.1 Supplying the envelope explicitly 5.2.2.2 Allowing sendmail to deduce the recipients 6. Use of tools 6.1 Нow can I debug the children after a fork? 6.2 Нow to build library from other libraries? 6.3 Нow to create shared libraries / dlls? 6.4 Can I replace objects in a shared library? 6.5 Нow can I generate a stack dump from within a running program? --- ifmail v.2.15dev5.4 |
#34
|
|||
|
|||
![]()
RU.UNIX.PROG FAQ poster написал(а) к All в Jul 16 10:17:04 по местному времени:
From: "RU.UNIX.PROG FAQ poster" <netch@segfault.kiev.ua> Unix Programming FAQ Question list only Archive-Name: unix-faq/programmer/faq Comp-unix-programmer-Archive-Name: faq URL: http://www.faqs.org/faqs/unix-faq/programmer/faq/ 1. Process Control 1.1 Creating new processes: fork() 1.1.1 What does fork() do? 1.1.2 What's the difference between fork() and vfork()? 1.1.3 Why use _exit rather than exit in the child branch of a fork? 1.2 Environment variables 1.2.1 Нow can I get/set an environment variable from a program? 1.2.2 Нow can I read the whole environment? 1.3 Нow can I sleep for less than a second? 1.4 Нow can I get a finer-grained version of alarm()? 1.5 Нow can a parent and child process communicate? 1.6 Нow do I get rid of zombie processes? 1.6.1 What is a zombie? 1.6.2 Нow do I prevent them from occuring? 1.7 Нow do I get my program to act like a daemon? 1.8 Нow can I look at process in the system like ps does? 1.9 Given a pid, how can I tell if it's a running program? 1.10 What's the return value of system/pclose/waitpid? 1.11 Нow do I find out about a process' memory usage? 1.12 Why do processes never decrease in size? 1.13 Нow do I change the name of my program (as seen by `ps')? 1.14 Нow can I find a process' executable file? 1.14.1 So where do I put my configuration files then? 1.15 Why doesn't my process get SIGНUP when its parent dies? 1.16 Нow can I kill all descendents of a process? 2. General File handling (including pipes and sockets) 2.1 Нow to manage multiple connections? 2.1.1 Нow do I use select()? 2.1.2 Нow do I use poll()? 2.1.3 Can I use SysV IPC at the same time as select or poll? 2.2 Нow can I tell when the other end of a connection shuts down? 2.3 Best way to read directories? 2.4 Нow can I find out if someone else has a file open? 2.5 Нow do I `lock' a file? 2.6 Нow do I find out if a file has been updated by another process? 2.7 Нow does the `du' utility work? 2.8 Нow do I find the size of a file? 2.9 Нow do I expand `~' in a filename like the shell does? 2.10 What can I do with named pipes (FIFOs)? 2.10.1 What is a named pipe? 2.10.2 Нow do I create a named pipe? 2.10.3 Нow do I use a named pipe? 2.10.4 Can I use a named pipe across NFS? 2.10.5 Can multiple processes write to the pipe simultaneously? 2.10.6 Using named pipes in applications 3. Terminal I/O 3.1 Нow can I make my program not echo input? 3.2 Нow can I read single characters from the terminal? 3.3 Нow can I check and see if a key was pressed? 3.4 Нow can I move the cursor around the screen? 3.5 What are pttys? 3.6 Нow to handle a serial port or modem? 3.6.1 Serial device names and types 3.6.2 Setting up termios flags 3.6.2.1 c_iflag 3.6.2.2 c_oflag 3.6.2.3 c_cflag 3.6.2.4 c_lflag 3.6.2.5 c_cc 4. System Information 4.1 Нow can I tell how much memory my system has? 4.2 Нow do I check a user's password? 4.2.1 Нow do I get a user's password? 4.2.2 Нow do I get shadow passwords by uid? 4.2.3 Нow do I verify a user's password? 5. Miscellaneous programming 5.1 Нow do I compare strings using wildcards? 5.1.1 Нow do I compare strings using filename patterns? 5.1.2 Нow do I compare strings using regular expressions? 5.2 What's the best way to send mail from a program? 5.2.1 The simple method: /bin/mail 5.2.2 Invoking the MTA directly: /usr/lib/sendmail 5.2.2.1 Supplying the envelope explicitly 5.2.2.2 Allowing sendmail to deduce the recipients 6. Use of tools 6.1 Нow can I debug the children after a fork? 6.2 Нow to build library from other libraries? 6.3 Нow to create shared libraries / dlls? 6.4 Can I replace objects in a shared library? 6.5 Нow can I generate a stack dump from within a running program? --- ifmail v.2.15dev5.4 |
#35
|
|||
|
|||
![]()
RU.UNIX.PROG FAQ poster написал(а) к All в Aug 16 10:17:07 по местному времени:
From: "RU.UNIX.PROG FAQ poster" <netch@segfault.kiev.ua> Unix Programming FAQ Question list only Archive-Name: unix-faq/programmer/faq Comp-unix-programmer-Archive-Name: faq URL: http://www.faqs.org/faqs/unix-faq/programmer/faq/ 1. Process Control 1.1 Creating new processes: fork() 1.1.1 What does fork() do? 1.1.2 What's the difference between fork() and vfork()? 1.1.3 Why use _exit rather than exit in the child branch of a fork? 1.2 Environment variables 1.2.1 Нow can I get/set an environment variable from a program? 1.2.2 Нow can I read the whole environment? 1.3 Нow can I sleep for less than a second? 1.4 Нow can I get a finer-grained version of alarm()? 1.5 Нow can a parent and child process communicate? 1.6 Нow do I get rid of zombie processes? 1.6.1 What is a zombie? 1.6.2 Нow do I prevent them from occuring? 1.7 Нow do I get my program to act like a daemon? 1.8 Нow can I look at process in the system like ps does? 1.9 Given a pid, how can I tell if it's a running program? 1.10 What's the return value of system/pclose/waitpid? 1.11 Нow do I find out about a process' memory usage? 1.12 Why do processes never decrease in size? 1.13 Нow do I change the name of my program (as seen by `ps')? 1.14 Нow can I find a process' executable file? 1.14.1 So where do I put my configuration files then? 1.15 Why doesn't my process get SIGНUP when its parent dies? 1.16 Нow can I kill all descendents of a process? 2. General File handling (including pipes and sockets) 2.1 Нow to manage multiple connections? 2.1.1 Нow do I use select()? 2.1.2 Нow do I use poll()? 2.1.3 Can I use SysV IPC at the same time as select or poll? 2.2 Нow can I tell when the other end of a connection shuts down? 2.3 Best way to read directories? 2.4 Нow can I find out if someone else has a file open? 2.5 Нow do I `lock' a file? 2.6 Нow do I find out if a file has been updated by another process? 2.7 Нow does the `du' utility work? 2.8 Нow do I find the size of a file? 2.9 Нow do I expand `~' in a filename like the shell does? 2.10 What can I do with named pipes (FIFOs)? 2.10.1 What is a named pipe? 2.10.2 Нow do I create a named pipe? 2.10.3 Нow do I use a named pipe? 2.10.4 Can I use a named pipe across NFS? 2.10.5 Can multiple processes write to the pipe simultaneously? 2.10.6 Using named pipes in applications 3. Terminal I/O 3.1 Нow can I make my program not echo input? 3.2 Нow can I read single characters from the terminal? 3.3 Нow can I check and see if a key was pressed? 3.4 Нow can I move the cursor around the screen? 3.5 What are pttys? 3.6 Нow to handle a serial port or modem? 3.6.1 Serial device names and types 3.6.2 Setting up termios flags 3.6.2.1 c_iflag 3.6.2.2 c_oflag 3.6.2.3 c_cflag 3.6.2.4 c_lflag 3.6.2.5 c_cc 4. System Information 4.1 Нow can I tell how much memory my system has? 4.2 Нow do I check a user's password? 4.2.1 Нow do I get a user's password? 4.2.2 Нow do I get shadow passwords by uid? 4.2.3 Нow do I verify a user's password? 5. Miscellaneous programming 5.1 Нow do I compare strings using wildcards? 5.1.1 Нow do I compare strings using filename patterns? 5.1.2 Нow do I compare strings using regular expressions? 5.2 What's the best way to send mail from a program? 5.2.1 The simple method: /bin/mail 5.2.2 Invoking the MTA directly: /usr/lib/sendmail 5.2.2.1 Supplying the envelope explicitly 5.2.2.2 Allowing sendmail to deduce the recipients 6. Use of tools 6.1 Нow can I debug the children after a fork? 6.2 Нow to build library from other libraries? 6.3 Нow to create shared libraries / dlls? 6.4 Can I replace objects in a shared library? 6.5 Нow can I generate a stack dump from within a running program? --- ifmail v.2.15dev5.4 |
#36
|
|||
|
|||
![]()
RU.UNIX.PROG FAQ poster написал(а) к All в Aug 16 10:17:15 по местному времени:
From: "RU.UNIX.PROG FAQ poster" <netch@segfault.kiev.ua> Unix Programming FAQ Question list only Archive-Name: unix-faq/programmer/faq Comp-unix-programmer-Archive-Name: faq URL: http://www.faqs.org/faqs/unix-faq/programmer/faq/ 1. Process Control 1.1 Creating new processes: fork() 1.1.1 What does fork() do? 1.1.2 What's the difference between fork() and vfork()? 1.1.3 Why use _exit rather than exit in the child branch of a fork? 1.2 Environment variables 1.2.1 Нow can I get/set an environment variable from a program? 1.2.2 Нow can I read the whole environment? 1.3 Нow can I sleep for less than a second? 1.4 Нow can I get a finer-grained version of alarm()? 1.5 Нow can a parent and child process communicate? 1.6 Нow do I get rid of zombie processes? 1.6.1 What is a zombie? 1.6.2 Нow do I prevent them from occuring? 1.7 Нow do I get my program to act like a daemon? 1.8 Нow can I look at process in the system like ps does? 1.9 Given a pid, how can I tell if it's a running program? 1.10 What's the return value of system/pclose/waitpid? 1.11 Нow do I find out about a process' memory usage? 1.12 Why do processes never decrease in size? 1.13 Нow do I change the name of my program (as seen by `ps')? 1.14 Нow can I find a process' executable file? 1.14.1 So where do I put my configuration files then? 1.15 Why doesn't my process get SIGНUP when its parent dies? 1.16 Нow can I kill all descendents of a process? 2. General File handling (including pipes and sockets) 2.1 Нow to manage multiple connections? 2.1.1 Нow do I use select()? 2.1.2 Нow do I use poll()? 2.1.3 Can I use SysV IPC at the same time as select or poll? 2.2 Нow can I tell when the other end of a connection shuts down? 2.3 Best way to read directories? 2.4 Нow can I find out if someone else has a file open? 2.5 Нow do I `lock' a file? 2.6 Нow do I find out if a file has been updated by another process? 2.7 Нow does the `du' utility work? 2.8 Нow do I find the size of a file? 2.9 Нow do I expand `~' in a filename like the shell does? 2.10 What can I do with named pipes (FIFOs)? 2.10.1 What is a named pipe? 2.10.2 Нow do I create a named pipe? 2.10.3 Нow do I use a named pipe? 2.10.4 Can I use a named pipe across NFS? 2.10.5 Can multiple processes write to the pipe simultaneously? 2.10.6 Using named pipes in applications 3. Terminal I/O 3.1 Нow can I make my program not echo input? 3.2 Нow can I read single characters from the terminal? 3.3 Нow can I check and see if a key was pressed? 3.4 Нow can I move the cursor around the screen? 3.5 What are pttys? 3.6 Нow to handle a serial port or modem? 3.6.1 Serial device names and types 3.6.2 Setting up termios flags 3.6.2.1 c_iflag 3.6.2.2 c_oflag 3.6.2.3 c_cflag 3.6.2.4 c_lflag 3.6.2.5 c_cc 4. System Information 4.1 Нow can I tell how much memory my system has? 4.2 Нow do I check a user's password? 4.2.1 Нow do I get a user's password? 4.2.2 Нow do I get shadow passwords by uid? 4.2.3 Нow do I verify a user's password? 5. Miscellaneous programming 5.1 Нow do I compare strings using wildcards? 5.1.1 Нow do I compare strings using filename patterns? 5.1.2 Нow do I compare strings using regular expressions? 5.2 What's the best way to send mail from a program? 5.2.1 The simple method: /bin/mail 5.2.2 Invoking the MTA directly: /usr/lib/sendmail 5.2.2.1 Supplying the envelope explicitly 5.2.2.2 Allowing sendmail to deduce the recipients 6. Use of tools 6.1 Нow can I debug the children after a fork? 6.2 Нow to build library from other libraries? 6.3 Нow to create shared libraries / dlls? 6.4 Can I replace objects in a shared library? 6.5 Нow can I generate a stack dump from within a running program? --- ifmail v.2.15dev5.4 |
#37
|
|||
|
|||
![]()
RU.UNIX.PROG FAQ poster написал(а) к All в Sep 16 10:17:05 по местному времени:
From: "RU.UNIX.PROG FAQ poster" <netch@segfault.kiev.ua> Unix Programming FAQ Question list only Archive-Name: unix-faq/programmer/faq Comp-unix-programmer-Archive-Name: faq URL: http://www.faqs.org/faqs/unix-faq/programmer/faq/ 1. Process Control 1.1 Creating new processes: fork() 1.1.1 What does fork() do? 1.1.2 What's the difference between fork() and vfork()? 1.1.3 Why use _exit rather than exit in the child branch of a fork? 1.2 Environment variables 1.2.1 Нow can I get/set an environment variable from a program? 1.2.2 Нow can I read the whole environment? 1.3 Нow can I sleep for less than a second? 1.4 Нow can I get a finer-grained version of alarm()? 1.5 Нow can a parent and child process communicate? 1.6 Нow do I get rid of zombie processes? 1.6.1 What is a zombie? 1.6.2 Нow do I prevent them from occuring? 1.7 Нow do I get my program to act like a daemon? 1.8 Нow can I look at process in the system like ps does? 1.9 Given a pid, how can I tell if it's a running program? 1.10 What's the return value of system/pclose/waitpid? 1.11 Нow do I find out about a process' memory usage? 1.12 Why do processes never decrease in size? 1.13 Нow do I change the name of my program (as seen by `ps')? 1.14 Нow can I find a process' executable file? 1.14.1 So where do I put my configuration files then? 1.15 Why doesn't my process get SIGНUP when its parent dies? 1.16 Нow can I kill all descendents of a process? 2. General File handling (including pipes and sockets) 2.1 Нow to manage multiple connections? 2.1.1 Нow do I use select()? 2.1.2 Нow do I use poll()? 2.1.3 Can I use SysV IPC at the same time as select or poll? 2.2 Нow can I tell when the other end of a connection shuts down? 2.3 Best way to read directories? 2.4 Нow can I find out if someone else has a file open? 2.5 Нow do I `lock' a file? 2.6 Нow do I find out if a file has been updated by another process? 2.7 Нow does the `du' utility work? 2.8 Нow do I find the size of a file? 2.9 Нow do I expand `~' in a filename like the shell does? 2.10 What can I do with named pipes (FIFOs)? 2.10.1 What is a named pipe? 2.10.2 Нow do I create a named pipe? 2.10.3 Нow do I use a named pipe? 2.10.4 Can I use a named pipe across NFS? 2.10.5 Can multiple processes write to the pipe simultaneously? 2.10.6 Using named pipes in applications 3. Terminal I/O 3.1 Нow can I make my program not echo input? 3.2 Нow can I read single characters from the terminal? 3.3 Нow can I check and see if a key was pressed? 3.4 Нow can I move the cursor around the screen? 3.5 What are pttys? 3.6 Нow to handle a serial port or modem? 3.6.1 Serial device names and types 3.6.2 Setting up termios flags 3.6.2.1 c_iflag 3.6.2.2 c_oflag 3.6.2.3 c_cflag 3.6.2.4 c_lflag 3.6.2.5 c_cc 4. System Information 4.1 Нow can I tell how much memory my system has? 4.2 Нow do I check a user's password? 4.2.1 Нow do I get a user's password? 4.2.2 Нow do I get shadow passwords by uid? 4.2.3 Нow do I verify a user's password? 5. Miscellaneous programming 5.1 Нow do I compare strings using wildcards? 5.1.1 Нow do I compare strings using filename patterns? 5.1.2 Нow do I compare strings using regular expressions? 5.2 What's the best way to send mail from a program? 5.2.1 The simple method: /bin/mail 5.2.2 Invoking the MTA directly: /usr/lib/sendmail 5.2.2.1 Supplying the envelope explicitly 5.2.2.2 Allowing sendmail to deduce the recipients 6. Use of tools 6.1 Нow can I debug the children after a fork? 6.2 Нow to build library from other libraries? 6.3 Нow to create shared libraries / dlls? 6.4 Can I replace objects in a shared library? 6.5 Нow can I generate a stack dump from within a running program? --- ifmail v.2.15dev5.4 |
#38
|
|||
|
|||
![]()
RU.UNIX.PROG FAQ poster написал(а) к All в Sep 16 10:17:11 по местному времени:
From: "RU.UNIX.PROG FAQ poster" <netch@segfault.kiev.ua> Unix Programming FAQ Question list only Archive-Name: unix-faq/programmer/faq Comp-unix-programmer-Archive-Name: faq URL: http://www.faqs.org/faqs/unix-faq/programmer/faq/ 1. Process Control 1.1 Creating new processes: fork() 1.1.1 What does fork() do? 1.1.2 What's the difference between fork() and vfork()? 1.1.3 Why use _exit rather than exit in the child branch of a fork? 1.2 Environment variables 1.2.1 Нow can I get/set an environment variable from a program? 1.2.2 Нow can I read the whole environment? 1.3 Нow can I sleep for less than a second? 1.4 Нow can I get a finer-grained version of alarm()? 1.5 Нow can a parent and child process communicate? 1.6 Нow do I get rid of zombie processes? 1.6.1 What is a zombie? 1.6.2 Нow do I prevent them from occuring? 1.7 Нow do I get my program to act like a daemon? 1.8 Нow can I look at process in the system like ps does? 1.9 Given a pid, how can I tell if it's a running program? 1.10 What's the return value of system/pclose/waitpid? 1.11 Нow do I find out about a process' memory usage? 1.12 Why do processes never decrease in size? 1.13 Нow do I change the name of my program (as seen by `ps')? 1.14 Нow can I find a process' executable file? 1.14.1 So where do I put my configuration files then? 1.15 Why doesn't my process get SIGНUP when its parent dies? 1.16 Нow can I kill all descendents of a process? 2. General File handling (including pipes and sockets) 2.1 Нow to manage multiple connections? 2.1.1 Нow do I use select()? 2.1.2 Нow do I use poll()? 2.1.3 Can I use SysV IPC at the same time as select or poll? 2.2 Нow can I tell when the other end of a connection shuts down? 2.3 Best way to read directories? 2.4 Нow can I find out if someone else has a file open? 2.5 Нow do I `lock' a file? 2.6 Нow do I find out if a file has been updated by another process? 2.7 Нow does the `du' utility work? 2.8 Нow do I find the size of a file? 2.9 Нow do I expand `~' in a filename like the shell does? 2.10 What can I do with named pipes (FIFOs)? 2.10.1 What is a named pipe? 2.10.2 Нow do I create a named pipe? 2.10.3 Нow do I use a named pipe? 2.10.4 Can I use a named pipe across NFS? 2.10.5 Can multiple processes write to the pipe simultaneously? 2.10.6 Using named pipes in applications 3. Terminal I/O 3.1 Нow can I make my program not echo input? 3.2 Нow can I read single characters from the terminal? 3.3 Нow can I check and see if a key was pressed? 3.4 Нow can I move the cursor around the screen? 3.5 What are pttys? 3.6 Нow to handle a serial port or modem? 3.6.1 Serial device names and types 3.6.2 Setting up termios flags 3.6.2.1 c_iflag 3.6.2.2 c_oflag 3.6.2.3 c_cflag 3.6.2.4 c_lflag 3.6.2.5 c_cc 4. System Information 4.1 Нow can I tell how much memory my system has? 4.2 Нow do I check a user's password? 4.2.1 Нow do I get a user's password? 4.2.2 Нow do I get shadow passwords by uid? 4.2.3 Нow do I verify a user's password? 5. Miscellaneous programming 5.1 Нow do I compare strings using wildcards? 5.1.1 Нow do I compare strings using filename patterns? 5.1.2 Нow do I compare strings using regular expressions? 5.2 What's the best way to send mail from a program? 5.2.1 The simple method: /bin/mail 5.2.2 Invoking the MTA directly: /usr/lib/sendmail 5.2.2.1 Supplying the envelope explicitly 5.2.2.2 Allowing sendmail to deduce the recipients 6. Use of tools 6.1 Нow can I debug the children after a fork? 6.2 Нow to build library from other libraries? 6.3 Нow to create shared libraries / dlls? 6.4 Can I replace objects in a shared library? 6.5 Нow can I generate a stack dump from within a running program? --- ifmail v.2.15dev5.4 |
#39
|
|||
|
|||
![]()
RU.UNIX.PROG FAQ poster написал(а) к All в Oct 16 10:17:15 по местному времени:
From: "RU.UNIX.PROG FAQ poster" <netch@segfault.kiev.ua> Unix Programming FAQ Question list only Archive-Name: unix-faq/programmer/faq Comp-unix-programmer-Archive-Name: faq URL: http://www.faqs.org/faqs/unix-faq/programmer/faq/ 1. Process Control 1.1 Creating new processes: fork() 1.1.1 What does fork() do? 1.1.2 What's the difference between fork() and vfork()? 1.1.3 Why use _exit rather than exit in the child branch of a fork? 1.2 Environment variables 1.2.1 Нow can I get/set an environment variable from a program? 1.2.2 Нow can I read the whole environment? 1.3 Нow can I sleep for less than a second? 1.4 Нow can I get a finer-grained version of alarm()? 1.5 Нow can a parent and child process communicate? 1.6 Нow do I get rid of zombie processes? 1.6.1 What is a zombie? 1.6.2 Нow do I prevent them from occuring? 1.7 Нow do I get my program to act like a daemon? 1.8 Нow can I look at process in the system like ps does? 1.9 Given a pid, how can I tell if it's a running program? 1.10 What's the return value of system/pclose/waitpid? 1.11 Нow do I find out about a process' memory usage? 1.12 Why do processes never decrease in size? 1.13 Нow do I change the name of my program (as seen by `ps')? 1.14 Нow can I find a process' executable file? 1.14.1 So where do I put my configuration files then? 1.15 Why doesn't my process get SIGНUP when its parent dies? 1.16 Нow can I kill all descendents of a process? 2. General File handling (including pipes and sockets) 2.1 Нow to manage multiple connections? 2.1.1 Нow do I use select()? 2.1.2 Нow do I use poll()? 2.1.3 Can I use SysV IPC at the same time as select or poll? 2.2 Нow can I tell when the other end of a connection shuts down? 2.3 Best way to read directories? 2.4 Нow can I find out if someone else has a file open? 2.5 Нow do I `lock' a file? 2.6 Нow do I find out if a file has been updated by another process? 2.7 Нow does the `du' utility work? 2.8 Нow do I find the size of a file? 2.9 Нow do I expand `~' in a filename like the shell does? 2.10 What can I do with named pipes (FIFOs)? 2.10.1 What is a named pipe? 2.10.2 Нow do I create a named pipe? 2.10.3 Нow do I use a named pipe? 2.10.4 Can I use a named pipe across NFS? 2.10.5 Can multiple processes write to the pipe simultaneously? 2.10.6 Using named pipes in applications 3. Terminal I/O 3.1 Нow can I make my program not echo input? 3.2 Нow can I read single characters from the terminal? 3.3 Нow can I check and see if a key was pressed? 3.4 Нow can I move the cursor around the screen? 3.5 What are pttys? 3.6 Нow to handle a serial port or modem? 3.6.1 Serial device names and types 3.6.2 Setting up termios flags 3.6.2.1 c_iflag 3.6.2.2 c_oflag 3.6.2.3 c_cflag 3.6.2.4 c_lflag 3.6.2.5 c_cc 4. System Information 4.1 Нow can I tell how much memory my system has? 4.2 Нow do I check a user's password? 4.2.1 Нow do I get a user's password? 4.2.2 Нow do I get shadow passwords by uid? 4.2.3 Нow do I verify a user's password? 5. Miscellaneous programming 5.1 Нow do I compare strings using wildcards? 5.1.1 Нow do I compare strings using filename patterns? 5.1.2 Нow do I compare strings using regular expressions? 5.2 What's the best way to send mail from a program? 5.2.1 The simple method: /bin/mail 5.2.2 Invoking the MTA directly: /usr/lib/sendmail 5.2.2.1 Supplying the envelope explicitly 5.2.2.2 Allowing sendmail to deduce the recipients 6. Use of tools 6.1 Нow can I debug the children after a fork? 6.2 Нow to build library from other libraries? 6.3 Нow to create shared libraries / dlls? 6.4 Can I replace objects in a shared library? 6.5 Нow can I generate a stack dump from within a running program? --- ifmail v.2.15dev5.4 |
#40
|
|||
|
|||
![]()
RU.UNIX.PROG FAQ poster написал(а) к All в Oct 16 10:17:02 по местному времени:
From: "RU.UNIX.PROG FAQ poster" <netch@segfault.kiev.ua> Unix Programming FAQ Question list only Archive-Name: unix-faq/programmer/faq Comp-unix-programmer-Archive-Name: faq URL: http://www.faqs.org/faqs/unix-faq/programmer/faq/ 1. Process Control 1.1 Creating new processes: fork() 1.1.1 What does fork() do? 1.1.2 What's the difference between fork() and vfork()? 1.1.3 Why use _exit rather than exit in the child branch of a fork? 1.2 Environment variables 1.2.1 Нow can I get/set an environment variable from a program? 1.2.2 Нow can I read the whole environment? 1.3 Нow can I sleep for less than a second? 1.4 Нow can I get a finer-grained version of alarm()? 1.5 Нow can a parent and child process communicate? 1.6 Нow do I get rid of zombie processes? 1.6.1 What is a zombie? 1.6.2 Нow do I prevent them from occuring? 1.7 Нow do I get my program to act like a daemon? 1.8 Нow can I look at process in the system like ps does? 1.9 Given a pid, how can I tell if it's a running program? 1.10 What's the return value of system/pclose/waitpid? 1.11 Нow do I find out about a process' memory usage? 1.12 Why do processes never decrease in size? 1.13 Нow do I change the name of my program (as seen by `ps')? 1.14 Нow can I find a process' executable file? 1.14.1 So where do I put my configuration files then? 1.15 Why doesn't my process get SIGНUP when its parent dies? 1.16 Нow can I kill all descendents of a process? 2. General File handling (including pipes and sockets) 2.1 Нow to manage multiple connections? 2.1.1 Нow do I use select()? 2.1.2 Нow do I use poll()? 2.1.3 Can I use SysV IPC at the same time as select or poll? 2.2 Нow can I tell when the other end of a connection shuts down? 2.3 Best way to read directories? 2.4 Нow can I find out if someone else has a file open? 2.5 Нow do I `lock' a file? 2.6 Нow do I find out if a file has been updated by another process? 2.7 Нow does the `du' utility work? 2.8 Нow do I find the size of a file? 2.9 Нow do I expand `~' in a filename like the shell does? 2.10 What can I do with named pipes (FIFOs)? 2.10.1 What is a named pipe? 2.10.2 Нow do I create a named pipe? 2.10.3 Нow do I use a named pipe? 2.10.4 Can I use a named pipe across NFS? 2.10.5 Can multiple processes write to the pipe simultaneously? 2.10.6 Using named pipes in applications 3. Terminal I/O 3.1 Нow can I make my program not echo input? 3.2 Нow can I read single characters from the terminal? 3.3 Нow can I check and see if a key was pressed? 3.4 Нow can I move the cursor around the screen? 3.5 What are pttys? 3.6 Нow to handle a serial port or modem? 3.6.1 Serial device names and types 3.6.2 Setting up termios flags 3.6.2.1 c_iflag 3.6.2.2 c_oflag 3.6.2.3 c_cflag 3.6.2.4 c_lflag 3.6.2.5 c_cc 4. System Information 4.1 Нow can I tell how much memory my system has? 4.2 Нow do I check a user's password? 4.2.1 Нow do I get a user's password? 4.2.2 Нow do I get shadow passwords by uid? 4.2.3 Нow do I verify a user's password? 5. Miscellaneous programming 5.1 Нow do I compare strings using wildcards? 5.1.1 Нow do I compare strings using filename patterns? 5.1.2 Нow do I compare strings using regular expressions? 5.2 What's the best way to send mail from a program? 5.2.1 The simple method: /bin/mail 5.2.2 Invoking the MTA directly: /usr/lib/sendmail 5.2.2.1 Supplying the envelope explicitly 5.2.2.2 Allowing sendmail to deduce the recipients 6. Use of tools 6.1 Нow can I debug the children after a fork? 6.2 Нow to build library from other libraries? 6.3 Нow to create shared libraries / dlls? 6.4 Can I replace objects in a shared library? 6.5 Нow can I generate a stack dump from within a running program? --- ifmail v.2.15dev5.4 |