| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: lib.h,v 1.6 2010/06/26 00:17:13 joerg Exp $ */ | | 1 | /* $NetBSD: lib.h,v 1.7 2014/01/07 02:15:27 joerg Exp $ */ |
2 | | | 2 | |
3 | /* from FreeBSD Id: lib.h,v 1.25 1997/10/08 07:48:03 charnier Exp */ | | 3 | /* from FreeBSD Id: lib.h,v 1.25 1997/10/08 07:48:03 charnier Exp */ |
4 | | | 4 | |
5 | /* | | 5 | /* |
6 | * FreeBSD install - a package for the installation and maintainance | | 6 | * FreeBSD install - a package for the installation and maintainance |
7 | * of non-core utilities. | | 7 | * of non-core utilities. |
8 | * | | 8 | * |
9 | * Redistribution and use in source and binary forms, with or without | | 9 | * Redistribution and use in source and binary forms, with or without |
10 | * modification, are permitted provided that the following conditions | | 10 | * modification, are permitted provided that the following conditions |
11 | * are met: | | 11 | * are met: |
12 | * 1. Redistributions of source code must retain the above copyright | | 12 | * 1. Redistributions of source code must retain the above copyright |
13 | * notice, this list of conditions and the following disclaimer. | | 13 | * notice, this list of conditions and the following disclaimer. |
14 | * 2. Redistributions in binary form must reproduce the above copyright | | 14 | * 2. Redistributions in binary form must reproduce the above copyright |
| @@ -411,27 +411,27 @@ int detached_gpg_sign(const char *, size | | | @@ -411,27 +411,27 @@ int detached_gpg_sign(const char *, size |
411 | const char *); | | 411 | const char *); |
412 | | | 412 | |
413 | /* License handling */ | | 413 | /* License handling */ |
414 | int add_licenses(const char *); | | 414 | int add_licenses(const char *); |
415 | int acceptable_license(const char *); | | 415 | int acceptable_license(const char *); |
416 | int acceptable_pkg_license(const char *); | | 416 | int acceptable_pkg_license(const char *); |
417 | void load_license_lists(void); | | 417 | void load_license_lists(void); |
418 | | | 418 | |
419 | /* Helper functions for memory allocation */ | | 419 | /* Helper functions for memory allocation */ |
420 | char *xstrdup(const char *); | | 420 | char *xstrdup(const char *); |
421 | void *xrealloc(void *, size_t); | | 421 | void *xrealloc(void *, size_t); |
422 | void *xcalloc(size_t, size_t); | | 422 | void *xcalloc(size_t, size_t); |
423 | void *xmalloc(size_t); | | 423 | void *xmalloc(size_t); |
424 | char *xasprintf(const char *, ...); | | 424 | char *xasprintf(const char *, ...) __printflike(1, 2); |
425 | | | 425 | |
426 | /* Externs */ | | 426 | /* Externs */ |
427 | extern Boolean Verbose; | | 427 | extern Boolean Verbose; |
428 | extern Boolean Fake; | | 428 | extern Boolean Fake; |
429 | extern Boolean Force; | | 429 | extern Boolean Force; |
430 | extern const char *cert_chain_file; | | 430 | extern const char *cert_chain_file; |
431 | extern const char *certs_packages; | | 431 | extern const char *certs_packages; |
432 | extern const char *certs_pkg_vulnerabilities; | | 432 | extern const char *certs_pkg_vulnerabilities; |
433 | extern const char *check_eol; | | 433 | extern const char *check_eol; |
434 | extern const char *check_vulnerabilities; | | 434 | extern const char *check_vulnerabilities; |
435 | extern const char *config_file; | | 435 | extern const char *config_file; |
436 | extern const char *config_pkg_dbdir; | | 436 | extern const char *config_pkg_dbdir; |
437 | extern const char *config_pkg_path; | | 437 | extern const char *config_pkg_path; |