From unknown Sun Jun 22 22:43:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26398: 26.0.50; GNU LIB build fails on macOS 10.12.4 Resent-From: Harald Maier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Apr 2017 07:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 26398 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 26398@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.149163568316396 (code B ref -1); Sat, 08 Apr 2017 07:15:02 +0000 Received: (at submit) by debbugs.gnu.org; 8 Apr 2017 07:14:43 +0000 Received: from localhost ([127.0.0.1]:37018 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cwka2-0004GO-MS for submit@debbugs.gnu.org; Sat, 08 Apr 2017 03:14:42 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59505) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cwka0-0004GB-VG for submit@debbugs.gnu.org; Sat, 08 Apr 2017 03:14:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cwkZu-0003h3-N1 for submit@debbugs.gnu.org; Sat, 08 Apr 2017 03:14:35 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_50,RCVD_IN_SORBS_SPAM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:35371) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cwkZu-0003gx-Jg for submit@debbugs.gnu.org; Sat, 08 Apr 2017 03:14:34 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50471) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwkZt-00079F-F6 for bug-gnu-emacs@gnu.org; Sat, 08 Apr 2017 03:14:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cwkZq-0003fs-9A for bug-gnu-emacs@gnu.org; Sat, 08 Apr 2017 03:14:33 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:64449) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cwkZp-0003fR-UL for bug-gnu-emacs@gnu.org; Sat, 08 Apr 2017 03:14:30 -0400 Received: from ate.fritz.box ([88.217.181.242]) by mrelayeu.kundenserver.de (mreue004 [212.227.15.167]) with ESMTPSA (Nemesis) id 0LoMIP-1cPtf81Dcv-00gKNB for ; Sat, 08 Apr 2017 09:14:27 +0200 From: Harald Maier Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Message-Id: <999C877D-7C56-469F-971E-0F902F5D4A55@Maierh.de> Date: Sat, 8 Apr 2017 09:14:25 +0200 X-Mailer: Apple Mail (2.3273) X-Provags-ID: V03:K0:peWXxALFvWPgAPs0YGiKmD3LAwJKD5+w00QmoIcEp3zEzoOXqcT UgnugSJ9MG96ZKBbDBtPNWTG5vYoJ953IL8QZIjj3t7jF+qZaa/IytpetarkXoWC20xm39A w+SImwoGJKFc6BfZ3y/7g3nmCwfCZc50tF0eCLtBYzP/zZfgqxcE0i4HYfE/phiCfv1dIvN SNulYv+cstKMwEyUb+ung== X-UI-Out-Filterresults: notjunk:1;V01:K0:Mlm2oGisQCM=:HbynzXHeSco/Ii0UXddtQX P5wKTAIFRSKrtNlG+07jP5M9p9lg2eFWK+jibVg3yFreB3V7ysfGD+MwKrVd4SrbAUssjw1qW k70nhQ6Kbt4tfPiHeRWqpHyoXNBDKHN+A0OkcLTOff6SYOMcO4vt0gXl2Ure4pRcSIO/Jo4Zt nnF3APYnPKKaL6mF8yqYy1Y7hWVIF518gj7Esax39OE6z2PPvJe7THpgX3U57WPt3M3oTA/GG xq6vR+5sNFyLK88qi7EvOnsb5tK2/KakKa4a2oQ2lfhlBReIRs9izUH1Hg9vlFSebSkDaoI5/ U69WorFdyVZJT2Gwla1ibWRruz4ao7SWnSLHVdAFiYG64HnauqJs7mtdIMRLisz7JnydA7IQM DongE0ekeHoUr9lhKqS38U9APaEZEKYFvLlOn0IqBVT1Sw//xZA1YVZbXWymPtTXfKuh8W6y+ LB0p2W+XntjOaXrAa2+o7TAcO7oFLaBO9vzBy9HdQjrI3BxsdXyvIAVUHI7NzD5H588Q5OTTP kXDCP/utdIyoRYb8CY0os/3bLZGDaUs/yLolSKVtMObCGMIjMScgC009KBgxg98FBLcUmggjP 9oDMmq+fKKoelHPss8KojH7ckeyy3xzhw4SvFfQOw26AIRlb2QvFRNmbxeagJre2O6OhM6qSR mEnj4dJnWwJAf1XCcu4P5Pj3alhpqhIOnxLsJKvLHrxg2cBnd9yDY9nSfkbsni4GYOlzgfiDt lK/TzHRljpLWkj+2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.5 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.5 (----) The latest git checkout fails on mac OS 10.12.4. CC fstatat.o In file included from fstatat.c:45: In file included from ./fcntl.h:67: In file included from ./unistd.h:135: In file included from ./getopt_pfx_core.h:52: ./getopt_core.h:91:79: error: expected ';' after top level declarator extern int getopt (int ___argc, char *const *___argv, const char = *__shortopts) = ^ ./getopt_core.h:92:28: error: expected identifier or '(' __THROW __nonnull ((2, 3)); ^ ./getopt_core.h:92:28: error: expected ')' ./getopt_core.h:92:27: note: to match this '(' __THROW __nonnull ((2, 3)); ^ 3 errors generated. make[2]: *** [fstatat.o] Error 1 make[1]: *** [lib] Error 2 $ gcc -v Configured with: --prefix=3D/Applications/Xcode.app/Contents/Developer/usr= --with-gxx-include-dir=3D/usr/include/c++/4.2.1 Apple LLVM version 8.0.0 (clang-800.0.38) Target: x86_64-apple-darwin16.5.0 In GNU Emacs 26.0.50 (build 2, x86_64-apple-darwin16.4.0, X toolkit, = Xaw3d scroll bars) of 2017-03-26 built on ate.maierh Repository revision: 082e2cb3f40b717e4c00d31532927c9693b7cb9b Windowing system distributor 'The X.Org Foundation', version = 11.0.11804000 Recent messages: Omitting... Omitted 54 lines. Mark saved where search started Updating buffer list... Formats have changed, recompiling...done Updating buffer list...done Commands: m, u, t, RET, g, k, S, D, Q; q to quit; h for help Mark set previous-line: Beginning of buffer Mark saved where search started Quit [2 times] Configured using: 'configure --without-ns --with-x-toolkit=3Dlucid --x-includes=3D/opt/X11/include --x-libraries=3D/opt/X11/lib = --without-pop --without-gsettings --with-jpeg=3Dno --with-png=3Dno --with-gif=3Dno --with-tiff=3Dno' From unknown Sun Jun 22 22:43:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26398: GNU LIB build fails on macOS 10.12.4 References: <999C877D-7C56-469F-971E-0F902F5D4A55@Maierh.de> In-Reply-To: <999C877D-7C56-469F-971E-0F902F5D4A55@Maierh.de> Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Apr 2017 08:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26398 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Harald Maier Cc: Gnulib bugs , Zack Weinberg , 26398@debbugs.gnu.org Received: via spool by 26398-submit@debbugs.gnu.org id=B26398.149163989622880 (code B ref 26398); Sat, 08 Apr 2017 08:25:02 +0000 Received: (at 26398) by debbugs.gnu.org; 8 Apr 2017 08:24:56 +0000 Received: from localhost ([127.0.0.1]:37053 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cwlg0-0005wy-M4 for submit@debbugs.gnu.org; Sat, 08 Apr 2017 04:24:56 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:49330) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cwlfz-0005wk-6m for 26398@debbugs.gnu.org; Sat, 08 Apr 2017 04:24:55 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 442F71600B3; Sat, 8 Apr 2017 01:24:49 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id MD2BQYkyh_-L; Sat, 8 Apr 2017 01:24:47 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 45FC31600B4; Sat, 8 Apr 2017 01:24:47 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id qqFbI5c7aoe1; Sat, 8 Apr 2017 01:24:47 -0700 (PDT) Received: from [192.168.1.9] (unknown [47.153.188.248]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 21C181600B3; Sat, 8 Apr 2017 01:24:47 -0700 (PDT) From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: Date: Sat, 8 Apr 2017 01:24:46 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) [Following up on http://bugs.gnu.org/26398 and CC'ing bug-gnulib and Zack= Weinberg.] > In file included from ./unistd.h:135: > In file included from ./getopt_pfx_core.h:52: > ./getopt_core.h:91:79: error: expected ';' after top level declarator > extern int getopt (int ___argc, char *const *___argv, const char *__sho= rtopts) Can you please send the preprocessor output for the failed compilation? That is, try running "make V=3D1". If the failed command looks like this: clang -c -Dthis -Dthat -Dtheother fstatat.c then run this command: clang -E -Dthis -Dthat -Dtheother fstatat.c >fstatat.i and send a copy of fstatat.i as an attachment. Also, can you find out which .h file defined __THROW and __nonnull in you= r=20 environment? I have the sneaking suspicion that it's some .h file other t= han=20 getopt_cdefs.h. Thanks. From unknown Sun Jun 22 22:43:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26398: GNU LIB build fails on macOS 10.12.4 Resent-From: Harald Maier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Apr 2017 08:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26398 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Paul Eggert Cc: Gnulib bugs , Zack Weinberg , 26398@debbugs.gnu.org Received: via spool by 26398-submit@debbugs.gnu.org id=B26398.149164105324677 (code B ref 26398); Sat, 08 Apr 2017 08:45:02 +0000 Received: (at 26398) by debbugs.gnu.org; 8 Apr 2017 08:44:13 +0000 Received: from localhost ([127.0.0.1]:37061 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cwlyf-0006Px-CW for submit@debbugs.gnu.org; Sat, 08 Apr 2017 04:44:13 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:53580) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cwlye-0006Pl-3e for 26398@debbugs.gnu.org; Sat, 08 Apr 2017 04:44:12 -0400 Received: from ate.fritz.box ([88.217.181.242]) by mrelayeu.kundenserver.de (mreue103 [212.227.15.183]) with ESMTPSA (Nemesis) id 0MFRbQ-1ctSb40Qz6-00EPuK; Sat, 08 Apr 2017 10:43:51 +0200 From: Harald Maier Message-Id: <8AE2BE5E-3FDE-4F7E-9F82-2CB8D8880D95@Maierh.de> Content-Type: multipart/alternative; boundary="Apple-Mail=_18766603-28B5-46D9-A702-E0DB051E755B" Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Date: Sat, 8 Apr 2017 10:43:44 +0200 In-Reply-To: References: X-Mailer: Apple Mail (2.3273) X-Provags-ID: V03:K0:FDvFQvOt7g0qYS4L+Bk6aLyTEacpEPEdhImWZtHoP9yOPfxanv+ yn4ntuAYPHU/dUckW8gil7AIzUucJwK1KMSDfV/ioULOQfRuODAKXslWLoy+W8h7FBmWhQ8 0NlCdIvnUut2Wt+g6OgsGovcZJ2sWk14HSk0MTkSklTzBGGrKsSbPAY8pw4QEpANeQKvA94 LDZnyga+piaGInchYFtbA== X-UI-Out-Filterresults: notjunk:1;V01:K0:tFiNb52kkm0=:oRxKWhOK/8/UsVICHrfop3 kr2k39PIknEbnWClJW6MPDzhH2rFaicZalda9L4JaLTIHlyrAGHubjITtilXmdowi0ttBDahE zI0N+l/icHs4535pyMqCkgJUHzfCZG8tPxl3Xb2OQIs72EFW3rnVADOmLGlpzaGaZgyLgzypr I8it1Kwng3oQbq5vL4VODGOyDYwG/5VP57Krb7eM1eNGCcxQ08gEiqtLhnbgbHQieOJ8LZ7cS Nbn0twLYUHj9PgrWnZBCujWf3oh4sTIct7Hn8yza2RPPKZVjkx1RzdT/ajrSfQvsENwCZ37FV kqrSqy5KqQItgG1j4On+saAWl5xNEt5W9/ryosRTrdjeQn2p+ny4CDoplEaFIQu/6VJZvbunv i7qgYXTM1N10e5J5M6ni9rC72KWRG9uqWG45ggfDbwbksDAHlkmxEL7PS6PRGfjp0CuhW8/lq L8l8Oq2NV2xDEhugMhUk0OoyQVZMLFLmA0q9HGywwd1MC2iDR6AjxnxBXauXTzYKUPLrTvhcC oXNaG6uK5/A0LFbmoQaOEvE1lBJ0DN0xbe5geYQiUKnO6cfAsRhdYuICP80t2z+6wLlIH3nXF dep25nopVuIm0yGQ34HgXOqfOOxWdsIOECQJ3xILn1S8GoKC/ZTqYkxioD6ZMdGCaUeFzlxMx PARZjLDWznQWbrPevmNOhdWmZRYzt77fu5s3KZJeV9dcfEw84JeWQCxYisPxL/01Kpz0= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" --Apple-Mail=_18766603-28B5-46D9-A702-E0DB051E755B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 They __THROW and __nonnull are defined in =E2=80=9Egetopt_cdefs.h=E2=80=9C= . The gcc command is gcc -c -MMD -MF deps/fstatat.d -MP -g3 -O2 -I. -I../src -I. = -I./../src fstatat.c The output from -E > Am 08.04.2017 um 10:24 schrieb Paul Eggert : >=20 > [Following up on http://bugs.gnu.org/26398 and CC'ing bug-gnulib and = Zack Weinberg.] >=20 >> In file included from ./unistd.h:135: >> In file included from ./getopt_pfx_core.h:52: >> ./getopt_core.h:91:79: error: expected ';' after top level declarator >> extern int getopt (int ___argc, char *const *___argv, const char = *__shortopts) >=20 > Can you please send the preprocessor output for the failed = compilation? > That is, try running "make V=3D1". If the failed command looks like = this: >=20 > clang -c -Dthis -Dthat -Dtheother fstatat.c >=20 > then run this command: >=20 > clang -E -Dthis -Dthat -Dtheother fstatat.c >fstatat.i >=20 > and send a copy of fstatat.i as an attachment. >=20 > Also, can you find out which .h file defined __THROW and __nonnull in = your environment? I have the sneaking suspicion that it's some .h file = other than getopt_cdefs.h. >=20 > Thanks. --Apple-Mail=_18766603-28B5-46D9-A702-E0DB051E755B Content-Type: multipart/mixed; boundary="Apple-Mail=_C9C84A2B-EBB4-46E4-8205-04B3FD6C817D" --Apple-Mail=_C9C84A2B-EBB4-46E4-8205-04B3FD6C817D Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
They __THROW and __nonnull are defined in = =E2=80=9Egetopt_cdefs.h=E2=80=9C.

The gcc command is

gcc -c    -MMD -MF = deps/fstatat.d -MP    -g3 -O2 -I. -I../src -I. -I./../src =  fstatat.c

The output from -E

= --Apple-Mail=_C9C84A2B-EBB4-46E4-8205-04B3FD6C817D Content-Disposition: attachment; filename=fstatat.i Content-Type: application/octet-stream; x-unix-mode=0644; name="fstatat.i" Content-Transfer-Encoding: 7bit # 1 "fstatat.c" # 1 "" 1 # 1 "" 3 # 330 "" 3 # 1 "" 1 # 1 "" 2 # 1 "fstatat.c" 2 # 24 "fstatat.c" # 1 "../src/config.h" 1 # 1975 "../src/config.h" # 1 "../src/conf_post.h" 1 # 32 "../src/conf_post.h" # 1 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include/stdbool.h" 1 3 4 # 33 "../src/conf_post.h" 2 # 56 "../src/conf_post.h" typedef _Bool bool_bf; # 232 "../src/conf_post.h" extern char *emacs_getenv_TZ (void); extern int emacs_setenv_TZ (char const *); # 1976 "../src/config.h" 2 # 25 "fstatat.c" 2 # 1 "./sys/types.h" 1 # 21 "./sys/types.h" 3 # 1 "/usr/include/sys/types.h" 1 3 4 # 72 "/usr/include/sys/types.h" 3 4 # 1 "/usr/include/sys/appleapiopts.h" 1 3 4 # 73 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/cdefs.h" 1 3 4 # 587 "/usr/include/sys/cdefs.h" 3 4 # 1 "/usr/include/sys/_symbol_aliasing.h" 1 3 4 # 588 "/usr/include/sys/cdefs.h" 2 3 4 # 653 "/usr/include/sys/cdefs.h" 3 4 # 1 "/usr/include/sys/_posix_availability.h" 1 3 4 # 654 "/usr/include/sys/cdefs.h" 2 3 4 # 76 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/machine/types.h" 1 3 4 # 35 "/usr/include/machine/types.h" 3 4 # 1 "/usr/include/i386/types.h" 1 3 4 # 70 "/usr/include/i386/types.h" 3 4 # 1 "/usr/include/i386/_types.h" 1 3 4 # 37 "/usr/include/i386/_types.h" 3 4 typedef signed char __int8_t; typedef unsigned char __uint8_t; typedef short __int16_t; typedef unsigned short __uint16_t; typedef int __int32_t; typedef unsigned int __uint32_t; typedef long long __int64_t; typedef unsigned long long __uint64_t; typedef long __darwin_intptr_t; typedef unsigned int __darwin_natural_t; # 70 "/usr/include/i386/_types.h" 3 4 typedef int __darwin_ct_rune_t; typedef union { char __mbstate8[128]; long long _mbstateL; } __mbstate_t; typedef __mbstate_t __darwin_mbstate_t; typedef long int __darwin_ptrdiff_t; typedef long unsigned int __darwin_size_t; typedef __builtin_va_list __darwin_va_list; typedef int __darwin_wchar_t; typedef __darwin_wchar_t __darwin_rune_t; typedef int __darwin_wint_t; typedef unsigned long __darwin_clock_t; typedef __uint32_t __darwin_socklen_t; typedef long __darwin_ssize_t; typedef long __darwin_time_t; # 71 "/usr/include/i386/types.h" 2 3 4 # 1 "/usr/include/sys/_types/_int8_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_int8_t.h" 3 4 typedef signed char int8_t; # 77 "/usr/include/i386/types.h" 2 3 4 # 1 "/usr/include/sys/_types/_int16_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_int16_t.h" 3 4 typedef short int16_t; # 78 "/usr/include/i386/types.h" 2 3 4 # 1 "/usr/include/sys/_types/_int32_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_int32_t.h" 3 4 typedef int int32_t; # 79 "/usr/include/i386/types.h" 2 3 4 # 1 "/usr/include/sys/_types/_int64_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_int64_t.h" 3 4 typedef long long int64_t; # 80 "/usr/include/i386/types.h" 2 3 4 # 1 "/usr/include/sys/_types/_u_int8_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_u_int8_t.h" 3 4 typedef unsigned char u_int8_t; # 82 "/usr/include/i386/types.h" 2 3 4 # 1 "/usr/include/sys/_types/_u_int16_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_u_int16_t.h" 3 4 typedef unsigned short u_int16_t; # 83 "/usr/include/i386/types.h" 2 3 4 # 1 "/usr/include/sys/_types/_u_int32_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_u_int32_t.h" 3 4 typedef unsigned int u_int32_t; # 84 "/usr/include/i386/types.h" 2 3 4 # 1 "/usr/include/sys/_types/_u_int64_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_u_int64_t.h" 3 4 typedef unsigned long long u_int64_t; # 85 "/usr/include/i386/types.h" 2 3 4 typedef int64_t register_t; # 1 "/usr/include/sys/_types/_intptr_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_intptr_t.h" 3 4 typedef __darwin_intptr_t intptr_t; # 93 "/usr/include/i386/types.h" 2 3 4 # 1 "/usr/include/sys/_types/_uintptr_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_uintptr_t.h" 3 4 typedef unsigned long uintptr_t; # 94 "/usr/include/i386/types.h" 2 3 4 typedef u_int64_t user_addr_t; typedef u_int64_t user_size_t; typedef int64_t user_ssize_t; typedef int64_t user_long_t; typedef u_int64_t user_ulong_t; typedef int64_t user_time_t; typedef int64_t user_off_t; typedef u_int64_t syscall_arg_t; # 36 "/usr/include/machine/types.h" 2 3 4 # 79 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/_types.h" 1 3 4 # 33 "/usr/include/sys/_types.h" 3 4 # 1 "/usr/include/machine/_types.h" 1 3 4 # 34 "/usr/include/sys/_types.h" 2 3 4 # 55 "/usr/include/sys/_types.h" 3 4 typedef __int64_t __darwin_blkcnt_t; typedef __int32_t __darwin_blksize_t; typedef __int32_t __darwin_dev_t; typedef unsigned int __darwin_fsblkcnt_t; typedef unsigned int __darwin_fsfilcnt_t; typedef __uint32_t __darwin_gid_t; typedef __uint32_t __darwin_id_t; typedef __uint64_t __darwin_ino64_t; typedef __darwin_ino64_t __darwin_ino_t; typedef __darwin_natural_t __darwin_mach_port_name_t; typedef __darwin_mach_port_name_t __darwin_mach_port_t; typedef __uint16_t __darwin_mode_t; typedef __int64_t __darwin_off_t; typedef __int32_t __darwin_pid_t; typedef __uint32_t __darwin_sigset_t; typedef __int32_t __darwin_suseconds_t; typedef __uint32_t __darwin_uid_t; typedef __uint32_t __darwin_useconds_t; typedef unsigned char __darwin_uuid_t[16]; typedef char __darwin_uuid_string_t[37]; # 1 "/usr/include/sys/_pthread/_pthread_types.h" 1 3 4 # 57 "/usr/include/sys/_pthread/_pthread_types.h" 3 4 struct __darwin_pthread_handler_rec { void (*__routine)(void *); void *__arg; struct __darwin_pthread_handler_rec *__next; }; struct _opaque_pthread_attr_t { long __sig; char __opaque[56]; }; struct _opaque_pthread_cond_t { long __sig; char __opaque[40]; }; struct _opaque_pthread_condattr_t { long __sig; char __opaque[8]; }; struct _opaque_pthread_mutex_t { long __sig; char __opaque[56]; }; struct _opaque_pthread_mutexattr_t { long __sig; char __opaque[8]; }; struct _opaque_pthread_once_t { long __sig; char __opaque[8]; }; struct _opaque_pthread_rwlock_t { long __sig; char __opaque[192]; }; struct _opaque_pthread_rwlockattr_t { long __sig; char __opaque[16]; }; struct _opaque_pthread_t { long __sig; struct __darwin_pthread_handler_rec *__cleanup_stack; char __opaque[8176]; }; typedef struct _opaque_pthread_attr_t __darwin_pthread_attr_t; typedef struct _opaque_pthread_cond_t __darwin_pthread_cond_t; typedef struct _opaque_pthread_condattr_t __darwin_pthread_condattr_t; typedef unsigned long __darwin_pthread_key_t; typedef struct _opaque_pthread_mutex_t __darwin_pthread_mutex_t; typedef struct _opaque_pthread_mutexattr_t __darwin_pthread_mutexattr_t; typedef struct _opaque_pthread_once_t __darwin_pthread_once_t; typedef struct _opaque_pthread_rwlock_t __darwin_pthread_rwlock_t; typedef struct _opaque_pthread_rwlockattr_t __darwin_pthread_rwlockattr_t; typedef struct _opaque_pthread_t *__darwin_pthread_t; # 81 "/usr/include/sys/_types.h" 2 3 4 # 80 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/machine/endian.h" 1 3 4 # 35 "/usr/include/machine/endian.h" 3 4 # 1 "/usr/include/i386/endian.h" 1 3 4 # 99 "/usr/include/i386/endian.h" 3 4 # 1 "/usr/include/sys/_endian.h" 1 3 4 # 130 "/usr/include/sys/_endian.h" 3 4 # 1 "/usr/include/libkern/_OSByteOrder.h" 1 3 4 # 66 "/usr/include/libkern/_OSByteOrder.h" 3 4 # 1 "/usr/include/libkern/i386/_OSByteOrder.h" 1 3 4 # 44 "/usr/include/libkern/i386/_OSByteOrder.h" 3 4 static inline __uint16_t _OSSwapInt16( __uint16_t _data ) { return ((__uint16_t)((_data << 8) | (_data >> 8))); } static inline __uint32_t _OSSwapInt32( __uint32_t _data ) { return __builtin_bswap32(_data); } static inline __uint64_t _OSSwapInt64( __uint64_t _data ) { return __builtin_bswap64(_data); } # 67 "/usr/include/libkern/_OSByteOrder.h" 2 3 4 # 131 "/usr/include/sys/_endian.h" 2 3 4 # 100 "/usr/include/i386/endian.h" 2 3 4 # 36 "/usr/include/machine/endian.h" 2 3 4 # 82 "/usr/include/sys/types.h" 2 3 4 typedef unsigned char u_char; typedef unsigned short u_short; typedef unsigned int u_int; typedef unsigned long u_long; typedef unsigned short ushort; typedef unsigned int uint; typedef u_int64_t u_quad_t; typedef int64_t quad_t; typedef quad_t * qaddr_t; typedef char * caddr_t; typedef int32_t daddr_t; # 1 "/usr/include/sys/_types/_dev_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_dev_t.h" 3 4 typedef __darwin_dev_t dev_t; # 103 "/usr/include/sys/types.h" 2 3 4 typedef u_int32_t fixpt_t; # 1 "/usr/include/sys/_types/_blkcnt_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_blkcnt_t.h" 3 4 typedef __darwin_blkcnt_t blkcnt_t; # 107 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/_types/_blksize_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_blksize_t.h" 3 4 typedef __darwin_blksize_t blksize_t; # 108 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/_types/_gid_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_gid_t.h" 3 4 typedef __darwin_gid_t gid_t; # 109 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/_types/_in_addr_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_in_addr_t.h" 3 4 typedef __uint32_t in_addr_t; # 110 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/_types/_in_port_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_in_port_t.h" 3 4 typedef __uint16_t in_port_t; # 111 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/_types/_ino_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_ino_t.h" 3 4 typedef __darwin_ino_t ino_t; # 112 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/_types/_ino64_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_ino64_t.h" 3 4 typedef __darwin_ino64_t ino64_t; # 115 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/_types/_key_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_key_t.h" 3 4 typedef __int32_t key_t; # 118 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/_types/_mode_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_mode_t.h" 3 4 typedef __darwin_mode_t mode_t; # 119 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/_types/_nlink_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_nlink_t.h" 3 4 typedef __uint16_t nlink_t; # 120 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/_types/_id_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_id_t.h" 3 4 typedef __darwin_id_t id_t; # 121 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/_types/_pid_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_pid_t.h" 3 4 typedef __darwin_pid_t pid_t; # 122 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/_types/_off_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_off_t.h" 3 4 typedef __darwin_off_t off_t; # 123 "/usr/include/sys/types.h" 2 3 4 typedef int32_t segsz_t; typedef int32_t swblk_t; # 1 "/usr/include/sys/_types/_uid_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_uid_t.h" 3 4 typedef __darwin_uid_t uid_t; # 128 "/usr/include/sys/types.h" 2 3 4 # 161 "/usr/include/sys/types.h" 3 4 # 1 "/usr/include/sys/_types/_clock_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_clock_t.h" 3 4 typedef __darwin_clock_t clock_t; # 162 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/_types/_size_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_size_t.h" 3 4 typedef __darwin_size_t size_t; # 163 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/_types/_ssize_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_ssize_t.h" 3 4 typedef __darwin_ssize_t ssize_t; # 164 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/_types/_time_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_time_t.h" 3 4 typedef __darwin_time_t time_t; # 165 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/_types/_useconds_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_useconds_t.h" 3 4 typedef __darwin_useconds_t useconds_t; # 167 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/_types/_suseconds_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_suseconds_t.h" 3 4 typedef __darwin_suseconds_t suseconds_t; # 168 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/_types/_rsize_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_rsize_t.h" 3 4 typedef __darwin_size_t rsize_t; # 171 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/_types/_errno_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_errno_t.h" 3 4 typedef int errno_t; # 172 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/_types/_fd_def.h" 1 3 4 # 46 "/usr/include/sys/_types/_fd_def.h" 3 4 typedef struct fd_set { __int32_t fds_bits[((((1024) % ((sizeof(__int32_t) * 8))) == 0) ? ((1024) / ((sizeof(__int32_t) * 8))) : (((1024) / ((sizeof(__int32_t) * 8))) + 1))]; } fd_set; static __inline int __darwin_fd_isset(int _n, const struct fd_set *_p) { return (_p->fds_bits[(unsigned long)_n/(sizeof(__int32_t) * 8)] & ((__int32_t)(((unsigned long)1)<<((unsigned long)_n % (sizeof(__int32_t) * 8))))); } # 181 "/usr/include/sys/types.h" 2 3 4 typedef __int32_t fd_mask; # 1 "/usr/include/sys/_types/_fd_setsize.h" 1 3 4 # 194 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/_types/_fd_set.h" 1 3 4 # 195 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/_types/_fd_clr.h" 1 3 4 # 196 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/_types/_fd_zero.h" 1 3 4 # 197 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/_types/_fd_isset.h" 1 3 4 # 198 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/_types/_fd_copy.h" 1 3 4 # 201 "/usr/include/sys/types.h" 2 3 4 # 211 "/usr/include/sys/types.h" 3 4 # 1 "/usr/include/sys/_pthread/_pthread_attr_t.h" 1 3 4 # 30 "/usr/include/sys/_pthread/_pthread_attr_t.h" 3 4 typedef __darwin_pthread_attr_t pthread_attr_t; # 212 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/_pthread/_pthread_cond_t.h" 1 3 4 # 30 "/usr/include/sys/_pthread/_pthread_cond_t.h" 3 4 typedef __darwin_pthread_cond_t pthread_cond_t; # 213 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/_pthread/_pthread_condattr_t.h" 1 3 4 # 30 "/usr/include/sys/_pthread/_pthread_condattr_t.h" 3 4 typedef __darwin_pthread_condattr_t pthread_condattr_t; # 214 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/_pthread/_pthread_mutex_t.h" 1 3 4 # 30 "/usr/include/sys/_pthread/_pthread_mutex_t.h" 3 4 typedef __darwin_pthread_mutex_t pthread_mutex_t; # 215 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/_pthread/_pthread_mutexattr_t.h" 1 3 4 # 30 "/usr/include/sys/_pthread/_pthread_mutexattr_t.h" 3 4 typedef __darwin_pthread_mutexattr_t pthread_mutexattr_t; # 216 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/_pthread/_pthread_once_t.h" 1 3 4 # 30 "/usr/include/sys/_pthread/_pthread_once_t.h" 3 4 typedef __darwin_pthread_once_t pthread_once_t; # 217 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/_pthread/_pthread_rwlock_t.h" 1 3 4 # 30 "/usr/include/sys/_pthread/_pthread_rwlock_t.h" 3 4 typedef __darwin_pthread_rwlock_t pthread_rwlock_t; # 218 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/_pthread/_pthread_rwlockattr_t.h" 1 3 4 # 30 "/usr/include/sys/_pthread/_pthread_rwlockattr_t.h" 3 4 typedef __darwin_pthread_rwlockattr_t pthread_rwlockattr_t; # 219 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/_pthread/_pthread_t.h" 1 3 4 # 30 "/usr/include/sys/_pthread/_pthread_t.h" 3 4 typedef __darwin_pthread_t pthread_t; # 220 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/_pthread/_pthread_key_t.h" 1 3 4 # 30 "/usr/include/sys/_pthread/_pthread_key_t.h" 3 4 typedef __darwin_pthread_key_t pthread_key_t; # 224 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/_types/_fsblkcnt_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_fsblkcnt_t.h" 3 4 typedef __darwin_fsblkcnt_t fsblkcnt_t; # 229 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/_types/_fsfilcnt_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_fsfilcnt_t.h" 3 4 typedef __darwin_fsfilcnt_t fsfilcnt_t; # 230 "/usr/include/sys/types.h" 2 3 4 # 29 "./sys/types.h" 2 3 # 28 "fstatat.c" 2 # 1 "./sys/stat.h" 1 # 26 "./sys/stat.h" 3 # 1 "/usr/include/sys/stat.h" 1 3 4 # 75 "/usr/include/sys/stat.h" 3 4 # 1 "/usr/include/Availability.h" 1 3 4 # 190 "/usr/include/Availability.h" 3 4 # 1 "/usr/include/AvailabilityInternal.h" 1 3 4 # 191 "/usr/include/Availability.h" 2 3 4 # 76 "/usr/include/sys/stat.h" 2 3 4 # 1 "/usr/include/sys/_types/_timespec.h" 1 3 4 # 30 "/usr/include/sys/_types/_timespec.h" 3 4 struct timespec { __darwin_time_t tv_sec; long tv_nsec; }; # 79 "/usr/include/sys/stat.h" 2 3 4 # 110 "/usr/include/sys/stat.h" 3 4 struct ostat { __uint16_t st_dev; ino_t st_ino; mode_t st_mode; nlink_t st_nlink; __uint16_t st_uid; __uint16_t st_gid; __uint16_t st_rdev; __int32_t st_size; struct timespec st_atimespec; struct timespec st_mtimespec; struct timespec st_ctimespec; __int32_t st_blksize; __int32_t st_blocks; __uint32_t st_flags; __uint32_t st_gen; }; # 182 "/usr/include/sys/stat.h" 3 4 struct stat { dev_t st_dev; mode_t st_mode; nlink_t st_nlink; __darwin_ino64_t st_ino; uid_t st_uid; gid_t st_gid; dev_t st_rdev; struct timespec st_atimespec; struct timespec st_mtimespec; struct timespec st_ctimespec; struct timespec st_birthtimespec; off_t st_size; blkcnt_t st_blocks; blksize_t st_blksize; __uint32_t st_flags; __uint32_t st_gen; __int32_t st_lspare; __int64_t st_qspare[2]; }; # 221 "/usr/include/sys/stat.h" 3 4 struct stat64 { dev_t st_dev; mode_t st_mode; nlink_t st_nlink; __darwin_ino64_t st_ino; uid_t st_uid; gid_t st_gid; dev_t st_rdev; struct timespec st_atimespec; struct timespec st_mtimespec; struct timespec st_ctimespec; struct timespec st_birthtimespec; off_t st_size; blkcnt_t st_blocks; blksize_t st_blksize; __uint32_t st_flags; __uint32_t st_gen; __int32_t st_lspare; __int64_t st_qspare[2]; }; # 241 "/usr/include/sys/stat.h" 3 4 # 1 "/usr/include/sys/_types/_s_ifmt.h" 1 3 4 # 242 "/usr/include/sys/stat.h" 2 3 4 # 352 "/usr/include/sys/stat.h" 3 4 int chmod(const char *, mode_t) __asm("_" "chmod" ); int fchmod(int, mode_t) __asm("_" "fchmod" ); int fstat(int, struct stat *) __asm("_" "fstat" "$INODE64"); int lstat(const char *, struct stat *) __asm("_" "lstat" "$INODE64"); int mkdir(const char *, mode_t); int mkfifo(const char *, mode_t); int stat(const char *, struct stat *) __asm("_" "stat" "$INODE64"); int mknod(const char *, mode_t, dev_t); mode_t umask(mode_t); int fchmodat(int, const char *, mode_t, int) __attribute__((availability(macosx,introduced=10.10))); int fstatat(int, const char *, struct stat *, int) __asm("_" "fstatat" "$INODE64") __attribute__((availability(macosx,introduced=10.10))); int mkdirat(int, const char *, mode_t) __attribute__((availability(macosx,introduced=10.10))); # 1 "/usr/include/sys/_types/_filesec_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_filesec_t.h" 3 4 struct _filesec; typedef struct _filesec *filesec_t; # 371 "/usr/include/sys/stat.h" 2 3 4 int chflags(const char *, __uint32_t); int chmodx_np(const char *, filesec_t); int fchflags(int, __uint32_t); int fchmodx_np(int, filesec_t); int fstatx_np(int, struct stat *, filesec_t) __asm("_" "fstatx_np" "$INODE64"); int lchflags(const char *, __uint32_t) __attribute__((availability(macosx,introduced=10.5))); int lchmod(const char *, mode_t) __attribute__((availability(macosx,introduced=10.5))); int lstatx_np(const char *, struct stat *, filesec_t) __asm("_" "lstatx_np" "$INODE64"); int mkdirx_np(const char *, filesec_t); int mkfifox_np(const char *, filesec_t); int statx_np(const char *, struct stat *, filesec_t) __asm("_" "statx_np" "$INODE64"); int umaskx_np(filesec_t) __attribute__((availability(macosx,introduced=10.4,deprecated=10.6))); int fstatx64_np(int, struct stat64 *, filesec_t) __attribute__((availability(macosx,introduced=10.5,deprecated=10.6))); int lstatx64_np(const char *, struct stat64 *, filesec_t) __attribute__((availability(macosx,introduced=10.5,deprecated=10.6))); int statx64_np(const char *, struct stat64 *, filesec_t) __attribute__((availability(macosx,introduced=10.5,deprecated=10.6))); int fstat64(int, struct stat64 *) __attribute__((availability(macosx,introduced=10.5,deprecated=10.6))); int lstat64(const char *, struct stat64 *) __attribute__((availability(macosx,introduced=10.5,deprecated=10.6))); int stat64(const char *, struct stat64 *) __attribute__((availability(macosx,introduced=10.5,deprecated=10.6))); # 33 "./sys/stat.h" 2 3 # 29 "fstatat.c" 2 static int orig_fstatat (int fd, char const *filename, struct stat *buf, int flags) { return fstatat (fd, filename, buf, flags); } # 1 "./sys/stat.h" 1 # 26 "./sys/stat.h" 3 # 41 "./sys/stat.h" 3 # 1 "./sys/types.h" 1 3 # 21 "./sys/types.h" 3 # 42 "./sys/stat.h" 2 3 # 1 "./time.h" 1 3 # 21 "./time.h" 3 # 41 "./time.h" 3 # 1 "/usr/include/time.h" 1 3 4 # 66 "/usr/include/time.h" 3 4 # 1 "/usr/include/_types.h" 1 3 4 # 39 "/usr/include/_types.h" 3 4 typedef int __darwin_nl_item; typedef int __darwin_wctrans_t; typedef __uint32_t __darwin_wctype_t; # 67 "/usr/include/time.h" 2 3 4 # 1 "/usr/include/sys/_types/_null.h" 1 3 4 # 70 "/usr/include/time.h" 2 3 4 struct tm { int tm_sec; int tm_min; int tm_hour; int tm_mday; int tm_mon; int tm_year; int tm_wday; int tm_yday; int tm_isdst; long tm_gmtoff; char *tm_zone; }; # 97 "/usr/include/time.h" 3 4 extern char *tzname[]; extern int getdate_err; extern long timezone __asm("_" "timezone" ); extern int daylight; char *asctime(const struct tm *); clock_t clock(void) __asm("_" "clock" ); char *ctime(const time_t *); double difftime(time_t, time_t); struct tm *getdate(const char *); struct tm *gmtime(const time_t *); struct tm *localtime(const time_t *); time_t mktime(struct tm *) __asm("_" "mktime" ); size_t strftime(char * __restrict, size_t, const char * __restrict, const struct tm * __restrict) __asm("_" "strftime" ); char *strptime(const char * __restrict, const char * __restrict, struct tm * __restrict) __asm("_" "strptime" ); time_t time(time_t *); void tzset(void); char *asctime_r(const struct tm * __restrict, char * __restrict); char *ctime_r(const time_t *, char *); struct tm *gmtime_r(const time_t * __restrict, struct tm * __restrict); struct tm *localtime_r(const time_t * __restrict, struct tm * __restrict); time_t posix2time(time_t); void tzsetwall(void); time_t time2posix(time_t); time_t timelocal(struct tm * const); time_t timegm(struct tm * const); int nanosleep(const struct timespec *__rqtp, struct timespec *__rmtp) __asm("_" "nanosleep" ); # 152 "/usr/include/time.h" 3 4 typedef enum { _CLOCK_REALTIME __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 0, _CLOCK_MONOTONIC __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 6, _CLOCK_MONOTONIC_RAW __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 4, _CLOCK_MONOTONIC_RAW_APPROX __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 5, _CLOCK_UPTIME_RAW __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 8, _CLOCK_UPTIME_RAW_APPROX __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 9, _CLOCK_PROCESS_CPUTIME_ID __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 12, _CLOCK_THREAD_CPUTIME_ID __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 16 } clockid_t; __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) int clock_getres(clockid_t __clock_id, struct timespec *__res); __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) int clock_gettime(clockid_t __clock_id, struct timespec *__tp); __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __uint64_t clock_gettime_nsec_np(clockid_t __clock_id); __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) int clock_settime(clockid_t __clock_id, const struct timespec *__tp); # 42 "./time.h" 2 3 # 1 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include/stddef.h" 1 3 4 # 51 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include/stddef.h" 3 4 typedef long int ptrdiff_t; # 90 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include/stddef.h" 3 4 typedef int wchar_t; # 118 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include/stddef.h" 3 4 # 1 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include/__stddef_max_align_t.h" 1 3 4 # 32 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include/__stddef_max_align_t.h" 3 4 typedef long double max_align_t; # 119 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include/stddef.h" 2 3 4 # 45 "./time.h" 2 3 # 544 "./time.h" 3 struct __time_t_must_be_integral { unsigned int __floating_time_t_unsupported : (time_t) 1; }; # 581 "./time.h" 3 extern time_t rpl_mktime (struct tm *__tp) __attribute__ ((__nonnull__ (1))); extern int _gl_cxxalias_dummy; extern int _gl_cxxalias_dummy; # 609 "./time.h" 3 extern int _gl_cxxalias_dummy; extern int _gl_cxxalias_dummy; # 631 "./time.h" 3 extern int _gl_cxxalias_dummy; extern int _gl_cxxalias_dummy; # 652 "./time.h" 3 extern int _gl_cxxalias_dummy; extern int _gl_cxxalias_dummy; # 667 "./time.h" 3 extern int _gl_cxxalias_dummy; extern int _gl_cxxalias_dummy; # 689 "./time.h" 3 typedef struct tm_zone *timezone_t; extern timezone_t tzalloc (char const *__name); extern int _gl_cxxalias_dummy; extern void tzfree (timezone_t __tz); extern int _gl_cxxalias_dummy; extern struct tm * localtime_rz (timezone_t __tz, time_t const *restrict __timer, struct tm *restrict __result) __attribute__ ((__nonnull__ (2, 3))); extern int _gl_cxxalias_dummy; extern time_t mktime_z (timezone_t __tz, struct tm *restrict __result) __attribute__ ((__nonnull__ (2))); extern int _gl_cxxalias_dummy; # 714 "./time.h" 3 extern time_t rpl_timegm (struct tm *__tm) __attribute__ ((__nonnull__ (1))); extern int _gl_cxxalias_dummy; extern int _gl_cxxalias_dummy; # 45 "./sys/stat.h" 2 3 # 1 "./sys/stat.h" 1 3 # 26 "./sys/stat.h" 3 # 41 "./sys/stat.h" 3 # 1 "./sys/types.h" 1 3 # 21 "./sys/types.h" 3 # 42 "./sys/stat.h" 2 3 # 1 "./time.h" 1 3 # 21 "./time.h" 3 # 45 "./sys/stat.h" 2 3 # 818 "./sys/stat.h" 3 extern int rpl_fstatat (int fd, char const *name, struct stat *st, int flags) __attribute__ ((__nonnull__ (2, 3))); extern int _gl_cxxalias_dummy; # 832 "./sys/stat.h" 3 extern int _gl_cxxalias_dummy; # 922 "./sys/stat.h" 3 extern int rpl_lstat (const char *name, struct stat *buf) __attribute__ ((__nonnull__ (1, 2))); extern int _gl_cxxalias_dummy; extern int _gl_cxxalias_dummy; # 969 "./sys/stat.h" 3 extern int _gl_cxxalias_dummy; extern int _gl_cxxalias_dummy; # 1134 "./sys/stat.h" 3 extern int rpl_stat (const char *name, struct stat *buf) __attribute__ ((__nonnull__ (1, 2))); # 48 "./sys/stat.h" 2 3 # 43 "fstatat.c" 2 # 1 "/usr/include/errno.h" 1 3 4 # 23 "/usr/include/errno.h" 3 4 # 1 "/usr/include/sys/errno.h" 1 3 4 # 80 "/usr/include/sys/errno.h" 3 4 extern int * __error(void); # 24 "/usr/include/errno.h" 2 3 4 # 45 "fstatat.c" 2 # 1 "./fcntl.h" 1 # 23 "./fcntl.h" 3 # 50 "./fcntl.h" 3 # 1 "./sys/types.h" 1 3 # 21 "./sys/types.h" 3 # 51 "./fcntl.h" 2 3 # 1 "./sys/stat.h" 1 3 # 26 "./sys/stat.h" 3 # 59 "./fcntl.h" 2 3 # 1 "/usr/include/fcntl.h" 1 3 4 # 23 "/usr/include/fcntl.h" 3 4 # 1 "/usr/include/sys/fcntl.h" 1 3 4 # 116 "/usr/include/sys/fcntl.h" 3 4 # 1 "/usr/include/sys/_types/_o_sync.h" 1 3 4 # 117 "/usr/include/sys/fcntl.h" 2 3 4 # 157 "/usr/include/sys/fcntl.h" 3 4 # 1 "/usr/include/sys/_types/_o_dsync.h" 1 3 4 # 158 "/usr/include/sys/fcntl.h" 2 3 4 # 310 "/usr/include/sys/fcntl.h" 3 4 # 1 "/usr/include/sys/_types/_seek_set.h" 1 3 4 # 311 "/usr/include/sys/fcntl.h" 2 3 4 # 335 "/usr/include/sys/fcntl.h" 3 4 struct flock { off_t l_start; off_t l_len; pid_t l_pid; short l_type; short l_whence; }; # 350 "/usr/include/sys/fcntl.h" 3 4 struct flocktimeout { struct flock fl; struct timespec timeout; }; # 363 "/usr/include/sys/fcntl.h" 3 4 struct radvisory { off_t ra_offset; int ra_count; }; typedef struct fcodeblobs { void *f_cd_hash; size_t f_hash_size; void *f_cd_buffer; size_t f_cd_size; unsigned int *f_out_size; int f_arch; int __padding; } fcodeblobs_t; # 387 "/usr/include/sys/fcntl.h" 3 4 typedef struct fsignatures { off_t fs_file_start; void *fs_blob_start; size_t fs_blob_size; } fsignatures_t; # 403 "/usr/include/sys/fcntl.h" 3 4 typedef struct fchecklv { off_t lv_file_start; size_t lv_error_message_size; void *lv_error_message; } fchecklv_t; # 419 "/usr/include/sys/fcntl.h" 3 4 typedef struct fstore { unsigned int fst_flags; int fst_posmode; off_t fst_offset; off_t fst_length; off_t fst_bytesalloc; } fstore_t; typedef struct fpunchhole { unsigned int fp_flags; unsigned int reserved; off_t fp_offset; off_t fp_length; } fpunchhole_t; typedef struct ftrimactivefile { off_t fta_offset; off_t fta_length; } ftrimactivefile_t; typedef struct fbootstraptransfer { off_t fbt_offset; size_t fbt_length; void *fbt_buffer; } fbootstraptransfer_t; # 471 "/usr/include/sys/fcntl.h" 3 4 #pragma pack(4) struct log2phys { unsigned int l2p_flags; off_t l2p_contigbytes; off_t l2p_devoffset; }; #pragma pack() # 496 "/usr/include/sys/fcntl.h" 3 4 typedef enum { FILESEC_OWNER = 1, FILESEC_GROUP = 2, FILESEC_UUID = 3, FILESEC_MODE = 4, FILESEC_ACL = 5, FILESEC_GRPUUID = 6, FILESEC_ACL_RAW = 100, FILESEC_ACL_ALLOCSIZE = 101 } filesec_property_t; int open(const char *, int, ...) __asm("_" "open" ); int openat(int, const char *, int, ...) __asm("_" "openat" ) __attribute__((availability(macosx,introduced=10.10))); int creat(const char *, mode_t) __asm("_" "creat" ); int fcntl(int, int, ...) __asm("_" "fcntl" ); int openx_np(const char *, int, filesec_t); int open_dprotected_np ( const char *, int, int, int, ...); int flock(int, int); filesec_t filesec_init(void); filesec_t filesec_dup(filesec_t); void filesec_free(filesec_t); int filesec_get_property(filesec_t, filesec_property_t, void *); int filesec_query_property(filesec_t, filesec_property_t, int *); int filesec_set_property(filesec_t, filesec_property_t, const void *); int filesec_unset_property(filesec_t, filesec_property_t) __attribute__((availability(macosx,introduced=10.6))); # 24 "/usr/include/fcntl.h" 2 3 4 # 62 "./fcntl.h" 2 3 # 1 "./unistd.h" 1 3 # 22 "./unistd.h" 3 # 40 "./unistd.h" 3 # 1 "/usr/include/unistd.h" 1 3 4 # 72 "/usr/include/unistd.h" 3 4 # 1 "/usr/include/sys/unistd.h" 1 3 4 # 84 "/usr/include/sys/unistd.h" 3 4 # 1 "/usr/include/sys/_types/_posix_vdisable.h" 1 3 4 # 85 "/usr/include/sys/unistd.h" 2 3 4 # 122 "/usr/include/sys/unistd.h" 3 4 # 1 "/usr/include/sys/_types/_seek_set.h" 1 3 4 # 123 "/usr/include/sys/unistd.h" 2 3 4 # 132 "/usr/include/sys/unistd.h" 3 4 struct accessx_descriptor { unsigned int ad_name_offset; int ad_flags; int ad_pad[2]; }; # 181 "/usr/include/sys/unistd.h" 3 4 # 1 "/usr/include/_types/_uint64_t.h" 1 3 4 # 31 "/usr/include/_types/_uint64_t.h" 3 4 typedef unsigned long long uint64_t; # 182 "/usr/include/sys/unistd.h" 2 3 4 int getattrlistbulk(int, void *, void *, size_t, uint64_t) __attribute__((availability(macosx,introduced=10.10))); # 204 "/usr/include/sys/unistd.h" 3 4 int faccessat(int, const char *, int, int) __attribute__((availability(macosx,introduced=10.10))); int fchownat(int, const char *, uid_t, gid_t, int) __attribute__((availability(macosx,introduced=10.10))); int linkat(int, const char *, int, const char *, int) __attribute__((availability(macosx,introduced=10.10))); ssize_t readlinkat(int, const char *, char *, size_t) __attribute__((availability(macosx,introduced=10.10))); int symlinkat(const char *, int, const char *) __attribute__((availability(macosx,introduced=10.10))); int unlinkat(int, const char *, int) __attribute__((availability(macosx,introduced=10.10))); int getattrlistat(int, const char *, void *, void *, size_t, unsigned long) __attribute__((availability(macosx,introduced=10.10))); # 73 "/usr/include/unistd.h" 2 3 4 # 429 "/usr/include/unistd.h" 3 4 void _exit(int) __attribute__((noreturn)); int access(const char *, int); unsigned int alarm(unsigned int); int chdir(const char *); int chown(const char *, uid_t, gid_t); int close(int) __asm("_" "close" ); int dup(int); int dup2(int, int); int execl(const char * __path, const char * __arg0, ...) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); int execle(const char * __path, const char * __arg0, ...) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); int execlp(const char * __file, const char * __arg0, ...) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); int execv(const char * __path, char * const * __argv) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); int execve(const char * __file, char * const * __argv, char * const * __envp) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); int execvp(const char * __file, char * const * __argv) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); pid_t fork(void) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); long fpathconf(int, int); char *getcwd(char *, size_t); gid_t getegid(void); uid_t geteuid(void); gid_t getgid(void); int getgroups(int, gid_t []) __asm("_" "getgroups" "$DARWIN_EXTSN"); char *getlogin(void); pid_t getpgrp(void); pid_t getpid(void); pid_t getppid(void); uid_t getuid(void); int isatty(int); int link(const char *, const char *); off_t lseek(int, off_t, int); long pathconf(const char *, int); int pause(void) __asm("_" "pause" ); int pipe(int [2]); ssize_t read(int, void *, size_t) __asm("_" "read" ); int rmdir(const char *); int setgid(gid_t); int setpgid(pid_t, pid_t); pid_t setsid(void); int setuid(uid_t); unsigned int sleep(unsigned int) __asm("_" "sleep" ); long sysconf(int); pid_t tcgetpgrp(int); int tcsetpgrp(int, pid_t); char *ttyname(int); int ttyname_r(int, char *, size_t) __asm("_" "ttyname_r" ); int unlink(const char *); ssize_t write(int __fd, const void * __buf, size_t __nbyte) __asm("_" "write" ); # 506 "/usr/include/unistd.h" 3 4 size_t confstr(int, char *, size_t) __asm("_" "confstr" ); int getopt(int, char * const [], const char *) __asm("_" "getopt" ); extern char *optarg; extern int optind, opterr, optopt; # 536 "/usr/include/unistd.h" 3 4 __attribute__((deprecated)) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) void *brk(const void *); int chroot(const char *) ; char *crypt(const char *, const char *); char *ctermid(char *); void encrypt(char *, int) __asm("_" "encrypt" ); int fchdir(int); long gethostid(void); pid_t getpgid(pid_t); pid_t getsid(pid_t); int getdtablesize(void) ; int getpagesize(void) __attribute__((const)) ; char *getpass(const char *) ; char *getwd(char *) ; int lchown(const char *, uid_t, gid_t) __asm("_" "lchown" ); int lockf(int, int, off_t) __asm("_" "lockf" ); int nice(int) __asm("_" "nice" ); ssize_t pread(int __fd, void * __buf, size_t __nbyte, off_t __offset) __asm("_" "pread" ); ssize_t pwrite(int __fd, const void * __buf, size_t __nbyte, off_t __offset) __asm("_" "pwrite" ); __attribute__((deprecated)) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) void *sbrk(int); pid_t setpgrp(void) __asm("_" "setpgrp" ); int setregid(gid_t, gid_t) __asm("_" "setregid" ); int setreuid(uid_t, uid_t) __asm("_" "setreuid" ); void swab(const void * __restrict, void * __restrict, ssize_t); void sync(void); int truncate(const char *, off_t); useconds_t ualarm(useconds_t, useconds_t); int usleep(useconds_t) __asm("_" "usleep" ); pid_t fork(void) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); int fsync(int) __asm("_" "fsync" ); int ftruncate(int, off_t); int getlogin_r(char *, size_t); # 624 "/usr/include/unistd.h" 3 4 int fchown(int, uid_t, gid_t); int gethostname(char *, size_t); ssize_t readlink(const char * __restrict, char * __restrict, size_t); int setegid(gid_t); int seteuid(uid_t); int symlink(const char *, const char *); # 638 "/usr/include/unistd.h" 3 4 # 1 "./sys/select.h" 1 3 4 # 20 "./sys/select.h" 3 # 77 "./sys/select.h" 3 # 1 "./sys/types.h" 1 3 # 21 "./sys/types.h" 3 # 78 "./sys/select.h" 2 3 # 88 "./sys/select.h" 3 # 1 "./sys/time.h" 1 3 # 25 "./sys/time.h" 3 # 39 "./sys/time.h" 3 # 1 "/usr/include/sys/time.h" 1 3 4 # 77 "/usr/include/sys/time.h" 3 4 # 1 "/usr/include/sys/_types/_timeval.h" 1 3 4 # 30 "/usr/include/sys/_types/_timeval.h" 3 4 struct timeval { __darwin_time_t tv_sec; __darwin_suseconds_t tv_usec; }; # 78 "/usr/include/sys/time.h" 2 3 4 # 1 "/usr/include/sys/_types/_timeval64.h" 1 3 4 # 31 "/usr/include/sys/_types/_timeval64.h" 3 4 struct timeval64 { __int64_t tv_sec; __int64_t tv_usec; }; # 81 "/usr/include/sys/time.h" 2 3 4 # 91 "/usr/include/sys/time.h" 3 4 struct itimerval { struct timeval it_interval; struct timeval it_value; }; # 129 "/usr/include/sys/time.h" 3 4 struct timezone { int tz_minuteswest; int tz_dsttime; }; # 172 "/usr/include/sys/time.h" 3 4 struct clockinfo { int hz; int tick; int tickadj; int stathz; int profhz; }; # 1 "./time.h" 1 3 4 # 21 "./time.h" 3 # 184 "/usr/include/sys/time.h" 2 3 4 int adjtime(const struct timeval *, struct timeval *); int futimes(int, const struct timeval *); int lutimes(const char *, const struct timeval *) __attribute__((availability(macosx,introduced=10.5))); int settimeofday(const struct timeval *, const struct timezone *); int getitimer(int, struct itimerval *); int gettimeofday(struct timeval * __restrict, void * __restrict); # 1 "/usr/include/sys/_select.h" 1 3 4 # 39 "/usr/include/sys/_select.h" 3 4 int select(int, fd_set * __restrict, fd_set * __restrict, fd_set * __restrict, struct timeval * __restrict) __asm("_" "select" "$DARWIN_EXTSN" ) ; # 199 "/usr/include/sys/time.h" 2 3 4 int setitimer(int, const struct itimerval * __restrict, struct itimerval * __restrict); int utimes(const char *, const struct timeval *); # 40 "./sys/time.h" 2 3 # 560 "./sys/time.h" 3 extern int _gl_cxxalias_dummy; extern int _gl_cxxalias_dummy; # 89 "./sys/select.h" 2 3 # 100 "./sys/select.h" 3 # 1 "/usr/include/sys/select.h" 1 3 4 # 86 "/usr/include/sys/select.h" 3 4 # 1 "/usr/include/sys/_types/_sigset_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_sigset_t.h" 3 4 typedef __darwin_sigset_t sigset_t; # 87 "/usr/include/sys/select.h" 2 3 4 # 114 "/usr/include/sys/select.h" 3 4 int pselect(int, fd_set * __restrict, fd_set * __restrict, fd_set * __restrict, const struct timespec * __restrict, const sigset_t * __restrict) __asm("_" "pselect" "$DARWIN_EXTSN" ) ; # 101 "./sys/select.h" 2 3 # 110 "./sys/select.h" 3 # 1 "./signal.h" 1 3 # 21 "./signal.h" 3 # 49 "./signal.h" 3 # 1 "./sys/types.h" 1 3 # 21 "./sys/types.h" 3 # 50 "./signal.h" 2 3 # 1 "/usr/include/signal.h" 1 3 4 # 63 "/usr/include/signal.h" 3 4 # 1 "/usr/include/sys/signal.h" 1 3 4 # 82 "/usr/include/sys/signal.h" 3 4 # 1 "/usr/include/machine/signal.h" 1 3 4 # 32 "/usr/include/machine/signal.h" 3 4 # 1 "/usr/include/i386/signal.h" 1 3 4 # 39 "/usr/include/i386/signal.h" 3 4 typedef int sig_atomic_t; # 33 "/usr/include/machine/signal.h" 2 3 4 # 83 "/usr/include/sys/signal.h" 2 3 4 # 146 "/usr/include/sys/signal.h" 3 4 # 1 "/usr/include/machine/_mcontext.h" 1 3 4 # 29 "/usr/include/machine/_mcontext.h" 3 4 # 1 "/usr/include/i386/_mcontext.h" 1 3 4 # 33 "/usr/include/i386/_mcontext.h" 3 4 # 1 "/usr/include/mach/i386/_structs.h" 1 3 4 # 43 "/usr/include/mach/i386/_structs.h" 3 4 struct __darwin_i386_thread_state { unsigned int __eax; unsigned int __ebx; unsigned int __ecx; unsigned int __edx; unsigned int __edi; unsigned int __esi; unsigned int __ebp; unsigned int __esp; unsigned int __ss; unsigned int __eflags; unsigned int __eip; unsigned int __cs; unsigned int __ds; unsigned int __es; unsigned int __fs; unsigned int __gs; }; # 89 "/usr/include/mach/i386/_structs.h" 3 4 struct __darwin_fp_control { unsigned short __invalid :1, __denorm :1, __zdiv :1, __ovrfl :1, __undfl :1, __precis :1, :2, __pc :2, __rc :2, :1, :3; }; typedef struct __darwin_fp_control __darwin_fp_control_t; # 147 "/usr/include/mach/i386/_structs.h" 3 4 struct __darwin_fp_status { unsigned short __invalid :1, __denorm :1, __zdiv :1, __ovrfl :1, __undfl :1, __precis :1, __stkflt :1, __errsumm :1, __c0 :1, __c1 :1, __c2 :1, __tos :3, __c3 :1, __busy :1; }; typedef struct __darwin_fp_status __darwin_fp_status_t; # 191 "/usr/include/mach/i386/_structs.h" 3 4 struct __darwin_mmst_reg { char __mmst_reg[10]; char __mmst_rsrv[6]; }; # 210 "/usr/include/mach/i386/_structs.h" 3 4 struct __darwin_xmm_reg { char __xmm_reg[16]; }; # 232 "/usr/include/mach/i386/_structs.h" 3 4 struct __darwin_i386_float_state { int __fpu_reserved[2]; struct __darwin_fp_control __fpu_fcw; struct __darwin_fp_status __fpu_fsw; __uint8_t __fpu_ftw; __uint8_t __fpu_rsrv1; __uint16_t __fpu_fop; __uint32_t __fpu_ip; __uint16_t __fpu_cs; __uint16_t __fpu_rsrv2; __uint32_t __fpu_dp; __uint16_t __fpu_ds; __uint16_t __fpu_rsrv3; __uint32_t __fpu_mxcsr; __uint32_t __fpu_mxcsrmask; struct __darwin_mmst_reg __fpu_stmm0; struct __darwin_mmst_reg __fpu_stmm1; struct __darwin_mmst_reg __fpu_stmm2; struct __darwin_mmst_reg __fpu_stmm3; struct __darwin_mmst_reg __fpu_stmm4; struct __darwin_mmst_reg __fpu_stmm5; struct __darwin_mmst_reg __fpu_stmm6; struct __darwin_mmst_reg __fpu_stmm7; struct __darwin_xmm_reg __fpu_xmm0; struct __darwin_xmm_reg __fpu_xmm1; struct __darwin_xmm_reg __fpu_xmm2; struct __darwin_xmm_reg __fpu_xmm3; struct __darwin_xmm_reg __fpu_xmm4; struct __darwin_xmm_reg __fpu_xmm5; struct __darwin_xmm_reg __fpu_xmm6; struct __darwin_xmm_reg __fpu_xmm7; char __fpu_rsrv4[14*16]; int __fpu_reserved1; }; struct __darwin_i386_avx_state { int __fpu_reserved[2]; struct __darwin_fp_control __fpu_fcw; struct __darwin_fp_status __fpu_fsw; __uint8_t __fpu_ftw; __uint8_t __fpu_rsrv1; __uint16_t __fpu_fop; __uint32_t __fpu_ip; __uint16_t __fpu_cs; __uint16_t __fpu_rsrv2; __uint32_t __fpu_dp; __uint16_t __fpu_ds; __uint16_t __fpu_rsrv3; __uint32_t __fpu_mxcsr; __uint32_t __fpu_mxcsrmask; struct __darwin_mmst_reg __fpu_stmm0; struct __darwin_mmst_reg __fpu_stmm1; struct __darwin_mmst_reg __fpu_stmm2; struct __darwin_mmst_reg __fpu_stmm3; struct __darwin_mmst_reg __fpu_stmm4; struct __darwin_mmst_reg __fpu_stmm5; struct __darwin_mmst_reg __fpu_stmm6; struct __darwin_mmst_reg __fpu_stmm7; struct __darwin_xmm_reg __fpu_xmm0; struct __darwin_xmm_reg __fpu_xmm1; struct __darwin_xmm_reg __fpu_xmm2; struct __darwin_xmm_reg __fpu_xmm3; struct __darwin_xmm_reg __fpu_xmm4; struct __darwin_xmm_reg __fpu_xmm5; struct __darwin_xmm_reg __fpu_xmm6; struct __darwin_xmm_reg __fpu_xmm7; char __fpu_rsrv4[14*16]; int __fpu_reserved1; char __avx_reserved1[64]; struct __darwin_xmm_reg __fpu_ymmh0; struct __darwin_xmm_reg __fpu_ymmh1; struct __darwin_xmm_reg __fpu_ymmh2; struct __darwin_xmm_reg __fpu_ymmh3; struct __darwin_xmm_reg __fpu_ymmh4; struct __darwin_xmm_reg __fpu_ymmh5; struct __darwin_xmm_reg __fpu_ymmh6; struct __darwin_xmm_reg __fpu_ymmh7; }; # 402 "/usr/include/mach/i386/_structs.h" 3 4 struct __darwin_i386_exception_state { __uint16_t __trapno; __uint16_t __cpu; __uint32_t __err; __uint32_t __faultvaddr; }; # 422 "/usr/include/mach/i386/_structs.h" 3 4 struct __darwin_x86_debug_state32 { unsigned int __dr0; unsigned int __dr1; unsigned int __dr2; unsigned int __dr3; unsigned int __dr4; unsigned int __dr5; unsigned int __dr6; unsigned int __dr7; }; # 454 "/usr/include/mach/i386/_structs.h" 3 4 struct __darwin_x86_thread_state64 { __uint64_t __rax; __uint64_t __rbx; __uint64_t __rcx; __uint64_t __rdx; __uint64_t __rdi; __uint64_t __rsi; __uint64_t __rbp; __uint64_t __rsp; __uint64_t __r8; __uint64_t __r9; __uint64_t __r10; __uint64_t __r11; __uint64_t __r12; __uint64_t __r13; __uint64_t __r14; __uint64_t __r15; __uint64_t __rip; __uint64_t __rflags; __uint64_t __cs; __uint64_t __fs; __uint64_t __gs; }; # 509 "/usr/include/mach/i386/_structs.h" 3 4 struct __darwin_x86_float_state64 { int __fpu_reserved[2]; struct __darwin_fp_control __fpu_fcw; struct __darwin_fp_status __fpu_fsw; __uint8_t __fpu_ftw; __uint8_t __fpu_rsrv1; __uint16_t __fpu_fop; __uint32_t __fpu_ip; __uint16_t __fpu_cs; __uint16_t __fpu_rsrv2; __uint32_t __fpu_dp; __uint16_t __fpu_ds; __uint16_t __fpu_rsrv3; __uint32_t __fpu_mxcsr; __uint32_t __fpu_mxcsrmask; struct __darwin_mmst_reg __fpu_stmm0; struct __darwin_mmst_reg __fpu_stmm1; struct __darwin_mmst_reg __fpu_stmm2; struct __darwin_mmst_reg __fpu_stmm3; struct __darwin_mmst_reg __fpu_stmm4; struct __darwin_mmst_reg __fpu_stmm5; struct __darwin_mmst_reg __fpu_stmm6; struct __darwin_mmst_reg __fpu_stmm7; struct __darwin_xmm_reg __fpu_xmm0; struct __darwin_xmm_reg __fpu_xmm1; struct __darwin_xmm_reg __fpu_xmm2; struct __darwin_xmm_reg __fpu_xmm3; struct __darwin_xmm_reg __fpu_xmm4; struct __darwin_xmm_reg __fpu_xmm5; struct __darwin_xmm_reg __fpu_xmm6; struct __darwin_xmm_reg __fpu_xmm7; struct __darwin_xmm_reg __fpu_xmm8; struct __darwin_xmm_reg __fpu_xmm9; struct __darwin_xmm_reg __fpu_xmm10; struct __darwin_xmm_reg __fpu_xmm11; struct __darwin_xmm_reg __fpu_xmm12; struct __darwin_xmm_reg __fpu_xmm13; struct __darwin_xmm_reg __fpu_xmm14; struct __darwin_xmm_reg __fpu_xmm15; char __fpu_rsrv4[6*16]; int __fpu_reserved1; }; struct __darwin_x86_avx_state64 { int __fpu_reserved[2]; struct __darwin_fp_control __fpu_fcw; struct __darwin_fp_status __fpu_fsw; __uint8_t __fpu_ftw; __uint8_t __fpu_rsrv1; __uint16_t __fpu_fop; __uint32_t __fpu_ip; __uint16_t __fpu_cs; __uint16_t __fpu_rsrv2; __uint32_t __fpu_dp; __uint16_t __fpu_ds; __uint16_t __fpu_rsrv3; __uint32_t __fpu_mxcsr; __uint32_t __fpu_mxcsrmask; struct __darwin_mmst_reg __fpu_stmm0; struct __darwin_mmst_reg __fpu_stmm1; struct __darwin_mmst_reg __fpu_stmm2; struct __darwin_mmst_reg __fpu_stmm3; struct __darwin_mmst_reg __fpu_stmm4; struct __darwin_mmst_reg __fpu_stmm5; struct __darwin_mmst_reg __fpu_stmm6; struct __darwin_mmst_reg __fpu_stmm7; struct __darwin_xmm_reg __fpu_xmm0; struct __darwin_xmm_reg __fpu_xmm1; struct __darwin_xmm_reg __fpu_xmm2; struct __darwin_xmm_reg __fpu_xmm3; struct __darwin_xmm_reg __fpu_xmm4; struct __darwin_xmm_reg __fpu_xmm5; struct __darwin_xmm_reg __fpu_xmm6; struct __darwin_xmm_reg __fpu_xmm7; struct __darwin_xmm_reg __fpu_xmm8; struct __darwin_xmm_reg __fpu_xmm9; struct __darwin_xmm_reg __fpu_xmm10; struct __darwin_xmm_reg __fpu_xmm11; struct __darwin_xmm_reg __fpu_xmm12; struct __darwin_xmm_reg __fpu_xmm13; struct __darwin_xmm_reg __fpu_xmm14; struct __darwin_xmm_reg __fpu_xmm15; char __fpu_rsrv4[6*16]; int __fpu_reserved1; char __avx_reserved1[64]; struct __darwin_xmm_reg __fpu_ymmh0; struct __darwin_xmm_reg __fpu_ymmh1; struct __darwin_xmm_reg __fpu_ymmh2; struct __darwin_xmm_reg __fpu_ymmh3; struct __darwin_xmm_reg __fpu_ymmh4; struct __darwin_xmm_reg __fpu_ymmh5; struct __darwin_xmm_reg __fpu_ymmh6; struct __darwin_xmm_reg __fpu_ymmh7; struct __darwin_xmm_reg __fpu_ymmh8; struct __darwin_xmm_reg __fpu_ymmh9; struct __darwin_xmm_reg __fpu_ymmh10; struct __darwin_xmm_reg __fpu_ymmh11; struct __darwin_xmm_reg __fpu_ymmh12; struct __darwin_xmm_reg __fpu_ymmh13; struct __darwin_xmm_reg __fpu_ymmh14; struct __darwin_xmm_reg __fpu_ymmh15; }; # 751 "/usr/include/mach/i386/_structs.h" 3 4 struct __darwin_x86_exception_state64 { __uint16_t __trapno; __uint16_t __cpu; __uint32_t __err; __uint64_t __faultvaddr; }; # 771 "/usr/include/mach/i386/_structs.h" 3 4 struct __darwin_x86_debug_state64 { __uint64_t __dr0; __uint64_t __dr1; __uint64_t __dr2; __uint64_t __dr3; __uint64_t __dr4; __uint64_t __dr5; __uint64_t __dr6; __uint64_t __dr7; }; # 34 "/usr/include/i386/_mcontext.h" 2 3 4 struct __darwin_mcontext32 { struct __darwin_i386_exception_state __es; struct __darwin_i386_thread_state __ss; struct __darwin_i386_float_state __fs; }; struct __darwin_mcontext_avx32 { struct __darwin_i386_exception_state __es; struct __darwin_i386_thread_state __ss; struct __darwin_i386_avx_state __fs; }; # 76 "/usr/include/i386/_mcontext.h" 3 4 struct __darwin_mcontext64 { struct __darwin_x86_exception_state64 __es; struct __darwin_x86_thread_state64 __ss; struct __darwin_x86_float_state64 __fs; }; struct __darwin_mcontext_avx64 { struct __darwin_x86_exception_state64 __es; struct __darwin_x86_thread_state64 __ss; struct __darwin_x86_avx_state64 __fs; }; # 115 "/usr/include/i386/_mcontext.h" 3 4 typedef struct __darwin_mcontext64 *mcontext_t; # 30 "/usr/include/machine/_mcontext.h" 2 3 4 # 147 "/usr/include/sys/signal.h" 2 3 4 # 1 "/usr/include/sys/_types/_sigaltstack.h" 1 3 4 # 36 "/usr/include/sys/_types/_sigaltstack.h" 3 4 struct __darwin_sigaltstack { void *ss_sp; __darwin_size_t ss_size; int ss_flags; }; typedef struct __darwin_sigaltstack stack_t; # 151 "/usr/include/sys/signal.h" 2 3 4 # 1 "/usr/include/sys/_types/_ucontext.h" 1 3 4 # 34 "/usr/include/sys/_types/_ucontext.h" 3 4 struct __darwin_ucontext { int uc_onstack; __darwin_sigset_t uc_sigmask; struct __darwin_sigaltstack uc_stack; struct __darwin_ucontext *uc_link; __darwin_size_t uc_mcsize; struct __darwin_mcontext64 *uc_mcontext; }; typedef struct __darwin_ucontext ucontext_t; # 152 "/usr/include/sys/signal.h" 2 3 4 union sigval { int sival_int; void *sival_ptr; }; struct sigevent { int sigev_notify; int sigev_signo; union sigval sigev_value; void (*sigev_notify_function)(union sigval); pthread_attr_t *sigev_notify_attributes; }; typedef struct __siginfo { int si_signo; int si_errno; int si_code; pid_t si_pid; uid_t si_uid; int si_status; void *si_addr; union sigval si_value; long si_band; unsigned long __pad[7]; } siginfo_t; # 269 "/usr/include/sys/signal.h" 3 4 union __sigaction_u { void (*__sa_handler)(int); void (*__sa_sigaction)(int, struct __siginfo *, void *); }; struct __sigaction { union __sigaction_u __sigaction_u; void (*sa_tramp)(void *, int, int, siginfo_t *, void *); sigset_t sa_mask; int sa_flags; }; struct sigaction { union __sigaction_u __sigaction_u; sigset_t sa_mask; int sa_flags; }; # 331 "/usr/include/sys/signal.h" 3 4 typedef void (*sig_t)(int); # 348 "/usr/include/sys/signal.h" 3 4 struct sigvec { void (*sv_handler)(int); int sv_mask; int sv_flags; }; # 367 "/usr/include/sys/signal.h" 3 4 struct sigstack { char *ss_sp; int ss_onstack; }; # 390 "/usr/include/sys/signal.h" 3 4 void (*signal(int, void (*)(int)))(int); # 64 "/usr/include/signal.h" 2 3 4 extern const char *const sys_signame[32]; extern const char *const sys_siglist[32]; int raise(int); void (* _Nullable bsd_signal(int, void (* _Nullable)(int)))(int); int kill(pid_t, int) __asm("_" "kill" ); int killpg(pid_t, int) __asm("_" "killpg" ); int pthread_kill(pthread_t, int); int pthread_sigmask(int, const sigset_t *, sigset_t *) __asm("_" "pthread_sigmask" ); int sigaction(int, const struct sigaction * __restrict, struct sigaction * __restrict); int sigaddset(sigset_t *, int); int sigaltstack(const stack_t * __restrict, stack_t * __restrict) __asm("_" "sigaltstack" ) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); int sigdelset(sigset_t *, int); int sigemptyset(sigset_t *); int sigfillset(sigset_t *); int sighold(int); int sigignore(int); int siginterrupt(int, int); int sigismember(const sigset_t *, int); int sigpause(int) __asm("_" "sigpause" ); int sigpending(sigset_t *); int sigprocmask(int, const sigset_t * __restrict, sigset_t * __restrict); int sigrelse(int); void (* _Nullable sigset(int, void (* _Nullable)(int)))(int); int sigsuspend(const sigset_t *) __asm("_" "sigsuspend" ); int sigwait(const sigset_t * __restrict, int * __restrict) __asm("_" "sigwait" ); void psignal(unsigned int, const char *); int sigblock(int); int sigsetmask(int); int sigvec(int, struct sigvec *, struct sigvec *); inline __attribute__ ((__always_inline__)) int __sigbits(int __signo) { return __signo > 32 ? 0 : (1 << (__signo - 1)); } # 53 "./signal.h" 2 3 # 67 "./signal.h" 3 # 1 "/usr/include/pthread.h" 1 3 4 # 57 "/usr/include/pthread.h" 3 4 # 1 "/usr/include/pthread/pthread_impl.h" 1 3 4 # 58 "/usr/include/pthread.h" 2 3 4 # 1 "/usr/include/pthread/sched.h" 1 3 4 # 35 "/usr/include/pthread/sched.h" 3 4 struct sched_param { int sched_priority; char __opaque[4]; }; extern int sched_yield(void); extern int sched_get_priority_min(int); extern int sched_get_priority_max(int); # 60 "/usr/include/pthread.h" 2 3 4 # 1 "./time.h" 1 3 4 # 21 "./time.h" 3 # 61 "/usr/include/pthread.h" 2 3 4 # 73 "/usr/include/pthread.h" 3 4 # 1 "/usr/include/pthread/qos.h" 1 3 4 # 32 "/usr/include/pthread/qos.h" 3 4 # 1 "/usr/include/sys/qos.h" 1 3 4 # 128 "/usr/include/sys/qos.h" 3 4 enum { QOS_CLASS_USER_INTERACTIVE __attribute__((availability(macosx,introduced=10.10))) = 0x21, QOS_CLASS_USER_INITIATED __attribute__((availability(macosx,introduced=10.10))) = 0x19, QOS_CLASS_DEFAULT __attribute__((availability(macosx,introduced=10.10))) = 0x15, QOS_CLASS_UTILITY __attribute__((availability(macosx,introduced=10.10))) = 0x11, QOS_CLASS_BACKGROUND __attribute__((availability(macosx,introduced=10.10))) = 0x09, QOS_CLASS_UNSPECIFIED __attribute__((availability(macosx,introduced=10.10))) = 0x00, }; typedef unsigned int qos_class_t; # 168 "/usr/include/sys/qos.h" 3 4 __attribute__((availability(macosx,introduced=10.10))) qos_class_t qos_class_self(void); # 190 "/usr/include/sys/qos.h" 3 4 __attribute__((availability(macosx,introduced=10.10))) qos_class_t qos_class_main(void); # 33 "/usr/include/pthread/qos.h" 2 3 4 # 79 "/usr/include/pthread/qos.h" 3 4 __attribute__((availability(macosx,introduced=10.10))) int pthread_attr_set_qos_class_np(pthread_attr_t *__attr, qos_class_t __qos_class, int __relative_priority); # 110 "/usr/include/pthread/qos.h" 3 4 __attribute__((availability(macosx,introduced=10.10))) int pthread_attr_get_qos_class_np(pthread_attr_t * __restrict __attr, qos_class_t * _Nullable __restrict __qos_class, int * _Nullable __restrict __relative_priority); # 151 "/usr/include/pthread/qos.h" 3 4 __attribute__((availability(macosx,introduced=10.10))) int pthread_set_qos_class_self_np(qos_class_t __qos_class, int __relative_priority); # 182 "/usr/include/pthread/qos.h" 3 4 __attribute__((availability(macosx,introduced=10.10))) int pthread_get_qos_class_np(pthread_t __pthread, qos_class_t * _Nullable __restrict __qos_class, int * _Nullable __restrict __relative_priority); # 209 "/usr/include/pthread/qos.h" 3 4 typedef struct pthread_override_s* pthread_override_t; # 261 "/usr/include/pthread/qos.h" 3 4 __attribute__((availability(macosx,introduced=10.10))) pthread_override_t pthread_override_qos_class_start_np(pthread_t __pthread, qos_class_t __qos_class, int __relative_priority); # 289 "/usr/include/pthread/qos.h" 3 4 __attribute__((availability(macosx,introduced=10.10))) int pthread_override_qos_class_end_np(pthread_override_t __override); # 74 "/usr/include/pthread.h" 2 3 4 # 1 "/usr/include/sys/_types/_mach_port_t.h" 1 3 4 # 49 "/usr/include/sys/_types/_mach_port_t.h" 3 4 typedef __darwin_mach_port_t mach_port_t; # 78 "/usr/include/pthread.h" 2 3 4 # 215 "/usr/include/pthread.h" 3 4 __attribute__((availability(macosx,introduced=10.4))) int pthread_atfork(void (* _Nullable)(void), void (* _Nullable)(void), void (* _Nullable)(void)); __attribute__((availability(macosx,introduced=10.4))) int pthread_attr_destroy(pthread_attr_t *); __attribute__((availability(macosx,introduced=10.4))) int pthread_attr_getdetachstate(const pthread_attr_t *, int *); __attribute__((availability(macosx,introduced=10.4))) int pthread_attr_getguardsize(const pthread_attr_t * __restrict, size_t * __restrict); __attribute__((availability(macosx,introduced=10.4))) int pthread_attr_getinheritsched(const pthread_attr_t * __restrict, int * __restrict); __attribute__((availability(macosx,introduced=10.4))) int pthread_attr_getschedparam(const pthread_attr_t * __restrict, struct sched_param * __restrict); __attribute__((availability(macosx,introduced=10.4))) int pthread_attr_getschedpolicy(const pthread_attr_t * __restrict, int * __restrict); __attribute__((availability(macosx,introduced=10.4))) int pthread_attr_getscope(const pthread_attr_t * __restrict, int * __restrict); __attribute__((availability(macosx,introduced=10.4))) int pthread_attr_getstack(const pthread_attr_t * __restrict, void * _Nullable * _Nonnull __restrict, size_t * __restrict); __attribute__((availability(macosx,introduced=10.4))) int pthread_attr_getstackaddr(const pthread_attr_t * __restrict, void * _Nullable * _Nonnull __restrict); __attribute__((availability(macosx,introduced=10.4))) int pthread_attr_getstacksize(const pthread_attr_t * __restrict, size_t * __restrict); __attribute__((availability(macosx,introduced=10.4))) int pthread_attr_init(pthread_attr_t *); __attribute__((availability(macosx,introduced=10.4))) int pthread_attr_setdetachstate(pthread_attr_t *, int); __attribute__((availability(macosx,introduced=10.4))) int pthread_attr_setguardsize(pthread_attr_t *, size_t); __attribute__((availability(macosx,introduced=10.4))) int pthread_attr_setinheritsched(pthread_attr_t *, int); __attribute__((availability(macosx,introduced=10.4))) int pthread_attr_setschedparam(pthread_attr_t * __restrict, const struct sched_param * __restrict); __attribute__((availability(macosx,introduced=10.4))) int pthread_attr_setschedpolicy(pthread_attr_t *, int); __attribute__((availability(macosx,introduced=10.4))) int pthread_attr_setscope(pthread_attr_t *, int); __attribute__((availability(macosx,introduced=10.4))) int pthread_attr_setstack(pthread_attr_t *, void *, size_t); __attribute__((availability(macosx,introduced=10.4))) int pthread_attr_setstackaddr(pthread_attr_t *, void *); __attribute__((availability(macosx,introduced=10.4))) int pthread_attr_setstacksize(pthread_attr_t *, size_t); __attribute__((availability(macosx,introduced=10.4))) int pthread_cancel(pthread_t) __asm("_" "pthread_cancel" ); __attribute__((availability(macosx,introduced=10.4))) int pthread_cond_broadcast(pthread_cond_t *); __attribute__((availability(macosx,introduced=10.4))) int pthread_cond_destroy(pthread_cond_t *); __attribute__((availability(macosx,introduced=10.4))) int pthread_cond_init( pthread_cond_t * __restrict, const pthread_condattr_t * _Nullable __restrict) __asm("_" "pthread_cond_init" ); __attribute__((availability(macosx,introduced=10.4))) int pthread_cond_signal(pthread_cond_t *); __attribute__((availability(macosx,introduced=10.4))) int pthread_cond_timedwait( pthread_cond_t * __restrict, pthread_mutex_t * __restrict, const struct timespec * _Nullable __restrict) __asm("_" "pthread_cond_timedwait" ); __attribute__((availability(macosx,introduced=10.4))) int pthread_cond_wait(pthread_cond_t * __restrict, pthread_mutex_t * __restrict) __asm("_" "pthread_cond_wait" ); __attribute__((availability(macosx,introduced=10.4))) int pthread_condattr_destroy(pthread_condattr_t *); __attribute__((availability(macosx,introduced=10.4))) int pthread_condattr_init(pthread_condattr_t *); __attribute__((availability(macosx,introduced=10.4))) int pthread_condattr_getpshared(const pthread_condattr_t * __restrict, int * __restrict); __attribute__((availability(macosx,introduced=10.4))) int pthread_condattr_setpshared(pthread_condattr_t *, int); __attribute__((availability(macosx,introduced=10.4))) int pthread_create(pthread_t _Nullable * _Nonnull __restrict, const pthread_attr_t * _Nullable __restrict, void * _Nullable (* _Nonnull)(void * _Nullable), void * _Nullable __restrict); __attribute__((availability(macosx,introduced=10.4))) int pthread_detach(pthread_t); __attribute__((availability(macosx,introduced=10.4))) int pthread_equal(pthread_t _Nullable, pthread_t _Nullable); __attribute__((availability(macosx,introduced=10.4))) void pthread_exit(void * _Nullable) __attribute__((noreturn)); __attribute__((availability(macosx,introduced=10.4))) int pthread_getconcurrency(void); __attribute__((availability(macosx,introduced=10.4))) int pthread_getschedparam(pthread_t , int * _Nullable __restrict, struct sched_param * _Nullable __restrict); __attribute__((availability(macosx,introduced=10.4))) void* _Nullable pthread_getspecific(pthread_key_t); __attribute__((availability(macosx,introduced=10.4))) int pthread_join(pthread_t , void * _Nullable * _Nullable) __asm("_" "pthread_join" ); __attribute__((availability(macosx,introduced=10.4))) int pthread_key_create(pthread_key_t *, void (* _Nullable)(void *)); __attribute__((availability(macosx,introduced=10.4))) int pthread_key_delete(pthread_key_t); __attribute__((availability(macosx,introduced=10.4))) int pthread_mutex_destroy(pthread_mutex_t *); __attribute__((availability(macosx,introduced=10.4))) int pthread_mutex_getprioceiling(const pthread_mutex_t * __restrict, int * __restrict); __attribute__((availability(macosx,introduced=10.4))) int pthread_mutex_init(pthread_mutex_t * __restrict, const pthread_mutexattr_t * _Nullable __restrict); __attribute__((availability(macosx,introduced=10.4))) int pthread_mutex_lock(pthread_mutex_t *); __attribute__((availability(macosx,introduced=10.4))) int pthread_mutex_setprioceiling(pthread_mutex_t * __restrict, int, int * __restrict); __attribute__((availability(macosx,introduced=10.4))) int pthread_mutex_trylock(pthread_mutex_t *); __attribute__((availability(macosx,introduced=10.4))) int pthread_mutex_unlock(pthread_mutex_t *); __attribute__((availability(macosx,introduced=10.4))) int pthread_mutexattr_destroy(pthread_mutexattr_t *) __asm("_" "pthread_mutexattr_destroy" ); __attribute__((availability(macosx,introduced=10.4))) int pthread_mutexattr_getprioceiling(const pthread_mutexattr_t * __restrict, int * __restrict); __attribute__((availability(macosx,introduced=10.4))) int pthread_mutexattr_getprotocol(const pthread_mutexattr_t * __restrict, int * __restrict); __attribute__((availability(macosx,introduced=10.4))) int pthread_mutexattr_getpshared(const pthread_mutexattr_t * __restrict, int * __restrict); __attribute__((availability(macosx,introduced=10.4))) int pthread_mutexattr_gettype(const pthread_mutexattr_t * __restrict, int * __restrict); __attribute__((availability(macosx,introduced=10.4))) int pthread_mutexattr_init(pthread_mutexattr_t *); __attribute__((availability(macosx,introduced=10.4))) int pthread_mutexattr_setprioceiling(pthread_mutexattr_t *, int); __attribute__((availability(macosx,introduced=10.4))) int pthread_mutexattr_setprotocol(pthread_mutexattr_t *, int); __attribute__((availability(macosx,introduced=10.4))) int pthread_mutexattr_setpshared(pthread_mutexattr_t *, int); __attribute__((availability(macosx,introduced=10.4))) int pthread_mutexattr_settype(pthread_mutexattr_t *, int); __attribute__((availability(swift,unavailable,message="Use lazily initialized globals instead"))) __attribute__((availability(macosx,introduced=10.4))) int pthread_once(pthread_once_t *, void (* _Nonnull)(void)); __attribute__((availability(macosx,introduced=10.4))) int pthread_rwlock_destroy(pthread_rwlock_t * ) __asm("_" "pthread_rwlock_destroy" ); __attribute__((availability(macosx,introduced=10.4))) int pthread_rwlock_init(pthread_rwlock_t * __restrict, const pthread_rwlockattr_t * _Nullable __restrict) __asm("_" "pthread_rwlock_init" ); __attribute__((availability(macosx,introduced=10.4))) int pthread_rwlock_rdlock(pthread_rwlock_t *) __asm("_" "pthread_rwlock_rdlock" ); __attribute__((availability(macosx,introduced=10.4))) int pthread_rwlock_tryrdlock(pthread_rwlock_t *) __asm("_" "pthread_rwlock_tryrdlock" ); __attribute__((availability(macosx,introduced=10.4))) int pthread_rwlock_trywrlock(pthread_rwlock_t *) __asm("_" "pthread_rwlock_trywrlock" ); __attribute__((availability(macosx,introduced=10.4))) int pthread_rwlock_wrlock(pthread_rwlock_t *) __asm("_" "pthread_rwlock_wrlock" ); __attribute__((availability(macosx,introduced=10.4))) int pthread_rwlock_unlock(pthread_rwlock_t *) __asm("_" "pthread_rwlock_unlock" ); __attribute__((availability(macosx,introduced=10.4))) int pthread_rwlockattr_destroy(pthread_rwlockattr_t *); __attribute__((availability(macosx,introduced=10.4))) int pthread_rwlockattr_getpshared(const pthread_rwlockattr_t * __restrict, int * __restrict); __attribute__((availability(macosx,introduced=10.4))) int pthread_rwlockattr_init(pthread_rwlockattr_t *); __attribute__((availability(macosx,introduced=10.4))) int pthread_rwlockattr_setpshared(pthread_rwlockattr_t *, int); __attribute__((availability(macosx,introduced=10.4))) pthread_t pthread_self(void); __attribute__((availability(macosx,introduced=10.4))) int pthread_setcancelstate(int , int * _Nullable) __asm("_" "pthread_setcancelstate" ); __attribute__((availability(macosx,introduced=10.4))) int pthread_setcanceltype(int , int * _Nullable) __asm("_" "pthread_setcanceltype" ); __attribute__((availability(macosx,introduced=10.4))) int pthread_setconcurrency(int); __attribute__((availability(macosx,introduced=10.4))) int pthread_setschedparam(pthread_t, int, const struct sched_param *); __attribute__((availability(macosx,introduced=10.4))) int pthread_setspecific(pthread_key_t , const void * _Nullable); __attribute__((availability(macosx,introduced=10.4))) void pthread_testcancel(void) __asm("_" "pthread_testcancel" ); __attribute__((availability(macosx,introduced=10.4))) int pthread_is_threaded_np(void); __attribute__((availability(macosx,introduced=10.6))) int pthread_threadid_np(pthread_t _Nullable,__uint64_t* _Nullable); __attribute__((availability(macosx,introduced=10.6))) int pthread_getname_np(pthread_t,char*,size_t); __attribute__((availability(macosx,introduced=10.6))) int pthread_setname_np(const char*); __attribute__((availability(macosx,introduced=10.4))) int pthread_main_np(void); __attribute__((availability(macosx,introduced=10.4))) mach_port_t pthread_mach_thread_np(pthread_t); __attribute__((availability(macosx,introduced=10.4))) size_t pthread_get_stacksize_np(pthread_t); __attribute__((availability(macosx,introduced=10.4))) void* pthread_get_stackaddr_np(pthread_t); __attribute__((availability(macosx,introduced=10.4))) int pthread_cond_signal_thread_np(pthread_cond_t *, pthread_t _Nullable); __attribute__((availability(macosx,introduced=10.4))) int pthread_cond_timedwait_relative_np(pthread_cond_t *, pthread_mutex_t *, const struct timespec * _Nullable); __attribute__((availability(macosx,introduced=10.4))) int pthread_create_suspended_np( pthread_t _Nullable * _Nonnull, const pthread_attr_t * _Nullable, void * _Nullable (* _Nonnull)(void * _Nullable), void * _Nullable); __attribute__((availability(macosx,introduced=10.4))) int pthread_kill(pthread_t, int); __attribute__((availability(macosx,introduced=10.5))) _Nullable pthread_t pthread_from_mach_thread_np(mach_port_t); __attribute__((availability(macosx,introduced=10.4))) int pthread_sigmask(int, const sigset_t * _Nullable, sigset_t * _Nullable) __asm("_" "pthread_sigmask" ); __attribute__((availability(macosx,introduced=10.4))) void pthread_yield_np(void); # 68 "./signal.h" 2 3 # 553 "./signal.h" 3 typedef void (*sighandler_t) (int); # 596 "./signal.h" 3 extern int _gl_cxxalias_dummy; extern int _gl_cxxalias_dummy; # 111 "./sys/select.h" 2 3 # 700 "./sys/select.h" 3 extern int _gl_cxxalias_dummy; extern int _gl_cxxalias_dummy; # 639 "/usr/include/unistd.h" 2 3 4 # 1 "/usr/include/sys/_types/_uuid_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_uuid_t.h" 3 4 typedef __darwin_uuid_t uuid_t; # 643 "/usr/include/unistd.h" 2 3 4 void _Exit(int) __attribute__((noreturn)); int accessx_np(const struct accessx_descriptor *, size_t, int *, uid_t); int acct(const char *); int add_profil(char *, size_t, unsigned long, unsigned int) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); void endusershell(void); int execvP(const char * __file, const char * __searchpath, char * const * __argv) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); char *fflagstostr(unsigned long); int getdomainname(char *, int); int getgrouplist(const char *, int, int *, int *); # 1 "/usr/include/gethostuuid.h" 1 3 4 # 39 "/usr/include/gethostuuid.h" 3 4 int gethostuuid(uuid_t, const struct timespec *) __attribute__((availability(macosx,introduced=10.5))); # 659 "/usr/include/unistd.h" 2 3 4 mode_t getmode(const void *, mode_t); int getpeereid(int, uid_t *, gid_t *); int getsgroups_np(int *, uuid_t); char *getusershell(void); int getwgroups_np(int *, uuid_t); int initgroups(const char *, int); int issetugid(void); char *mkdtemp(char *); int mknod(const char *, mode_t, dev_t); int mkpath_np(const char *path, mode_t omode) __attribute__((availability(macosx,introduced=10.8))); int mkpathat_np(int dfd, const char *path, mode_t omode) __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); int mkstemp(char *); int mkstemps(char *, int); char *mktemp(char *); int mkostemp(char *path, int oflags) __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); int mkostemps(char *path, int slen, int oflags) __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); int mkstemp_dprotected_np(char *path, int dpclass, int dpflags) __attribute__((availability(macosx,unavailable))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); int nfssvc(int, void *); int profil(char *, size_t, unsigned long, unsigned int); int pthread_setugid_np(uid_t, gid_t); int pthread_getugid_np( uid_t *, gid_t *); int reboot(int); int revoke(const char *); __attribute__((deprecated)) int rcmd(char **, int, const char *, const char *, const char *, int *); __attribute__((deprecated)) int rcmd_af(char **, int, const char *, const char *, const char *, int *, int); __attribute__((deprecated)) int rresvport(int *); __attribute__((deprecated)) int rresvport_af(int *, int); __attribute__((deprecated)) int iruserok(unsigned long, int, const char *, const char *); __attribute__((deprecated)) int iruserok_sa(const void *, int, int, const char *, const char *); __attribute__((deprecated)) int ruserok(const char *, int, const char *, const char *); int setdomainname(const char *, int); int setgroups(int, const gid_t *); void sethostid(long); int sethostname(const char *, int); void setkey(const char *) __asm("_" "setkey" ); int setlogin(const char *); void *setmode(const char *) __asm("_" "setmode" ); int setrgid(gid_t); int setruid(uid_t); int setsgroups_np(int, const uuid_t); void setusershell(void); int setwgroups_np(int, const uuid_t); int strtofflags(char **, unsigned long *, unsigned long *); int swapon(const char *); int ttyslot(void); int undelete(const char *); int unwhiteout(const char *); void *valloc(size_t); __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(ios,deprecated=10.0,message="syscall(2) is unsupported; " "please switch to a supported interface. For SYS_kdebug_trace use kdebug_signpost()."))) __attribute__((availability(macosx,deprecated=10.12,message="syscall(2) is unsupported; " "please switch to a supported interface. For SYS_kdebug_trace use kdebug_signpost()."))) int syscall(int, ...); extern char *suboptarg; int getsubopt(char **, char * const *, char **); int fgetattrlist(int,void*,void*,size_t,unsigned int) __attribute__((availability(macosx,introduced=10.6))); int fsetattrlist(int,void*,void*,size_t,unsigned int) __attribute__((availability(macosx,introduced=10.6))); int getattrlist(const char*,void*,void*,size_t,unsigned int) __asm("_" "getattrlist" ); int setattrlist(const char*,void*,void*,size_t,unsigned int) __asm("_" "setattrlist" ); int exchangedata(const char*,const char*,unsigned int) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); int getdirentriesattr(int,void*,void*,size_t,unsigned int*,unsigned int*,unsigned int*,unsigned int) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); # 757 "/usr/include/unistd.h" 3 4 struct fssearchblock; struct searchstate; int searchfs(const char *, struct fssearchblock *, unsigned long *, unsigned int, unsigned int, struct searchstate *) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); int fsctl(const char *,unsigned long,void*,unsigned int); int ffsctl(int,unsigned long,void*,unsigned int) __attribute__((availability(macosx,introduced=10.6))); int fsync_volume_np(int, int) __attribute__((availability(macosx,introduced=10.8))); int sync_volume_np(const char *, int) __attribute__((availability(macosx,introduced=10.8))); extern int optreset; # 41 "./unistd.h" 2 3 # 56 "./unistd.h" 3 # 1 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include/stddef.h" 1 3 4 # 57 "./unistd.h" 2 3 # 88 "./unistd.h" 3 # 1 "./stdlib.h" 1 3 # 21 "./stdlib.h" 3 # 1 "/usr/include/stdlib.h" 1 3 4 # 65 "/usr/include/stdlib.h" 3 4 # 1 "/usr/include/sys/wait.h" 1 3 4 # 79 "/usr/include/sys/wait.h" 3 4 typedef enum { P_ALL, P_PID, P_PGID } idtype_t; # 110 "/usr/include/sys/wait.h" 3 4 # 1 "/usr/include/sys/resource.h" 1 3 4 # 72 "/usr/include/sys/resource.h" 3 4 # 1 "./stdint.h" 1 3 4 # 28 "./stdint.h" 3 # 77 "./stdint.h" 3 # 1 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include/stdint.h" 1 3 4 # 63 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include/stdint.h" 3 4 # 1 "/usr/include/stdint.h" 1 3 4 # 23 "/usr/include/stdint.h" 3 4 # 1 "/usr/include/_types/_uint8_t.h" 1 3 4 # 31 "/usr/include/_types/_uint8_t.h" 3 4 typedef unsigned char uint8_t; # 24 "/usr/include/stdint.h" 2 3 4 # 1 "/usr/include/_types/_uint16_t.h" 1 3 4 # 31 "/usr/include/_types/_uint16_t.h" 3 4 typedef unsigned short uint16_t; # 25 "/usr/include/stdint.h" 2 3 4 # 1 "/usr/include/_types/_uint32_t.h" 1 3 4 # 31 "/usr/include/_types/_uint32_t.h" 3 4 typedef unsigned int uint32_t; # 26 "/usr/include/stdint.h" 2 3 4 typedef int8_t int_least8_t; typedef int16_t int_least16_t; typedef int32_t int_least32_t; typedef int64_t int_least64_t; typedef uint8_t uint_least8_t; typedef uint16_t uint_least16_t; typedef uint32_t uint_least32_t; typedef uint64_t uint_least64_t; typedef int8_t int_fast8_t; typedef int16_t int_fast16_t; typedef int32_t int_fast32_t; typedef int64_t int_fast64_t; typedef uint8_t uint_fast8_t; typedef uint16_t uint_fast16_t; typedef uint32_t uint_fast32_t; typedef uint64_t uint_fast64_t; # 58 "/usr/include/stdint.h" 3 4 # 1 "/usr/include/_types/_intmax_t.h" 1 3 4 # 32 "/usr/include/_types/_intmax_t.h" 3 4 typedef long int intmax_t; # 59 "/usr/include/stdint.h" 2 3 4 # 1 "/usr/include/_types/_uintmax_t.h" 1 3 4 # 32 "/usr/include/_types/_uintmax_t.h" 3 4 typedef long unsigned int uintmax_t; # 60 "/usr/include/stdint.h" 2 3 4 # 64 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include/stdint.h" 2 3 4 # 78 "./stdint.h" 2 3 # 1 "./limits.h" 1 3 # 23 "./limits.h" 3 # 1 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include/limits.h" 1 3 4 # 37 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include/limits.h" 3 4 # 1 "/usr/include/limits.h" 1 3 4 # 64 "/usr/include/limits.h" 3 4 # 1 "/usr/include/machine/limits.h" 1 3 4 # 1 "/usr/include/i386/limits.h" 1 3 4 # 40 "/usr/include/i386/limits.h" 3 4 # 1 "/usr/include/i386/_limits.h" 1 3 4 # 41 "/usr/include/i386/limits.h" 2 3 4 # 7 "/usr/include/machine/limits.h" 2 3 4 # 65 "/usr/include/limits.h" 2 3 4 # 1 "/usr/include/sys/syslimits.h" 1 3 4 # 66 "/usr/include/limits.h" 2 3 4 # 38 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include/limits.h" 2 3 4 # 28 "./limits.h" 2 3 # 86 "./stdint.h" 2 3 # 105 "./stdint.h" 3 # 1 "./sys/types.h" 1 3 # 21 "./sys/types.h" 3 # 106 "./stdint.h" 2 3 # 1 "./inttypes.h" 1 3 # 26 "./inttypes.h" 3 # 41 "./inttypes.h" 3 # 1 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include/inttypes.h" 1 3 4 # 26 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include/inttypes.h" 3 4 # 1 "/usr/include/inttypes.h" 1 3 4 # 227 "/usr/include/inttypes.h" 3 4 # 1 "/usr/include/sys/_types/_wchar_t.h" 1 3 4 # 228 "/usr/include/inttypes.h" 2 3 4 # 1 "./stdint.h" 1 3 4 # 230 "/usr/include/inttypes.h" 2 3 4 __attribute__((availability(macosx,introduced=10.4))) extern intmax_t imaxabs(intmax_t j); typedef struct { intmax_t quot; intmax_t rem; } imaxdiv_t; __attribute__((availability(macosx,introduced=10.4))) extern imaxdiv_t imaxdiv(intmax_t __numer, intmax_t __denom); __attribute__((availability(macosx,introduced=10.4))) extern intmax_t strtoimax(const char * __restrict __nptr, char ** __restrict __endptr, int __base); __attribute__((availability(macosx,introduced=10.4))) extern uintmax_t strtoumax(const char * __restrict __nptr, char ** __restrict __endptr, int __base); __attribute__((availability(macosx,introduced=10.4))) extern intmax_t wcstoimax(const wchar_t * __restrict __nptr, wchar_t ** __restrict __endptr, int __base); __attribute__((availability(macosx,introduced=10.4))) extern uintmax_t wcstoumax(const wchar_t * __restrict __nptr, wchar_t ** __restrict __endptr, int __base); # 27 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include/inttypes.h" 2 3 4 # 42 "./inttypes.h" 2 3 # 113 "./stdint.h" 2 3 # 152 "./stdint.h" 3 typedef signed char gl_int8_t; typedef unsigned char gl_uint8_t; typedef short int gl_int16_t; typedef unsigned short int gl_uint16_t; typedef int gl_int32_t; typedef unsigned int gl_uint32_t; # 273 "./stdint.h" 3 typedef signed char gl_int_fast8_t; typedef unsigned char gl_uint_fast8_t; typedef long int gl_int_fast32_t; typedef unsigned long int gl_uint_fast32_t; typedef gl_int_fast32_t gl_int_fast16_t; typedef gl_uint_fast32_t gl_uint_fast16_t; # 309 "./stdint.h" 3 typedef long int gl_intptr_t; typedef unsigned long int gl_uintptr_t; # 355 "./stdint.h" 3 typedef int _verify_intmax_size[sizeof (intmax_t) == sizeof (uintmax_t) ? 1 : -1]; # 73 "/usr/include/sys/resource.h" 2 3 4 # 89 "/usr/include/sys/resource.h" 3 4 typedef __uint64_t rlim_t; # 152 "/usr/include/sys/resource.h" 3 4 struct rusage { struct timeval ru_utime; struct timeval ru_stime; # 163 "/usr/include/sys/resource.h" 3 4 long ru_maxrss; long ru_ixrss; long ru_idrss; long ru_isrss; long ru_minflt; long ru_majflt; long ru_nswap; long ru_inblock; long ru_oublock; long ru_msgsnd; long ru_msgrcv; long ru_nsignals; long ru_nvcsw; long ru_nivcsw; }; # 192 "/usr/include/sys/resource.h" 3 4 typedef void *rusage_info_t; struct rusage_info_v0 { gl_uint8_t ri_uuid[16]; uint64_t ri_user_time; uint64_t ri_system_time; uint64_t ri_pkg_idle_wkups; uint64_t ri_interrupt_wkups; uint64_t ri_pageins; uint64_t ri_wired_size; uint64_t ri_resident_size; uint64_t ri_phys_footprint; uint64_t ri_proc_start_abstime; uint64_t ri_proc_exit_abstime; }; struct rusage_info_v1 { gl_uint8_t ri_uuid[16]; uint64_t ri_user_time; uint64_t ri_system_time; uint64_t ri_pkg_idle_wkups; uint64_t ri_interrupt_wkups; uint64_t ri_pageins; uint64_t ri_wired_size; uint64_t ri_resident_size; uint64_t ri_phys_footprint; uint64_t ri_proc_start_abstime; uint64_t ri_proc_exit_abstime; uint64_t ri_child_user_time; uint64_t ri_child_system_time; uint64_t ri_child_pkg_idle_wkups; uint64_t ri_child_interrupt_wkups; uint64_t ri_child_pageins; uint64_t ri_child_elapsed_abstime; }; struct rusage_info_v2 { gl_uint8_t ri_uuid[16]; uint64_t ri_user_time; uint64_t ri_system_time; uint64_t ri_pkg_idle_wkups; uint64_t ri_interrupt_wkups; uint64_t ri_pageins; uint64_t ri_wired_size; uint64_t ri_resident_size; uint64_t ri_phys_footprint; uint64_t ri_proc_start_abstime; uint64_t ri_proc_exit_abstime; uint64_t ri_child_user_time; uint64_t ri_child_system_time; uint64_t ri_child_pkg_idle_wkups; uint64_t ri_child_interrupt_wkups; uint64_t ri_child_pageins; uint64_t ri_child_elapsed_abstime; uint64_t ri_diskio_bytesread; uint64_t ri_diskio_byteswritten; }; struct rusage_info_v3 { gl_uint8_t ri_uuid[16]; uint64_t ri_user_time; uint64_t ri_system_time; uint64_t ri_pkg_idle_wkups; uint64_t ri_interrupt_wkups; uint64_t ri_pageins; uint64_t ri_wired_size; uint64_t ri_resident_size; uint64_t ri_phys_footprint; uint64_t ri_proc_start_abstime; uint64_t ri_proc_exit_abstime; uint64_t ri_child_user_time; uint64_t ri_child_system_time; uint64_t ri_child_pkg_idle_wkups; uint64_t ri_child_interrupt_wkups; uint64_t ri_child_pageins; uint64_t ri_child_elapsed_abstime; uint64_t ri_diskio_bytesread; uint64_t ri_diskio_byteswritten; uint64_t ri_cpu_time_qos_default; uint64_t ri_cpu_time_qos_maintenance; uint64_t ri_cpu_time_qos_background; uint64_t ri_cpu_time_qos_utility; uint64_t ri_cpu_time_qos_legacy; uint64_t ri_cpu_time_qos_user_initiated; uint64_t ri_cpu_time_qos_user_interactive; uint64_t ri_billed_system_time; uint64_t ri_serviced_system_time; }; typedef struct rusage_info_v3 rusage_info_current; # 325 "/usr/include/sys/resource.h" 3 4 struct rlimit { rlim_t rlim_cur; rlim_t rlim_max; }; # 353 "/usr/include/sys/resource.h" 3 4 struct proc_rlimit_control_wakeupmon { gl_uint32_t wm_flags; gl_int32_t wm_rate; }; # 385 "/usr/include/sys/resource.h" 3 4 int getpriority(int, id_t); int getiopolicy_np(int, int) __attribute__((availability(macosx,introduced=10.5))); int getrlimit(int, struct rlimit *) __asm("_" "getrlimit" ); int getrusage(int, struct rusage *); int setpriority(int, id_t, int); int setiopolicy_np(int, int, int) __attribute__((availability(macosx,introduced=10.5))); int setrlimit(int, const struct rlimit *) __asm("_" "setrlimit" ); # 111 "/usr/include/sys/wait.h" 2 3 4 # 194 "/usr/include/sys/wait.h" 3 4 union wait { int w_status; struct { unsigned int w_Termsig:7, w_Coredump:1, w_Retcode:8, w_Filler:16; } w_T; struct { unsigned int w_Stopval:8, w_Stopsig:8, w_Filler:16; } w_S; }; # 248 "/usr/include/sys/wait.h" 3 4 pid_t wait(int *) __asm("_" "wait" ); pid_t waitpid(pid_t, int *, int) __asm("_" "waitpid" ); int waitid(idtype_t, id_t, siginfo_t *, int) __asm("_" "waitid" ); pid_t wait3(int *, int, struct rusage *); pid_t wait4(pid_t, int *, int, struct rusage *); # 66 "/usr/include/stdlib.h" 2 3 4 # 1 "./alloca.h" 1 3 4 # 68 "/usr/include/stdlib.h" 2 3 4 # 1 "/usr/include/sys/_types/_ct_rune_t.h" 1 3 4 # 31 "/usr/include/sys/_types/_ct_rune_t.h" 3 4 typedef __darwin_ct_rune_t ct_rune_t; # 77 "/usr/include/stdlib.h" 2 3 4 # 1 "/usr/include/sys/_types/_rune_t.h" 1 3 4 # 30 "/usr/include/sys/_types/_rune_t.h" 3 4 typedef __darwin_rune_t rune_t; # 78 "/usr/include/stdlib.h" 2 3 4 # 1 "/usr/include/sys/_types/_wchar_t.h" 1 3 4 # 81 "/usr/include/stdlib.h" 2 3 4 typedef struct { int quot; int rem; } div_t; typedef struct { long quot; long rem; } ldiv_t; typedef struct { long long quot; long long rem; } lldiv_t; # 117 "/usr/include/stdlib.h" 3 4 extern int __mb_cur_max; # 128 "/usr/include/stdlib.h" 3 4 void abort(void) __attribute__((noreturn)); int abs(int) __attribute__((const)); int atexit(void (* _Nonnull)(void)); double atof(const char *); int atoi(const char *); long atol(const char *); long long atoll(const char *); void *bsearch(const void *__key, const void *__base, size_t __nel, size_t __width, int (* _Nonnull __compar)(const void *, const void *)); void *calloc(size_t __count, size_t __size) __attribute__((__warn_unused_result__)); div_t div(int, int) __attribute__((const)); void exit(int) __attribute__((noreturn)); void free(void *); char *getenv(const char *); long labs(long) __attribute__((const)); ldiv_t ldiv(long, long) __attribute__((const)); long long llabs(long long); lldiv_t lldiv(long long, long long); void *malloc(size_t __size) __attribute__((__warn_unused_result__)); int mblen(const char *__s, size_t __n); size_t mbstowcs(wchar_t * __restrict , const char * __restrict, size_t); int mbtowc(wchar_t * __restrict, const char * __restrict, size_t); int posix_memalign(void **__memptr, size_t __alignment, size_t __size) __attribute__((availability(macosx,introduced=10.6))); void qsort(void *__base, size_t __nel, size_t __width, int (* _Nonnull __compar)(const void *, const void *)); int rand(void) __attribute__((__availability__(swift, unavailable, message="Use arc4random instead."))); void *realloc(void *__ptr, size_t __size) __attribute__((__warn_unused_result__)); void srand(unsigned) __attribute__((__availability__(swift, unavailable, message="Use arc4random instead."))); double strtod(const char *, char **) __asm("_" "strtod" ); float strtof(const char *, char **) __asm("_" "strtof" ); long strtol(const char *__str, char **__endptr, int __base); long double strtold(const char *, char **); long long strtoll(const char *__str, char **__endptr, int __base); unsigned long strtoul(const char *__str, char **__endptr, int __base); unsigned long long strtoull(const char *__str, char **__endptr, int __base); # 184 "/usr/include/stdlib.h" 3 4 __attribute__((__availability__(swift, unavailable, message="Use posix_spawn APIs or NSTask instead."))) __attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) int system(const char *) __asm("_" "system" ); size_t wcstombs(char * __restrict, const wchar_t * __restrict, size_t); int wctomb(char *, wchar_t); void _Exit(int) __attribute__((noreturn)); long a64l(const char *); double drand48(void); char *ecvt(double, int, int *__restrict, int *__restrict); double erand48(unsigned short[3]); char *fcvt(double, int, int *__restrict, int *__restrict); char *gcvt(double, int, char *); int getsubopt(char **, char * const *, char **); int grantpt(int); char *initstate(unsigned, char *, size_t); long jrand48(unsigned short[3]) __attribute__((__availability__(swift, unavailable, message="Use arc4random instead."))); char *l64a(long); void lcong48(unsigned short[7]); long lrand48(void) __attribute__((__availability__(swift, unavailable, message="Use arc4random instead."))); char *mktemp(char *); int mkstemp(char *); long mrand48(void) __attribute__((__availability__(swift, unavailable, message="Use arc4random instead."))); long nrand48(unsigned short[3]) __attribute__((__availability__(swift, unavailable, message="Use arc4random instead."))); int posix_openpt(int); char *ptsname(int); int putenv(char *) __asm("_" "putenv" ); long random(void) __attribute__((__availability__(swift, unavailable, message="Use arc4random instead."))); int rand_r(unsigned *) __attribute__((__availability__(swift, unavailable, message="Use arc4random instead."))); char *realpath(const char * __restrict, char * __restrict) __asm("_" "realpath" "$DARWIN_EXTSN"); unsigned short *seed48(unsigned short[3]); int setenv(const char * __name, const char * __value, int __overwrite) __asm("_" "setenv" ); void setkey(const char *) __asm("_" "setkey" ); char *setstate(const char *); void srand48(long); void srandom(unsigned); int unlockpt(int); int unsetenv(const char *) __asm("_" "unsetenv" ); # 257 "/usr/include/stdlib.h" 3 4 gl_uint32_t arc4random(void); void arc4random_addrandom(unsigned char * , int ) __attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(macosx,deprecated=10.12,message="use arc4random_stir"))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(ios,deprecated=10.0,message="use arc4random_stir"))) __attribute__((availability(tvos,introduced=2.0))) __attribute__((availability(tvos,deprecated=10.0,message="use arc4random_stir"))) __attribute__((availability(watchos,introduced=1.0))) __attribute__((availability(watchos,deprecated=3.0,message="use arc4random_stir"))); void arc4random_buf(void * __buf, size_t __nbytes) __attribute__((availability(macosx,introduced=10.7))); void arc4random_stir(void); gl_uint32_t arc4random_uniform(gl_uint32_t __upper_bound) __attribute__((availability(macosx,introduced=10.7))); int atexit_b(void (^ _Nonnull)(void)) __attribute__((availability(macosx,introduced=10.6))); void *bsearch_b(const void *__key, const void *__base, size_t __nel, size_t __width, int (^ _Nonnull __compar)(const void *, const void *)) __attribute__((availability(macosx,introduced=10.6))); char *cgetcap(char *, const char *, int); int cgetclose(void); int cgetent(char **, char **, const char *); int cgetfirst(char **, char **); int cgetmatch(const char *, const char *); int cgetnext(char **, char **); int cgetnum(char *, const char *, long *); int cgetset(const char *); int cgetstr(char *, const char *, char **); int cgetustr(char *, const char *, char **); int daemon(int, int) __asm("_" "daemon" "$1050") __attribute__((availability(macosx,introduced=10.0,deprecated=10.5,message="Use posix_spawn APIs instead."))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); char *devname(dev_t, mode_t); char *devname_r(dev_t, mode_t, char *buf, int len); char *getbsize(int *, long *); int getloadavg(double [], int); const char *getprogname(void); int heapsort(void *__base, size_t __nel, size_t __width, int (* _Nonnull __compar)(const void *, const void *)); int heapsort_b(void *__base, size_t __nel, size_t __width, int (^ _Nonnull __compar)(const void *, const void *)) __attribute__((availability(macosx,introduced=10.6))); int mergesort(void *__base, size_t __nel, size_t __width, int (* _Nonnull __compar)(const void *, const void *)); int mergesort_b(void *__base, size_t __nel, size_t __width, int (^ _Nonnull __compar)(const void *, const void *)) __attribute__((availability(macosx,introduced=10.6))); void psort(void *__base, size_t __nel, size_t __width, int (* _Nonnull __compar)(const void *, const void *)) __attribute__((availability(macosx,introduced=10.6))); void psort_b(void *__base, size_t __nel, size_t __width, int (^ _Nonnull __compar)(const void *, const void *)) __attribute__((availability(macosx,introduced=10.6))); void psort_r(void *__base, size_t __nel, size_t __width, void *, int (* _Nonnull __compar)(void *, const void *, const void *)) __attribute__((availability(macosx,introduced=10.6))); void qsort_b(void *__base, size_t __nel, size_t __width, int (^ _Nonnull __compar)(const void *, const void *)) __attribute__((availability(macosx,introduced=10.6))); void qsort_r(void *__base, size_t __nel, size_t __width, void *, int (* _Nonnull __compar)(void *, const void *, const void *)); int radixsort(const unsigned char **__base, int __nel, const unsigned char *__table, unsigned __endbyte); void setprogname(const char *); int sradixsort(const unsigned char **__base, int __nel, const unsigned char *__table, unsigned __endbyte); void sranddev(void); void srandomdev(void); void *reallocf(void *__ptr, size_t __size); long long strtoq(const char *__str, char **__endptr, int __base); unsigned long long strtouq(const char *__str, char **__endptr, int __base); extern char *suboptarg; void *valloc(size_t); # 29 "./stdlib.h" 2 3 # 89 "./unistd.h" 2 3 # 128 "./unistd.h" 3 # 1 "./sys/types.h" 1 3 # 21 "./sys/types.h" 3 # 129 "./unistd.h" 2 3 # 1 "./getopt_cdefs.h" 1 3 # 135 "./unistd.h" 2 3 # 1 "./getopt_pfx_core.h" 1 3 # 52 "./getopt_pfx_core.h" 3 # 1 "./getopt_core.h" 1 3 # 36 "./getopt_core.h" 3 extern char *rpl_optarg; # 50 "./getopt_core.h" 3 extern int rpl_optind; extern int rpl_opterr; extern int rpl_optopt; # 91 "./getopt_core.h" 3 extern int rpl_getopt (int ___argc, char *const *___argv, const char *__shortopts) _Nonnull ((2, 3)); # 53 "./getopt_pfx_core.h" 2 3 # 136 "./unistd.h" 2 3 # 814 "./unistd.h" 3 extern int _gl_cxxalias_dummy; extern int _gl_cxxalias_dummy; # 860 "./unistd.h" 3 # 1 "/usr/include/TargetConditionals.h" 1 3 4 # 861 "./unistd.h" 2 3 # 1 "/usr/include/crt_externs.h" 1 3 4 # 37 "/usr/include/crt_externs.h" 3 4 extern char ***_NSGetArgv(void); extern int *_NSGetArgc(void); extern char ***_NSGetEnviron(void); extern char **_NSGetProgname(void); extern struct mach_header_64 * _NSGetMachExecuteHeader(void); # 867 "./unistd.h" 2 3 # 922 "./unistd.h" 3 extern int _gl_cxxalias_dummy; extern int _gl_cxxalias_dummy; # 1002 "./unistd.h" 3 extern int fdatasync (int fd); extern int _gl_cxxalias_dummy; extern int _gl_cxxalias_dummy; # 1023 "./unistd.h" 3 extern int _gl_cxxalias_dummy; extern int _gl_cxxalias_dummy; # 1612 "./unistd.h" 3 extern int pipe2 (int fd[2], int flags) __attribute__ ((__nonnull__ (1))); extern int _gl_cxxalias_dummy; extern int _gl_cxxalias_dummy; # 1727 "./unistd.h" 3 extern ssize_t rpl_readlink (const char *file, char *buf, size_t bufsize) __attribute__ ((__nonnull__ (1, 2))); extern int _gl_cxxalias_dummy; # 1741 "./unistd.h" 3 extern int _gl_cxxalias_dummy; # 1756 "./unistd.h" 3 extern ssize_t rpl_readlinkat (int fd, char const *file, char *buf, size_t len) __attribute__ ((__nonnull__ (2, 3))); extern int _gl_cxxalias_dummy; # 1770 "./unistd.h" 3 extern int _gl_cxxalias_dummy; # 1862 "./unistd.h" 3 extern int rpl_symlink (char const *contents, char const *file) __attribute__ ((__nonnull__ (1, 2))); extern int _gl_cxxalias_dummy; extern int _gl_cxxalias_dummy; # 68 "./fcntl.h" 2 3 # 549 "./fcntl.h" 3 extern int _gl_cxxalias_dummy; extern int _gl_cxxalias_dummy; # 46 "fstatat.c" 2 # 1 "./string.h" 1 # 21 "./string.h" 3 # 41 "./string.h" 3 # 1 "/usr/include/string.h" 1 3 4 # 70 "/usr/include/string.h" 3 4 void *memchr(const void *__s, int __c, size_t __n); int memcmp(const void *__s1, const void *__s2, size_t __n); void *memcpy(void *__dst, const void *__src, size_t __n); void *memmove(void *__dst, const void *__src, size_t __len); void *memset(void *__b, int __c, size_t __len); char *strcat(char *__s1, const char *__s2); char *strchr(const char *__s, int __c); int strcmp(const char *__s1, const char *__s2); int strcoll(const char *__s1, const char *__s2); char *strcpy(char *__dst, const char *__src); size_t strcspn(const char *__s, const char *__charset); char *strerror(int __errnum) __asm("_" "strerror" ); size_t strlen(const char *__s); char *strncat(char *__s1, const char *__s2, size_t __n); int strncmp(const char *__s1, const char *__s2, size_t __n); char *strncpy(char *__dst, const char *__src, size_t __n); char *strpbrk(const char *__s, const char *__charset); char *strrchr(const char *__s, int __c); size_t strspn(const char *__s, const char *__charset); char *strstr(const char *__big, const char *__little); char *strtok(char *__str, const char *__sep); size_t strxfrm(char *__s1, const char *__s2, size_t __n); # 104 "/usr/include/string.h" 3 4 char *strtok_r(char *__str, const char *__sep, char **__lasts); # 116 "/usr/include/string.h" 3 4 int strerror_r(int __errnum, char *__strerrbuf, size_t __buflen); char *strdup(const char *__s1); void *memccpy(void *__dst, const void *__src, int __c, size_t __n); # 130 "/usr/include/string.h" 3 4 char *stpcpy(char *__dst, const char *__src); char *stpncpy(char *__dst, const char *__src, size_t __n) __attribute__((availability(macosx,introduced=10.7))); char *strndup(const char *__s1, size_t __n) __attribute__((availability(macosx,introduced=10.7))); size_t strnlen(const char *__s1, size_t __n) __attribute__((availability(macosx,introduced=10.7))); char *strsignal(int __sig); # 145 "/usr/include/string.h" 3 4 errno_t memset_s(void *__s, rsize_t __smax, int __c, rsize_t __n) __attribute__((availability(macosx,introduced=10.9))); # 155 "/usr/include/string.h" 3 4 void *memmem(const void *__big, size_t __big_len, const void *__little, size_t __little_len) __attribute__((availability(macosx,introduced=10.7))); void memset_pattern4(void *__b, const void *__pattern4, size_t __len) __attribute__((availability(macosx,introduced=10.5))); void memset_pattern8(void *__b, const void *__pattern8, size_t __len) __attribute__((availability(macosx,introduced=10.5))); void memset_pattern16(void *__b, const void *__pattern16, size_t __len) __attribute__((availability(macosx,introduced=10.5))); char *strcasestr(const char *__big, const char *__little); char *strnstr(const char *__big, const char *__little, size_t __len); size_t strlcat(char *__dst, const char *__source, size_t __size); size_t strlcpy(char *__dst, const char *__source, size_t __size); void strmode(int __mode, char *__bp); char *strsep(char **__stringp, const char *__delim); void swab(const void * __restrict, void * __restrict, ssize_t); __attribute__((availability(macosx,introduced=10.12.1))) __attribute__((availability(ios,introduced=10.1))) __attribute__((availability(tvos,introduced=10.0.1))) __attribute__((availability(watchos,introduced=3.1))) int timingsafe_bcmp(const void *__b1, const void *__b2, size_t __len); # 1 "/usr/include/strings.h" 1 3 4 # 70 "/usr/include/strings.h" 3 4 int bcmp(const void *, const void *, size_t) ; void bcopy(const void *, void *, size_t) ; void bzero(void *, size_t) ; char *index(const char *, int) ; char *rindex(const char *, int) ; int ffs(int); int strcasecmp(const char *, const char *); int strncasecmp(const char *, const char *, size_t); int ffsl(long) __attribute__((availability(macosx,introduced=10.5))); int ffsll(long long) __attribute__((availability(macosx,introduced=10.9))); int fls(int) __attribute__((availability(macosx,introduced=10.5))); int flsl(long) __attribute__((availability(macosx,introduced=10.5))); int flsll(long long) __attribute__((availability(macosx,introduced=10.9))); # 1 "./string.h" 1 3 4 # 21 "./string.h" 3 # 31 "./string.h" 3 # 1 "/usr/include/string.h" 1 3 4 # 32 "./string.h" 2 3 # 93 "/usr/include/strings.h" 2 3 4 # 183 "/usr/include/string.h" 2 3 4 # 42 "./string.h" 2 3 # 1 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include/stddef.h" 1 3 4 # 50 "./string.h" 2 3 # 657 "./string.h" 3 extern void * memrchr (void const *, int, size_t) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern int _gl_cxxalias_dummy; extern int _gl_cxxalias_dummy; # 719 "./string.h" 3 extern int _gl_cxxalias_dummy; extern int _gl_cxxalias_dummy; # 47 "fstatat.c" 2 # 63 "fstatat.c" int rpl_fstatat (int fd, char const *file, struct stat *st, int flag) { int result = orig_fstatat (fd, file, st, flag); size_t len; if (0 || result != 0) return result; len = strlen (file); if (flag & 0x0020) { if (file[len - 1] != '/' || (((st->st_mode) & 0170000) == 0040000)) return 0; if (!(((st->st_mode) & 0170000) == 0120000)) { (*__error()) = 20; return -1; } result = orig_fstatat (fd, file, st, flag & ~0x0020); } if (result == 0 && !(((st->st_mode) & 0170000) == 0040000) && file[len - 1] == '/') { (*__error()) = 20; return -1; } return result; } --Apple-Mail=_C9C84A2B-EBB4-46E4-8205-04B3FD6C817D Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii

Am 08.04.2017 um 10:24 schrieb Paul Eggert = <eggert@cs.ucla.edu>:

[Following up on http://bugs.gnu.org/26398 and CC'ing bug-gnulib and Zack = Weinberg.]

In file included from ./unistd.h:135:
In file = included from ./getopt_pfx_core.h:52:
./getopt_core.h:91:79:= error: expected ';' after top level declarator
extern int = getopt (int ___argc, char *const *___argv, const char *__shortopts)

Can you please send the = preprocessor output for the failed compilation?
That is, = try running "make V=3D1". If the failed command looks like this:

  clang -c -Dthis -Dthat -Dtheother = fstatat.c

then run this command:

  clang -E -Dthis -Dthat -Dtheother = fstatat.c >fstatat.i

and send a copy of = fstatat.i as an attachment.

Also, can you = find out which .h file defined __THROW and __nonnull in your = environment? I have the sneaking suspicion that it's some .h file other = than getopt_cdefs.h.

Thanks.

= --Apple-Mail=_C9C84A2B-EBB4-46E4-8205-04B3FD6C817D-- --Apple-Mail=_18766603-28B5-46D9-A702-E0DB051E755B-- From unknown Sun Jun 22 22:43:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26398: GNU LIB build fails on macOS 10.12.4 Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Apr 2017 09:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26398 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Harald Maier Cc: Gnulib bugs , Zack Weinberg , 26398@debbugs.gnu.org Received: via spool by 26398-submit@debbugs.gnu.org id=B26398.149164431229720 (code B ref 26398); Sat, 08 Apr 2017 09:39:02 +0000 Received: (at 26398) by debbugs.gnu.org; 8 Apr 2017 09:38:32 +0000 Received: from localhost ([127.0.0.1]:37082 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cwmpE-0007jH-AZ for submit@debbugs.gnu.org; Sat, 08 Apr 2017 05:38:32 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:52648) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cwmpB-0007j1-Pv for 26398@debbugs.gnu.org; Sat, 08 Apr 2017 05:38:30 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id EDF591600B3; Sat, 8 Apr 2017 02:38:22 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id V1s4X6nZ9voC; Sat, 8 Apr 2017 02:38:22 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 0D5F91600B4; Sat, 8 Apr 2017 02:38:22 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id SLmPq0f-1HuH; Sat, 8 Apr 2017 02:38:21 -0700 (PDT) Received: from [192.168.1.9] (unknown [47.153.188.248]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id D3EA51600B3; Sat, 8 Apr 2017 02:38:21 -0700 (PDT) References: <8AE2BE5E-3FDE-4F7E-9F82-2CB8D8880D95@Maierh.de> From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: Date: Sat, 8 Apr 2017 02:38:21 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <8AE2BE5E-3FDE-4F7E-9F82-2CB8D8880D95@Maierh.de> Content-Type: multipart/mixed; boundary="------------AB97AD83A1B6FAA4216FEDA7" X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) This is a multi-part message in MIME format. --------------AB97AD83A1B6FAA4216FEDA7 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Harald Maier wrote: > They __THROW and __nonnull are defined in =E2=80=9Egetopt_cdefs.h=E2=80= =9C. Thanks, I think I see the problem. Either the compiler or some macOS head= er does=20 "#define __nonnull _Nonnull", and this collides with glibc's use of __non= null.=20 Presumably Clang uses _Nonnull as a type qualifier and some Clang headers= use=20 __nonnull as an alias for _Nonnull. Please try the attached patch against Emacs master. If it works I plan to= =20 install it into Emacs and propagate it into Gnulib. --------------AB97AD83A1B6FAA4216FEDA7 Content-Type: text/x-diff; name="emacs.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="emacs.diff" diff --git a/lib/getopt.in.h b/lib/getopt.in.h index 91e086c..900b54d 100644 --- a/lib/getopt.in.h +++ b/lib/getopt.in.h @@ -52,6 +52,8 @@ # endif #endif =20 +/* The definition of _GL_ARG_NONNULL is copied here. */ + #include #include #include diff --git a/lib/getopt_core.h b/lib/getopt_core.h index d6ef8a6..f543024 100644 --- a/lib/getopt_core.h +++ b/lib/getopt_core.h @@ -88,8 +88,12 @@ extern int optopt; enabled, the argv array (not the strings it points to) must be writable. */ =20 +#ifndef _GL_ARG_NONNULL +# define _GL_ARG_NONNULL __nonnull +#endif + extern int getopt (int ___argc, char *const *___argv, const char *__shor= topts) - __THROW __nonnull ((2, 3)); + __THROW _GL_ARG_NONNULL ((2, 3)); =20 __END_DECLS =20 diff --git a/lib/getopt_ext.h b/lib/getopt_ext.h index 79b7a67..fc99e3a 100644 --- a/lib/getopt_ext.h +++ b/lib/getopt_ext.h @@ -63,14 +63,18 @@ struct option #define required_argument 1 #define optional_argument 2 =20 +#ifndef _GL_ARG_NONNULL +# define _GL_ARG_NONNULL __nonnull +#endif + extern int getopt_long (int ___argc, char *__getopt_argv_const *___argv,= const char *__shortopts, const struct option *__longopts, int *__longind) - __THROW __nonnull ((2, 3)); + __THROW _GL_ARG_NONNULL ((2, 3)); extern int getopt_long_only (int ___argc, char *__getopt_argv_const *___= argv, const char *__shortopts, const struct option *__longopts, int *__longind) - __THROW __nonnull ((2, 3)); + __THROW _GL_ARG_NONNULL ((2, 3)); =20 __END_DECLS =20 diff --git a/lib/gnulib.mk.in b/lib/gnulib.mk.in index 38adf2a..d25ea0a 100644 --- a/lib/gnulib.mk.in +++ b/lib/gnulib.mk.in @@ -1527,6 +1527,7 @@ getopt.h: getopt.in.h $(top_builddir)/config.status= -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_GETOPT_H''@|$(NEXT_GETOPT_H)|g' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ < $(srcdir)/getopt.in.h; \ } > $@-t && \ mv -f $@-t $@ --------------AB97AD83A1B6FAA4216FEDA7-- From unknown Sun Jun 22 22:43:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26398: GNU LIB build fails on macOS 10.12.4 Resent-From: Harald Maier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Apr 2017 10:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26398 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Paul Eggert Cc: Gnulib bugs , Zack Weinberg , 26398@debbugs.gnu.org Received: via spool by 26398-submit@debbugs.gnu.org id=B26398.14916474912319 (code B ref 26398); Sat, 08 Apr 2017 10:32:01 +0000 Received: (at 26398) by debbugs.gnu.org; 8 Apr 2017 10:31:31 +0000 Received: from localhost ([127.0.0.1]:37097 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cwneV-0000bL-3r for submit@debbugs.gnu.org; Sat, 08 Apr 2017 06:31:31 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:65460) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cwneS-0000b6-OC for 26398@debbugs.gnu.org; Sat, 08 Apr 2017 06:31:29 -0400 Received: from ate.fritz.box ([88.217.181.242]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.183]) with ESMTPSA (Nemesis) id 0LtFON-1bviGd2QyB-012s2L; Sat, 08 Apr 2017 12:31:16 +0200 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) From: Harald Maier In-Reply-To: Date: Sat, 8 Apr 2017 12:31:11 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <24445484-FD22-4DD6-8337-E741570B4897@Maierh.de> References: <8AE2BE5E-3FDE-4F7E-9F82-2CB8D8880D95@Maierh.de> X-Mailer: Apple Mail (2.3273) X-Provags-ID: V03:K0:VSBfRBRHF4qjiz8CzSv2vx03mkmld2wvytmOjblbabvR7xrYwVQ tIrlhhJY6EazjyzZEAYEtMTgXsDMb/bFlWSwMCH6aZq67zNhJZw86eUyiQUq0vR08Fhh29t 8kRaUQb+wPgTCeoT0ttL+ajfwY1lRYKVu4Niu/1Ip0sEcazlC1rGBherkwS31C4PmuUDHMn llyfYUESbVAEPGlK0/xYg== X-UI-Out-Filterresults: notjunk:1;V01:K0:6vA6BdseLho=:IscHOvgci3EDLESIz9etOO CfBL9LOCG4ibUCkXrb43U2ay+BIB3/93Jyf4JSxUHa32xGXMgyXB2MSaJ4Gat6DSFd6hpJfPi BRFeJrSER83UnKHieJr11LXrZB1EcHxsyeqBNUgdqje4QmdyJ8X6/RAdRSIDPfkadCcdkmnLr 4T/RvADk32MFcvRxgaQGLjciqBug9df+bDeO8CgciIB9nPp+jDHSU81Iecen4ZAlXmkSOQ8qS Bc+B9Jr9kpwyeD2CIxj3OPlWnus67tDn4DPFctJ6gkJ94kh6hms2KQccfhMUpq8qiKKR0iZa9 2Jixnm9xlrLHUQwScG59ipAkYf9DbMlW1fFg0z28fUfpdu6BlgcOrPiQov6cKfNhJAMrbm6ub dvGKjMf8tAn1Kkp0U0bBTjB2lUB7NEwmzl0vxWlZnHrIki0UIcsZ60KqRVig6yT5b6YTD0w7K zRtvwcaHd4VhwQtocekHrE2SsDdR2dL5ooNpTea7w0Uj94c1SjMxT833g2HleONm2ZUz3VPoC AN0VOAjMB/FjFJ8fnLlU8kfkYLkKYqCtmg0/k3Y6uFJbu/cNBOZ1Rl8kFnBaXJSplIoZeMWfa vNntwfdvjZHMgbhurvKes/QraFgLtls6wa73p4ILjKzFuaEHHmgxMlzlvL+bRvt7GOlTpZQq9 91sbeQveyr+jYZcsBnGJl+6pUixtS47x6WpSAJIovicCxfbxumwPgwrr5xjub0JOOkX8rZRIv ENwqAK2oMf+LiFB5 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Yes, this fixes the problem and compilation works without errors. Harald > Am 08.04.2017 um 11:38 schrieb Paul Eggert : >=20 > Harald Maier wrote: >> They __THROW and __nonnull are defined in =E2=80=9Egetopt_cdefs.h=E2=80= =9C. >=20 > Thanks, I think I see the problem. Either the compiler or some macOS = header does "#define __nonnull _Nonnull", and this collides with glibc's = use of __nonnull. Presumably Clang uses _Nonnull as a type qualifier and = some Clang headers use __nonnull as an alias for _Nonnull. >=20 > Please try the attached patch against Emacs master. If it works I plan = to install it into Emacs and propagate it into Gnulib. > From unknown Sun Jun 22 22:43:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26398: GNU LIB build fails on macOS 10.12.4 Resent-From: Zack Weinberg Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Apr 2017 15:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26398 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Paul Eggert Cc: GNU C Library , Gnulib bugs , 26398@debbugs.gnu.org Received: via spool by 26398-submit@debbugs.gnu.org id=B26398.149166509912704 (code B ref 26398); Sat, 08 Apr 2017 15:25:01 +0000 Received: (at 26398) by debbugs.gnu.org; 8 Apr 2017 15:24:59 +0000 Received: from localhost ([127.0.0.1]:38267 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cwsEU-0003Iq-R9 for submit@debbugs.gnu.org; Sat, 08 Apr 2017 11:24:59 -0400 Received: from mailbackend.panix.com ([166.84.1.89]:41274) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cwsET-0003Ih-9A for 26398@debbugs.gnu.org; Sat, 08 Apr 2017 11:24:57 -0400 Received: from mail-it0-f44.google.com (mail-it0-f44.google.com [209.85.214.44]) by mailbackend.panix.com (Postfix) with ESMTPSA id E123F1A66B for <26398@debbugs.gnu.org>; Sat, 8 Apr 2017 11:24:55 -0400 (EDT) Received: by mail-it0-f44.google.com with SMTP id y18so7072038itc.1 for <26398@debbugs.gnu.org>; Sat, 08 Apr 2017 08:24:55 -0700 (PDT) X-Gm-Message-State: AN3rC/40ve0jr1qpopYNQ2UqAXzy3U/qO54r9mjFcsPIotJxojKxfPWSAEbVILMXod7wmp8zwnlg+heaf5S5dA== X-Received: by 10.36.85.194 with SMTP id e185mr4322582itb.39.1491665095247; Sat, 08 Apr 2017 08:24:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.23.69 with HTTP; Sat, 8 Apr 2017 08:24:54 -0700 (PDT) In-Reply-To: References: <8AE2BE5E-3FDE-4F7E-9F82-2CB8D8880D95@Maierh.de> From: Zack Weinberg Date: Sat, 8 Apr 2017 11:24:54 -0400 X-Gmail-Original-Message-ID: Message-ID: Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -1.8 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.8 (-) > Please try the attached patch against Emacs master. > If it works I plan to install it into Emacs and propagate > it into Gnulib. This patch is incomplete. If gnulib cannot use __nonnull in getopt_{core,ext}.h, then there is no point trying to define it in getopt_cdefs.h. And you're going to need to put snippet/arg-nonnull back in the module file for this to work at all, aren't you? >From glibc's point of view, I think it would be better if getopt_core.h and getopt_ext.h simply assumed _GL_ARG_NONNULL to be available; we can add it to either our getopt.h wrapper or to sys/cdefs.h - I don't want to make that call unilaterally. (Do you know of a complete list of _GL_ macros that may appear in _public_ header files?) zw From unknown Sun Jun 22 22:43:29 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Harald Maier Subject: bug#26398: closed (Re: GNU LIB build fails on macOS 10.12.4) Message-ID: References: <999C877D-7C56-469F-971E-0F902F5D4A55@Maierh.de> X-Gnu-PR-Message: they-closed 26398 X-Gnu-PR-Package: emacs Reply-To: 26398@debbugs.gnu.org Date: Sun, 09 Apr 2017 08:04:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1491725042-13249-1" This is a multi-part message in MIME format... ------------=_1491725042-13249-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #26398: 26.0.50; GNU LIB build fails on macOS 10.12.4 which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 26398@debbugs.gnu.org. --=20 26398: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D26398 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1491725042-13249-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 26398-done) by debbugs.gnu.org; 9 Apr 2017 08:03:41 +0000 Received: from localhost ([127.0.0.1]:38850 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cx7oy-0003R8-HC for submit@debbugs.gnu.org; Sun, 09 Apr 2017 04:03:40 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:54828) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cx7ow-0003Qs-FD for 26398-done@debbugs.gnu.org; Sun, 09 Apr 2017 04:03:39 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 5B44E160071; Sun, 9 Apr 2017 01:03:32 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id VD5KUrzaK6Ce; Sun, 9 Apr 2017 01:03:31 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 2745516009A; Sun, 9 Apr 2017 01:03:31 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id mcQMxshsJeGZ; Sun, 9 Apr 2017 01:03:31 -0700 (PDT) Received: from [192.168.1.9] (unknown [47.153.188.248]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id D8A60160071; Sun, 9 Apr 2017 01:03:30 -0700 (PDT) Subject: Re: GNU LIB build fails on macOS 10.12.4 To: Zack Weinberg References: <8AE2BE5E-3FDE-4F7E-9F82-2CB8D8880D95@Maierh.de> From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: Date: Sun, 9 Apr 2017 01:03:30 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------8D255D001D93AA73CBFB1205" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 26398-done Cc: 26398-done@debbugs.gnu.org, Harald Maier , GNU C Library , Gnulib bugs X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) This is a multi-part message in MIME format. --------------8D255D001D93AA73CBFB1205 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Zack Weinberg wrote: > This patch is incomplete. Yes, it was the Emacs patch, not the Gnulib patch. I'll attach a complete= Gnulib=20 patch. > If gnulib cannot use __nonnull in > getopt_{core,ext}.h, then there is no point trying to define it in > getopt_cdefs.h. Good point, I've removed that in the attached. > And you're going to need to put snippet/arg-nonnull > back in the module file for this to work at all, aren't you? Yes, that's in the attached patch. > From glibc's point of view, I think it would be better if > getopt_core.h and getopt_ext.h simply assumed _GL_ARG_NONNULL to be > available; we can add it to either our getopt.h wrapper or to > sys/cdefs.h - I don't want to make that call unilaterally. By "our getopt.h wrapper" do you mean a file in glibc but not in Gnulib? = If so,=20 this doesn't affect Gnulib. I suspect _GL_ARG_NONNULL logically belongs i= n=20 sys/cdefs.h but it should also work to put it into the getopt.h wrapper. > (Do you > know of a complete list of _GL_ macros that may appear in _public_ > header files?) I don't know of an explicit list. You can look at all the .h files listed= in the=20 Files: sections of gnulib/modules/snippet/*. For example, the=20 snippet/arg-nonnull module defines _GL_ARG_NONNULL, the snippet/_Noreturn= module=20 defines _Noreturn, and so forth. There are quite a few such macros, and (= as=20 _Noreturn indicates) they don't all begin with _GL_. I installed the attached into Gnulib and merged it into Emacs, and am bol= dly=20 marking the Emacs bug (Bug#26398) as done. I think there still needs to b= e some=20 changes done on the proposed change to glibc, to define _GL_ARG_NONNULL=20 somewhere for glibc. --------------8D255D001D93AA73CBFB1205 Content-Type: text/x-diff; name="0001-getopt-port-recent-getopt-changes-to-macOS.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0001-getopt-port-recent-getopt-changes-to-macOS.patch" =46rom 141be0d810330ceec66ce3fab46aaeb4c633bd7e Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 8 Apr 2017 17:26:03 -0700 Subject: [PATCH] getopt: port recent getopt changes to macOS Problem reported by Harald Maier (Bug#26398). The macOS C compiler uses __nonnull for its own purposes and that clashes with glibc's __nonnull. * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet. * lib/getopt_cdefs.in.h (__nonnull): Remove. * lib/getopt_core.h (getopt): * lib/getopt_ext.h (getopt_long, getopt_long_only): Use _GL_ARG_NONNULL, not __nonnull. * lib/unistd.in.h: Move snippet hooks to before where the getopt =2Eh files are included, so that _GL_ARG_NONNULL is defined in time. * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull. (getopt.h): Interpolate _GL_ARG_NONNULL snippet. --- ChangeLog | 16 ++++++++++++++++ lib/getopt.in.h | 2 ++ lib/getopt_cdefs.in.h | 8 -------- lib/getopt_core.h | 2 +- lib/getopt_ext.h | 4 ++-- lib/unistd.in.h | 14 +++++++------- modules/getopt-posix | 2 ++ 7 files changed, 30 insertions(+), 18 deletions(-) diff --git a/ChangeLog b/ChangeLog index db893f5..595f2ba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,19 @@ +2017-04-08 Paul Eggert + + getopt: port recent getopt changes to macOS + Problem reported by Harald Maier (Bug#26398). + The macOS C compiler uses __nonnull for its own purposes and that + clashes with glibc's __nonnull. + * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet. + * lib/getopt_cdefs.in.h (__nonnull): Remove. + * lib/getopt_core.h (getopt): + * lib/getopt_ext.h (getopt_long, getopt_long_only): + Use _GL_ARG_NONNULL, not __nonnull. + * lib/unistd.in.h: Move snippet hooks to before where the getopt + .h files are included, so that _GL_ARG_NONNULL is defined in time. + * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull. + (getopt.h): Interpolate _GL_ARG_NONNULL snippet. + 2017-04-06 Paul Eggert =20 getopt-gnu: omit some duplicate code diff --git a/lib/getopt.in.h b/lib/getopt.in.h index c3ffd95..9f84c27 100644 --- a/lib/getopt.in.h +++ b/lib/getopt.in.h @@ -52,6 +52,8 @@ # endif #endif =20 +/* The definition of _GL_ARG_NONNULL is copied here. */ + #include #include #include diff --git a/lib/getopt_cdefs.in.h b/lib/getopt_cdefs.in.h index 35a2669..54da28d 100644 --- a/lib/getopt_cdefs.in.h +++ b/lib/getopt_cdefs.in.h @@ -64,12 +64,4 @@ # endif #endif =20 -#ifndef __nonnull -# if __GNUC_PREREQ (3,3) -# define __nonnull(params) __attribute__ ((__nonnull__ params)) -# else -# define __nonnull(params) -# endif -#endif - #endif /* getopt_cdefs.h */ diff --git a/lib/getopt_core.h b/lib/getopt_core.h index 1744c29..76ef466 100644 --- a/lib/getopt_core.h +++ b/lib/getopt_core.h @@ -89,7 +89,7 @@ extern int optopt; writable. */ =20 extern int getopt (int ___argc, char *const *___argv, const char *__shor= topts) - __THROW __nonnull ((2, 3)); + __THROW _GL_ARG_NONNULL ((2, 3)); =20 __END_DECLS =20 diff --git a/lib/getopt_ext.h b/lib/getopt_ext.h index c1a58da..a3a6750 100644 --- a/lib/getopt_ext.h +++ b/lib/getopt_ext.h @@ -66,11 +66,11 @@ struct option extern int getopt_long (int ___argc, char *__getopt_argv_const *___argv,= const char *__shortopts, const struct option *__longopts, int *__longind) - __THROW __nonnull ((2, 3)); + __THROW _GL_ARG_NONNULL ((2, 3)); extern int getopt_long_only (int ___argc, char *__getopt_argv_const *___= argv, const char *__shortopts, const struct option *__longopts, int *__longind) - __THROW __nonnull ((2, 3)); + __THROW _GL_ARG_NONNULL ((2, 3)); =20 __END_DECLS =20 diff --git a/lib/unistd.in.h b/lib/unistd.in.h index 38a0f0a..de619dc 100644 --- a/lib/unistd.in.h +++ b/lib/unistd.in.h @@ -127,6 +127,13 @@ # include #endif =20 +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ + +/* The definition of _GL_ARG_NONNULL is copied here. */ + +/* The definition of _GL_WARN_ON_USE is copied here. */ + + /* Get getopt(), optarg, optind, opterr, optopt. But avoid namespace pollution on glibc systems. */ #if @GNULIB_UNISTD_H_GETOPT@ && !defined __GLIBC__ && !defined _GL_SYSTE= M_GETOPT @@ -142,13 +149,6 @@ _GL_INLINE_HEADER_BEGIN # define _GL_UNISTD_INLINE _GL_INLINE #endif =20 -/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ - -/* The definition of _GL_ARG_NONNULL is copied here. */ - -/* The definition of _GL_WARN_ON_USE is copied here. */ - - /* Hide some function declarations from . */ =20 #if @GNULIB_GETHOSTNAME@ && @UNISTD_H_HAVE_WINSOCK2_H@ diff --git a/modules/getopt-posix b/modules/getopt-posix index 5844217..2208756 100644 --- a/modules/getopt-posix +++ b/modules/getopt-posix @@ -18,6 +18,7 @@ unistd extensions include_next gettext-h [test $REPLACE_GETOPT =3D 1] +snippet/arg-nonnull =20 configure.ac: gl_FUNC_GETOPT_POSIX @@ -43,6 +44,7 @@ getopt.h: getopt.in.h $(top_builddir)/config.status -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_GETOPT_H''@|$(NEXT_GETOPT_H)|g' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ < $(srcdir)/getopt.in.h; \ } > $@-t && \ mv -f $@-t $@ --=20 2.7.4 --------------8D255D001D93AA73CBFB1205-- ------------=_1491725042-13249-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 8 Apr 2017 07:14:43 +0000 Received: from localhost ([127.0.0.1]:37018 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cwka2-0004GO-MS for submit@debbugs.gnu.org; Sat, 08 Apr 2017 03:14:42 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59505) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cwka0-0004GB-VG for submit@debbugs.gnu.org; Sat, 08 Apr 2017 03:14:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cwkZu-0003h3-N1 for submit@debbugs.gnu.org; Sat, 08 Apr 2017 03:14:35 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_50,RCVD_IN_SORBS_SPAM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:35371) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cwkZu-0003gx-Jg for submit@debbugs.gnu.org; Sat, 08 Apr 2017 03:14:34 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50471) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwkZt-00079F-F6 for bug-gnu-emacs@gnu.org; Sat, 08 Apr 2017 03:14:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cwkZq-0003fs-9A for bug-gnu-emacs@gnu.org; Sat, 08 Apr 2017 03:14:33 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:64449) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cwkZp-0003fR-UL for bug-gnu-emacs@gnu.org; Sat, 08 Apr 2017 03:14:30 -0400 Received: from ate.fritz.box ([88.217.181.242]) by mrelayeu.kundenserver.de (mreue004 [212.227.15.167]) with ESMTPSA (Nemesis) id 0LoMIP-1cPtf81Dcv-00gKNB for ; Sat, 08 Apr 2017 09:14:27 +0200 From: Harald Maier Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: 26.0.50; GNU LIB build fails on macOS 10.12.4 Message-Id: <999C877D-7C56-469F-971E-0F902F5D4A55@Maierh.de> Date: Sat, 8 Apr 2017 09:14:25 +0200 To: bug-gnu-emacs@gnu.org X-Mailer: Apple Mail (2.3273) X-Provags-ID: V03:K0:peWXxALFvWPgAPs0YGiKmD3LAwJKD5+w00QmoIcEp3zEzoOXqcT UgnugSJ9MG96ZKBbDBtPNWTG5vYoJ953IL8QZIjj3t7jF+qZaa/IytpetarkXoWC20xm39A w+SImwoGJKFc6BfZ3y/7g3nmCwfCZc50tF0eCLtBYzP/zZfgqxcE0i4HYfE/phiCfv1dIvN SNulYv+cstKMwEyUb+ung== X-UI-Out-Filterresults: notjunk:1;V01:K0:Mlm2oGisQCM=:HbynzXHeSco/Ii0UXddtQX P5wKTAIFRSKrtNlG+07jP5M9p9lg2eFWK+jibVg3yFreB3V7ysfGD+MwKrVd4SrbAUssjw1qW k70nhQ6Kbt4tfPiHeRWqpHyoXNBDKHN+A0OkcLTOff6SYOMcO4vt0gXl2Ure4pRcSIO/Jo4Zt nnF3APYnPKKaL6mF8yqYy1Y7hWVIF518gj7Esax39OE6z2PPvJe7THpgX3U57WPt3M3oTA/GG xq6vR+5sNFyLK88qi7EvOnsb5tK2/KakKa4a2oQ2lfhlBReIRs9izUH1Hg9vlFSebSkDaoI5/ U69WorFdyVZJT2Gwla1ibWRruz4ao7SWnSLHVdAFiYG64HnauqJs7mtdIMRLisz7JnydA7IQM DongE0ekeHoUr9lhKqS38U9APaEZEKYFvLlOn0IqBVT1Sw//xZA1YVZbXWymPtTXfKuh8W6y+ LB0p2W+XntjOaXrAa2+o7TAcO7oFLaBO9vzBy9HdQjrI3BxsdXyvIAVUHI7NzD5H588Q5OTTP kXDCP/utdIyoRYb8CY0os/3bLZGDaUs/yLolSKVtMObCGMIjMScgC009KBgxg98FBLcUmggjP 9oDMmq+fKKoelHPss8KojH7ckeyy3xzhw4SvFfQOw26AIRlb2QvFRNmbxeagJre2O6OhM6qSR mEnj4dJnWwJAf1XCcu4P5Pj3alhpqhIOnxLsJKvLHrxg2cBnd9yDY9nSfkbsni4GYOlzgfiDt lK/TzHRljpLWkj+2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.5 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.5 (----) The latest git checkout fails on mac OS 10.12.4. CC fstatat.o In file included from fstatat.c:45: In file included from ./fcntl.h:67: In file included from ./unistd.h:135: In file included from ./getopt_pfx_core.h:52: ./getopt_core.h:91:79: error: expected ';' after top level declarator extern int getopt (int ___argc, char *const *___argv, const char = *__shortopts) = ^ ./getopt_core.h:92:28: error: expected identifier or '(' __THROW __nonnull ((2, 3)); ^ ./getopt_core.h:92:28: error: expected ')' ./getopt_core.h:92:27: note: to match this '(' __THROW __nonnull ((2, 3)); ^ 3 errors generated. make[2]: *** [fstatat.o] Error 1 make[1]: *** [lib] Error 2 $ gcc -v Configured with: --prefix=3D/Applications/Xcode.app/Contents/Developer/usr= --with-gxx-include-dir=3D/usr/include/c++/4.2.1 Apple LLVM version 8.0.0 (clang-800.0.38) Target: x86_64-apple-darwin16.5.0 In GNU Emacs 26.0.50 (build 2, x86_64-apple-darwin16.4.0, X toolkit, = Xaw3d scroll bars) of 2017-03-26 built on ate.maierh Repository revision: 082e2cb3f40b717e4c00d31532927c9693b7cb9b Windowing system distributor 'The X.Org Foundation', version = 11.0.11804000 Recent messages: Omitting... Omitted 54 lines. Mark saved where search started Updating buffer list... Formats have changed, recompiling...done Updating buffer list...done Commands: m, u, t, RET, g, k, S, D, Q; q to quit; h for help Mark set previous-line: Beginning of buffer Mark saved where search started Quit [2 times] Configured using: 'configure --without-ns --with-x-toolkit=3Dlucid --x-includes=3D/opt/X11/include --x-libraries=3D/opt/X11/lib = --without-pop --without-gsettings --with-jpeg=3Dno --with-png=3Dno --with-gif=3Dno --with-tiff=3Dno' ------------=_1491725042-13249-1--