/osnet-11/usr/src/lib/libparted/common/libparted/ |
H A D | timer.c | 19 /** \file timer.c */ 32 * When you create a PedTimer, you must specify a timer handler function. 35 * Timers may be nested. When a timer is constructed, you can choose 38 * this case, the nested timer's handler is internal to libparted, 57 * \brief Creates a timer. 67 PedTimer* timer; local 71 timer = (PedTimer*) ped_malloc (sizeof (PedTimer)); 72 if (!timer) 75 timer->handler = handler; 76 timer 86 ped_timer_destroy(PedTimer* timer) argument 98 _nest_handler(PedTimer* timer, void* context) argument 147 ped_timer_destroy_nested(PedTimer* timer) argument 166 ped_timer_touch(PedTimer* timer) argument 187 ped_timer_reset(PedTimer* timer) argument 208 ped_timer_update(PedTimer* timer, float frac) argument 234 ped_timer_set_state_name(PedTimer* timer, const char* state_name) argument [all...] |
H A D | filesys.c | 504 * signatures. If \p timer is non-NULL, it is used as the progress meter. 513 PedTimer* timer) 534 fs = type->ops->create (geom, timer); 576 ped_file_system_check (PedFileSystem* fs, PedTimer* timer) argument 588 return fs->type->ops->check (fs, timer); 592 _raw_copy (const PedGeometry* src, PedGeometry* dest, PedTimer* timer) argument 611 ped_timer_update (timer, 1.0 * pos / src->length); 618 ped_timer_update (timer, 1.0 * pos / src->length); 624 ped_timer_update (timer, 1.0); 643 PedTimer* timer) 512 ped_file_system_create(PedGeometry* geom, const PedFileSystemType* type, PedTimer* timer) argument 642 _raw_copy_and_resize(const PedFileSystem* fs, PedGeometry* geom, PedTimer* timer) argument 687 ped_file_system_copy(PedFileSystem* fs, PedGeometry* geom, PedTimer* timer) argument 766 ped_file_system_resize(PedFileSystem* fs, PedGeometry* geom, PedTimer* timer) argument [all...] |
/osnet-11/usr/src/lib/libparted/common/libparted/fs/fat/ |
H A D | clstdup.h | 25 extern int fat_duplicate_clusters (FatOpContext* ctx, PedTimer* timer);
|
H A D | clstdup.c | 398 fat_duplicate_clusters (FatOpContext* ctx, PedTimer* timer) argument 405 ped_timer_reset (timer); 406 ped_timer_set_state_name (timer, "moving data"); 412 timer, 1.0 * ctx->frags_duped / total_frags_to_dup); 421 ped_timer_update (timer, 1.0);
|
H A D | fat.c | 280 fat_create (PedGeometry* geom, FatType fat_type, PedTimer* timer) argument 414 fat_create_fat16 (PedGeometry* geom, PedTimer* timer) argument 416 return fat_create (geom, FAT_TYPE_FAT16, timer); 420 fat_create_fat32 (PedGeometry* geom, PedTimer* timer) argument 422 return fat_create (geom, FAT_TYPE_FAT32, timer); 438 fat_copy (const PedFileSystem* fs, PedGeometry* geom, PedTimer* timer) argument 445 if (!ped_file_system_resize (new_fs, geom, timer)) 495 fat_check (PedFileSystem* fs, PedTimer* timer) argument
|
/osnet-11/usr/src/lib/libparted/common/include/parted/ |
H A D | timer.h | 25 /** \file timer.h */ 34 typedef void PedTimerHandler (PedTimer* timer, void* context); 50 extern void ped_timer_destroy (PedTimer* timer); 52 /* a nested timer automatically notifies it's parent. You should only 56 extern void ped_timer_destroy_nested (PedTimer* timer); 58 extern void ped_timer_touch (PedTimer* timer); 59 extern void ped_timer_reset (PedTimer* timer); 60 extern void ped_timer_update (PedTimer* timer, float new_frac); 61 extern void ped_timer_set_state_name (PedTimer* timer, const char* state_name);
|
H A D | filesys.h | 37 #include <parted/timer.h> 44 PedFileSystem* (*create) (PedGeometry* geom, PedTimer* timer); 46 int (*check) (PedFileSystem* fs, PedTimer* timer); 48 PedTimer* timer); 49 int (*resize) (PedFileSystem* fs, PedGeometry* geom, PedTimer* timer); 117 PedTimer* timer); 119 extern int ped_file_system_check (PedFileSystem* fs, PedTimer* timer); 122 PedTimer* timer); 124 PedTimer* timer);
|
H A D | geom.h | 43 #include <parted/timer.h> 74 PedTimer* timer);
|
/osnet-11/usr/src/lib/libsip/common/ |
H A D | sip_miscdefs.h | 74 /* timer granularity is in msecs */ 101 #define SIP_SET_TIMEOUT(timer, time) { \ 104 (timer).sip_timeout_val.tv_sec = mtime / MILLISEC; \ 105 mtime -= (timer).sip_timeout_val.tv_sec * MILLISEC; \ 106 (timer).sip_timeout_val.tv_usec = mtime * MILLISEC; \ 110 #define SIP_INIT_TIMER(timer, time) { \ 111 SIP_SET_TIMEOUT(timer, time); \ 112 (timer).sip_timerid = 0; \ 115 #define SIP_SCHED_TIMER(timer, obj, func) { \ 116 (timer) [all...] |
/osnet-11/usr/src/lib/libparted/common/libparted/fs/hfs/ |
H A D | reloc.h | 33 PedTimer* timer, unsigned int to_free);
|
H A D | reloc_plus.h | 33 PedTimer* timer, unsigned int to_free);
|
H A D | hfs.c | 194 hfs_resize (PedFileSystem* fs, PedGeometry* geom, PedTimer* timer) argument 249 ped_timer_reset (timer); 250 ped_timer_set_state_name(timer, _("shrinking")); 251 ped_timer_update(timer, 0.0); 257 if (!hfs_pack_free_space_from_block (fs, block, timer, to_free)) { 320 ped_timer_set_state_name(timer,_("writing HFS Master Directory Block")); 330 ped_timer_update(timer, 1.0); 597 hfsplus_volume_resize (PedFileSystem* fs, PedGeometry* geom, PedTimer* timer) argument 628 ped_timer_reset (timer); 629 ped_timer_set_state_name(timer, 910 hfsplus_resize(PedFileSystem* fs, PedGeometry* geom, PedTimer* timer) argument 1101 hfs_extract(PedFileSystem* fs, PedTimer* timer) argument 1179 hfsplus_extract(PedFileSystem* fs, PedTimer* timer) argument [all...] |
H A D | reloc.c | 320 PedTimer* timer) 364 PedTimer* timer) 459 PedTimer* timer) 556 hfs_cache_extents(PedFileSystem *fs, PedTimer* timer) argument 568 if (!hfs_cache_from_mdb(ret, fs, timer) || 569 !hfs_cache_from_catalog(ret, fs, timer) || 570 !hfs_cache_from_extent(ret, fs, timer)) { 587 PedTimer* timer, unsigned int to_free) 602 cache = hfs_cache_extents (fs, timer); 657 ped_timer_update(timer, (floa 319 hfs_cache_from_mdb(HfsCPrivateCache* cache, PedFileSystem* fs, PedTimer* timer) argument 363 hfs_cache_from_catalog(HfsCPrivateCache* cache, PedFileSystem* fs, PedTimer* timer) argument 458 hfs_cache_from_extent(HfsCPrivateCache* cache, PedFileSystem* fs, PedTimer* timer) argument 586 hfs_pack_free_space_from_block(PedFileSystem *fs, unsigned int fblock, PedTimer* timer, unsigned int to_free) argument [all...] |
/osnet-11/usr/src/lib/libparted/common/libparted/fs/ntfs/ |
H A D | ntfs.c | 197 ntfs_create (PedGeometry* geom, PedTimer* timer) argument 205 PED_ASSERT(timer != NULL, return 0); 207 ped_timer_reset (timer); 208 ped_timer_update (timer, 0.0); 209 ped_timer_set_state_name(timer, _("creating")); 243 ped_timer_update (timer, 1.0); 266 ntfs_check(PedFileSystem *fs, PedTimer *timer) argument 274 PED_ASSERT(timer != NULL, return 0); 276 ped_timer_reset(timer); 277 ped_timer_set_state_name(timer, 313 ntfs_copy(const PedFileSystem *fs, PedGeometry *geom, PedTimer *timer) argument 379 ntfs_resize(PedFileSystem* fs, PedGeometry* geom, PedTimer* timer) argument [all...] |
/osnet-11/usr/src/lib/libc/port/rt/ |
H A D | clock_timer.c | 48 * Array of pointers to tcd's, indexed by timer id. 160 int timer; local 162 for (timer = 0; timer < timer_max; timer++) { 163 if ((tcdp = timer_tcd[timer]) != NULL) { 164 timer_tcd[timer] = NULL;
|
H A D | sigev_thread.h | 69 } timer; member in union:thread_communication_data::__anon1428 80 #define tcd_overruns tcd_object.timer.overruns
|
H A D | sigev_thread.c | 174 * respective SIGEV_THREAD subsystems. There is one timer spawner for 545 * Delete the data associated with the sigev_thread timer, if timer is 550 del_sigev_timer(timer_t timer) argument 555 if ((uint_t)timer < timer_max && (tcdp = timer_tcd[timer]) != NULL) { 560 dprintf("del_sigev_timer(%d) OK.\n", timer); 563 timer_tcd[timer] = NULL; 570 sigev_timer_getoverrun(timer_t timer) argument 574 if ((uint_t)timer < timer_ma [all...] |
/osnet-11/usr/src/lib/libparted/common/libparted/fs/reiserfs/ |
H A D | reiserfs.c | 133 PedTimer *timer = (PedTimer *) data; local 134 ped_timer_set_state_name(timer, name); 135 ped_timer_update(timer, 1.0 * value / 100); 295 static PedFileSystem *reiserfs_create(PedGeometry *geom, PedTimer *timer) argument 314 ped_timer_reset(timer); 315 ped_timer_set_state_name(timer, _("creating")); 319 libreiserfs_gauge_create(NULL, gauge_handler, timer))) 331 ped_timer_update(timer, 1.0); 388 static int reiserfs_check(PedFileSystem *fs, PedTimer *timer) argument 422 ped_timer_reset(timer); 456 reiserfs_resize(PedFileSystem *fs, PedGeometry *geom, PedTimer *timer) argument 576 reiserfs_copy(const PedFileSystem *fs, PedGeometry *geom, PedTimer *timer) argument [all...] |
/osnet-11/usr/src/lib/libresolv2/common/isc/ |
H A D | ev_timers.c | 71 evTimer * timer; member in struct:__anon2426 368 ctx->cur->u.timer.this == del) { 369 evPrintf(ctx, 8, "deferring delete of timer (executing)\n"); 372 * clean up the timer. 400 evTimer *timer = id.opaque; local 405 if (heap_element(ctx->timers, timer->index) != timer) 409 timer->mode |= EV_TMR_RATE; 411 timer->mode &= ~EV_TMR_RATE; 427 evTimer *timer local 524 evTimer *timer = opaqueID.opaque; local 577 evTimer *timer; local [all...] |
H A D | ev_streams.c | 125 evTimeRW(evContext opaqueCtx, evStreamID id, evTimerID timer) /*ARGSUSED*/ { argument 130 str->timer = timer; 269 evTouchIdleTimer(opaqueCtx, str->timer); 292 evTouchIdleTimer(opaqueCtx, str->timer);
|
/osnet-11/usr/src/lib/libparted/common/libparted/fs/ext2/ |
H A D | ext2_resize.c | 456 static int ext2_grow_fs(struct ext2_fs *fs, blk_t newsize, PedTimer* timer) argument 490 ped_timer_reset (timer); 491 ped_timer_set_state_name (timer, _("adding groups")); 495 ped_timer_update (timer, 505 ped_timer_update (timer, 1.0); 511 PedTimer* timer) 551 ped_timer_reset (timer); 552 ped_timer_set_state_name (timer, _("shrinking")); 556 ped_timer_update (timer, 580 ped_timer_update (timer, 1. 510 ext2_shrink_fs(struct ext2_fs *fs, blk_t newsize, PedTimer* timer) argument 649 ext2_resize_fs(struct ext2_fs *fs, blk_t newsize, PedTimer* timer) argument [all...] |
H A D | interface.c | 178 _ext2_create (PedGeometry* geom, PedTimer* timer) argument 193 fs_info = ext2_mkfs (handle, 0, 0, 0, 0, -1, -1, timer); 223 _ext2_check (PedFileSystem *fs, PedTimer* timer) argument 232 _ext2_resize (PedFileSystem* fs, PedGeometry* geom, PedTimer* timer) argument 254 timer)) 264 timer))
|
/osnet-11/usr/src/lib/libparted/common/libparted/fs/linux_swap/ |
H A D | linux_swap.c | 478 swap_check_pages (PedFileSystem* fs, PedTimer* timer) argument 487 ped_timer_reset (timer); 488 ped_timer_set_state_name (timer, _("checking for bad blocks")); 493 timer, 535 swap_create (PedGeometry* geom, PedTimer* timer) argument 554 swap_resize (PedFileSystem* fs, PedGeometry* geom, PedTimer* timer) argument 572 swap_copy (const PedFileSystem* fs, PedGeometry* geom, PedTimer* timer) argument 574 return ped_file_system_create (geom, &_swap_v1_type, timer); 578 swap_check (PedFileSystem* fs, PedTimer* timer) argument 580 return swap_check_pages (fs, timer) [all...] |
/osnet-11/usr/src/lib/libparted/common/libparted/cs/ |
H A D | geom.c | 415 PedTimer* timer) 424 ped_timer_reset (timer); 425 ped_timer_set_state_name (timer, _("checking for bad blocks")); 430 ped_timer_update (timer, 1.0 * (group - offset) / count); 436 ped_timer_update (timer, 1.0); 413 ped_geometry_check(PedGeometry* geom, void* buffer, PedSector buffer_size, PedSector offset, PedSector granularity, PedSector count, PedTimer* timer) argument
|
/osnet-11/usr/src/lib/libparted/ |
H A D | Makefile | 62 timer.h \
|