Changeset e535eeb in mainline for uspace/app


Ignore:
Timestamp:
2010-04-18T12:28:19Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dec16a2
Parents:
e1b6742
Message:

rename order() to order_suffix(), make it a generic libc string function in user space

Location:
uspace/app
Files:
4 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tasks/Makefile

    re1b6742 re535eeb  
    3232
    3333SOURCES = \
    34         tasks.c \
    35         func.c
     34        tasks.c
    3635
    3736include $(USPACE_PREFIX)/Makefile.common
  • uspace/app/tasks/tasks.c

    re1b6742 re535eeb  
    4545#include <inttypes.h>
    4646#include <bool.h>
     47#include <str.h>
    4748#include <arg_parse.h>
    48 #include "func.h"
    4949
    5050#define NAME  "tasks"
     
    7676                        char vmsuffix, usuffix, ksuffix;
    7777                       
    78                         order(stats_task->virtmem, &virtmem, &vmsuffix);
    79                         order(stats_task->ucycles, &ucycles, &usuffix);
    80                         order(stats_task->kcycles, &kcycles, &ksuffix);
     78                        order_suffix(stats_task->virtmem, &virtmem, &vmsuffix);
     79                        order_suffix(stats_task->ucycles, &ucycles, &usuffix);
     80                        order_suffix(stats_task->kcycles, &kcycles, &ksuffix);
    8181                       
    8282                        printf("%8" PRIu64 "%8u %8" PRIu64"%c %12"
     
    113113                                char usuffix, ksuffix;
    114114                               
    115                                 order(stats_thread->ucycles, &ucycles, &usuffix);
    116                                 order(stats_thread->kcycles, &kcycles, &ksuffix);
     115                                order_suffix(stats_thread->ucycles, &ucycles, &usuffix);
     116                                order_suffix(stats_thread->kcycles, &kcycles, &ksuffix);
    117117                               
    118118                                if (stats_thread->on_cpu) {
  • uspace/app/top/Makefile

    re1b6742 re535eeb  
    3535        screen.c \
    3636        input.c \
    37         func.c \
    3837        ps.c
    3938
Note: See TracChangeset for help on using the changeset viewer.