• Home
  • Raw
  • Download

Lines Matching refs:lib

146         my $lib = $1;
149 $hinc{$lib} = $hdr;
150 $libinc{$hdr} = $lib;
151 $cskip{$err} = $lib;
153 $errorfile{$lib} = $err;
154 $fmax{$lib} = 100;
155 $rmax{$lib} = 100;
156 $fassigned{$lib} = ":";
157 $rassigned{$lib} = ":";
158 $fnew{$lib} = 0;
159 $rnew{$lib} = 0;
203 my $lib = $name;
204 $lib =~ s/^((?:OSSL_|OPENSSL_)?[^_]{2,}).*$/$1/;
205 $lib = "SSL" if $lib =~ /TLS/;
206 if ( !defined $errorfile{$lib} ) {
212 die "$lib reason code $code collision at $name\n"
213 if $rassigned{$lib} =~ /:$code:/;
214 $rassigned{$lib} .= "$code:";
216 $rmax{$lib} = $code if $code > $rmax{$lib};
220 die "$lib function code $code collision at $name\n"
221 if $fassigned{$lib} =~ /:$code:/;
222 $fassigned{$lib} .= "$code:";
223 $fmax{$lib} = $code if $code > $fmax{$lib};
232 foreach my $lib ( sort keys %rmax ) {
233 print STDERR "Reason codes for ${lib}:\n";
234 if ( $rassigned{$lib} =~ m/^:(.*):$/ ) {
242 foreach my $lib ( sort keys %fmax ) {
243 print STDERR "Function codes for ${lib}:\n";
244 if ( $fassigned{$lib} =~ m/^:(.*):$/ ) {
257 while ( ( my $hdr, my $lib ) = each %libinc ) {
344 if ( $lib eq "SSL" && $rmax{$lib} >= 1000 ) {
419 foreach my $lib ( keys %errorfile ) {
420 next if ! $fnew{$lib} && ! $rnew{$lib} && ! $rebuild;
421 next if scalar keys %modules > 0 && !$modules{$lib};
423 print STDERR "$lib: $fnew{$lib} new functions\n" if $fnew{$lib};
424 print STDERR "$lib: $rnew{$lib} new reasons\n" if $rnew{$lib};
431 my @function = sort grep( /^${lib}_/, keys %fcodes );
432 my @reasons = sort grep( /^${lib}_/, keys %rcodes );
439 my $hfile = $hinc{$lib};
453 #ifndef HEADER_${lib}ERR_H
454 # define HEADER_${lib}ERR_H
462 if ($lib ne "SSL" && $lib ne "ASYNC"
463 && grep { $lib eq uc $_ } @disablables) {
467 # ifndef OPENSSL_NO_${lib}
476 int ERR_load_${lib}_strings(void);
480 # define ${lib}err(f, r) ERR_${lib}_error((f), (r), OPENSSL_FILE, OPENSSL_LINE)
489 int ERR_load_${lib}_strings(void);
490 void ERR_unload_${lib}_strings(void);
491 void ERR_${lib}_error(int function, int reason, char *file, int line);
499 print OUT "\n/*\n * $lib function codes.\n */\n";
504 $fassigned{$lib} =~ m/^:([^:]*):/;
506 $findcode = $fmax{$lib} if !defined $findcode;
507 while ( $fassigned{$lib} =~ m/:$findcode:/ ) {
511 $fassigned{$lib} .= "$findcode:";
517 print OUT "\n/*\n * $lib reason codes.\n */\n";
522 $rassigned{$lib} =~ m/^:([^:]*):/;
524 $findcode = $rmax{$lib} if !defined $findcode;
525 while ( $rassigned{$lib} =~ m/:$findcode:/ ) {
529 $rassigned{$lib} .= "$findcode:";
544 my $cfile = $errorfile{$lib};
545 my $pack_lib = $internal ? "ERR_LIB_${lib}" : "0";
575 static ${const}ERR_STRING_DATA ${lib}_str_functs[] = {
585 $i =~ /^${lib}_F_(\S+)$/;
601 static ${const}ERR_STRING_DATA ${lib}_str_reasons[] = {
611 $i =~ /^${lib}_R_(\S+)$/;
632 int ERR_load_${lib}_strings(void)
635 if (ERR_func_error_string(${lib}_str_functs[0].error) == NULL) {
636 ERR_load_strings_const(${lib}_str_functs);
637 ERR_load_strings_const(${lib}_str_reasons);
650 ${st}int ERR_load_${lib}_strings(void)
657 ERR_load_strings(lib_code, ${lib}_str_functs);
658 ERR_load_strings(lib_code, ${lib}_str_reasons);
665 ${st}void ERR_unload_${lib}_strings(void)
669 ERR_unload_strings(lib_code, ${lib}_str_functs);
670 ERR_unload_strings(lib_code, ${lib}_str_reasons);
676 ${st}void ERR_${lib}_error(int function, int reason, char *file, int line)