Changeset 0eb58f1 in mainline


Ignore:
Timestamp:
2007-06-20T20:53:19Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6765c07
Parents:
84947a4
Message:

Cleanup.

Files:
8 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/errno.h

    r84947a4 r0eb58f1  
    3838/* 1-255 are kernel error codes, 256-512 are user error codes */
    3939
    40 #define EOK                     0       /* No error */
     40#define EOK             0       /* No error */
    4141#define ENOENT          -1      /* No such entry */
    4242#define ENOMEM          -2      /* Not enough memory */
     
    4545#define EFORWARD        -5      /* Forward error */
    4646#define EPERM           -6      /* Permission denied */
    47 #define EHANGUP         -7      /* Answerbox closed connection, call sys_ipc_hangup
    48                                  * to close the connection. Used by answerbox
    49                                  * to close the connection.  */
     47#define EHANGUP         -7      /* Answerbox closed connection, call
     48                                 * sys_ipc_hangup() to close the connection.
     49                                 * Used by answerbox to close the connection.
     50                                 */
    5051#define EEXISTS         -8      /* Entry already exists */
    5152#define EBADMEM         -9      /* Bad memory pointer */
  • uspace/fb/ega.h

    r84947a4 r0eb58f1  
    3535 */
    3636
    37 #ifndef _EGA_H_
    38 #define _EGA_H_
     37#ifndef FB_EGA_H_
     38#define FB_EGA_H_
    3939
    40 int ega_init(void);
     40extern int ega_init(void);
    4141
    4242#endif
  • uspace/fb/fb.h

    r84947a4 r0eb58f1  
    3434 */
    3535
    36 #ifndef _FB_H_
    37 #define _FB_H_
     36#ifndef FB_FB_H_
     37#define FB_FB_H_
    3838
    39 typedef void (* putpixel_cb_t)(void *,unsigned int, unsigned int, int);
     39typedef void (* putpixel_cb_t)(void *, unsigned int, unsigned int, int);
    4040
    41 int fb_init(void);
     41extern int fb_init(void);
    4242
    4343#endif
     
    4545/** @}
    4646 */
    47 
  • uspace/fb/font-8x16.h

    r84947a4 r0eb58f1  
    2727 */
    2828
    29 #ifndef __FONT_8X16_H__
    30 #define __FONT_8X16_H__
     29#ifndef FB_FONT_8X16_H_
     30#define FB_FONT_8X16_H_
    3131
    32 #define FONT_GLIPHS             256
     32#define FONT_GLIPHS     256
    3333#define FONT_SCANLINES  16
    3434
  • uspace/fb/main.h

    r84947a4 r0eb58f1  
    2727 */
    2828
    29 #ifndef __MAIN_H_
    30 #define __MAIN_H_
     29#ifndef FB_MAIN_H_
     30#define FB_MAIN_H_
    3131
    32 void receive_comm_area(ipc_callid_t callid, ipc_call_t *call, void **area);
     32extern void receive_comm_area(ipc_callid_t, ipc_call_t *, void **);
    3333
    3434#endif
  • uspace/fb/ppm.h

    r84947a4 r0eb58f1  
    2727 */
    2828
    29 #ifndef _PPM_H_
    30 #define _PPM_H_
     29#ifndef FB_PPM_H_
     30#define FB_PPM_H_
    3131
    3232#include "fb.h"
    3333
    34 int ppm_draw(unsigned char *data, size_t datasz, unsigned int sx,
    35              unsigned int sy,
    36              unsigned int maxwidth, unsigned int maxheight,
    37              putpixel_cb_t fnc,void *);
    38 int ppm_get_data(unsigned char *data, size_t dtsz, unsigned int *width, unsigned int *height);
     34extern int ppm_draw(unsigned char *, size_t, unsigned int, unsigned int,
     35    unsigned int, unsigned int, putpixel_cb_t, void *);
     36extern int ppm_get_data(unsigned char *, size_t, unsigned int *, unsigned int *);
    3937
    4038#endif
  • uspace/fb/sysio.h

    r84947a4 r0eb58f1  
    3535 */
    3636
    37 #ifndef _SYSIO_H_
    38 #define _SYSIO_H_
     37#ifndef FB_SYSIO_H_
     38#define FB_SYSIO_H_
    3939
    40 void sysio_init(void);
     40extern void sysio_init(void);
    4141
    4242#endif
     
    4444/** @}
    4545 */
    46 
  • uspace/ns/ns.c

    r84947a4 r0eb58f1  
    5656
    5757static int register_service(ipcarg_t service, ipcarg_t phone, ipc_call_t *call);
    58 static int connect_to_service(ipcarg_t service, ipc_call_t *call, ipc_callid_t callid);
     58static int connect_to_service(ipcarg_t service, ipc_call_t *call,
     59    ipc_callid_t callid);
    5960
    6061/* Static functions implementing NS hash table operations. */
     
    8485static void *klogaddr = NULL;
    8586
    86 static void get_as_area(ipc_callid_t callid, ipc_call_t *call, char *name, void **addr)
     87static void get_as_area(ipc_callid_t callid, ipc_call_t *call, char *name,
     88    void **addr)
    8789{
    8890        void *ph_addr;
     
    107109        ipcarg_t retval;
    108110
    109         if (!hash_table_create(&ns_hash_table, NS_HASH_TABLE_CHAINS, 3, &ns_hash_table_ops)) {
     111        if (!hash_table_create(&ns_hash_table, NS_HASH_TABLE_CHAINS, 3,
     112            &ns_hash_table_ops)) {
    110113                return ENOMEM;
    111114        }
     
    135138                         * Server requests service registration.
    136139                         */
    137                         retval = register_service(IPC_GET_ARG1(call), IPC_GET_ARG3(call), &call);
     140                        retval = register_service(IPC_GET_ARG1(call),
     141                            IPC_GET_ARG3(call), &call);
    138142                        break;
    139143                case IPC_M_CONNECT_ME_TO:
     
    141145                         * Client requests to be connected to a service.
    142146                         */
    143                         retval = connect_to_service(IPC_GET_ARG1(call), &call, callid);
     147                        retval = connect_to_service(IPC_GET_ARG1(call), &call,
     148                            callid);
    144149                        break;
    145150                default:
     
    147152                        break;
    148153                }
    149                 if (! (callid & IPC_CALLID_NOTIFICATION)) {
     154                if (!(callid & IPC_CALLID_NOTIFICATION)) {
    150155                        ipc_answer_fast(callid, retval, 0, 0);
    151156                }
     
    163168int register_service(ipcarg_t service, ipcarg_t phone, ipc_call_t *call)
    164169{
    165         unsigned long keys[3] = { service, call->in_phone_hash, 0 };
     170        unsigned long keys[3] = {
     171                service,
     172                call->in_phone_hash,
     173                0
     174        };
    166175        hashed_service_t *hs;
    167176                       
Note: See TracChangeset for help on using the changeset viewer.