Changes in / [68f57e1:c196671] in mainline


Ignore:
Files:
32 added
32 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • boot/Makefile.common

    r68f57e1 rc196671  
    7272        $(USPACE_PATH)/srv/loader/loader \
    7373        $(USPACE_PATH)/app/init/init \
    74         $(USPACE_PATH)/srv/loc/loc \
     74        $(USPACE_PATH)/srv/locsrv/locsrv \
    7575        $(USPACE_PATH)/srv/bd/rd/rd \
    7676        $(USPACE_PATH)/srv/vfs/vfs
     
    107107        $(USPACE_PATH)/srv/hid/remcons/remcons \
    108108        $(USPACE_PATH)/srv/net/ethip/ethip \
    109         $(USPACE_PATH)/srv/net/inet/inet \
     109        $(USPACE_PATH)/srv/net/inetsrv/inetsrv \
    110110        $(USPACE_PATH)/srv/net/loopip/loopip \
    111111        $(USPACE_PATH)/srv/net/tcp/tcp \
     
    157157        $(USPACE_PATH)/app/edit/edit \
    158158        $(USPACE_PATH)/app/ext2info/ext2info \
    159         $(USPACE_PATH)/app/inetcfg/inetcfg \
     159        $(USPACE_PATH)/app/inet/inet \
    160160        $(USPACE_PATH)/app/kill/kill \
    161161        $(USPACE_PATH)/app/killall/killall \
    162         $(USPACE_PATH)/app/locinfo/locinfo \
     162        $(USPACE_PATH)/app/loc/loc \
    163163        $(USPACE_PATH)/app/mkfat/mkfat \
    164164        $(USPACE_PATH)/app/mkexfat/mkexfat \
  • uspace/Makefile

    r68f57e1 rc196671  
    4242        app/getterm \
    4343        app/init \
    44         app/inetcfg \
     44        app/inet \
    4545        app/kill \
    4646        app/killall \
    4747        app/klog \
    48         app/locinfo \
     48        app/loc \
    4949        app/lsusb \
    5050        app/mkfat \
     
    6969        app/nettest3 \
    7070        app/ping \
    71         app/websrv \
    7271        app/sysinfo \
    7372        app/mkbd \
     73        app/websrv \
    7474        srv/clipboard \
    75         srv/loc \
     75        srv/locsrv \
    7676        srv/devman \
    7777        srv/loader \
    7878        srv/net/ethip \
    79         srv/net/inet \
     79        srv/net/inetsrv \
    8080        srv/net/loopip \
    8181        srv/net/tcp \
  • uspace/app/init/init.c

    r68f57e1 rc196671  
    307307        spawn("/srv/loopip");
    308308        spawn("/srv/ethip");
    309         spawn("/srv/inet");
     309        spawn("/srv/inetsrv");
    310310        spawn("/srv/tcp");
    311311        spawn("/srv/udp");
  • uspace/app/sbi/src/stype.c

    r68f57e1 rc196671  
    652652        assert(iface_ti->tic == tic_tobject);
    653653        iface = iface_ti->u.tobject->csi;
    654         assert(iface->cc = csi_interface);
     654        assert(iface->cc == csi_interface);
    655655
    656656#ifdef DEBUG_TYPE_TRACE
  • uspace/app/websrv/websrv.c

    r68f57e1 rc196671  
    11/*
    2  * Copyright (c) 2011 Jiri Svoboda
     2 * Copyright (c) 2012 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    4242#include <stdlib.h>
    4343#include <fcntl.h>
     44#include <task.h>
    4445
    4546#include <net/in.h>
     
    7273
    7374static char fbuf[BUFFER_SIZE];
     75
     76static bool verbose = false;
    7477
    7578/** Responses to send to client. */
     
    188191        size_t response_size = str_size(msg);
    189192       
    190         fprintf(stderr, "Sending response\n");
     193        if (verbose)
     194            fprintf(stderr, "Sending response\n");
     195       
    191196        ssize_t rc = send(conn_sd, (void *) msg, response_size, 0);
    192197        if (rc < 0) {
     
    252257        }
    253258       
    254         fprintf(stderr, "Request: %s", lbuf);
     259        if (verbose)
     260                fprintf(stderr, "Request: %s", lbuf);
    255261       
    256262        if (str_lcmp(lbuf, "GET ", 4) != 0) {
     
    267273       
    268274        *end_uri = '\0';
    269         fprintf(stderr, "Requested URI: %s\n", uri);
     275        if (verbose)
     276                fprintf(stderr, "Requested URI: %s\n", uri);
    270277       
    271278        if (!uri_is_valid(uri)) {
     
    288295            "\n"
    289296            "-h | --help\n"
    290             "\tShow this application help.\n");
     297            "\tShow this application help.\n"
     298            "-v | --verbose\n"
     299            "\tVerbose mode\n");
    291300}
    292301
     
    307316               
    308317                port = (uint16_t) value;
     318                break;
     319        case 'v':
     320                verbose = true;
    309321                break;
    310322        /* Long options with double dash */
     
    319331                       
    320332                        port = (uint16_t) value;
     333                } else if (str_cmp(argv[*index] +2, "verbose") == 0) {
     334                        verbose = true;
    321335                } else {
    322336                        usage();
     
    359373        }
    360374       
    361         fprintf(stderr, "Creating socket\n");
     375        printf("%s: HelenOS web server\n", NAME);
     376
     377        if (verbose)
     378                fprintf(stderr, "Creating socket\n");
    362379       
    363380        int listen_sd = socket(PF_INET, SOCK_STREAM, 0);
     
    381398        }
    382399       
    383         fprintf(stderr, "Listening for connections at port %" PRIu16 "\n",
    384             port);
     400        fprintf(stderr, "%s: Listening for connections at port %" PRIu16 "\n",
     401            NAME, port);
     402
     403        task_retval(0);
     404
    385405        while (true) {
    386406                struct sockaddr_in raddr;
     
    394414                }
    395415               
    396                 fprintf(stderr, "Connection accepted (sd=%d), "
    397                     "waiting for request\n", conn_sd);
     416                if (verbose) {
     417                        fprintf(stderr, "Connection accepted (sd=%d), "
     418                            "waiting for request\n", conn_sd);
     419                }
    398420               
    399421                rbuf_out = 0;
     
    413435                }
    414436               
    415                 fprintf(stderr, "Connection closed\n");
     437                if (verbose)
     438                        fprintf(stderr, "Connection closed\n");
    416439        }
    417440       
  • uspace/lib/usb/src/hc.c

    r68f57e1 rc196671  
    6666        if (connection->ref_count == 0) {
    6767                /* Closing already closed connection... */
    68                 assert(connection->hc_sess = NULL);
     68                assert(connection->hc_sess == NULL);
    6969                fibril_mutex_unlock(&connection->guard);
    7070                return EOK;
Note: See TracChangeset for help on using the changeset viewer.