Re: ftruncate64() question?

2004-05-24 Thread Bill C. Riemers
> What's wrong with ftruncate? ftruncate fails with files larger >= 2GB because off_t gets interpreted as 32 bit signed integer... I can find some archived cygwin messages referencing bug fixes to ftruncate64 in the cygwin.dll. However, using ftruncate64 results in an unresolved symbol. In fact

ftruncate64() question?

2004-05-24 Thread Bill C. Riemers
Greetings. I am trying to write a program using cygwin that truncates files larger than 4GB to a specific size as part of its functionality. However, I cannot find a ftruncate64() in the cygwin libraries. Are there other alternatives available? BTW. Normally I would search the cygwin archives f

Re: spambot?

2004-05-24 Thread Bill C. Riemers
> If you search google, you'll probably be able to fix your Internet > Explorer installation so that "RedHat" (sic) does not consider you to be > a spambot. I didn't think of using Google. It doesn't help much, because the search results are as nearly precise as the search on cygwin site under ma

Re: ftruncate64() question?

2004-05-24 Thread Bill C. Riemers
> On Sat, May 22, 2004 at 04:24:22PM -0400, Bill C. Riemers wrote: > bash-2.05b$ ./off_t > sizeof(off_t) = 8 > You don't use ftruncate64. You use ftruncate. Cygwin is 64 bit by default. I stand correct. The bug was elsewhere in my code. I have been working with java so

Re: [coLinux-devel] Sparse files?

2004-05-13 Thread Bill C. Riemers
less than 16 terabytes as a maximum size on a partition that only has 7 gigabytes of space available. Bill - Original Message - From: "Daniel Slater" <[EMAIL PROTECTED]> To: "'Bill C. Riemers'" <[EMAIL PROTECTED]&g

Sparse files?

2004-05-13 Thread Bill C. Riemers
OK. Then there must be a problem in the way cygwin creates sparse files, since the files created by seeking past the end in cygwin always take up the full amount of disk space. I've verified this with both Windows and cygwin tools. I'll try taking it up on the cygwin list to see what I can learn

Re: 1.5.9-1: Sysvinit starting but isn't running RC Scripts.

2004-04-28 Thread Bill C. Riemers
;exit' SIGINT while [ 1 ] ; do sleep 30 done When you create this as a service, use the SIGINT as the termination signal... Bill - Original Message - From: "Christopher Ferris" <[EMAIL PROTECTED]> To: "Bill C. Riemers" <[

Re: 1.5.9-1: Sysvinit starting but isn't running RC Scripts.

2004-04-28 Thread Bill C. Riemers
I believe I posted a script in the past, that I used to work around this problem. Basically the problem is that the runlevels never get set. So you need a script that manually steps through and sets each of the runlevels in the correct order. Overall it is a huge pain. After several generations

Re: Tutorial on ACL's?

2004-04-23 Thread Bill C. Riemers
ng to interpret or map those settings. Bill - Original Message - From: "Larry Hall" <[EMAIL PROTECTED]> To: "Bill C. Riemers" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, April 23, 2004 11:38 AM S

Tutorial on ACL's?

2004-04-23 Thread Bill C. Riemers
Is there a good tutorial for ACL's somewhere? I find ACL's do not work they way I expect on NTFS. Eventually directories which I use chmod and chown on become unusable for general actives. For example, I regularly install applications on my e: drive. However, because I have used chmod and chown

Re: how to get IP with a shell command?

2004-04-21 Thread Bill C. Riemers
> The ipconfig stuff isn't much more reliable, depending on your setup. > I always have TWO IP's when my PPP/ISDN is up: > > $ ipconfig /all You could try using the "route print" command as well. i.e. Maybe something like: route print |expand |sed -n -e "s,.* $(route print|expand|sed -n -e 's,[

Re: Emulating hard links on FAT et al.

2004-04-21 Thread Bill C. Riemers
Ack. I do wish Outlook Express had grammar checking abilities, or I would at least remember to proof read after correcting the spelling... Bill - Original Message - From: "Bill C. Riemers" <[EMAIL PROTECTED]> To: <[EMAIL P

Re: Emulating hard links on FAT et al.

2004-04-21 Thread Bill C. Riemers
Bill - Original Message - From: "Dennis McCunney" <[EMAIL PROTECTED]> To: "'Bill C. Riemers'" <[EMAIL PROTECTED]> Sent: Tuesday, April 20, 2004 11:10 PM Subject: RE: Emulating hard links on FAT et al. > > -Original Message--

Re: Emulating hard links on FAT et al.

2004-04-20 Thread Bill C. Riemers
. Bill - Original Message - From: "Corinna Vinschen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 20, 2004 4:35 PM Subject: Re: Emulating hard links on FAT et al. > On Apr 20 15:00, Bill C. Riemers wrote: > > One obvious thing hard l

Re: Emulating hard links on FAT et al.

2004-04-20 Thread Bill C. Riemers
. Bill - Original Message - From: "Corinna Vinschen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 20, 2004 4:35 PM Subject: Re: Emulating hard links on FAT et al. > On Apr 20 15:00, Bill C. Riemers wrote: > > One obvious thing hard links

Re: Emulating hard links on FAT et al.

2004-04-20 Thread Bill C. Riemers
Hmmm. I forgot one other advantage of symbolic links. They are independent of the locations of each other. i.e. touch /tmp/foo.txt ln /tmp/foo.txt /home/bcr/foo.txt mkdir /home/bcr/tmp mv /tmp/foo.txt /home/bcr/tmp/foo.txt Both versions of foo.txt are still valid, even though they woul

Re: Emulating hard links on FAT et al.

2004-04-20 Thread Bill C. Riemers
One obvious thing hard links allow is a way to have the same file with different permissions. With a symbolic link you need both access permissions for the symbolic link and actual file. i.e. ln -s /tmp/foo.exe /home/bcr/foo.exe chmod ugo-x /tmp/foo.exe chmod ugo+x /home/bcr/foo.exe With

Re: SCP doesn't complete transfers of large files

2004-01-28 Thread Bill C. Riemers
I remember a post about a month of ago that described the bug in detail. The problem is even more problematic with rsync. The author of the message went on to propose a solution. Unfortunately, I don't think the person was a programmer, so there was no actual source code patch. It doesn't seem

Re: Unable to compile cygwin

2003-12-23 Thread Bill C. Riemers
Ahh. The old chicken and egg problem. Normally the way to resolve this issue is to use a cross compiler. However, even then you still have to start off with a binary application, just on another platform. For example, you could use gcc running under Linux. But how do you verify the Linux distr

Re: Include Problem

2003-11-15 Thread Bill C. Riemers
> It doesn't. Cygwin != Linux. > > Also, AFAIK, if a Linux application is directly including linux/*, it is > broken. Not necessarily. Not every application is designed to work across different platforms. Sometimes a programmer may choice to sacrifice portability for some other advantage. In f

Re: Cygwin/rsync Hang Problem Testing Results

2003-10-02 Thread Bill C. Riemers
I have found rsync runs slighty longer when you run ssh -e 'noescape' option, as in the following script: #!/bin/bash exec ssh -e 'none' "$@" In fact, I find the above script is absolutely essential with cvs. (I've yet to platform where it wasn't required.) One would expect the -T option to also

Re: ssh problem with $HOME

2003-09-05 Thread Bill C. Riemers
> I wasn't sure what you meant by the last sentence above. I do set > $HOME in windows, so all apps can benefit from it, and /etc/profile > honours that. Why ssh feels the need to look at /etc/passwd, when it > is documented to look at $HOME, I don't know. Quite simple. When you run "ssh" it ca

Re: Strange cygpath/Perl 5.8 interaction?

2003-09-03 Thread Bill C. Riemers
It is not perl adding and extra line feed. It is bash automatically removing a line feed... i.e. $ echo "|"`pwd`"|" |/tmp| $ pwd |od -t x1 000 2f 74 6d 70 0a 005 Bash will remove the \n for you automatically when using `pwd`, perl won't. To tell perl to remove the tra

Re: malloc segfaults

2003-09-02 Thread Bill C. Riemers
Definitely looks like a cygwin1.dll bug to me. I see consistently the traceback either terminates in strdup() called from mmap64(), or mktime() called from strdup(). There are a number of hacks you can do to work around the bug. i..e.: void *malloc_wrapper(size_t t) { static const size_

Re: Licensing for academic computer labs at a university

2003-08-22 Thread Bill C. Riemers
Actually, if the are university computers, then only university needs to have access to the source. The GPL only requires that if you are distribute the binaries, that you also distribute the source. It says nothing about providing source for your own computers. That is true for both an individ

Re: change wallpaper periodly by cron?

2003-08-21 Thread Bill C. Riemers
There is a solution for programs which you don't compile. That is simply to reposition the console window off screen. i.e. Right click on the title bar of the window and select properties. Then go to layout. Unselect "Let system position window". Adjust the window so the position is off scree

Re: init and xinetd woes

2003-08-21 Thread Bill C. Riemers
Hi Jonathan, I found I had to write a custom /usr/sbin/init.sh script to get init to work properly. It seems like the sysvinit has nothing in it that actually controls setting the runlevels during startup and shutdown. So I installed the script as the service instead of the init program: cygru

Re: ssh does not find the config file?

2003-08-21 Thread Bill C. Riemers
Check the permissions on your directories. 'ssh' will ignore a .ssh directory if anybody else has write permissions to the containing directory. i.e. Both /home and /home/.ssh should have permissions 755 or something even more restrictive. It bypasses this check when you explicitly provide the pa

Re: cygwin.com unavailable from blueyonder/telewest uk

2003-07-30 Thread Bill C Riemers
> > My question is: can I install cygwin without access to cygwin.com, and > > if so, how? Here is what I've done: > > Unfortunately not as you have noticed below, setup.exe requires the file > mirrors.lst, which is located on cygwin.com . Sure you can. Just convince someone to snail mail you a

Re: License question about Cygwin

2003-07-16 Thread Bill C Riemers
> > As the Cygwin.dll is licensed under GPL, any "Program" that links to it must > > be released under GPL as well. > > Under section 10 of the GPL, if the "program" is OSD compatible then the > "program" is not auto-GPL'd. Actually section 10 of the GPL just states the following: > 10. If you wi

Re: License question about Cygwin

2003-07-16 Thread Bill C Riemers
RedHat has granted a special exception that allows any open source to link to Cygwin.dll. As the legal copyright holder, RedHat may grant any sort of exception to the GPL they want, and are not bound to the GPL. (This only applies to Cygwin.dll and other components that RedHat can claim ownershi

Re: SYSTEM password

2003-07-16 Thread Bill C Riemers
Actually, "Administrator" is both a user and a group. It seems on some versions of windows, "Administrators" is the group, and "Administrator" is the user. On other versions, both are just "Administrator". If you want to login to "Administrator" under XP home addition, you need to boot to Safe M

Re: Permission problems with recent Cygwin

2003-07-16 Thread Bill C Riemers
Hmmm. I recently had need of reinstalling my cygwin installation. I did find the permissions were overly restrictive. Even though I had marked the installation for everyone, only the account I used to create it could login until I did: chmod -R ug+rwX,o+rX / chmod 1777 `find / -n

Re: Question about Cygwin License

2003-06-20 Thread Bill C. Riemers
Depending on the country you are distributing in, so long as you don't actually distribute the cygwin.dll with your application, this may be classified as "Fair Use". You'll have to consultant an attorney as "Fair use" varies both by country and state. Some countries don't have a fair use clause

Re: About the 'su' command

2003-06-18 Thread Bill C. Riemers
> The second says the command wont work unless I have appropriate > privileges. > Do you know "someone" on an XP station that has more powers than the > Administrator or an Administrators member ? On most Unix systems, if you create a user with UID 65535 you will find that user is unable to run '