setxkbd dvorak still break Java programs on Solaris.
Any news with Dvorak keyboard problem on Solaris? When I execute setxkbd dvorak on Cygwin window or when Dvorak keyboard is default all control characters (cursor, bs) stop working in Java applications. - Alexey. -- / Alexey N. Solofnenko home: http://trelony.cjb.net/ /
Re: setxkbd dvorak still break Java programs on Solaris.
On Fri, 28 Jan 2005, Alexey N. Solofnenko wrote: Any news with Dvorak keyboard problem on Solaris? When I execute setxkbd dvorak on Cygwin window or when Dvorak keyboard is default all control characters (cursor, bs) stop working in Java applications. Maybe it has something todo with NumLock? Make sure it is switched off. bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: setxkbmap dvorak still break Java programs on Solaris.
I meant setxkbmap dvorak. - Alexey. Alexey N. Solofnenko wrote: Any news with Dvorak keyboard problem on Solaris? When I execute setxkbd dvorak on Cygwin window or when Dvorak keyboard is default all control characters (cursor, bs) stop working in Java applications. - Alexey. -- / Alexey N. Solofnenko home: http://trelony.cjb.net/ /
Re: setxkbd dvorak still break Java programs on Solaris.
Thank you! Magically it helped. - Alexey. Alexander Gottwald wrote: On Fri, 28 Jan 2005, Alexey N. Solofnenko wrote: Any news with Dvorak keyboard problem on Solaris? When I execute setxkbd dvorak on Cygwin window or when Dvorak keyboard is default all control characters (cursor, bs) stop working in Java applications. Maybe it has something todo with NumLock? Make sure it is switched off. bye ago -- / Alexey N. Solofnenko home: http://trelony.cjb.net/ /
Ugly xterm fonts on LCD
Im running xterm under Cygwin on my new Dell Windows XP with an LCD monitor (1280x1024). The fonts look ugly. I've tried every imaginable font, I've Googled and tried various solutions suggested such as putting :unscaled in the font path, but nothing changes. When I do xdpyinfo | grep RENDER, I get nothing, which apparently means that I can't use truetype fonts. My video card is a Radeon X300 SE. Anyone know how to make the fonts look better? -- David Rudolph
Re: Ugly xterm fonts on LCD
On Fri, 28 Jan 2005, David Rudolph wrote: I?m running xterm under Cygwin on my new Dell Windows XP with an LCD monitor (1280x1024). The fonts look ugly. I've tried every imaginable font, I've Googled and tried various solutions suggested such as putting :unscaled in the font path, but nothing changes. When I do ?xdpyinfo | grep RENDER?, I get nothing, which apparently means that I can't use truetype fonts. My video card is a Radeon X300 SE. Anyone know how to make the fonts look better? I can not verify that until monday. But render should be enabled. Start xterm with xterm -fa Courier to use clientside fonts. bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
src/winsup/doc ChangeLog how-using.texinfo
CVSROOT:/cvs/src Module name:src Changes by: [EMAIL PROTECTED] 2005-01-28 09:10:26 Modified files: winsup/doc : ChangeLog how-using.texinfo Log message: * how-using.texinfo: Change text about using shortcuts. Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/doc/ChangeLog.diff?cvsroot=srcr1=1.80r2=1.81 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/doc/how-using.texinfo.diff?cvsroot=srcr1=1.54r2=1.55
Re: [Patch]: fs_info::update
On Jan 27 21:58, Pierre A. Humblet wrote: When a user has no read access to the root of a drive, GetVolumeInformation fails and has_acls is left unset. Consequently ntsec is off on that drive. If a user chmod -r the root of a drive, ntsec is turned off and chmod +r has no effect. The patch does its best to set has_acls even in case of failure. 2005-01-28 Pierre Humblet [EMAIL PROTECTED] * path.cc (fs_info::update) Set has_acls even in case of failure. Index: path.cc === RCS file: /cvs/src/src/winsup/cygwin/path.cc,v retrieving revision 1.340 diff -u -p -r1.340 path.cc --- path.cc 26 Jan 2005 04:34:19 - 1.340 +++ path.cc 28 Jan 2005 02:48:54 - @@ -381,6 +381,8 @@ fs_info::update (const char *win32_path) debug_printf (Cannot get volume information (%s), %E, root_dir); has_buggy_open (false); has_ea (false); + has_acls (GetLastError () == ERROR_ACCESS_DENIED + (allow_smbntsec || !is_remote_drive ())); flags () = serial () = 0; return false; } This looks pretty much like a band-aid. I can see the use for checking the last error code, but shouldn't Cygwin opt for safety and not assume ACLs? Also, if there's no right to read a remote drive, there might be a good reason for that, which doesn't necessarily mean the drive has acls. After all, the effect of chmod -r can be reverted with Windows own means. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader mailto:cygwin@cygwin.com Red Hat, Inc.
Re: [Patch]: fs_info::update
Corinna Vinschen wrote: This looks pretty much like a band-aid. I can see the use for checking the last error code, but shouldn't Cygwin opt for safety and not assume ACLs? Also, if there's no right to read a remote drive, there might be a good reason for that, which doesn't necessarily mean the drive has acls. After all, the effect of chmod -r can be reverted with Windows own means. Background: I noticed all of that when testing the SetCurrentDirectory(c:\\). Took me a while to understand why chmod stopped working. On XP HOME there is no security gui, so I had to use cacls. Not nice. By the time we call fs_info::update, we have done a successful GetFileAttributes for a file on the disk. So we know we can access it OK. I can't imagine any mechanism whereby GetVolumeInfo would return ACCESS_DENIED if there were no acls. For remote drives has_acls is off by default (smbntsec). Pierre
Re: [Patch]: fs_info::update
On Fri, Jan 28, 2005 at 10:10:56AM -0500, Pierre A. Humblet wrote: Corinna Vinschen wrote: This looks pretty much like a band-aid. I can see the use for checking the last error code, but shouldn't Cygwin opt for safety and not assume ACLs? Also, if there's no right to read a remote drive, there might be a good reason for that, which doesn't necessarily mean the drive has acls. After all, the effect of chmod -r can be reverted with Windows own means. Background: I noticed all of that when testing the SetCurrentDirectory(c:\\). Took me a while to understand why chmod stopped working. On XP HOME there is no security gui, so I had to use cacls. Not nice. Are you saying this is somehow a side-effect of SetCurrentDirectory(c:\\) in exit()? I can't imagine how that change could cause this behavior. cgf
Re: [Patch]: fs_info::update
Christopher Faylor wrote: On Fri, Jan 28, 2005 at 10:10:56AM -0500, Pierre A. Humblet wrote: Corinna Vinschen wrote: This looks pretty much like a band-aid. I can see the use for checking the last error code, but shouldn't Cygwin opt for safety and not assume ACLs? Also, if there's no right to read a remote drive, there might be a good reason for that, which doesn't necessarily mean the drive has acls. After all, the effect of chmod -r can be reverted with Windows own means. Background: I noticed all of that when testing the SetCurrentDirectory(c:\\). Took me a while to understand why chmod stopped working. On XP HOME there is no security gui, so I had to use cacls. Not nice. Are you saying this is somehow a side-effect of SetCurrentDirectory(c:\\) in exit()? I can't imagine how that change could cause this behavior. No, no. I was checking that the rmdir bug would come back if I removed access to c:\ (It did). Pierre
Re: cygwin ange-ftp...
On Jan 28 08:45, Jason Fu wrote: Mister, Sorry that I had no problem at using the same cygwin xemacs accessing other UNIX boxes like Solaris and Linux in listing the homes there. So the problem is the ftpd of cygwin and no other, isn't it? Works for me if the XP Firewall is setup for this. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader mailto:cygwin@cygwin.com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: odd behavior of symlinks on Win XP
On Jan 27 14:16, Jan Hlavacek wrote: I am not on the list, but I hope this will get through. I came across this discussion while I was searching for an answer to similar problem. There are a couple of postings in the ML archives, all from this month, which should explain the behaviour pretty well. There's a patch in current Cygwin CVS which should solve the icon problem. But as soon as you change the icon, the shortcut is changed by Windows in a way which invalidates it as symlink for Cygwin. That's nothing we can change without breaking other things. If you want to use a shortcut in Cygwin and in native Windows, create it in Cygwin and don't touch it. [FAQ] Since version 1.3.0, Cygwin treats shortcuts as symlinks. I'll change the text in the FAQ. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader mailto:cygwin@cygwin.com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Two instances of same cygwin1.dll
On Jan 28 08:40, [EMAIL PROTECTED] wrote: I am thinking of renaming the cygwin1.dll under the Tornado directory, so that it cannot be found there anymore, to make the compiler use exclusively the cygwin DLL in our standard cygwin path. Sounds like a good idea to me. Does the Win32 API search for DLL's in the normal PATH variable or are there other environment variables which influence this ? Standard Windows behaviour influences the search. See the LoadLibrary entry in MSDN, which explains it: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/loadlibrary.asp Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader mailto:cygwin@cygwin.com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Cron problem on Windows 2003
We have cygwin ver. 1.5.12 We try to install cygwin cron on Win 2003 with cygrunsrv -I cron -p /usr/sbin/cron -a -D string. We started service with cygrunsrv -S cron. Service start all successfully. Our scripts don't start. When we try to install the cron service by user Administrator from bash, the administrato's scripts start. Any idea. Regards Federico Ballarin -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: cygwin ange-ftp...
Corinna Vinschen corinna-cygwin at cygwin.com writes: On Jan 28 08:45, Jason Fu wrote: Mister, Sorry that I had no problem at using the same cygwin xemacs accessing other UNIX boxes like Solaris and Linux in listing the homes there. So the problem is the ftpd of cygwin and no other, isn't it? Works for me if the XP Firewall is setup for this. Corinna It doesn't work for both XP sp2 and Server 2003. I've closed the sp2 firewall in XP and I could do ange-ftp to other UNIX boxes but not to any of the cygwin boxes. That's it. Jason -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: cygwin ange-ftp...
On Jan 28 11:08, Jason FU wrote: Corinna Vinschen corinna-cygwin at cygwin.com writes: On Jan 28 08:45, Jason Fu wrote: Sorry that I had no problem at using the same cygwin xemacs accessing other UNIX boxes like Solaris and Linux in listing the homes there. So the problem is the ftpd of cygwin and no other, isn't it? Works for me if the XP Firewall is setup for this. Corinna It doesn't work for both XP sp2 and Server 2003. I've closed the sp2 firewall in XP and I could do ange-ftp to other UNIX boxes but not to any of the cygwin boxes. That's it. In this case, see http://cygwin.com/problems.html Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader mailto:cygwin@cygwin.com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
ACL questions
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Several places in the coreutils testsuite died because new directories in cygwin have 7 ACL designations (user, group, other, mask, default user, default group, default other) instead of MIN_ACL_ENTRIES (4, for user, group, other, and mask), so their `ls -ld' listing gives a mode of drwxrwxrwx+ (that extra + denotes extra ACLs). It looks like the cygwin default entries for each directory mirror the user, group, and other values. $ mkdir dir $ getfacl dir # file: dir # owner: eblake # group: None user::rwx group::r-x mask:rwx other:r-x default:user::rwx default:group::r-x default:other:r-x My limited testing on Solaris 8, which also supports ACLs, only added default entries to directories when I specifically set ACLs, and not when I created a directory, so `ls -ld' never displayed the '+' in the mode string until I played with the ACLs. See also the example on http://www.ids.org.au/main/tutorials/acl_howto.php. POSIX XBD 4.4 File Permissions permits ACLs, but states that ACLs must either be additional (more restrictive, never less) or alternate (in which case they can be enabled only on a per-file request, and that they are disabled when permission is changed with chmod()). My understanding is that ACLs are alternate, since I can grant more access to a particular user or group than the one that actually owns the file. And if that is the case, I think that `ls -ld' should never list the '+' at the end of the mode string for alternate access unless I used an facl() command on that file or directory. Could this be a bug in cygwin/sec_acl.cc's getacl() for creating directory default ACLs that are no different from the owner's permissions when parsing the Windows permissions? Or is it really valid behavior that all cygwin directories start life with default ACL entries, in which case either the coreutils testsuite needs to account for the '+' in the mode (or else patch `ls' to treat 7 ACL entries on directories, with the 3 default entries matching the corresponding directory owner permissions, as normal and not extended access)? - -- Life is short - so eat dessert first! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFB+jwe84KuGfSFAYARAmdqAKCMOvxKIBKcbgMroTLzhh8BytzZagCeIOp7 LjrmagkuzdW6xK1s3xfDJ00= =5qg8 -END PGP SIGNATURE- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
ssh-client and cygminires
Hello! On 26 februar 2004 wrote corinna Vinschen about the dependency between ssh-client and cygminires This is up to day not yet solved. Thanks guy Guy Maurel Forschungszentrum DaimlerChrysler AG Postfach 2360 89013 Ulm Tel: +49 731 505 2172 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: 1.0-1: ping problem
Jason FU wrote: $ ping www.cygwin.com PING www.cygwin.com (12.107.209.250): 56 data bytes sendto: Operation not permitted ping: wrote www.cygwin.com 64 chars, ret=-1 ping: recvfrom: Invalid argument ping: recvfrom: Invalid argument ... It seems the packet is assembled but it cannot be sent. Have you any firewall installed? If so, shut down the firewall and test again. --Lino Tinoco -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: ACL questions
On Jan 28 06:20, Eric Blake wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Several places in the coreutils testsuite died because new directories in cygwin have 7 ACL designations (user, group, other, mask, default user, That's a negligible problem of the coreutils testsuite. Could this be a bug in cygwin/sec_acl.cc's getacl() for creating directory default ACLs that are no different from the owner's permissions when parsing the Windows permissions? Or is it really valid behavior that all cygwin directories start life with default ACL entries, in which case either the coreutils testsuite needs to account for the '+' in the mode (or else patch `ls' to treat 7 ACL entries on directories, with the 3 default entries matching the corresponding directory owner permissions, as normal and not extended access)? That happens in alloc_sd(). The idea is to have a SD which allows to inherit the POSIX-like permissions to newly created files and subdirs in the directory. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader mailto:cygwin@cygwin.com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: ssh-client and cygminires
On Jan 28 14:28, [EMAIL PROTECTED] wrote: On 26 februar 2004 wrote corinna Vinschen about the dependency between ssh-client and cygminires This is up to day not yet solved. It is. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader mailto:cygwin@cygwin.com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: 1.0-1: ping problem
Lino Miguel Martins Tinoco lino-m-tinoco at telecom.pt writes: Jason FU wrote: $ ping www.cygwin.com PING www.cygwin.com (12.107.209.250): 56 data bytes sendto: Operation not permitted ping: wrote www.cygwin.com 64 chars, ret=-1 ping: recvfrom: Invalid argument ping: recvfrom: Invalid argument ... It seems the packet is assembled but it cannot be sent. Have you any firewall installed? If so, shut down the firewall and test again. --Lino Tinoco [EMAIL PROTECTED] ~ $ /c/WINDOWS/system32/ping.exe www.cygwin.com Pinging www.cygwin.com [12.107.209.250] with 32 bytes of data: Reply from 12.107.209.250: bytes=32 time=231ms TTL=55 Reply from 12.107.209.250: bytes=32 time=230ms TTL=55 Reply from 12.107.209.250: bytes=32 time=238ms TTL=55 [EMAIL PROTECTED] ~ $ /usr/bin/ping.exe www.cygwin.com PING www.cygwin.com (12.107.209.250): 56 data bytes sendto: Operation not permitted ping: wrote www.cygwin.com 64 chars, ret=-1 ping: recvfrom: Invalid argument ping: recvfrom: Invalid argument ping: recvfrom: Invalid argument ping: recvfrom: Invalid argument That's the same machine (Server 2003) for me to ping with Windows ping an \d cygwin ping shown above. Jason FU -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
ftpd daemon doesn't work properly with emacs ange-ftp
Corinna Vinschen corinna-cygwin at cygwin.com writes: In this case, see http://cygwin.com/problems.html Corinna Just boot up Knoppix to ange-ftp from xemacs there to a cygwin bax and come across the same problem. That is, no listing of the home can be done with xemacs ange-ftp. Jason FU -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: ftpd daemon doesn't work properly with emacs ange-ftp
On Jan 28 14:18, Jason FU wrote: Corinna Vinschen corinna-cygwin at cygwin.com writes: In this case, see http://cygwin.com/problems.html Corinna Just boot up Knoppix to ange-ftp from xemacs there to a cygwin bax and come across the same problem. That is, no listing of the home can be done with xemacs ange-ftp. In this case, see http://cygwin.com/problems.html Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader mailto:cygwin@cygwin.com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: 1.0-1: ping problem
On Fri, Jan 28, 2005 at 01:29:52PM -, Lino Miguel Martins Tinoco wrote: Jason FU wrote: $ ping www.cygwin.com PING www.cygwin.com (12.107.209.250): 56 data bytes sendto: Operation not permitted ping: wrote www.cygwin.com 64 chars, ret=-1 ping: recvfrom: Invalid argument ping: recvfrom: Invalid argument ... It seems the packet is assembled but it cannot be sent. Have you any firewall installed? If so, shut down the firewall and test again. Again, I ask for the details mentioned in http://cygwin.com/problems.html . -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
ssh error
Hi, I can't use ssh, ssh.exe error: cygminires.dll not found. How can I solve this? thanks. augusto -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: ssh error
On Fri, Jan 28, 2005 at 01:56:37PM -0200, Augusto Cesar Castoldi wrote: I can't use ssh, ssh.exe error: cygminires.dll not found. How can I solve this? Step 1: Read http://cygwin.com/problems.html Step 2: Follow the guidelines set forth there. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
pthreads leaks handles and threads when threads use sockets
I've been using clamav's clamd under cygwin and noticed that over time the handle count as viewed with TaskManager seems to grow to arbitrary values. I used clamd's option IdleTimeout set to 600 seconds which dramatically reduced the growth rate of the Handle Count. Of course clamd has many things going on that could contribute to handle leakags, so I tried to write a simple program to demonstrate the problem. The attached program demonstrates the problem when sockets are used and that things look pretty clean when they are not. There seems to be both a thread leakage issue and a separate handle leakage issue. Invoking the program as: threadtest -sockets 0 creates groups of 5 threads simultaneously. Each thread merely prints something and sleeps, prints something else and exits. This is repeated 10 times displaying the process handle count between each iteration. While running and watching with Task Manager, the process thread counts seems to start at 2 and reach 7 at times and then return to 2. The handle count grows during the first iteration but stays flat thereafter. Invoking the program as: threadtest -sockets 3 creates groups of 5 threads simultaneously. Each thread merely prints something and sleeps, connects a socket to the main thread, passes a little data and closes the socket. This socket business is repeated 3 times after which the thread prints something else and exits. This is repeated 10 times displaying the process handle count between each iteration. While running and watching with Task Manager, the process thread counts seems to start at 2 and reach 14 during the each iteration and drops back to 9 between iterations. The handle count grows significantly during the first iteration but seems to grow by 10 or 11 between each subsequent iteration. The -sockets 3 argument controls the number of sockets each thread creates during its life. The amount of thread and handle leakage seems to be independent of the number of sockets the thread uses during its lifetime (as long as the number of sockets used is 1 or greater). The number of threads created simultaneously can be controlled by specifying -threads n as command arguments. The number of threads leaked seems to be directly related to the number of thread using sockets concurrently. running the program with -sockets 3 and -threads 10 causes the thread count to jump to 24 during each iteration and drop back to 14 between iterations, while the handle count seems to increase by 10 or 11 between each iteration identical to the case described in the previous paragraph. I hope this test can help someone familar enough with cygwin internals to help get this problem under control. - Mark Pizzolato #include windows.h typedef enum _PROCESSINFOCLASS { ProcessHandleCount = 20, } PROCESSINFOCLASS; typedef LONG NTSTATUS; int GetHandleCount() { static NTSTATUS (*lpNtQueryInformationProcess)( HANDLE ProcessHandle, PROCESSINFOCLASS ProcessInformationClass, PVOIDProcessInformation, ULONGProcessInformationLength, PULONG ReturnLength ) = NULL; static int bInit = 0; int HandleCount = 0; if (FALSE == bInit) { lpNtQueryInformationProcess = (NTSTATUS ( *)(HANDLE, PROCESSINFOCLASS, PVOID, ULONG, PULONG))GetProcAddress(GetModuleHandle(ntdll.dll), NtQueryInformationProcess); bInit = 1; } if (NULL != lpNtQueryInformationProcess) { lpNtQueryInformationProcess( GetCurrentProcess(), ProcessHandleCount, HandleCount, sizeof(HandleCount), NULL ); } return HandleCount; } #include stdio.h #include stdlib.h #include string.h #include pthread.h #include time.h #include errno.h #include sys/socket.h #include netinet/in.h #include arpa/inet.h pthread_mutex_t mutex; pthread_cond_t cond; pthread_attr_t attr; struct sockaddr_in server; int sockets=2; int threadgroup=5; void *thread_code(void *arg) { int threadnum = (int) arg; int i; int s; char buf[64]; pthread_mutex_lock(mutex); printf(Thread %d running...\n, threadnum); pthread_mutex_unlock(mutex); for (i=0; isockets; ++i) { sleep(2); if((s = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) == -1) { pthread_mutex_lock(mutex); printf(Thread %d socket() error\n, threadnum); pthread_mutex_unlock(mutex); goto error; } if (-1 == connect(s, (struct sockaddr *)server, sizeof(server))) { pthread_mutex_lock(mutex); printf(Thread %d connect() error\n, threadnum); pthread_mutex_unlock(mutex); goto error; }
Re: 1.0-1: ping problem
Jason FU wrote: $ ping www.cygwin.com Do you have problems understanding a *SIMPLE* request? Please provide the details as mentioned in the web page http://cygwin.com/problems.html. In case that wasn't clear to you: Please provide the details as mentioned in the web page http://cygwin.com/problems.html. And once again: Please provide the details as mentioned in the web page http://cygwin.com/problems.html. Oh, and finally, please *read the page carefully*, and follow the instructions exactly. Don't interpret them or do equivalent steps. Thanks -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
touch failing on network share
I have a network share set up on my OS/2 box using HPFS. On that share, I have directory: cygmanaged, and under that, I have a directory tmp2. So, I can mount this directory as: mount --system --binary -omanaged z:/cygmanaged/tmp2 /tmp2, and it looks like everything is fine. But, when I try to 'touch' any file/directory on that mount, I get this error: touch: setting times of `cygwin-equivs/': Permission denied However, I can vi/edit/rm/mv or do just about anything else that I want to the file. I just can't seem to do a touch on it. Does anyone have any insight into touch as to what it is doing that might be causing the permissions problem? Thanks. I just tested this on the raw share (/cygdrive/z/foo) and it still fails. So, it is not a managed mount problem/issue, but something deeper. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: touch failing on network share
On Fri, Jan 28, 2005 at 11:43:41AM -0700, Mark Paulus wrote: I have a network share set up on my OS/2 box using HPFS. On that share, I have directory: cygmanaged, and under that, I have a directory tmp2. So, I can mount this directory as: mount --system --binary -omanaged z:/cygmanaged/tmp2 /tmp2, and it looks like everything is fine. But, when I try to 'touch' any file/directory on that mount, I get this error: touch: setting times of `cygwin-equivs/': Permission denied However, I can vi/edit/rm/mv or do just about anything else that I want to the file. I just can't seem to do a touch on it. Does anyone have any insight into touch as to what it is doing that might be causing the permissions problem? Thanks. I just tested this on the raw share (/cygdrive/z/foo) and it still fails. So, it is not a managed mount problem/issue, but something deeper. I have observed a similar problem with a XP HOME mounting a remote Win98 drive. I traced it to SetFileTime failing, i.e. a MS issue. strace touch xxx will show you what happens. Pierre -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Cron problem on Windows 2003
On Fri, 28 Jan 2005, Ballarin Federico, PD wrote: We have cygwin ver. 1.5.12 We try to install cygwin cron on Win 2003 with cygrunsrv -I cron -p /usr/sbin/cron -a -D string. We started service with cygrunsrv -S cron. Service start all successfully. Our scripts don't start. When we try to install the cron service by user Administrator from bash, the administrato's scripts start. Not the most obvious place to look for this, but read /usr/share/doc/Cygwin/openssh.README, where it says Important note for Windows 2003 Server users. HTH, Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! The Sun will pass between the Earth and the Moon tonight for a total Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: touch failing on network share
Pierre A. Humblet wrote: On Fri, Jan 28, 2005 at 11:43:41AM -0700, Mark Paulus wrote: I have a network share set up on my OS/2 box using HPFS. On that share, I have directory: cygmanaged, and under that, I have a directory tmp2. So, I can mount this directory as: mount --system --binary -omanaged z:/cygmanaged/tmp2 /tmp2, and it looks like everything is fine. But, when I try to 'touch' any file/directory on that mount, I get this error: touch: setting times of `cygwin-equivs/': Permission denied However, I can vi/edit/rm/mv or do just about anything else that I want to the file. I just can't seem to do a touch on it. Does anyone have any insight into touch as to what it is doing that might be causing the permissions problem? Thanks. I just tested this on the raw share (/cygdrive/z/foo) and it still fails. So, it is not a managed mount problem/issue, but something deeper. I have observed a similar problem with a XP HOME mounting a remote Win98 drive. I traced it to SetFileTime failing, i.e. a MS issue. strace touch xxx will show you what happens. Pierre This is interesting and sounds very familiar to a problem I had with using Rational Clearcase. I would mount a snapshot view using Cygwin (I forget its behavior on dynamic views) and touch would likewise fail WRT setting times. Seems to me that it's a file system issue as you were using an HPFS from OS/2. Interestingly Clearcase uses a different file system to. I wonder, that Win 98 drive is also a different file system (FAT). Could it be that SetFileTime only works with NTFS? Is there another Windows call to SetFileTime(s) on FAT and otherwise foreign file systems like HPFS and/or vendor supplied file systems such as Clearcase's? -- Young at heart. Slightly older in other places. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Cron problem on Windows 2003
On Fri, Jan 28, 2005 at 02:11:47PM -0500, Igor Pechtchanski wrote: On Fri, 28 Jan 2005, Ballarin Federico, PD wrote: We have cygwin ver. 1.5.12 We try to install cygwin cron on Win 2003 with cygrunsrv -I cron -p /usr/sbin/cron -a -D string. We started service with cygrunsrv -S cron. Service start all successfully. Our scripts don't start. When we try to install the cron service by user Administrator from bash, the administrato's scripts start. Not the most obvious place to look for this, but read /usr/share/doc/Cygwin/openssh.README, where it says Important note for Windows 2003 Server users. There is also http://cygwin.com/ml/cygwin-announce/2005-01/msg4.html announcing the availability of /usr/bin/cron-config Pierre -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Cron problem on Windows 2003
On Fri, 28 Jan 2005, Pierre A. Humblet wrote: On Fri, Jan 28, 2005 at 02:11:47PM -0500, Igor Pechtchanski wrote: On Fri, 28 Jan 2005, Ballarin Federico, PD wrote: We have cygwin ver. 1.5.12 We try to install cygwin cron on Win 2003 with cygrunsrv -I cron -p /usr/sbin/cron -a -D string. We started service with cygrunsrv -S cron. Service start all successfully. Our scripts don't start. When we try to install the cron service by user Administrator from bash, the administrato's scripts start. Not the most obvious place to look for this, but read /usr/share/doc/Cygwin/openssh.README, where it says Important note for Windows 2003 Server users. There is also http://cygwin.com/ml/cygwin-announce/2005-01/msg4.html announcing the availability of /usr/bin/cron-config Right. I'm wondering whether the above section from the openssh.README should be copied to /usr/share/doc/Cygwin/cron.README? The cron.README could also use some more info about what the cron-config script, similar to that in the openssh.README. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! The Sun will pass between the Earth and the Moon tonight for a total Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Cron problem on Windows 2003
Igor Pechtchanski wrote: Right. I'm wondering whether the above section from the openssh.README should be copied to /usr/share/doc/Cygwin/cron.README? The cron.README could also use some more info about what the cron-config script, similar to that in the openssh.README. Right. Comments about the following blurb? Pierre This is the Cygwin port of Paul Vixie's cron-3.01. The script /usr/bin/cron-config can be used to install cron as a service on all Windows platforms supported by Cygwin. Note that on NT systems, cron relies on the Cygwin feature to be able to switch the user context without password. On NT/W2K, it can run under SYSTEM account, while on Win2003 it must run under an account with special privileges. In both those cases, the child processes may not have access to net shares. An alternative is to run the service under your own account. This gives access to net shares but does not allow to run the crontab of other users. Important: Make sure you have a Cygwin MTA (e. g. either exim or ssmtp) installed and configured! Cron tries to access the MTA by calling /usr/sbin/sendmail. On Cygwin this is usually a symlink pointing to the appropriate binary. This symlink gets created by the MTA's configuration scripts (e. g. /usr/bin/exim-config or /usr/bin/ssmtp-config). -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
su alternative for Win2k
I was just installing postgreSQL and ran across the problem with getting initdb to run as the postgres user. As expected, I could neither su nor login to work. Searching the archives and the like for a fix, the most often specified one was to use ssh. But as I don't run sshd, and it seems a shame to have to run this just to get an su-like behaviour, that wouldn't work for me. I finally hit upon the following solution. Maybe its in the archives, maybe not, but I thought I would post it (again?) to maybe save someone the hour or so I spent thrashing around the problem. 1] Create a shortcut to bash on your desktop 2] Now right-click on it and select Properties 3] Select the Shortcut tab and append the '-l' (that's dash el) to the Target: to make it be a login shell 4] a] Win2k : Select the Run as different user check box b] WinXP : click on the Advanced button and check Run with different credentials Now when you click this shortcut, you will be prompted for the user to run bash as. Type in postgres and the password, and voila - you have a bash shell running as the selected user. Make running initdb and, just as importantly, createuser a piece of cake. Assuming, of course, you have the paths correct. -- Jonathan Arnold (mailto:[EMAIL PROTECTED]) Amazing Developments http://www.buddydog.org I feel like a fugitive from the law of averages. - William H. Mauldin -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: su alternative for Win2k
Jonathan Arnold wrote: I was just installing postgreSQL and ran across the problem with getting initdb to run as the postgres user. As expected, I could neither su nor login to work. Searching the archives and the like for a fix, the most often specified one was to use ssh. But as I don't run sshd, and it seems a shame to have to run this just to get an su-like behaviour, that wouldn't work for me. I finally hit upon the following solution. Maybe its in the archives, maybe not, but I thought I would post it (again?) to maybe save someone the hour or so I spent thrashing around the problem. 1] Create a shortcut to bash on your desktop 2] Now right-click on it and select Properties 3] Select the Shortcut tab and append the '-l' (that's dash el) to the Target: to make it be a login shell 4] a] Win2k : Select the Run as different user check box b] WinXP : click on the Advanced button and check Run with different credentials Now when you click this shortcut, you will be prompted for the user to run bash as. Type in postgres and the password, and voila - you have a bash shell running as the selected user. Make running initdb and, just as importantly, createuser a piece of cake. Assuming, of course, you have the paths correct. No need to go through all those steps. Just use runas (try runas /?). It's a Windows command that does essentially what you want from the command line. -- This is as bad as it can get, but don't bet on it. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Problem uninstalling/deleting cygwin
On Thu, 27 Jan 2005, Joshua Daniel Franklin wrote: Larry Hall wrote: At 02:10 PM 1/26/2005, you wrote: I will be adding doc to the webpage talking about the perils of downgrading, but in truth this subject should be noted in the normal FAQ concerning reverting to the previous version as well. The Cygwin FAQ doesn't seem to be the right place for the Cygwin version of this information though. Maybe the UG is? Joshua, what's your thoughts on this? I agree with Peter that the this is a common problem on any OS, but I try not to put any generic good ideas in the FAQ, only ones specific to Cygwin. Sort-of the same thing with the User's Guide, the reader is expected to have a certain level of computer knowledge and common sense. Hmm... As someone who writes doc for a product I produce (and have had to revise many times as customers often make assumptions which are usually quite wrong), I'm torn on this issue. Yes, we would expect a certain level of competency and common sense, but for first or second time users that may not be the case. Even for seasoned veterans, diddling with a previously unknown/unused package can lead to surprise. Consider that most package management systems do not give the option to install a previous version of a product. I think this is somewhat unique to Cygwin's Setup. Additionally, we'd like to assume that removing a package would clean everything related to it and new installations would properly update anything it needs to. In practice, this is often not true and is really quite specific on a product/package basis. Witness Windows' own program manager which, even when a product has been removed. often leaves bits of itself in directories (and espectially in the Registry). Subsequent installations/upgrades can either take advantage of these droppings or (more often) cause problems because the environment isn't clean. I guess, part of the professionalism of a product, is to provide as much meaningful information as possible, but also to account for the cock-pit errors that commonly occur and give warnings concerning them. It's often a helpful reminder for the newbie as well as the seasoned user that shift happens. -- Peter A. Castro [EMAIL PROTECTED] or [EMAIL PROTECTED] Cats are just autistic Dogs -- Dr. Tony Attwood -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: su alternative for Win2k
I was just installing postgreSQL and ran across the problem with getting initdb to run as the postgres user. As expected, I could neither su nor login to work. Searching the archives and the like for a fix, the most often specified one was to use ssh. But as I don't run sshd, and it seems a shame to have to run this just to get an su-like behaviour, that wouldn't work for me. Now I'm curious. I haven't tried to search for bug reports on su in Cygwin. But it's never worked for me. I always figured that I was just doing something wrong, but it was never important enough to find out what it was and fix it-- I just used 'Run As' instead, as you suggest. So now I wonder, is it not just me? Is su in Cygwin broken for everyone? Thanks, A. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: touch failing on network share
On Fri, Jan 28, 2005 at 11:26:21AM -0800, Andrew DeFaria wrote: Is there another Windows call to SetFileTime(s) on FAT and otherwise foreign file systems like HPFS and/or vendor supplied file systems such as Clearcase's? Yes. It's the SetFileTimeCorrectlyOnHPFSandClearCase() call. Unfortunately it take 42 arguments and we've only figured out the first 29. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Cron problem on Windows 2003
On Fri, 28 Jan 2005, Pierre A. Humblet wrote: Igor Pechtchanski wrote: Right. I'm wondering whether the above section from the openssh.README should be copied to /usr/share/doc/Cygwin/cron.README? The cron.README could also use some more info about what the cron-config script, similar to that in the openssh.README. Right. Comments about the following blurb? Pierre This is the Cygwin port of Paul Vixie's cron-3.01. The script /usr/bin/cron-config can be used to install cron as a service on all Windows platforms supported by Cygwin. Note that on NT systems, cron relies on the Cygwin feature to be able to switch the user context without password. On NT/W2K, it can run under SYSTEM account, while on Win2003 it must run under an account with special privileges. In both those cases, the child processes may not have access to net shares. An alternative is to run the service under your own account. This gives access to net shares but does not allow to run the crontab of other users. Important: Make sure you have a Cygwin MTA (e. g. either exim or ssmtp) installed and configured! Cron tries to access the MTA by calling /usr/sbin/sendmail. On Cygwin this is usually a symlink pointing to the appropriate binary. This symlink gets created by the MTA's configuration scripts (e. g. /usr/bin/exim-config or /usr/bin/ssmtp-config). I don't know, I kind of prefer the way it's phrased in the openssh.README (i.e., a special note about the user privileges in Win2003, rather than a common description). That README also has a nice step-by-step description of what sshd-host-config does, so that the users have the option to do the installation steps manually (or verify that the needed things were created). But hey, I don't use cron extensively, and I certainly can't speak for new users... Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! The Sun will pass between the Earth and the Moon tonight for a total Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: su alternative for Win2k
On Fri, 28 Jan 2005, Andrew Schulman wrote: So now I wonder, is it not just me? Is su in Cygwin broken for everyone? http://cygwin.com/faq/faq_3.html#SEC42 Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! The Sun will pass between the Earth and the Moon tonight for a total Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: touch failing on network share
Christopher Faylor wrote: On Fri, Jan 28, 2005 at 11:26:21AM -0800, Andrew DeFaria wrote: Is there another Windows call to SetFileTime(s) on FAT and otherwise foreign file systems like HPFS and/or vendor supplied file systems such as Clearcase's? Yes. It's the SetFileTimeCorrectlyOnHPFSandClearCase() call. So then - You Found It! Good for you! :-) Unfortunately it take 42 arguments and we've only figured out the first 29. Keep working at it Chris. We know you can do it. So then, when can we expect a fix? For the humor impaired: :-) :-) -- FATAL ERROR! SYSTEM HALTED! - Press any key to do nothing. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: su alternative for Win2k
Andrew Schulman wrote: I was just installing postgreSQL and ran across the problem with getting initdb to run as the postgres user. As expected, I could neither su nor login to work. Searching the archives and the like for a fix, the most often specified one was to use ssh. But as I don't run sshd, and it seems a shame to have to run this just to get an su-like behaviour, that wouldn't work for me. Now I'm curious. I haven't tried to search for bug reports on su in Cygwin. But it's never worked for me. I always figured that I was just doing something wrong, but it was never important enough to find out what it was and fix it-- I just used 'Run As' instead, as you suggest. So now I wonder, is it not just me? Is su in Cygwin broken for everyone? Yes, according to the FAQ, su is essentially unsupported. One suggestion is to use 'login' but that also requires lots of research and changing of security parameters and the like. I couldn't really get RunAs to work for me. It wouldn't let me type in a password. I like the shortcut because now I can get a real bash shell for any of my users at the click of a mouse. -- Jonathan Arnold (mailto:[EMAIL PROTECTED]) Amazing Developments http://www.buddydog.org I feel like a fugitive from the law of averages. - William H. Mauldin -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Problem uninstalling/deleting cygwin
On Fri, Jan 28, 2005 at 01:09:26PM -0800, Peter A. Castro wrote: I guess, part of the professionalism of a product, is to provide as much meaningful information as possible, but also to account for the cock-pit errors that commonly occur and give warnings concerning them. The adjective meaningful is a highly subjective one. Let's not go there. It's often a helpful reminder for the newbie as well as the seasoned user that shift happens. I don't know who's supposed to be reminding these people of that but just so we don't wander into off-topic territory discussing what professionalism means and having everyone relate their 27 years of documentating so I know what I'm talking about, let me just say that I, as one of the Cygwin project managers, agree with Joshua's philosophy and don't want to see it change. (I feel that I have to keep a closer reign on this type of discussion since apparently I've been doing a poor job and letting all sorts of off-topic crap go on for far too long.) So, let's just let Joshua handle things the way he wants to and not have a discussion about whether we need to flesh out the documentation with concepts like managing multiple versions of software or reverting to older versions. cgf (who has more than 27 years of meaningful documentation writing experience) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: su alternative for Win2k
Andrew Schulman wrote: I was just installing postgreSQL and ran across the problem with getting initdb to run as the postgres user. As expected, I could neither su nor login to work. Searching the archives and the like for a fix, the most often specified one was to use ssh. But as I don't run sshd, and it seems a shame to have to run this just to get an su-like behaviour, that wouldn't work for me. Now I'm curious. I haven't tried to search for bug reports on su in Cygwin. But it's never worked for me. I always figured that I was just doing something wrong, but it was never important enough to find out what it was and fix it-- I just used 'Run As' instead, as you suggest. So now I wonder, is it not just me? Is su in Cygwin broken for everyone? Try doing what you neglected to do, which is search for bug reports on su in Cygwin. You'll end up answering your own question, one that's been answered here time and time again... -- If you have a difficult task, give it to a lazy person; they'll find an easier way to do it. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: su alternative for Win2k
On Fri, Jan 28, 2005 at 04:31:02PM -0500, Igor Pechtchanski wrote: On Fri, 28 Jan 2005, Andrew Schulman wrote: So now I wonder, is it not just me? Is su in Cygwin broken for everyone? http://cygwin.com/faq/faq_3.html#SEC42 So, who do we have to su to get this working? cgf *squawk* -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: touch failing on network share
On Fri, Jan 28, 2005 at 01:44:47PM -0800, Andrew DeFaria wrote: Christopher Faylor wrote: On Fri, Jan 28, 2005 at 11:26:21AM -0800, Andrew DeFaria wrote: Is there another Windows call to SetFileTime(s) on FAT and otherwise foreign file systems like HPFS and/or vendor supplied file systems such as Clearcase's? Yes. It's the SetFileTimeCorrectlyOnHPFSandClearCase() call. So then - You Found It! Good for you! :-) Unfortunately it take 42 arguments and we've only figured out the first 29. Keep working at it Chris. We know you can do it. So then, when can we expect a fix? Sadly, I need a Cray to do any further analysis. I guess it's time to start up the donations again... cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: touch failing on network share
Yes. It's the SetFileTimeCorrectlyOnHPFSandClearCase() call. Sadly, I need a Cray to do any further analysis. I guess it's time to start up the donations again... I just installed the [EMAIL PROTECTED] screen saver. Everybody, do your part! Adam -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Cron problem on Windows 2003
Igor Pechtchanski wrote: I don't know, I kind of prefer the way it's phrased in the openssh.README (i.e., a special note about the user privileges in Win2003, rather than a common description). That README also has a nice step-by-step description of what sshd-host-config does, so that the users have the option to do the installation steps manually (or verify that the needed things were created). But hey, I don't use cron extensively, and I certainly can't speak for new users... Thanks for the feedback, Igor. The need for the special user is generic to all services (sshd, crond, exim...). Instead of repeating the same info in all the readmes, I will refer to http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-switch although that section should be corrected and expanded. Pierre -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: touch failing on network share
Adam Heinz wrote: Yes. It's the SetFileTimeCorrectlyOnHPFSandClearCase() call. Sadly, I need a Cray to do any further analysis. I guess it's time to start up the donations again... I just installed the [EMAIL PROTECTED] screen saver. Everybody, do your part! A SFT... what (sound of a plane flying way over head). OK you got me. What's [EMAIL PROTECTED] screen saver? -- If you mated a bulldog and a shitsu, would it be called a bullshit? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: touch failing on network share
Yes. It's the SetFileTimeCorrectlyOnHPFSandClearCase() call. Sadly, I need a Cray to do any further analysis. I guess it's time to start up the donations again... I just installed the [EMAIL PROTECTED] screen saver. Everybody, do your part! A SFT... what (sound of a plane flying way over head). OK you got me. What's [EMAIL PROTECTED] screen saver? I left a hint in the quoted message! ;) Adam -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: touch failing on network share
Adam Heinz wrote: Yes. It's the SetFileTimeCorrectlyOnHPFSandClearCase() call. Sadly, I need a Cray to do any further analysis. I guess it's time to start up the donations again... I just installed the [EMAIL PROTECTED] screen saver. Everybody, do your part! A SFT... what (sound of a plane flying way over head). OK you got me. What's [EMAIL PROTECTED] screen saver? I left a hint in the quoted message! ;) Adam Ah, I get it now. Sorry, when acronyms get beyond 3 or 4 letters I usually give up! -- The Definition of an Upgrade: Take old bugs out, put new ones in. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: su alternative for Win2k
On Fri, 28 Jan 2005, Andrew Schulman wrote: So now I wonder, is it not just me? Is su in Cygwin broken for everyone? http://cygwin.com/faq/faq_3.html#SEC42 Thank you. As I said, I never bothered to look into it... Guess it's time to read the FAQs. Regards, Andrew. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: port of linux code: linker does not find .a
Mirko wrote: Hi, I am trying to compile a c code that has been developed on linux (monte-carlo plasma simulation). (Ahem, keep in mind that I am not a master programmer or linux user, so I may be going a bit over my head) The code consists of two utilities, xgrafix and xdp1. xgrafix creates a library that xpdp1 is supposed to link to. I managed to compile the xgrafix and generate the library (the makefile uses the ar command for that). However, when trying to link xpdp1, the linker fails to recognize the xgrafix library, even though the path is correct or if I move the library to the working directory. From browsing the cygwin mailing list I gleaned that I may in fact need to create a .dll and not an .a and that the linker is failing because it can link only with a dll. Correct?So my question is three-fold: 1) am I supposed to create a dll instead of an a(rchive) 2) if so, should I use the instructions in the cygwin docs regarding the makings of a dll? I ask that because in those instructions, we use gcc while in the original makefile, we used ar. 3) Is cygwin the right environment for this? I like to have it on my pc, and would rather not have to learn to use mingw. Thanks, Mirko Well, half an hour after posting my question, I was poking at the mingw site I found a link to a tutorial that mentined the -lXXX and libXXX.a naming convention. Sure enough, when I applied the correct naming scheme the linker found the library. I now have other issues and questions, but I want to tinker a bit more before coming out more questions. Mirko -- *m*irko*vukovic*-at-nycap-rr-com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/