From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2523 invoked by alias); 25 Jul 2017 21:52:07 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 1890 invoked by uid 89); 25 Jul 2017 21:52:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FORGED_MUA_MOZILLA,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT,GIT_PATCH_2,LOTS_OF_MONEY,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=1979, Panel, HTo:D*ab.ca, H*x:5.0 X-HELO: sonic309-48.consmr.mail.ne1.yahoo.com Received: from sonic309-48.consmr.mail.ne1.yahoo.com (HELO sonic309-48.consmr.mail.ne1.yahoo.com) (66.163.184.174) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 25 Jul 2017 21:52:04 +0000 Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ne1.yahoo.com with HTTP; Tue, 25 Jul 2017 21:52:02 +0000 Date: Wed, 26 Jul 2017 09:50:00 -0000 From: "Ian Lambert via cygwin" Reply-To: Ian Lambert Reply-To: Ian Lambert To: , Message-ID: <1036849022.821922.1501019281615@mail.yahoo.com> Subject: Re: how to access and display apps that I've launched MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable References: <1036849022.821922.1501019281615.ref@mail.yahoo.com> X-IsSubscribed: yes X-SW-Source: 2017-07/txt/msg00369.txt.bz2 -------------------------------------------- On Tue, 7/25/17, Brian Inglis <> wrote: Subject: Re: how to access and display apps that I've launched To: cygwin Date: Tuesday, July 25, 2017, 3:57 PM =20 On 2017-07-25 12:16, Achim Gratz wrote: > Brian Inglis writes: >> rebaselst uses touch -t 7001010000 ... - could be patched to 197001010000. >=20 > Could be, but touch is specified to assume "19" yhen YY=3D70 by POSIX, AFAIK. >=20 >> Is this affected by locale and by Windows regional date settings in Control >> Panel/Region/Formats tab/Additional settings... button/Date tab/Calendar >> group/When a two-digit year is entered, interpret it as a year between >> |(nnnn-99)| and [nnnn ^v] with the default values |1980| and [2079 ^v] i.e. from >> the start of the DOS epoch which postdates the Unix epoch 19700101, and could >> cause 70 to be interpreted as 2070. >=20 > That would be surprising since the expectation really is UNIX epoch when > we're talking about Cygwin.=C2=A0 In any case, the OP should easily be able > to test this at the shell prompt. =20 I know POSIX says and my tests on current releases verify 1969-99, 2000-68, but could this be thrown off by localization interfering in some cases, as was /proc/loadavg, because a function started using locales? These files and related functions do not seem candidates to be affected by the recent patch for ls problems with symlinks, so BLODA blocking pre-1980 times? =3D =3D =3D There is a change to "invalid argument"=20 somewhere from 1980 to 1979,=20 but it also involves permissions. Permission denied comes from the chmod 444 in /bin/rebaselst I think. Otherwise with write permission touch gives invalid argument. Either way, it changes the files to current date-time, not an earlier time, when it fails. $ for f in * ; do echo $f ; touch -t 198001010000 $f ; done fullrebase.done rebase_all rebase_dyn rebase_exe rebase_lst rebase_pkg rebase_user rebase_user_exe $ for f in * ; do echo $f ; touch -t 197901010000 $f ; done fullrebase.done touch: setting times of 'fullrebase.done': Invalid argument rebase_all touch: setting times of 'rebase_all': Invalid argument rebase_dyn touch: cannot touch 'rebase_dyn': Permission denied rebase_exe touch: cannot touch 'rebase_exe': Permission denied rebase_lst touch: cannot touch 'rebase_lst': Permission denied rebase_pkg touch: cannot touch 'rebase_pkg': Permission denied rebase_user touch: cannot touch 'rebase_user': Permission denied rebase_user_exe touch: cannot touch 'rebase_user_exe': Permission denied The "bad" part of strace of a file with write permission is: 3524 fhandler_base::utimens_fs: incoming lastaccess 0x10EDB8D0 0x0 86 285905 [main] touch 3524 seterrno_from_nt_status: /home/corinna/src/= cygwin/cygwin-2.8.2/cygwin-2.8.2-1.x86_64/src/newlib-cygwin/winsup/cygwin/f= handler_disk_file.cc:1385 status 0xC000000D -> windows error 87 30 285935 [main] touch 3524 geterrno_from_win_error: windows error 87 = =3D=3D errno 22 22 285957 [main] touch 3524 futimens: -1 =3D futimens(0, 0xFFFFC950) 22 285979 [main] touch 3524 close: close(0) 23 286002 [main] touch 3524 fhandler_base::close: closing '/var/cache/r= ebase/rebase_all' handle 0x240 178 286180 [main] touch 3524 close: 0 =3D close(0) touch 558 286738 [main] touch 3524 write: 5 =3D write(2, 0xFFFFCC50, 5) : 47 286785 [main] touch 3524 write: 1 =3D write(2, 0x180229941, 1) 45 286830 [main] touch 3524 write: 1 =3D write(2, 0x180229935, 1) setting times of 116 286946 [main] touch 3524 write: 17 =3D write(2, 0x1= 00414923, 17) 'rebase_all' 38 286984 [main] touch 3524 write: 12 =3D write(2, 0x10041C= 080, 12) : 106 287090 [main] touch 3524 write: 2 =3D write(2, 0x180229945, 2) Invalid argument 41 287131 [main] touch 3524 write: 16 =3D write(2, 0x18= 0229C60, 16) 189 287320 [main] touch 3524 write: 1 =3D write(2, 0x1801FC9A7, 1) 184 287504 [main] touch 3524 close: close(1) 18 287522 [main] touch 3524 fhandler_base::close: closing '' handle 0x2= 04 17 287539 [main] touch 3524 close: 0 =3D close(1) 211 287750 [main] touch 3524 close: close(2) 19 287769 [main] touch 3524 fhandler_base::close: closing '' handle 0x2= 00 24 287793 [main] touch 3524 close: 0 =3D close(2) 177 287970 [main] touch 3524 do_exit: do_exit (256), exit_state 1 25 287995 [main] touch 3524 void: 0x0 =3D signal (20, 0x1) 19 288014 [main] touch 3524 void: 0x0 =3D signal (1, 0x1) -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple