Changeset 9d1596d6 in rtems for cpukit/librpc


Ignore:
Timestamp:
Aug 1, 2008, 6:39:51 AM (11 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.9, master
Children:
e8d09ea
Parents:
e8ef931
Message:

Misc. ansifications.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/librpc/src/xdr/xdr_rec.c

    re8ef931 r9d1596d6  
    136136 */
    137137void
    138 xdrrec_create(xdrs, sendsize, recvsize, tcp_handle, readit, writeit)
    139         register XDR *xdrs;
    140         register u_int sendsize;
    141         register u_int recvsize;
    142         caddr_t tcp_handle;
    143         int (*readit)();  /* like read, but pass it a tcp_handle, not sock */
    144         int (*writeit)();  /* like write, but pass it a tcp_handle, not sock */
     138xdrrec_create(
     139        XDR *xdrs,
     140        u_int sendsize,
     141        u_int recvsize,
     142        caddr_t tcp_handle,
     143        int (*readit)(char*, char*, int),  /* like read, but pass it a tcp_handle, not sock */
     144        int (*writeit)(char*, char*, int)  /* like write, but pass it a tcp_handle, not sock */
     145)
    145146{
    146147        register RECSTREAM *rstrm =
     
    196197
    197198static bool_t
    198 xdrrec_getlong(xdrs, lp)
    199         XDR *xdrs;
    200         long *lp;
     199xdrrec_getlong(
     200        XDR *xdrs,
     201        long *lp)
    201202{
    202203        register RECSTREAM *rstrm = (RECSTREAM *)(xdrs->x_private);
     
    219220
    220221static bool_t
    221 xdrrec_putlong(xdrs, lp)
    222         XDR *xdrs;
    223         long *lp;
     222xdrrec_putlong(
     223        XDR *xdrs,
     224        long *lp)
    224225{
    225226        register RECSTREAM *rstrm = (RECSTREAM *)(xdrs->x_private);
     
    243244
    244245static bool_t  /* must manage buffers, fragments, and records */
    245 xdrrec_getbytes(xdrs, addr, len)
    246         XDR *xdrs;
    247         register caddr_t addr;
    248         register u_int len;
     246xdrrec_getbytes(
     247        XDR *xdrs,
     248        register caddr_t addr,
     249        register u_int len)
    249250{
    250251        register RECSTREAM *rstrm = (RECSTREAM *)(xdrs->x_private);
     
    271272
    272273static bool_t
    273 xdrrec_putbytes(xdrs, addr, len)
    274         XDR *xdrs;
    275         register caddr_t addr;
    276         register u_int len;
     274xdrrec_putbytes(
     275        XDR *xdrs,
     276        caddr_t addr,
     277        u_int len)
    277278{
    278279        register RECSTREAM *rstrm = (RECSTREAM *)(xdrs->x_private);
     
    297298
    298299static u_int
    299 xdrrec_getpos(xdrs)
    300         register XDR *xdrs;
     300xdrrec_getpos(
     301        XDR *xdrs)
    301302{
    302303        register RECSTREAM *rstrm = (RECSTREAM *)xdrs->x_private;
     
    323324
    324325static bool_t
    325 xdrrec_setpos(xdrs, pos)
    326         register XDR *xdrs;
    327         u_int pos;
     326xdrrec_setpos(
     327        XDR *xdrs,
     328        u_int pos)
    328329{
    329330        register RECSTREAM *rstrm = (RECSTREAM *)xdrs->x_private;
     
    361362
    362363static int32_t *
    363 xdrrec_inline(xdrs, len)
    364         register XDR *xdrs;
    365         int len;
     364xdrrec_inline(
     365        XDR *xdrs,
     366        int len)
    366367{
    367368        register RECSTREAM *rstrm = (RECSTREAM *)xdrs->x_private;
     
    392393
    393394static void
    394 xdrrec_destroy(xdrs)
    395         register XDR *xdrs;
     395xdrrec_destroy(
     396        XDR *xdrs)
    396397{
    397398        register RECSTREAM *rstrm = (RECSTREAM *)xdrs->x_private;
     
    412413 */
    413414bool_t
    414 xdrrec_skiprecord(xdrs)
    415         XDR *xdrs;
     415xdrrec_skiprecord(
     416        XDR *xdrs)
    416417{
    417418        register RECSTREAM *rstrm = (RECSTREAM *)(xdrs->x_private);
     
    434435 */
    435436bool_t
    436 xdrrec_eof(xdrs)
    437         XDR *xdrs;
     437xdrrec_eof(
     438        XDR *xdrs)
    438439{
    439440        register RECSTREAM *rstrm = (RECSTREAM *)(xdrs->x_private);
     
    458459 */
    459460bool_t
    460 xdrrec_endofrecord(xdrs, sendnow)
    461         XDR *xdrs;
    462         bool_t sendnow;
     461xdrrec_endofrecord(
     462        XDR *xdrs,
     463        bool_t sendnow)
    463464{
    464465        register RECSTREAM *rstrm = (RECSTREAM *)(xdrs->x_private);
     
    484485 */
    485486static bool_t
    486 flush_out(rstrm, eor)
    487         register RECSTREAM *rstrm;
    488         bool_t eor;
     487flush_out(
     488        RECSTREAM *rstrm,
     489        bool_t eor)
    489490{
    490491        register u_int32_t eormask = (eor == TRUE) ? LAST_FRAG : 0;
     
    503504
    504505static bool_t  /* knows nothing about records!  Only about input buffers */
    505 fill_input_buf(rstrm)
    506         register RECSTREAM *rstrm;
     506fill_input_buf(
     507        RECSTREAM *rstrm)
    507508{
    508509        register caddr_t where;
     
    523524
    524525static bool_t  /* knows nothing about records!  Only about input buffers */
    525 get_input_bytes(rstrm, addr, len)
    526         register RECSTREAM *rstrm;
    527         register caddr_t addr;
    528         register int len;
     526get_input_bytes(
     527        RECSTREAM *rstrm,
     528        caddr_t addr,
     529        int len)
    529530{
    530531        register long current;
     
    547548
    548549static bool_t  /* next two bytes of the input stream are treated as a header */
    549 set_input_fragment(rstrm)
    550         register RECSTREAM *rstrm;
     550set_input_fragment(
     551        RECSTREAM *rstrm)
    551552{
    552553        u_int32_t header;
     
    571572
    572573static bool_t  /* consumes input bytes; knows nothing about records! */
    573 skip_input_bytes(rstrm, cnt)
    574         register RECSTREAM *rstrm;
    575         long cnt;
     574skip_input_bytes(
     575        RECSTREAM *rstrm,
     576        long cnt)
    576577{
    577578        register long current;
     
    592593
    593594static u_int
    594 fix_buf_size(s)
    595         register u_int s;
     595fix_buf_size(
     596        u_int s)
    596597{
    597598
Note: See TracChangeset for help on using the changeset viewer.