Annotation of qemu/roms/SLOF/clients/net-snk/libc/socket/send.c, revision 1.1

1.1     ! root        1: /******************************************************************************
        !             2:  * Copyright (c) 2004, 2008 IBM Corporation
        !             3:  * All rights reserved.
        !             4:  * This program and the accompanying materials
        !             5:  * are made available under the terms of the BSD License
        !             6:  * which accompanies this distribution, and is available at
        !             7:  * http://www.opensource.org/licenses/bsd-license.php
        !             8:  *
        !             9:  * Contributors:
        !            10:  *     IBM Corporation - initial implementation
        !            11:  *****************************************************************************/
        !            12: 
        !            13: 
        !            14: #include "sys/socket.h"
        !            15: 
        !            16: int socket(int dom, int type, int proto, char *mac_addr)
        !            17: {
        !            18:     return syscall_5 (_socket_sc_nr, _sock_sc_nr, dom, type, proto, (long)mac_addr);
        !            19: }
        !            20: 
        !            21: int sendto(int fd, const void* buffer, int len, int flags, const void* sock_addr, int sock_addr_len)
        !            22: {
        !            23:     return syscall_7 (_socket_sc_nr, _sendto_sc_nr, fd, (long) buffer, len, flags, (long) sock_addr, sock_addr_len);
        !            24: }
        !            25: 
        !            26: int send(int fd, void* buffer, int len, int flags)
        !            27: {
        !            28:     return syscall_5 (_socket_sc_nr, _send_sc_nr, fd, (long) buffer, len, flags);
        !            29: }
        !            30: 
        !            31: int recv(int fd, void* buffer, int len, int flags)
        !            32: {
        !            33:     return syscall_5 (_socket_sc_nr, _recv_sc_nr, fd, (long) buffer, len, flags);
        !            34: }
        !            35: 
        !            36: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.