Cygwin User's Guide

Corinna Vinschen

Christopher Faylor

DJ Delorie

Pierre Humblet

Geoffrey Noer

Legal Notice
Table of Contents
1. Cygwin Overview
What is it?
Are the Cygwin tools free software?
A brief history of the Cygwin project
Expectations for UNIX Programmers
Expectations for Windows Programmers
Highlights of Cygwin Functionality
Introduction
Supporting both Windows NT and 9x
Permissions and Security
File Access
Text Mode vs. Binary Mode
ANSI C Library
Process Creation
Signals
Sockets
Select
2. Setting Up Cygwin
Internet Setup
Environment Variables
NT security and the ntsec usage
NT security
Process privileges
File permissions
New since Cygwin release 1.1
The mapping leak
New acl API
New setuid concept
Customizing bash
3. Using Cygwin
Mapping path names
Introduction
The Cygwin Mount Table
Additional Path-related Information
Text and Binary modes
The Issue
The default Cygwin behavior
Example
Binary or text?
Programming
File permissions
Special filenames
DOS devices
POSIX devices
The .exe extension
The @pathnames
The CYGWIN environment variable
Cygwin Utilities
cygcheck
cygpath
dumper
getfacl
kill
mkgroup
mkpasswd
mount
passwd
ps
regtool
setfacl
ssp
strace
umount
4. Programming with Cygwin
Using GCC with Cygwin
Console Mode Applications
GUI Mode Applications
Debugging Cygwin Programs
Building and Using DLLs
Building DLLs
Linking Against DLLs
Defining Windows Resources