public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* RE: where is at at?
@ 2004-05-21 15:33 Clemson, Chris
  2004-05-21 16:04 ` Dave Korn
  0 siblings, 1 reply; 27+ messages in thread
From: Clemson, Chris @ 2004-05-21 15:33 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

> On Fri, 21 May 2004, Mike Kenny - BCX - Mngd Services wrote:
> 
> > I have selected all to be installed, so I assume that I 
> should have all
> > commands installed. But I can't find 'at'. Does Cygwin support this?
> >
> > Mike
> 
> "at" is a Windows command that's part of the task scheduler service (I
> think it gets installed with IE6, but I'm not sure).
> 	Igor

yes, AT is a windows command. it comes with windows NT onwards. It is part
of the OS, not part of IE

chris

-- 
The content of this e-mail is confidential, may contain privileged material
and is intended solely for the recipient(s) named above. If you receive this
in error, please notify Software AG immediately and delete this e-mail.

Software AG (UK) Limited
Registered in England & Wales 1310740
Registered Office: Hudson House, Hudson Way,
Pride Park, Derby DE24 8HS

--
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/

^ permalink raw reply	[flat|nested] 27+ messages in thread

* RE: where is at at?
  2004-05-21 15:33 where is at at? Clemson, Chris
@ 2004-05-21 16:04 ` Dave Korn
  2004-05-21 16:23   ` Andrew DeFaria
  0 siblings, 1 reply; 27+ messages in thread
From: Dave Korn @ 2004-05-21 16:04 UTC (permalink / raw)
  To: cygwin

> -----Original Message-----
> From: cygwin-owner On Behalf Of Clemson, Chris
> Sent: 21 May 2004 15:52

> > On Fri, 21 May 2004, Mike Kenny - BCX - Mngd Services wrote:
> > 
> > > I have selected all to be installed, so I assume that I 
> > should have all
> > > commands installed. But I can't find 'at'. Does Cygwin 
> support this?
> > >
> > > Mike
> > 
> > "at" is a Windows command that's part of the task scheduler 
> service (I
> > think it gets installed with IE6, but I'm not sure).
> > 	Igor
> 
> yes, AT is a windows command. it comes with windows NT 
> onwards. It is part of the OS, not part of IE

  Yes, it's a 'doze command.

  Yes, it's part of the basic OS, not IE.  (Has been since NT days).

  Yes, there's also a Posix AT command:

http://www.opengroup.org/onlinepubs/009695399/utilities/at.html

  It interacts with the cron daemon.  So in principle there's no reason why
there shouldn't be a cygwin at command to interact with the cygwin crond
entirely independently of the 'doze at command and task scheduler.  I guess
nobody's ported it yet.

    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


--
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/

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: where is at at?
  2004-05-21 16:04 ` Dave Korn
@ 2004-05-21 16:23   ` Andrew DeFaria
  2004-05-21 19:15     ` Igor Pechtchanski
  0 siblings, 1 reply; 27+ messages in thread
From: Andrew DeFaria @ 2004-05-21 16:23 UTC (permalink / raw)
  To: cygwin

Dave Korn wrote:

> Yes, there's also a Posix AT command:
>
> http://www.opengroup.org/onlinepubs/009695399/utilities/at.html
>
> It interacts with the cron daemon. So in principle there's no reason 
> why there shouldn't be a cygwin at command to interact with the cygwin 
> crond entirely independently of the 'doze at command and task 
> scheduler. I guess nobody's ported it yet.

Let us know when you are finished porting it! ;-)
-- 
If you think that there is good in everybody, you haven't met everybody.


--
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/

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: where is at at?
  2004-05-21 16:23   ` Andrew DeFaria
@ 2004-05-21 19:15     ` Igor Pechtchanski
  2004-05-21 20:04       ` Dave Korn
  0 siblings, 1 reply; 27+ messages in thread
From: Igor Pechtchanski @ 2004-05-21 19:15 UTC (permalink / raw)
  To: Andrew DeFaria; +Cc: cygwin

On Fri, 21 May 2004, Andrew DeFaria wrote:

> Dave Korn wrote:
>
> > Yes, there's also a Posix AT command:
> >
> > http://www.opengroup.org/onlinepubs/009695399/utilities/at.html
> >
> > It interacts with the cron daemon. So in principle there's no reason
> > why there shouldn't be a cygwin at command to interact with the cygwin
> > crond entirely independently of the 'doze at command and task
> > scheduler. I guess nobody's ported it yet.
>
> Let us know when you are finished porting it! ;-)

:-) "Have I phrased it sufficiently neutrally to avoid being asked for a
patch?" (C) Randall R. Schulz
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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/

^ permalink raw reply	[flat|nested] 27+ messages in thread

* RE: where is at at?
  2004-05-21 19:15     ` Igor Pechtchanski
@ 2004-05-21 20:04       ` Dave Korn
  2004-05-21 20:17         ` Larry Hall
  0 siblings, 1 reply; 27+ messages in thread
From: Dave Korn @ 2004-05-21 20:04 UTC (permalink / raw)
  To: cygwin

> -----Original Message-----
> From: cygwin-owner  On Behalf Of Igor Pechtchanski
> Sent: 21 May 2004 18:10

> On Fri, 21 May 2004, Andrew DeFaria wrote:
> 
> > Dave Korn wrote:
> >
> > > Yes, there's also a Posix AT command:
> > >
> > > http://www.opengroup.org/onlinepubs/009695399/utilities/at.html
> > >
> > > It interacts with the cron daemon. So in principle 
> there's no reason
> > > why there shouldn't be a cygwin at command to interact 
> with the cygwin
> > > crond entirely independently of the 'doze at command and task
> > > scheduler. I guess nobody's ported it yet.
> >
> > Let us know when you are finished porting it! ;-)
> 
> :-) "Have I phrased it sufficiently neutrally to avoid being 
> asked for a
> patch?" (C) Randall R. Schulz

  If it's now getting so that even *answering* a question rather than asking
one makes you liable for sending a patch, I think it's starting to get
_really_ mean around here!


    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


--
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/

^ permalink raw reply	[flat|nested] 27+ messages in thread

* RE: where is at at?
  2004-05-21 20:04       ` Dave Korn
@ 2004-05-21 20:17         ` Larry Hall
  2004-05-21 20:19           ` Christopher Faylor
  0 siblings, 1 reply; 27+ messages in thread
From: Larry Hall @ 2004-05-21 20:17 UTC (permalink / raw)
  To: Dave Korn, cygwin

At 01:50 PM 5/21/2004, you wrote:
>> -----Original Message-----
>> From: cygwin-owner  On Behalf Of Igor Pechtchanski
>> Sent: 21 May 2004 18:10
>
>> On Fri, 21 May 2004, Andrew DeFaria wrote:
>> 
>> > Dave Korn wrote:
>> >
>> > > Yes, there's also a Posix AT command:
>> > >
>> > > http://www.opengroup.org/onlinepubs/009695399/utilities/at.html
>> > >
>> > > It interacts with the cron daemon. So in principle 
>> there's no reason
>> > > why there shouldn't be a cygwin at command to interact 
>> with the cygwin
>> > > crond entirely independently of the 'doze at command and task
>> > > scheduler. I guess nobody's ported it yet.
>> >
>> > Let us know when you are finished porting it! ;-)
>> 
>> :-) "Have I phrased it sufficiently neutrally to avoid being 
>> asked for a
>> patch?" (C) Randall R. Schulz
>
>  If it's now getting so that even *answering* a question rather than asking
>one makes you liable for sending a patch, I think it's starting to get
>_really_ mean around here!


True.  Please submit a patch with your intended changes. ;-)



--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


--
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/

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: where is at at?
  2004-05-21 20:17         ` Larry Hall
@ 2004-05-21 20:19           ` Christopher Faylor
  2004-05-21 20:29             ` Igor Pechtchanski
  0 siblings, 1 reply; 27+ messages in thread
From: Christopher Faylor @ 2004-05-21 20:19 UTC (permalink / raw)
  To: cygwin

On Fri, May 21, 2004 at 03:10:41PM -0400, Larry Hall wrote:
>True.  Please submit a patch with your intended changes. ;-)

If this keeps going, I foresee that someone will be wearing any
eye patch from the ensuing violence.

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/

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: where is at at?
  2004-05-21 20:19           ` Christopher Faylor
@ 2004-05-21 20:29             ` Igor Pechtchanski
  2004-05-21 20:38               ` Joshua Daniel Franklin
  0 siblings, 1 reply; 27+ messages in thread
From: Igor Pechtchanski @ 2004-05-21 20:29 UTC (permalink / raw)
  To: cygwin

On Fri, 21 May 2004, Christopher Faylor wrote:

> On Fri, May 21, 2004 at 03:10:41PM -0400, Larry Hall wrote:
> >True.  Please submit a patch with your intended changes. ;-)
>
> If this keeps going, I foresee that someone will be wearing any
> eye patch from the ensuing violence.
>
> cgf

Hmm, I wonder if Cygwin's patchutils can manipulate eye patches...
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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/

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: where is at at?
  2004-05-21 20:29             ` Igor Pechtchanski
@ 2004-05-21 20:38               ` Joshua Daniel Franklin
  2004-05-21 20:43                 ` [OT] " Igor Pechtchanski
  0 siblings, 1 reply; 27+ messages in thread
From: Joshua Daniel Franklin @ 2004-05-21 20:38 UTC (permalink / raw)
  To: cygwin

On Fri, 21 May 2004 16:04:36 -0400 (EDT), Igor Pechtchanski wrote:
> 
> On Fri, 21 May 2004, Christopher Faylor wrote:
> 
> > On Fri, May 21, 2004 at 03:10:41PM -0400, Larry Hall wrote:
> > >True.  Please submit a patch with your intended changes. ;-)
> >
> > If this keeps going, I foresee that someone will be wearing any
> > eye patch from the ensuing violence.
> >
> > cgf
> 
> Hmm, I wonder if Cygwin's patchutils can manipulate eye patches...

Only the latest version, which was updated to deal with the problem of
massive online piracy. When can we expect a newer Cygwin package?

--
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/

^ permalink raw reply	[flat|nested] 27+ messages in thread

* [OT] Re: where is at at?
  2004-05-21 20:38               ` Joshua Daniel Franklin
@ 2004-05-21 20:43                 ` Igor Pechtchanski
  2004-05-21 22:21                   ` Christopher Faylor
  0 siblings, 1 reply; 27+ messages in thread
From: Igor Pechtchanski @ 2004-05-21 20:43 UTC (permalink / raw)
  To: Joshua Daniel Franklin; +Cc: cygwin

On Fri, 21 May 2004, Joshua Daniel Franklin wrote:

> On Fri, 21 May 2004 16:04:36 -0400 (EDT), Igor Pechtchanski wrote:
> >
> > On Fri, 21 May 2004, Christopher Faylor wrote:
> >
> > > On Fri, May 21, 2004 at 03:10:41PM -0400, Larry Hall wrote:
> > > >True.  Please submit a patch with your intended changes. ;-)
> > >
> > > If this keeps going, I foresee that someone will be wearing any
> > > eye patch from the ensuing violence.
> > >
> > > cgf
> >
> > Hmm, I wonder if Cygwin's patchutils can manipulate eye patches...
>
> Only the latest version, which was updated to deal with the problem of
> massive online piracy. When can we expect a newer Cygwin package?

Gee, I hope they also fixed espdiff...  The previous versions all had a
bug where it couldn't detect any brain activity.  I mean, it's *got* to
work for someone, right? :-)
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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/

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [OT] Re: where is at at?
  2004-05-21 20:43                 ` [OT] " Igor Pechtchanski
@ 2004-05-21 22:21                   ` Christopher Faylor
  2004-05-22  0:51                     ` ftruncate64() question? Bill C. Riemers
  0 siblings, 1 reply; 27+ messages in thread
From: Christopher Faylor @ 2004-05-21 22:21 UTC (permalink / raw)
  To: cygwin

On Fri, May 21, 2004 at 04:17:55PM -0400, Igor Pechtchanski wrote:
>On Fri, 21 May 2004, Joshua Daniel Franklin wrote:
>>On Fri, 21 May 2004 16:04:36 -0400 (EDT), Igor Pechtchanski wrote:
>>>On Fri, 21 May 2004, Christopher Faylor wrote:
>>>
>>>>On Fri, May 21, 2004 at 03:10:41PM -0400, Larry Hall wrote:
>>>>>True.  Please submit a patch with your intended changes.  ;-)
>>>>
>>>>If this keeps going, I foresee that someone will be wearing an eye
>>>>patch from the ensuing violence.
>>>
>>>Hmm, I wonder if Cygwin's patchutils can manipulate eye patches...
>>
>>Only the latest version, which was updated to deal with the problem of
>>massive online piracy.  When can we expect a newer Cygwin package?
>
>Gee, I hope they also fixed espdiff...  The previous versions all had a
>bug where it couldn't detect any brain activity.  I mean, it's *got* to
>work for someone, right?  :-)

Well, my brain hurts so maybe it is working somewhere.

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/

^ permalink raw reply	[flat|nested] 27+ messages in thread

* ftruncate64() question?
  2004-05-21 22:21                   ` Christopher Faylor
@ 2004-05-22  0:51                     ` Bill C. Riemers
  2004-05-22  1:39                       ` Brian Ford
  0 siblings, 1 reply; 27+ messages in thread
From: Bill C. Riemers @ 2004-05-22  0:51 UTC (permalink / raw)
  To: cygwin

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 for the answer, but for
the past four weeks or so, when I try to follow links with search results to
www.cygwin.com I just get a screen that tells me it thinks my browser, IE
6.0, is a spambot.

                     Bill


----- Original Message ----- 
From: "Christopher Faylor" <cgf-no-personal-reply-please@cygwin.com>
To: <cygwin@cygwin.com>
Sent: Friday, May 21, 2004 4:37 PM
Subject: Re: [OT] Re: where is at at?


> On Fri, May 21, 2004 at 04:17:55PM -0400, Igor Pechtchanski wrote:
> >On Fri, 21 May 2004, Joshua Daniel Franklin wrote:
> >>On Fri, 21 May 2004 16:04:36 -0400 (EDT), Igor Pechtchanski wrote:
> >>>On Fri, 21 May 2004, Christopher Faylor wrote:
> >>>
> >>>>On Fri, May 21, 2004 at 03:10:41PM -0400, Larry Hall wrote:
> >>>>>True.  Please submit a patch with your intended changes.  ;-)
> >>>>
> >>>>If this keeps going, I foresee that someone will be wearing an eye
> >>>>patch from the ensuing violence.
> >>>
> >>>Hmm, I wonder if Cygwin's patchutils can manipulate eye patches...
> >>
> >>Only the latest version, which was updated to deal with the problem of
> >>massive online piracy.  When can we expect a newer Cygwin package?
> >
> >Gee, I hope they also fixed espdiff...  The previous versions all had a
> >bug where it couldn't detect any brain activity.  I mean, it's *got* to
> >work for someone, right?  :-)
>
> Well, my brain hurts so maybe it is working somewhere.
>
> 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/
>



--
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/

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: ftruncate64() question?
  2004-05-22  0:51                     ` ftruncate64() question? Bill C. Riemers
@ 2004-05-22  1:39                       ` Brian Ford
  2004-05-22 19:09                         ` Larry Hall
  2004-05-23  6:58                         ` Bill C. Riemers
  0 siblings, 2 replies; 27+ messages in thread
From: Brian Ford @ 2004-05-22  1:39 UTC (permalink / raw)
  To: Bill C. Riemers; +Cc: cygwin

On Fri, 21 May 2004, Bill C. Riemers wrote:

> 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?

What's wrong with ftruncate?

How was the quoted text relevant?

> ----- Original Message -----
> Subject: Re: [OT] Re: where is at at?

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained pilot...

--
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/

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: ftruncate64() question?
  2004-05-22  1:39                       ` Brian Ford
@ 2004-05-22 19:09                         ` Larry Hall
  2004-05-25  2:11                           ` [OT] " Igor Pechtchanski
  2004-05-23  6:58                         ` Bill C. Riemers
  1 sibling, 1 reply; 27+ messages in thread
From: Larry Hall @ 2004-05-22 19:09 UTC (permalink / raw)
  To: cygwin, Bill C. Riemers

At 05:06 PM 5/21/2004, you wrote:
>On Fri, 21 May 2004, Bill C. Riemers wrote:
>
>> 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?
>
>What's wrong with ftruncate?
>
>How was the quoted text relevant?
>


AFAICS, it isn't.  Looks like Bill decided to do the ol' "reply and
edit to your liking" trick that associates two, disparate threads in
the email archives into one.  It's too bad too.  Now he's ruined a 
perfectly good thread by shifting it to something on topic. ;-)

But actually, we do frown on posts that usurp other threads this way.
>:-(  See, that's me frowning.


--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


--
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/

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: ftruncate64() question?
  2004-05-22  1:39                       ` Brian Ford
  2004-05-22 19:09                         ` Larry Hall
@ 2004-05-23  6:58                         ` Bill C. Riemers
  2004-05-23  9:36                           ` Christopher Faylor
  1 sibling, 1 reply; 27+ messages in thread
From: Bill C. Riemers @ 2004-05-23  6:58 UTC (permalink / raw)
  To: cygwin

> 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 based on those messages, I inserted the following code in my program
as a workaround for a truncate64() function:

#if defined(__CYGWIN__)||defined(__GW32__)
__int64 truncate64(const char *filename,__int64 newFileSize)
{
  DWORD dw;
  HANDLE h=CreateFile(filename,GENERIC_WRITE,0,NULL,OPEN_ALWAYS,0,NULL);
  DeviceIoControl(h,FSCTL_SET_SPARSE,NULL,0,NULL,0,&dw,NULL);
  SetFilePointerEx(h,(LARGE_INTEGER)newFileSize,NULL,FILE_BEGIN);
  SetEndOfFile(h);
  CloseHandle(h);
  return newFileSize;
}
#endif

This seems to work up to file sizes of 16TeraBytes, which for my purposes is
more than adiquate.

                                                      Bill





--
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/

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: ftruncate64() question?
  2004-05-23  6:58                         ` Bill C. Riemers
@ 2004-05-23  9:36                           ` Christopher Faylor
  2004-05-23 21:14                             ` Hannu E K Nevalainen
  2004-05-24  9:25                             ` Bill C. Riemers
  0 siblings, 2 replies; 27+ messages in thread
From: Christopher Faylor @ 2004-05-23  9:36 UTC (permalink / raw)
  To: cygwin

On Sat, May 22, 2004 at 04:24:22PM -0400, Bill C. Riemers wrote:
>> What's wrong with ftruncate?
>
>ftruncate fails with files larger >= 2GB because off_t gets interpreted as
>32 bit signed integer...

  bash-2.05b$ cat off_t.c
  #include <sys/types.h>
  #include <stdio.h>
  int
  main (int argc, char **argv)
  {
    printf ("sizeof(off_t) = %d\n", sizeof(off_t));
    exit (0);
  }

  bash-2.05b$ ./off_t
  sizeof(off_t) = 8

>I can find some archived cygwin messages referencing bug fixes to
>ftruncate64 in the cygwin.dll.  However, using ftruncate64 results in an
>unresolved symbol.

You don't use ftruncate64.  You use ftruncate.  Cygwin is 64 bit by default.

>In fact based on those messages, I inserted the following code in my
>program as a workaround for a truncate64() function:

How about referencing these messages so we'd have some clue as to what
you're talking about?

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/

^ permalink raw reply	[flat|nested] 27+ messages in thread

* RE: ftruncate64() question?
  2004-05-23  9:36                           ` Christopher Faylor
@ 2004-05-23 21:14                             ` Hannu E K Nevalainen
  2004-05-24  9:25                             ` Bill C. Riemers
  1 sibling, 0 replies; 27+ messages in thread
From: Hannu E K Nevalainen @ 2004-05-23 21:14 UTC (permalink / raw)
  To: cygwin

> From: Christopher Faylor
> Sent: Sunday, May 23, 2004 4:54 AM

> On Sat, May 22, 2004 at 04:24:22PM -0400, Bill C. Riemers wrote:
> >> What's wrong with ftruncate?
> >
> >ftruncate fails with files larger >= 2GB because off_t gets
> >interpreted as 32 bit signed integer...
>
>   bash-2.05b$ cat off_t.c
>   #include <sys/types.h>
>   #include <stdio.h>
>   int
>   main (int argc, char **argv)
>   {
>     printf ("sizeof(off_t) = %d\n", sizeof(off_t));
>     exit (0);
>   }
>
>   bash-2.05b$ ./off_t
>   sizeof(off_t) = 8

FWIW/WAG - without having seen the code:
 To me this looks as Bill's code must be wrong; resulting in a cast into a
32-bit signed value - or maybe using the wrong datatype for the off_t value.


/Hannu E K Nevalainen, B.Sc. EE - 59+16.37'N, 17+12.60'E

** on a mailing list; please keep replies on that particular list **

-- printf("LocalTime: UTC+%02d\n",(DST)? 2:1); --
--END OF MESSAGE--


--
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/

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: ftruncate64() question?
  2004-05-23  9:36                           ` Christopher Faylor
  2004-05-23 21:14                             ` Hannu E K Nevalainen
@ 2004-05-24  9:25                             ` Bill C. Riemers
  2004-05-24  9:37                               ` Christopher Faylor
  1 sibling, 1 reply; 27+ messages in thread
From: Bill C. Riemers @ 2004-05-24  9:25 UTC (permalink / raw)
  To: cygwin

> 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 much recently, I had forgotten that on Intel platforms long is
only 32 bits...  My workaround because I implemented it on the filename
before the value was truncated by passing it to my function
as a long...

> How about referencing these messages so we'd have some clue as to what
> you're talking about?

Sorry, as I originally commented RedHat now considers my IE 6.0 browser a
spambot.  The way I ended up working around the problem to view the messages
anyway did not allow me to cut and paste URL's.

                          Bill



--
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/

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: ftruncate64() question?
  2004-05-24  9:25                             ` Bill C. Riemers
@ 2004-05-24  9:37                               ` Christopher Faylor
  2004-05-24 16:16                                 ` spambot? Bill C. Riemers
  0 siblings, 1 reply; 27+ messages in thread
From: Christopher Faylor @ 2004-05-24  9:37 UTC (permalink / raw)
  To: cygwin

On Sun, May 23, 2004 at 09:29:23AM -0400, Bill C. Riemers wrote:
>> 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 much recently, I had forgotten that on Intel
>platforms long is only 32 bits...  My workaround because I implemented
>it on the filename before the value was truncated by passing it to my
>function as a long...
>
>>How about referencing these messages so we'd have some clue as to what
>>you're talking about?
>
>Sorry, as I originally commented RedHat now considers my IE 6.0 browser
>a spambot.  The way I ended up working around the problem to view the
>messages anyway did not allow me to cut and paste URL's.

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.

Regardless, this should be only a minor inconvenience since you would be
able to at least point to google cache of the articles or, if you were
able to read the articles, include the articles themselves.

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/

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: spambot?
  2004-05-24  9:37                               ` Christopher Faylor
@ 2004-05-24 16:16                                 ` Bill C. Riemers
  2004-05-24 16:31                                   ` spambot? Larry Hall
  0 siblings, 1 reply; 27+ messages in thread
From: Bill C. Riemers @ 2004-05-24 16:16 UTC (permalink / raw)
  To: cygwin

> 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 mailing
list archive page.  The method I used to work around the problem of
searching the mail archive was to run lynx in an rxvt window.  It works
nicely, but lynx doesn't report the current URL.  There is probably a hotkey
I could press to findout the URL, but I haven't search through the
documentation to find it yet...

BTW.  I just did the google search for "RedHat spambot".   I didn't find any
links to instructions on how to configure a browser not to be recognized as
a spambot.  I could easily reconfigure my browser if I knew what it was that
RedHat does not like about it.  I have several privacy protection programs
installed, so it might be something as simple as RedHat expects the browser
to report my e-mail address, or it could be something more complicated...

> Regardless, this should be only a minor inconvenience since you would be
> able to at least point to google cache of the articles or, if you were
> able to read the articles, include the articles themselves.

How do I make sure my google search only covers the mailing list archive?  I
have proxy script I wrote which allows me to browse a website completely
through the google cache.  It rewrites any URL's to point directly back to
the cache.  I find this mostly usefull for searching a website when there is
a routing problem, or the website itself is very slow.  However, this only
works for static pages, not for something like submitting a query to search
for results on a mailing list.

                                     Bill



--
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/

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: spambot?
  2004-05-24 16:16                                 ` spambot? Bill C. Riemers
@ 2004-05-24 16:31                                   ` Larry Hall
  0 siblings, 0 replies; 27+ messages in thread
From: Larry Hall @ 2004-05-24 16:31 UTC (permalink / raw)
  To: Bill C. Riemers, cygwin

At 11:36 AM 5/24/2004, you wrote:
>How do I make sure my google search only covers the mailing list archive?  I
>have proxy script I wrote which allows me to browse a website completely
>through the google cache.  It rewrites any URL's to point directly back to
>the cache.  I find this mostly usefull for searching a website when there is
>a routing problem, or the website itself is very slow.  However, this only
>works for static pages, not for something like submitting a query to search
>for results on a mailing list.


Google allows you to restrict your search to a particular domain.  Check
the options under "Advanced Search".


--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


--
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/

^ permalink raw reply	[flat|nested] 27+ messages in thread

* [OT] Re: ftruncate64() question?
  2004-05-22 19:09                         ` Larry Hall
@ 2004-05-25  2:11                           ` Igor Pechtchanski
  2004-05-25  2:42                             ` Christopher Faylor
  0 siblings, 1 reply; 27+ messages in thread
From: Igor Pechtchanski @ 2004-05-25  2:11 UTC (permalink / raw)
  To: cygwin

On Fri, 21 May 2004, Larry Hall wrote:

> At 05:06 PM 5/21/2004, you wrote:
> >On Fri, 21 May 2004, Bill C. Riemers wrote:
> >[snip]
> >How was the quoted text relevant?
>
> AFAICS, it isn't.  Looks like Bill decided to do the ol' "reply and
> edit to your liking" trick that associates two, disparate threads in
> the email archives into one.  It's too bad too.  Now he's ruined a
> perfectly good thread by shifting it to something on topic. ;-)
>
> But actually, we do frown on posts that usurp other threads this way.
> >:-(  See, that's me frowning.

To bring it back off-topic...  What's with the bushy eyebrows? ;-)
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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/

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [OT] Re: ftruncate64() question?
  2004-05-25  2:11                           ` [OT] " Igor Pechtchanski
@ 2004-05-25  2:42                             ` Christopher Faylor
  2004-05-25  8:55                               ` Larry Hall
  0 siblings, 1 reply; 27+ messages in thread
From: Christopher Faylor @ 2004-05-25  2:42 UTC (permalink / raw)
  To: cygwin

On Mon, May 24, 2004 at 09:48:55PM -0400, Igor Pechtchanski wrote:
>On Fri, 21 May 2004, Larry Hall wrote:
>
>> At 05:06 PM 5/21/2004, you wrote:
>> >On Fri, 21 May 2004, Bill C. Riemers wrote:
>> >[snip]
>> >How was the quoted text relevant?
>>
>> AFAICS, it isn't.  Looks like Bill decided to do the ol' "reply and
>> edit to your liking" trick that associates two, disparate threads in
>> the email archives into one.  It's too bad too.  Now he's ruined a
>> perfectly good thread by shifting it to something on topic. ;-)
>>
>> But actually, we do frown on posts that usurp other threads this way.
>> >:-(  See, that's me frowning.
>
>To bring it back off-topic...  What's with the bushy eyebrows? ;-)

You've never met Larry have you?  I've had several meals with him and
let me tell you that's an accurate self portrait.  When he's eating, he
actually wears a bib-like contraption for his eyebrows.

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/

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [OT] Re: ftruncate64() question?
  2004-05-25  2:42                             ` Christopher Faylor
@ 2004-05-25  8:55                               ` Larry Hall
  0 siblings, 0 replies; 27+ messages in thread
From: Larry Hall @ 2004-05-25  8:55 UTC (permalink / raw)
  To: cygwin

At 09:58 PM 5/24/2004, you wrote:
>On Mon, May 24, 2004 at 09:48:55PM -0400, Igor Pechtchanski wrote:
>>On Fri, 21 May 2004, Larry Hall wrote:
>>
>>> At 05:06 PM 5/21/2004, you wrote:
>>> >On Fri, 21 May 2004, Bill C. Riemers wrote:
>>> >[snip]
>>> >How was the quoted text relevant?
>>>
>>> AFAICS, it isn't.  Looks like Bill decided to do the ol' "reply and
>>> edit to your liking" trick that associates two, disparate threads in
>>> the email archives into one.  It's too bad too.  Now he's ruined a
>>> perfectly good thread by shifting it to something on topic. ;-)
>>>
>>> But actually, we do frown on posts that usurp other threads this way.
>>> >:-(  See, that's me frowning.
>>
>>To bring it back off-topic...  What's with the bushy eyebrows? ;-)
>
>You've never met Larry have you?  I've had several meals with him and
>let me tell you that's an accurate self portrait.  When he's eating, he
>actually wears a bib-like contraption for his eyebrows.
>


Yeah, I couldn't figure out what character would accurately portray the 
"bib" so I left it out.  Perhaps some Arabian or Chinese character would
have worked.  It's quite a contraption.  I was thinking of bringing it 
up on this list, as it was inspired by Cygwin itself believe it or not.
So, if anyone's interested, we can talk about it here since it falls under 
the category of "all things cygwin"...  Anyone?  Hello?

Aw shucks.



--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


--
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/

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: where is at at?
  2004-05-21 12:31 Mike Kenny - BCX - Mngd Services
@ 2004-05-21 15:23 ` Igor Pechtchanski
  0 siblings, 0 replies; 27+ messages in thread
From: Igor Pechtchanski @ 2004-05-21 15:23 UTC (permalink / raw)
  To: Mike Kenny - BCX - Mngd Services; +Cc: cygwin

On Fri, 21 May 2004, Mike Kenny - BCX - Mngd Services wrote:

> I have selected all to be installed, so I assume that I should have all
> commands installed. But I can't find 'at'. Does Cygwin support this?
>
> Mike

"at" is a Windows command that's part of the task scheduler service (I
think it gets installed with IE6, but I'm not sure).
	Igor
P.S. Please configure your mailer to wrap long lines, otherwise your
messages are hard to read in the web archives.
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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/

^ permalink raw reply	[flat|nested] 27+ messages in thread

* RE: where is at at?
@ 2004-05-21 14:16 Buchbinder, Barry (NIH/NIAID)
  0 siblings, 0 replies; 27+ messages in thread
From: Buchbinder, Barry (NIH/NIAID) @ 2004-05-21 14:16 UTC (permalink / raw)
  To: 'Mike Kenny - BCX - Mngd Services', Cygwin (E-mail)

Searching http://sources.redhat.com/cygwin/packages/ for /at.exe comes up
with nothing.  (Use the slash to get rid of all the hits for *?at.exe.)

/c> /bin/which at
/c/WINDOWS/SYSTEM32/at

on XP.  (I'm pretty sure that at doesn't exist on 9x/Me.)

-----Original Message-----
From: Mike Kenny - BCX - Mngd Services
Sent: Friday, May 21, 2004 5:34 AM
To: Cygwin (E-mail)
Subject: where is at at?

I have selected all to be installed, so I assume that I should have all
commands installed. But I can't find 'at'. Does Cygwin support this?

Mike

--
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/

^ permalink raw reply	[flat|nested] 27+ messages in thread

* where is at at?
@ 2004-05-21 12:31 Mike Kenny - BCX - Mngd Services
  2004-05-21 15:23 ` Igor Pechtchanski
  0 siblings, 1 reply; 27+ messages in thread
From: Mike Kenny - BCX - Mngd Services @ 2004-05-21 12:31 UTC (permalink / raw)
  To: Cygwin (E-mail)

I have selected all to be installed, so I assume that I should have all commands installed. But I can't find 'at'. Does Cygwin support this?

Mike

--
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/

^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2004-05-25  2:42 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-21 15:33 where is at at? Clemson, Chris
2004-05-21 16:04 ` Dave Korn
2004-05-21 16:23   ` Andrew DeFaria
2004-05-21 19:15     ` Igor Pechtchanski
2004-05-21 20:04       ` Dave Korn
2004-05-21 20:17         ` Larry Hall
2004-05-21 20:19           ` Christopher Faylor
2004-05-21 20:29             ` Igor Pechtchanski
2004-05-21 20:38               ` Joshua Daniel Franklin
2004-05-21 20:43                 ` [OT] " Igor Pechtchanski
2004-05-21 22:21                   ` Christopher Faylor
2004-05-22  0:51                     ` ftruncate64() question? Bill C. Riemers
2004-05-22  1:39                       ` Brian Ford
2004-05-22 19:09                         ` Larry Hall
2004-05-25  2:11                           ` [OT] " Igor Pechtchanski
2004-05-25  2:42                             ` Christopher Faylor
2004-05-25  8:55                               ` Larry Hall
2004-05-23  6:58                         ` Bill C. Riemers
2004-05-23  9:36                           ` Christopher Faylor
2004-05-23 21:14                             ` Hannu E K Nevalainen
2004-05-24  9:25                             ` Bill C. Riemers
2004-05-24  9:37                               ` Christopher Faylor
2004-05-24 16:16                                 ` spambot? Bill C. Riemers
2004-05-24 16:31                                   ` spambot? Larry Hall
  -- strict thread matches above, loose matches on Subject: below --
2004-05-21 14:16 where is at at? Buchbinder, Barry (NIH/NIAID)
2004-05-21 12:31 Mike Kenny - BCX - Mngd Services
2004-05-21 15:23 ` Igor Pechtchanski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).