Ignore:
Timestamp:
2011-04-15T19:38:07Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9dd730d1
Parents:
6b9e85b (diff), b2fb47f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/packet/generic/packet_server.c

    r6b9e85b r8b655705  
    4444#include <unistd.h>
    4545#include <sys/mman.h>
    46 
    47 #include <ipc/ipc.h>
    4846#include <ipc/packet.h>
    4947#include <ipc/net.h>
    50 
    5148#include <net/packet.h>
    5249#include <net/packet_header.h>
     
    115112    size_t max_content, size_t max_suffix)
    116113{
    117         // clear the packet content
     114        /* Clear the packet content */
    118115        bzero(((void *) packet) + sizeof(packet_t),
    119116            packet->length - sizeof(packet_t));
    120117       
    121         // clear the packet header
     118        /* Clear the packet header */
    122119        packet->order = 0;
    123120        packet->metric = 0;
     
    154151        assert(fibril_mutex_is_locked(&ps_globals.lock));
    155152
    156         // already locked
     153        /* Already locked */
    157154        packet = (packet_t *) mmap(NULL, length, PROTO_READ | PROTO_WRITE,
    158155            MAP_SHARED | MAP_ANONYMOUS, 0, 0);
     
    292289
    293290        if (!async_share_in_receive(&callid, &size)) {
    294                 ipc_answer_0(callid, EINVAL);
     291                async_answer_0(callid, EINVAL);
    295292                return EINVAL;
    296293        }
    297294
    298295        if (size != packet->length) {
    299                 ipc_answer_0(callid, ENOMEM);
     296                async_answer_0(callid, ENOMEM);
    300297                return ENOMEM;
    301298        }
Note: See TracChangeset for help on using the changeset viewer.