📄 perlcygwin.1
字号:
Translates a Windows path to the corresponding cygwin path respectingthe current mount points. With a second non-null argument returns anabsolute path. Double-byte characters will not be translated..ie n .IP """Cygwin::posix_to_win_path""" 4.el .IP "\f(CWCygwin::posix_to_win_path\fR" 4.IX Item "Cygwin::posix_to_win_path"Translates a cygwin path to the corresponding cygwin path respectingthe current mount points. With a second non-null argument returns anabsolute path. Double-byte characters will not be translated..ie n .IP """Cygwin::mount_table()""" 4.el .IP "\f(CWCygwin::mount_table()\fR" 4.IX Item "Cygwin::mount_table()"Returns an array of [mnt_dir, mnt_fsname, mnt_type, mnt_opts]..Sp.Vb 8\& perl \-e \*(Aqfor $i (Cygwin::mount_table) {print join(" ",@$i),"\en";}\*(Aq\& /bin c:\ecygwin\ebin system binmode,cygexec\& /usr/bin c:\ecygwin\ebin system binmode\& /usr/lib c:\ecygwin\elib system binmode\& / c:\ecygwin system binmode\& /cygdrive/c c: system binmode,noumount\& /cygdrive/d d: system binmode,noumount\& /cygdrive/e e: system binmode,noumount.Ve.ie n .IP """Cygwin::mount_flags""" 4.el .IP "\f(CWCygwin::mount_flags\fR" 4.IX Item "Cygwin::mount_flags"Returns the mount type and flags for a specified mount point.A comma-separated string of mntent\->mnt_type (always\&\*(L"system\*(R" or \*(L"user\*(R"), then the mntent\->mnt_opts, wherethe first is always \*(L"binmode\*(R" or \*(L"textmode\*(R"..Sp.Vb 2\& system|user,binmode|textmode,exec,cygexec,cygdrive,mixed,\& notexec,managed,nosuid,devfs,proc,noumount.Ve.SpIf the argument is \*(L"/cygdrive\*(R", then just the volume mount settings,and the cygdrive mount prefix are returned..SpUser mounts override system mounts..Sp.Vb 4\& $ perl \-e \*(Aqprint Cygwin::mount_flags "/usr/bin"\*(Aq\& system,binmode,cygexec\& $ perl \-e \*(Aqprint Cygwin::mount_flags "/cygdrive"\*(Aq\& binmode,cygdrive,/cygdrive.Ve.ie n .IP """Cygwin::is_binmount""" 4.el .IP "\f(CWCygwin::is_binmount\fR" 4.IX Item "Cygwin::is_binmount"Returns true if the given cygwin path is binary mounted, false if thepath is mounted in textmode..SH "INSTALL PERL ON CYGWIN".IX Header "INSTALL PERL ON CYGWIN"This will install Perl, including \fIman\fR pages..PP.Vb 1\& make install 2>&1 | tee log.make\-install.Ve.PP\&\s-1NOTE:\s0 If \f(CW\*(C`STDERR\*(C'\fR is redirected \f(CW\*(C`make install\*(C'\fR will \fBnot\fR promptyou to install \fIperl\fR into \fI/usr/bin\fR..PPYou may need to be \fIAdministrator\fR to run \f(CW\*(C`make install\*(C'\fR. If youare not, you must have write access to the directories in question..PPInformation on installing the Perl documentation in \s-1HTML\s0 format can befound in the \fI\s-1INSTALL\s0\fR document..SH "MANIFEST ON CYGWIN".IX Header "MANIFEST ON CYGWIN"These are the files in the Perl release that contain references to Cygwin.These very brief notes attempt to explain the reason for all conditionalcode. Hopefully, keeping this up to date will allow the Cygwin port tobe kept as clean as possible..IP "Documentation" 4.IX Item "Documentation".Vb 10\& INSTALL README.cygwin README.win32 MANIFEST\& Changes Changes5.004 Changes5.005 Changes5.6 Changes5.8\& pod/perl.pod pod/perlport.pod pod/perlfaq3.pod\& pod/perldelta.pod pod/perl5004delta.pod pod/perl56delta.pod\& pod/perl561delta.pod pod/perl570delta.pod pod/perl572delta.pod\& pod/perl573delta.pod pod/perl58delta.pod pod/perl581delta.pod\& pod/perl590delta.pod pod/perlhist.pod pod/perlmodlib.pod\& pod/perltoc.pod pod.lst Porting/Glossary Porting/repository.pod\& Porting/checkAUTHORS.pl\& ext/Compress/Raw/Zlib/Changes ext/Compress/Raw/Zlib/README\& ext/Compress/Zlib/Changes ext/Cwd/Changes ext/DB_File/Changes\& ext/Encode/Changes ext/Sys/Syslog/Changes ext/Time/HiRes/Changes\& ext/Win32API/File/Changes lib/CGI/Changes lib/ExtUtils/CBuilder/Changes\& lib/ExtUtils/Changes lib/ExtUtils/NOTES lib/ExtUtils/PATCHING\& lib/ExtUtils/README lib/Module/Build/Changes lib/Net/Ping/Changes\& lib/Test/Harness/Changes\& lib/Term/ANSIColor/ChangeLog lib/Term/ANSIColor/README\& README.symbian symbian/TODO.Ve.IP "Build, Configure, Make, Install" 4.IX Item "Build, Configure, Make, Install".Vb 10\& cygwin/Makefile.SHs\& ext/IPC/SysV/hints/cygwin.pl\& ext/NDBM_File/hints/cygwin.pl\& ext/ODBM_File/hints/cygwin.pl\& hints/cygwin.sh\& Configure \- help finding hints from uname,\& shared libperl required for dynamic loading\& Makefile.SH Cross/Makefile\-cross\-SH\& \- linklibperl\& Porting/patchls \- cygwin in port list\& installman \- man pages with :: translated to .\& installperl \- install dll, install to \*(Aqpods\*(Aq\& makedepend.SH \- uwinfix\& regen_lib.pl \- file permissions\&\& NetWare/Makefile\& plan9/mkfile\& symbian/sanity.pl symbian/sisify.pl\& hints/uwin.sh\& vms/descrip_mms.template\& win32/Makefile win32/makefile.mk.Ve.IP "Tests" 4.IX Item "Tests".Vb 11\& t/io/fs.t \- no file mode checks if not ntsec\& skip rename() check when not check_case:relaxed\& t/io/tell.t \- binmode\& t/lib/cygwin.t \- builtin cygwin function tests\& t/op/groups.t \- basegroup has ID = 0\& t/op/magic.t \- $^X/symlink WORKAROUND, s/.exe//\& t/op/stat.t \- no /dev, skip Win32 ftCreationTime quirk\& (cache manager sometimes preserves ctime of file\& previously created and deleted), no \-u (setuid)\& t/op/taint.t \- can\*(Aqt use empty path under Cygwin Perl\& t/op/time.t \- no tzset().Ve.IP "Compiled Perl Source" 4.IX Item "Compiled Perl Source".Vb 12\& EXTERN.h \- _\|_declspec(dllimport)\& XSUB.h \- _\|_declspec(dllexport)\& cygwin/cygwin.c \- os_extras (getcwd, spawn, and several Cygwin:: functions)\& perl.c \- os_extras, \-i.bak\& perl.h \- binmode\& doio.c \- win9x can not rename a file when it is open\& pp_sys.c \- do not define h_errno, init _pwent_struct.pw_comment\& util.c \- use setenv\& util.h \- PERL_FILE_IS_ABSOLUTE macro\& pp.c \- Comment about Posix vs IEEE math under Cygwin\& perlio.c \- CR/LF mode\& perliol.c \- Comment about EXTCONST under Cygwin.Ve.IP "Compiled Module Source" 4.IX Item "Compiled Module Source".Vb 10\& ext/Compress/Raw/Zlib/Makefile.PL\& \- Can\*(Aqt install via CPAN shell under Cygwin\& ext/Compress/Raw/Zlib/zlib\-src/zutil.h\& \- Cygwin is Unix\-like and has vsnprintf\& ext/Errno/Errno_pm.PL \- Special handling for Win32 Perl under Cygwin\& ext/POSIX/POSIX.xs \- tzname defined externally\& ext/SDBM_File/sdbm/pair.c\& \- EXTCONST needs to be redefined from EXTERN.h\& ext/SDBM_File/sdbm/sdbm.c\& \- binary open\& ext/Sys/Syslog/Syslog.xs\& \- Cygwin has syslog.h\& ext/Sys/Syslog/win32/compile.pl\& \- Convert paths to Windows paths\& ext/Time/HiRes/HiRes.xs\& \- Various timers not available\& ext/Time/HiRes/Makefile.PL\& \- Find w32api/windows.h\& ext/Win32/Makefile.PL \- Use various libraries under Cygwin\& ext/Win32/Win32.xs \- Child dir and child env under Cygwin\& ext/Win32API/File/File.xs\& \- _open_osfhandle not implemented under Cygwin\& ext/Win32CORE/Win32CORE.c\& \- _\|_declspec(dllexport).Ve.IP "Perl Modules/Scripts" 4.IX Item "Perl Modules/Scripts".Vb 10\& ext/B/t/OptreeCheck.pm \- Comment about stderr/stdout order under Cygwin\& ext/Digest/SHA/bin/shasum\& \- Use binary mode under Cygwin\& ext/Sys/Syslog/win32/Win32.pm\& \- Convert paths to Windows paths\& ext/Time/HiRes/HiRes.pm\& \- Comment about various timers not available\& ext/Win32API/File/File.pm\& \- _open_osfhandle not implemented under Cygwin\& ext/Win32CORE/Win32CORE.pm\& \- History of Win32CORE under Cygwin\& lib/CGI.pm \- binmode and path separator\& lib/CPANPLUS/Dist/MM.pm \- Commented out code that fails under Win32/Cygwin\& lib/CPANPLUS/Internals/Constants/Report.pm\& \- OS classifications\& lib/CPANPLUS/Internals/Constants.pm\& \- Contants for Cygwin\& lib/CPANPLUS/Internals/Report.pm\& \- Example of Cygwin report\& lib/CPANPLUS/Module.pm\& \- Abort if running on old Cygwin version\& lib/Cwd.pm \- hook to internal Cwd::cwd\& lib/ExtUtils/CBuilder/Platform/cygwin.pm\& \- use gcc for ld, and link to libperl.dll.a\& lib/ExtUtils/CBuilder.pm\& \- Cygwin is Unix\-like\& lib/ExtUtils/Install.pm \- Install and rename issues under Cygwin\& lib/ExtUtils/MM.pm \- OS classifications\& lib/ExtUtils/MM_Any.pm \- Example for Cygwin\& lib/ExtUtils/MakeMaker.pm\& \- require MM_Cygwin.pm\& lib/ExtUtils/MM_Cygwin.pm\& \- canonpath, cflags, manifypods, perl_archive\& lib/File/Fetch.pm \- Comment about quotes using a Cygwin example\& lib/File/Find.pm \- on remote drives stat() always sets st_nlink to 1\& lib/File/Spec/Cygwin.pm \- case_tolerant\& lib/File/Spec/Unix.pm \- preserve //unc\& lib/File/Spec/Win32.pm \- References a message on cygwin.com\& lib/File/Spec.pm \- Pulls in lib/File/Spec/Cygwin.pm\& lib/File/Temp.pm \- no directory sticky bit\& lib/Module/Build/Compat.pm \- Comment references \*(Aqmake\*(Aq under Cygwin\& lib/Module/Build/Platform/cygwin.pm\& \- Use \*(Aq.\*(Aq for man page separator\& lib/Module/Build.pm \- Cygwin is Unix\-like\& lib/Module/CoreList.pm \- List of all module files and versions\& lib/Net/Domain.pm \- No domainname command under Cygwin\& lib/Net/Netrc.pm \- Bypass using stat() under Cygwin\& lib/Net/Ping.pm \- ECONREFUSED is EAGAIN under Cygwin\& lib/Pod/Find.pm \- Set \*(Aqpods\*(Aq dir\& lib/Pod/Perldoc/ToMan.pm \- \*(Aq\-c\*(Aq switch for pod2man\& lib/Pod/Perldoc.pm \- Use \*(Aqless\*(Aq pager, and use .exe extension\& lib/Term/ANSIColor.pm \- Cygwin terminal info\& lib/perl5db.pl \- use stdin not /dev/tty\& utils/perlbug.PL \- Add CYGWIN environment variable to report.Ve.IP "Perl Module Tests" 4.IX Item "Perl Module Tests".Vb 10\& ext/Compress/Zlib/t/14gzopen.t\& ext/Cwd/t/cwd.t\& ext/DB_File/t/db\-btree.t\& ext/DB_File/t/db\-hash.t\& ext/DB_File/t/db\-recno.t\& ext/DynaLoader/t/DynaLoader.t\& ext/File/Glob/t/basic.t\& ext/GDBM_File/t/gdbm.t\& ext/POSIX/t/sysconf.t\& ext/POSIX/t/time.t\& ext/SDBM_File/t/sdbm.t\& ext/Sys/Syslog/t/syslog.t\& ext/Time/HiRes/t/HiRes.t\& ext/Win32/t/Unicode.t\& ext/Win32API/File/t/file.t\& ext/Win32CORE/t/win32core.t\& lib/AnyDBM_File.t\& lib/Archive/Extract/t/01_Archive\-Extract.t\& lib/Archive/Tar/t/02_methods.t\& lib/CPANPLUS/t/05_CPANPLUS\-Internals\-Fetch.t\& lib/CPANPLUS/t/20_CPANPLUS\-Dist\-MM.t\& lib/ExtUtils/t/Embed.t\& lib/ExtUtils/t/eu_command.t\& lib/ExtUtils/t/MM_Cygwin.t\& lib/ExtUtils/t/MM_Unix.t\& lib/File/Compare.t\& lib/File/Copy.t\& lib/File/Find/t/find.t\& lib/File/Path.t\& lib/File/Spec/t/crossplatform.t\& lib/File/Spec/t/Spec.t\& lib/Module/Build/t/destinations.t\& lib/Net/hostent.t\& lib/Net/Ping/t/110_icmp_inst.t\& lib/Net/Ping/t/500_ping_icmp.t\& lib/Net/t/netrc.t\& lib/Pod/Simple/t/perlcyg.pod\& lib/Pod/Simple/t/perlcygo.txt\& lib/Pod/Simple/t/perlfaq.pod\& lib/Pod/Simple/t/perlfaqo.txt\& lib/User/grent.t\& lib/User/pwent.t.Ve.SH "BUGS ON CYGWIN".IX Header "BUGS ON CYGWIN"Support for swapping real and effective user and group IDs is incomplete.On WinNT Cygwin provides \f(CW\*(C`setuid()\*(C'\fR, \f(CW\*(C`seteuid()\*(C'\fR, \f(CW\*(C`setgid()\*(C'\fR and \f(CW\*(C`setegid()\*(C'\fR.However, additional Cygwin calls for manipulating WinNT access tokensand security contexts are required..SH "AUTHORS".IX Header "AUTHORS"Charles Wilson <cwilson@ece.gatech.edu>,Eric Fifer <egf7@columbia.edu>,alexander smishlajev <als@turnhere.com>,Steven Morlock <newspost@morlock.net>,Sebastien Barre <Sebastien.Barre@utc.fr>,Teun Burgers <burgers@ecn.nl>,Gerrit P. Haase <gp@familiehaase.de>,Reini Urban <rurban@cpan.org>,Jan Dubois <jand@activestate.com>,Jerry D. Hedden <jdhedden@cpan.org>..SH "HISTORY".IX Header "HISTORY"Last updated: 2007\-09\-25
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -