Print this page
5218 posix definition of NULL
correct unistd.h and iso/stddef_iso.h
update gate source affected


 108 static void check_and_set_mirrors(int, int);
 109 static void print_hint(const uint_t, const int);
 110 static char *get_device_name(char *arg);
 111 static void get_version();
 112 
 113 extern struct tm *localtime_r(const time_t *, struct tm *);
 114 
 115 #define PRINT_CACHE_SZ_ERR(sz) {\
 116         (void) fprintf(stderr, gettext("\n%s: desired cache size (%d) "\
 117             "set to system max (%d)\n"), \
 118             progname, (sz), MAX_CACHE_SIZE); \
 119         spcs_log("sdbc", NULL, \
 120                 gettext("desired cache size (%d) "\
 121                     "set to system max (%d)\n"), \
 122                 (sz), MAX_CACHE_SIZE); \
 123 }
 124 
 125 void
 126 sdbc_report_error(spcs_s_info_t *ustatus)
 127 {
 128         if (*ustatus != NULL) {
 129                 spcs_s_report(*ustatus, stderr);
 130                 spcs_s_ufree(ustatus);
 131         } else
 132                 (void) fprintf(stderr, "%s\n", strerror(errno));
 133 }
 134 
 135 
 136 /*
 137  * Return the per-cd hints for a cd.
 138  *
 139  * Since the global (no)wrthru and NSC_NOCACHE hints take precedence
 140  * over the per-cd hints, get them as well and OR the whole lot
 141  * together.
 142  */
 143 static int
 144 get_cd_hint(const int cd)
 145 {
 146         spcs_s_info_t ustats;
 147         int nodehint, cdhint;
 148 




 108 static void check_and_set_mirrors(int, int);
 109 static void print_hint(const uint_t, const int);
 110 static char *get_device_name(char *arg);
 111 static void get_version();
 112 
 113 extern struct tm *localtime_r(const time_t *, struct tm *);
 114 
 115 #define PRINT_CACHE_SZ_ERR(sz) {\
 116         (void) fprintf(stderr, gettext("\n%s: desired cache size (%d) "\
 117             "set to system max (%d)\n"), \
 118             progname, (sz), MAX_CACHE_SIZE); \
 119         spcs_log("sdbc", NULL, \
 120                 gettext("desired cache size (%d) "\
 121                     "set to system max (%d)\n"), \
 122                 (sz), MAX_CACHE_SIZE); \
 123 }
 124 
 125 void
 126 sdbc_report_error(spcs_s_info_t *ustatus)
 127 {
 128         if (*ustatus != (uintptr_t)NULL) {
 129                 spcs_s_report(*ustatus, stderr);
 130                 spcs_s_ufree(ustatus);
 131         } else
 132                 (void) fprintf(stderr, "%s\n", strerror(errno));
 133 }
 134 
 135 
 136 /*
 137  * Return the per-cd hints for a cd.
 138  *
 139  * Since the global (no)wrthru and NSC_NOCACHE hints take precedence
 140  * over the per-cd hints, get them as well and OR the whole lot
 141  * together.
 142  */
 143 static int
 144 get_cd_hint(const int cd)
 145 {
 146         spcs_s_info_t ustats;
 147         int nodehint, cdhint;
 148