ptr_t

Christian Ludlam chris at recoil.org
Tue Feb 5 10:32:04 PST 2002


On 31 Jan Nick Burrett wrote:

> Christian Ludlam <chris at recoil.org> writes:

> > What should I do?

> Fix the prototype in dirent.h. It should be:

> int scandir(const char *dir, struct dirent ***namelist,
>             int (*select)(const struct dirent *),
>             int (*compar)(const struct dirent **, const struct dirent **));

OK, attached is scandir() and alphasort().

-- 
Christian Ludlam
chris at recoil.org

begin 644 diff1,fff
M26YD97 at Z(&1I<F5N="YC"CT]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]
M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T*4D-3(&9I
M;&4Z("]U<W(O;&]C86PO8W9S<F]O="]G8V-S9&LO=6YI>&QI8B]S;W5R8V4O
M=6YI>"]D:7)E;G0N8RQV"G)E=')I979I;F<@<F5V:7-I;VX@,2XR+C(N,PID
M:69F("UU("UR,2XR+C(N,R!D:7)E;G0N8PHM+2T at 9&ER96YT+F,),C`P,2\P
M.2\P-"`Q-CHS,CHP-`DQ+C(N,BXS"BLK*R!D:7)E;G0N8PDR,#`R+S`R+S`U
M(#$X.C(W.C(R"D!`("TV-3<L,R`K-C4W+#@U($!`"B`*("`@<F5T=7)N(')E
M<W5L=#L*('T**PHK"BMI;G0**W-C86YD:7(@*&-O;G-T(&-H87(@*F1I<BP@
M<W1R=6-T(&1I<F5N="`J*BIN86UE;&ES="P**R`@("`@("`@("`@(&EN="`H
M*G-E;&5C="DH8V]N<W0@<W1R=6-T(&1I<F5N="`J*2P**R`@("`@("`@("`@
M(&EN="`H*F-M<"DH8V]N<W0@<W1R=6-T(&1I<F5N="`J*BP at 8V]N<W0@<W1R
M=6-T(&1I<F5N="`J*BDI"BM["BL@("`@1$E2("ID<#L**R`@("!S=')U8W0@
M9&ER96YT("HJ=B`]($Y53$P["BL@("`@<VEZ95]T('9S:7IE(#T@,"P@:3L*
M*R`@("!S=')U8W0 at 9&ER96YT("ID.PHK("`@(&EN="!S879E.PHK"BL@("`@
M9'`@/2!O<&5N9&ER*&1I<BD["BL@("`@:68@*&1P(#T]($Y53$PI"BL@("`@
M("`@(')E='5R;B`M,3L**PHK("`@('-A=F4@/2!E<G)N;SL**R`@("!?7W-E
M=%]E<G)N;R at P*3L**PHK("`@(&D@/2`P.PHK("`@('=H:6QE("@H9"`](')E
M861D:7(H9'`I*2`A/2!.54Q,*0HK("`@("`@("!I9B`H<V5L96-T(#T]($Y5
M3$P@?'P@*"IS96QE8W0I*&0I*0HK("`@("`@("!["BL@("`@("`@("`@("!S
M=')U8W0 at 9&ER96YT("IV;F5W.PHK("`@("`@("`@("`@<VEZ95]T(&1S:7IE
M.PHK"BL@("`@("`@("`@("`O*B!)9VYO<F4 at 97)R;W)S(&9R;VT@<V5L96-T
M(&]R(')E861D:7(@*B\**R`@("`@("`@("`@(%]?<V5T7V5R<FYO*#`I.PHK
M"BL@("`@("`@("`@("!I9B`H:2`]/2!V<VEZ92D**R`@("`@("`@("`@('L*
M*R`@("`@("`@("`@("`@("!S=')U8W0 at 9&ER96YT("HJ;F5W.PHK("`@("`@
M("`@("`@("`@(&EF("AV<VEZ92`]/2`P*0HK("`@("`@("`@("`@("`@("`@
M("!V<VEZ92`](#$P.PHK("`@("`@("`@("`@("`@(&5L<V4**R`@("`@("`@
M("`@("`@("`@("`@=G-I>F4@*CT@,CL**R`@("`@("`@("`@("`@("!N97<@
M/2`H<W1R=6-T(&1I<F5N="`J*BD@<F5A;&QO8RAV+"!V<VEZ92`J('-I>F5O
M9B at J=BDI.PHK("`@("`@("`@("`@("`@(&EF("AN97<@/3T at 3E5,3"D**R`@
M("`@("`@("`@("`@("`@("`@8G)E86L["BL@("`@("`@("`@("`@("`@=B`]
M(&YE=SL**R`@("`@("`@("`@('T**PHK("`@("`@("`@("`@+RH at 1DE8344Z
M('1H:7,@,C4V('-H;W5L9"!B92!A(&UA8W)O+"!B=70@<V5E(&-O;6UE;G1S
M(&EN(&1I<F5N="YH("HO"BL@("`@("`@("`@("!D<VEZ92`]("9D+3YD7VYA
M;65;,C4V72`M("AC:&%R("HI(&0["BL@("`@("`@("`@("!V;F5W(#T@*'-T
M<G5C="!D:7)E;G0@*BD@;6%L;&]C*&1S:7IE*3L**R`@("`@("`@("`@(&EF
M("AV;F5W(#T]($Y53$PI"BL@("`@("`@("`@("`@("`@8G)E86L["BL**R`@
M("`@("`@("`@('9;:2LK72`]("AS=')U8W0 at 9&ER96YT("HI(&UE;6-P>2AV
M;F5W+"!D+"!D<VEZ92D["BL@("`@("`@('T**PHK("`@(&EF("AE<G)N;R`A
M/2`P*0HK("`@('L**R`@("`@("`@<V%V92`](&5R<FYO.PHK("`@("`@("`H
M=F]I9"D at 8VQO<V5D:7(H9'`I.PHK"BL@("`@("`@('=H:6QE("AI(#X@,"D*
M*R`@("`@("`@("`@(&9R964H=ELM+6E=*3L**R`@("`@("`@9G)E92AV*3L*
M*PHK("`@("`@("!?7W-E=%]E<G)N;R`H<V%V92D["BL@("`@("`@(')E='5R
M;B`M,3L**R`@("!]"BL**R`@("`H=F]I9"D at 8VQO<V5D:7(H9'`I.PHK("`@
M(%]?<V5T7V5R<FYO*'-A=F4I.PHK"BL@("`@+RH at 4V]R="!T:&4@;&ES="!I
M9B!W92!H879E(&$@8V]M<&%R:7-O;B!F=6YC=&EO;B!T;R!S;W)T('=I=&@N
M("`J+PHK("`@(&EF("AC;7`@(3T at 3E5,3"D**R`@("`@("`@<7-O<G0H=BP@
M:2P@<VEZ96]F*"IV*2PH:6YT("@J*2AC;VYS="!V;VED("HL8V]N<W0@=F]I
M9"`J*2EC;7`I.PHK("`@("IN86UE;&ES="`]('8["BL@("`@<F5T=7)N(&D[
M"BM]"BL**PHK:6YT"BMA;'!H87-O<G0@*&-O;G-T('-T<G5C="!D:7)E;G0@
M*BIA+"!C;VYS="!S=')U8W0 at 9&ER96YT("HJ8BD**WL**R`@<F5T=7)N('-T
L<F-O;&P@*"@J82DM/F1?;F%M92P**PD)("`H*F(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"!A;F0 at 8V]L;&5C=&5D(&EN(&$@
M;6%L;&]C)V0 at 87)R87D@:6X*("`@("IN86UE;&ES="X@(%)E='5R;G,@=&AE
M(&YU;6)E<B!O9B!E;G1R:65S('-E;&5C=&5D+"!O<B`M,2!O;B!E<G)O<BX@
M("HO"BUE>'1E<FX@:6YT('-C86YD:7(@*&-O;G-T(&-H87(@*E]?9&ER+`HM
M"0D@("`@<W1R=6-T(&1I<F5N="`J*BI?7VYA;65L:7-T+`HM"0D@("`@:6YT
M("@J7U]S96QE8W0I("AS=')U8W0 at 9&ER96YT("HI+`HM"0D@("`@:6YT("@J
M7U]C;7`I("AC;VYS="!P=')?="P at 8V]N<W0@<'1R7W0I*3L**V5X=&5R;B!I
M;G0@<V-A;F1I<BAC;VYS="!C:&%R("ID:7(L"BL)"2`@('-T<G5C="!D:7)E
M;G0@*BHJ;F%M96QI<W0L"BL)"2`@(&EN="`H*G-E;&5C="DH8V]N<W0@<W1R
M=6-T(&1I<F5N="`J*2P**PD)("`@:6YT("@J8VUP*2AC;VYS="!S=')U8W0@
M9&ER96YT("HJ+"!C;VYS="!S=')U8W0 at 9&ER96YT("HJ*2D["B`**R-I9B`P
M"B`O*B!296%D(&1I<F5C=&]R>2!E;G1R:65S(&9R;VT at 9F0@:6YT;R!B=68L
M(')E861I;F<@870@;6]S="!N8GET97,N"B`@("!296%D:6YG('-T87)T<R!A
M="!O9F9S970@*F)A<V5P+"!A;F0@*F)A<V5P(&ES('5P9&%T960@=VET:"!T
M:&4@;F5W"B`@("!P;W-I=&EO;B!A9G1E<B!R96%D:6YG+B`@4F5T=7)N<R!T
F:&4@;G5M8F5R(&]F(&)Y=&5S(')E860[('IE<F\@=VAE;B!A=`IT
`
end



More information about the gcc mailing list