Changeset 828 for trunk/src


Ignore:
Timestamp:
Oct 11, 2003, 1:38:11 AM (23 years ago)
Author:
bird
Message:

Fixed warnings.

Location:
trunk/src/emx
Files:
1 added
94 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/termios.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r827 r828  
    151151int tcsetattr (int, int, __const__ struct termios *);
    152152
     153
     154
     155
     156
    153157#if defined (__cplusplus)
    154158}
  • trunk/src/emx/src/emxbind/fixup.c

    • Property cvs2svn:cvs-rev changed from 1.5 to 1.6
    r827 r828  
    312312   is a number to be added to the fixup target. */
    313313
    314 void ref_proc (const char *sym_name, int obj, dword addr, int mod,
    315                const char *name, int ord, int fixup_type, dword add)
     314void ref_proc (const char *sym_name, int obj, dword addr, int mod,
     315               const char *name, int ord, int fixup_type, dword add)
    316316{
    317317  grow_fixup ();
     
    508508   records. */
    509509
    510 void import_reloc (const struct relocation_info *table, long tab_size,
    511                    int seg_obj, dword seg_base, const byte *image,
    512                    dword image_size)
     510void import_reloc (const struct relocation_info *table, long tab_size,
     511                   int seg_obj, dword seg_base, const byte *image,
     512                   dword image_size)
    513513{
    514514  int reloc_count, i, j, len, ok;
  • trunk/src/emx/src/emxexp/emxexp.c

    • Property cvs2svn:cvs-rev changed from 1.11 to 1.12
    r827 r828  
    3838};
    3939
    40 /* if != 0 we're supposed to add ordinals to the symbols. */ 
     40/* if != 0 we're supposed to add ordinals to the symbols. */
    4141static int ordinal = 0;
    42 /* if set the ordinals is to be sequentially assigned with no 
     42/* if set the ordinals is to be sequentially assigned with no
    4343   conveniency gaps or anything. */
    4444static int ordinal_seq = FALSE;
     
    4646static int bss_flag = FALSE;
    4747static int weak_flag = FALSE;
    48 /* When clear we'll do sorting and handle make sure there no duplicate weak 
    49    names and such. If set we'll just dump the publics and comdefs as we 
     48/* When clear we'll do sorting and handle make sure there no duplicate weak
     49   names and such. If set we'll just dump the publics and comdefs as we
    5050   used to do. */
    5151static int legacy_mode = FALSE;
     
    6969
    7070/* Aout globals */
    71 static char *aout_segnames[] = 
    72 {   
    73     NULL,     NULL,     /*  0 N_UNDF */   
    74     NULL,     NULL,     /*  2 N_ABS */ 
    75     "TEXT32", "TEXT32", /*  4 N_TEXT */   
    76     "DATA32", "DATA32", /*  6 N_DATA */   
    77     "BSS32",  "BSS32",  /*  8 N_BSS */     
     71static char *aout_segnames[] =
     72{
     73    NULL,     NULL,     /*  0 N_UNDF */
     74    NULL,     NULL,     /*  2 N_ABS */
     75    "TEXT32", "TEXT32", /*  4 N_TEXT */
     76    "DATA32", "DATA32", /*  6 N_DATA */
     77    "BSS32",  "BSS32",  /*  8 N_BSS */
    7878    NULL,     NULL,     /*  a */
    7979    NULL,     NULL,     /*  c,  d N_WEAKU */
     
    8383};
    8484
    85 /* Per segment name sorting 
     85/* Per segment name sorting
    8686   Symbols are orginized in two constructs. One is a global symbol name
    87    string pool kind thing. The other is per segment. 
    88    
     87   string pool kind thing. The other is per segment.
     88
    8989   Weak symbols and communial data may be overridden. In those cases we'll
    9090   unlink the symbol and reinstert it to ensure that we don't get it in the
     
    9999};
    100100
    101 /* LIFO of modules. (only so we can free it) 
     101/* LIFO of modules. (only so we can free it)
    102102   The head module is the current one. */
    103 struct new_module      *new_modules;   
     103struct new_module      *new_modules;
    104104
    105105
     
    113113    unsigned            fweak:1;        /* Weak symbol. */
    114114    unsigned            fcomm:1;        /* Communial data. */
    115     unsigned            fdummy:1;       /* Dummy node, the one which is first & last 
    116                                            in the lists to save use from any 
     115    unsigned            fdummy:1;       /* Dummy node, the one which is first & last
     116                                           in the lists to save use from any
    117117                                           unpleasant list head/tail thinking. */
    118 }; 
     118};
    119119
    120120/* List of segments. */
     
    152152   used like malloc(), but we don't have to check the return value. */
    153153
    154 void *xmalloc (size_t n)
     154void *xmalloc (size_t n)
    155155{
    156156  void *p;
     
    167167   return value. */
    168168
    169 void *xrealloc (void *ptr, size_t n)
     169void *xrealloc (void *ptr, size_t n)
    170170{
    171171  void *p;
     
    182182   return value. */
    183183
    184 char *xstrdup (const char *s)
     184char *xstrdup (const char *s)
    185185{
    186186  char *p;
     
    211211
    212212
    213 /* New export function. This will filter out duplicated BSS32 and weak 
    214    symbols and insert the symbols into arrays according to segment 
     213/* New export function. This will filter out duplicated BSS32 and weak
     214   symbols and insert the symbols into arrays according to segment
    215215   value. new_print() will be called when all the input files are
    216216   processed and do the actual printing and ordinal assignments. */
    217    
     217
    218218static void new_export (const char *name, const char *segname, int fweak, int fcomm)
    219219{
     
    243243      new_hashtable[uhash] = psym;
    244244    }
    245   else 
     245  else
    246246    {/* existing. look for overrided symbols (weak/comm) and ignore duplicates. */
    247247      if (fweak || fcomm)
     
    268268      psym->fweak = fweak;
    269269      psym->fdummy = 0;
    270       psym->mod = new_modules;               
     270      psym->mod = new_modules;
    271271
    272272
    273273      /* find the segment */
    274274      for (psymgrp = new_symgrps; psymgrp; psymgrp = psymgrp->next)
    275         if (   psymgrp->name == segname 
     275        if (   psymgrp->name == segname
    276276            || (segname && psymgrp->name && !strcmp(psymgrp->name, segname))
    277277              )
     
    307307
    308308
    309 /* Print the publics. (new method) 
    310 
    311    When -o is not specified with number, to leave a round number of unused 
     309/* Print the publics. (new method)
     310
     311   When -o is not specified with number, to leave a round number of unused
    312312   ordinals between the segments out of convenience mostly. */
    313313
     
    318318    {
    319319      struct new_symbol  *psym;
    320      
     320
    321321      /* print a decent header */
    322322      if (psymgrp->name)
    323         fprintf (phfile, "  ; segment %s\n", psymgrp->name); 
     323        fprintf (phfile, "  ; segment %s\n", psymgrp->name);
    324324      else
    325         fprintf (phfile, "  ; segment noname\n"); 
     325        fprintf (phfile, "  ; segment noname\n");
    326326
    327327      /* enumerate symbols */
     
    349349
    350350          /* comments - the first one might be used by emximp later... */
    351           fprintf (phfile, "  ; magicseg='%s' len=%d", 
     351          fprintf (phfile, "  ; magicseg='%s' len=%d",
    352352                   psymgrp->name ? psymgrp->name : "", strlen(psym->name));
    353353          if (psym->fweak)
     
    359359
    360360          fputc ('\n', phfile);
    361         } 
    362      
     361        }
     362
    363363      /* skip a line and some ordinals if we're allowed */
    364364      fputc ('\n', phfile);
     
    464464          export (name);
    465465        else
    466           new_export (name, aout_segnames[sym_ptr[i].n_type], 
    467                       sym_ptr[i].n_type >= N_WEAKU && sym_ptr[i].n_type >= N_WEAKB, 
     466          new_export (name, aout_segnames[sym_ptr[i].n_type],
     467                      sym_ptr[i].n_type >= N_WEAKU && sym_ptr[i].n_type >= N_WEAKB,
    468468                      FALSE);
    469469      }
     
    476476          export_bss (name);
    477477        else
    478           new_export (name, aout_segnames[sym_ptr[i].n_type], 
    479                       sym_ptr[i].n_type >= N_WEAKU && sym_ptr[i].n_type >= N_WEAKB, 
     478          new_export (name, aout_segnames[sym_ptr[i].n_type],
     479                      sym_ptr[i].n_type >= N_WEAKU && sym_ptr[i].n_type >= N_WEAKB,
    480480                      TRUE);
    481481      }
     
    691691
    692692static void omf_segdef (void)
    693 { 
     693{
    694694  byte      flags;
    695695  unsigned  nameidx;
    696696  unsigned  classidx;
    697697  unsigned  ovlidx;
    698  
     698
    699699  /* all we want the the segment name */
    700700  flags = get_byte ();                  /* segment attributes */
     
    705705    }
    706706  if (rec_type & REC32)                 /* segment length */
    707     get_dword ();                       
     707    get_dword ();
    708708  else
    709709    get_word ();
     
    773773        }
    774774    } while (rec.rec_type != MODEND && rec_type != (MODEND|REC32));
    775    
     775
    776776   /* cleanup (entry 0 isn't used) */
    777777   for (i = 1; i < num_lnames; i++)
  • trunk/src/emx/src/emximp/emximp.c

    • Property cvs2svn:cvs-rev changed from 1.6 to 1.7
    r827 r828  
    159159
    160160
    161 void *xmalloc (size_t n)
     161void *xmalloc (size_t n)
    162162{
    163163  void *p;
     
    170170
    171171
    172 void *xrealloc (void *p, size_t n)
     172void *xrealloc (void *p, size_t n)
    173173{
    174174  void *q;
     
    181181
    182182
    183 char *xstrdup (const char *s)
     183char *xstrdup (const char *s)
    184184{
    185185  char *p;
  • trunk/src/emx/src/emxomf/emxaout.c

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r827 r828  
    249249   string, all other arguments are formatted according to FMT. */
    250250
    251 void warning (const char *fmt, ...)
     251void warning (const char *fmt, ...)
    252252{
    253253  va_list arg_ptr;
  • trunk/src/emx/src/emxomf/listomf.c

    • Property cvs2svn:cvs-rev changed from 1.11 to 1.12
    r827 r828  
    20832083{
    20842084  int group, segment;
    2085   dword i, addr, files, line, stmt, lst_line, first_col, num_cols;
     2085  dword , line, stmt, lst_line, first_col, num_cols;
    20862086  word src_line, index;
    20872087  byte reserved;
     
    21922192          num_cols = get_dword ();
    21932193          linnum_files = get_dword ();
    2194           printf ("  first column: %lu, columns: %lu, number of files: %ld\n",
    2195                   first_col, num_cols, files);
     2194          printf ("  first column: %lu, columns: %lu, number of files: %d\n",
     2195                  first_col, num_cols, files);
    21962196          linnum_file_idx = 0;
    21972197        }
     
    21992199      for (; linnum_file_idx < linnum_files && rec_idx < rec_len; ++linnum_file_idx)
    22002200        {
    2201           printf ("  #%lu: ", linnum_file_idx + 1);
     2201          printf ("  #%: ", linnum_file_idx + 1);
    22022202          get_string (name);
    22032203          show_string (name);
  • trunk/src/emx/src/emxomf/stripomf.c

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r827 r828  
    5757 * @param   pszFile     Filename.
    5858 */
    59 const char * mybasename(const char *pszFile)
     59const char * mybasename(const char *pszFile)
    6060{
    6161    const char *psz;
  • trunk/src/emx/src/lib/app/stdio.c

    • Property cvs2svn:cvs-rev changed from 1.5 to 1.6
    r827 r828  
    4141   _CRT_init() via the __crtinit1__ set vector. */
    4242
     43
    4344void _init_streams (void)
    4445{
     
    115116   print something.  (ISO 9899-1990 lets this undefined.) */
    116117
     118
    117119void _exit_streams (void)
    118120{
  • trunk/src/emx/src/lib/conv/atofl.c

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r827 r828  
    66#include <math.h>
    77
     8
     9
     10
    811long double _STD(atofl) (const char *s)
    912{
  • trunk/src/emx/src/lib/conv/smalatod.c

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r827 r828  
    99#include <ctype.h>
    1010#include <errno.h>
     11
    1112#include <emx/float.h>
    1213#include <sys/locale.h>
  • trunk/src/emx/src/lib/conv/smaldtoa.c

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r827 r828  
    66#include <math.h>
    77#include <float.h>
     8
    89#include <emx/float.h>
    910
  • trunk/src/emx/src/lib/emxload/emxloadl.c

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r827 r828  
    66#include <os2emx.h>             /* Define FALSE */
    77#include <emx/emxload.h>
     8
    89
    910int _emxload_list_start (void)
  • trunk/src/emx/src/lib/iconv/iconv.c

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r827 r828  
    1919#include <errno.h>
    2020#include <alloca.h>
    21 
    22 extern void
    23 __convert_codepage (const char *cp, UniChar *ucp);
     21#include <emx/locale.h>
    2422
    2523iconv_t
  • trunk/src/emx/src/lib/io/_fdinit.c

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r827 r828  
    2323   _CRT_init() via the __crtinit1__ set vector. */
    2424
     25
    2526void _init1_fdinit (void)
    2627{
  • trunk/src/emx/src/lib/io/_tmp.c

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r827 r828  
    1919   _CRT_init() via the __crtinit1__ set vector. */
    2020
     21
    2122void _init1_tmp (void)
    2223{
  • trunk/src/emx/src/lib/io/eadread.c

    • Property cvs2svn:cvs-rev changed from 1.5 to 1.6
    r827 r828  
    150150      i = strlen(path) + 1;
    151151      fileref = alloca(i);
    152       memcpy(fileref, path, i);
     152      memcpy(fileref, path, i);
    153153    }
    154154  else
  • trunk/src/emx/src/lib/libc.def

    • Property cvs2svn:cvs-rev changed from 1.22 to 1.23
    r827 r828  
    126126    "__umalloc" @146
    127127    "__um_alloc_no_lock" @147
    128     "__um_crumb_alloc" @148
     128    "__" @148
    129129    "__um_crumb_free_maybe_lock" @149
    130130    "__um_default_alloc" @150
     
    848848    "__hrealloc" @868
    849849    "__lcalloc" @869
    850     "__linitheap" @870
  • trunk/src/emx/src/lib/locale/__convcp.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r827 r828  
    1111#include <string.h>
    1212#include <uconv.h>
     13
    1314
    1415/* Convert an encoding name to te form understood by UniCreateUconvObject.  */
    15 void
    16 __convert_codepage (const char *cp, UniChar *ucp)
     16void __convert_codepage (const char *cp, UniChar *ucp)
    1717{
    1818  size_t sl = 0;
  • trunk/src/emx/src/lib/locale/__do_uni.c

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r827 r828  
    1616#include <malloc.h>
    1717#include <string.h>
     18
    1819
    1920void __do_Unicode (UconvObject *uconv, char *s, void *arg,
  • trunk/src/emx/src/lib/locale/__from_ucs.c

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r827 r828  
    1212#include <os2emx.h>
    1313#include <uconv.h>
     14
    1415
    1516int __from_ucs (UconvObject uconv_obj, UniChar c, unsigned char *sbcs,
  • trunk/src/emx/src/lib/locale/__to_ucs.c

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r827 r828  
    1212#include <os2emx.h>
    1313#include <uconv.h>
     14
    1415
    1516int __to_ucs (UconvObject uconv_obj, const unsigned char *sbcs, size_t len,
  • trunk/src/emx/src/lib/locale/isxxx.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r827 r828  
    1212#include "libc-alias.h"
    1313#include <sys/locale.h>
     14
     15
     16
     17
     18
     19
     20
     21
     22
     23
     24
     25
     26
     27
    1428
    1529int isalnum (int _c)
  • trunk/src/emx/src/lib/locale/locale_ctype.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r827 r828  
    6363};
    6464
     65
     66
     67
    6568int tolower (int _c)
    6669{ return __locale_ctype.locase [_c & 0xff]; }
  • trunk/src/emx/src/lib/malloc/expand.c

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r827 r828  
    1010#include <emx/umalloc.h>
    1111
     12
     13
     14
    1215void *_STD(expand) (void *block, size_t new_size)
    1316{
  • trunk/src/emx/src/lib/malloc/heapwalk.c

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r827 r828  
    22
    33#include "libc-alias.h"
     4
    45#include <umalloc.h>
    56#include <emx/umalloc.h>
  • trunk/src/emx/src/lib/malloc/ialloc.c

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r827 r828  
    1414/* ALIGN must be a power of two. */
    1515
    16 void *_um_crumb_alloc (struct _um_crateset *crateset, size_t size,
    17                        size_t align, unsigned flags)
     16void *_um_crumb_alloc (struct _um_crateset *crateset, size_t size,
     17                       size_t align, unsigned flags)
    1818{
    1919  void *result;
     
    159159              assert (_UM_TILE_OK (block, size));
    160160            }
    161    
     161
    162162          /* Remove the lump from the free list. */
    163163
  • trunk/src/emx/src/lib/mbyte/mblen.c

    • Property cvs2svn:cvs-rev changed from 1.5 to 1.6
    r827 r828  
    88    to by s. If s is NULL, the shift state is reset to the initial state.
    99    At most n bytes at s are examined; a multibyte character consisting of
    10     more than n bytes is deemed invalid. 
     10    more than n bytes is deemed invalid.
    1111
    1212    If s is NULL, mblen() returns a non-zero value (if state-dependent encoding
     
    1515    the number of bytes comprising the multibyte character pointed to by s
    1616    (if there is a valid multibyte character), or -1 (if there is not a valid
    17     multibyte character). 
     17    multibyte character).
    1818
    1919    Affected by LC_CTYPE locale setting.
     
    2525#define __INTERNAL_DEFS
    2626#include "libc-alias.h"
     27
    2728#include <sys/locale.h>
    2829
  • trunk/src/emx/src/lib/mbyte/mbstowcs.c

    • Property cvs2svn:cvs-rev changed from 1.5 to 1.6
    r827 r828  
    2828#include "libc-alias.h"
    2929#include <sys/locale.h>
     30
    3031#include <string.h>
    3132
  • trunk/src/emx/src/lib/mbyte/mbtowc.c

    • Property cvs2svn:cvs-rev changed from 1.6 to 1.7
    r827 r828  
    3131#include <sys/locale.h>
    3232#include <string.h>
     33
    3334
    3435int _STD(mbtowc) (wchar_t *pwc, const char *s, size_t n)
  • trunk/src/emx/src/lib/mbyte/wcstombs.c

    • Property cvs2svn:cvs-rev changed from 1.5 to 1.6
    r827 r828  
    2828#include <sys/locale.h>
    2929#include <string.h>
     30
    3031
    3132size_t _STD(wcstombs) (char *s, const wchar_t *pwcs, size_t n)
  • trunk/src/emx/src/lib/misc/abs.c

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r827 r828  
    22
    33#include "libc-alias.h"
     4
     5
    46
    57int _STD(abs) (int n)
  • trunk/src/emx/src/lib/misc/basename.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r827 r828  
    1616#include <string.h>
    1717#include <ctype.h>
     18
     19
    1820
    1921char *_STD(basename) (char *pathname)
  • trunk/src/emx/src/lib/misc/labs.c

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r827 r828  
    22
    33#include "libc-alias.h"
     4
     5
    46
    57long _STD(labs) (long n)
  • trunk/src/emx/src/lib/misc/os2bad.c

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r827 r828  
    77static char msg[] = "\r\nOS/2 API call not fixed up\r\n";
    88
     9
     10
    911void _os2_bad (void)
    1012{
  • trunk/src/emx/src/lib/misc/pwd.c

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r827 r828  
    1414  _fnslashify (dst);
    1515}
     16
     17
     18
    1619
    1720struct passwd *_STD(getpw) (uid_t uid, const char *name)
  • trunk/src/emx/src/lib/os2_386/revision.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r827 r828  
    55
    66static char const revision[] = "60";
     7
     8
     9
    710
    811ULONG emx_revision (PCSZ name, LONG argc, const RXSTRING *argv,
  • trunk/src/emx/src/lib/os2_386/safe/SafeDosCreatePipe.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r827 r828  
    2727
    2828
     29
    2930ULONG APIENTRY SafeDosCreatePipe(PHFILE phfReadHandle, PHFILE phfWriteHandle, ULONG ulPipeSize)
    3031{
  • trunk/src/emx/src/lib/os2_386/safe/SafeDosDupHandle.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r827 r828  
    2727
    2828
     29
    2930ULONG APIENTRY SafeDosDupHandle(HFILE hFile, PHFILE phFile)
    3031{
    3132    ULONG rc;
    3233    HFILE   hf1;
    33     PHFILE  phf1;
     34    PHFILE  phf1;
    3435
    3536    if (phFile)
  • trunk/src/emx/src/lib/os2_386/safe/SafeDosForceDelete.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r827 r828  
    2727#include "safe.h"
    2828
     29
    2930ULONG APIENTRY SafeDosForceDelete(PCSZ pszFileName)
    3031{
  • trunk/src/emx/src/lib/os2_386/safe/SafeDosOpenL.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r827 r828  
    2626#include <os2.h>
    2727#include "safe.h"
     28
     29
     30
     31
    2832
    2933ULONG APIENTRY SafeDosOpenL(PCSZ pszFileName, PHFILE phFile, PULONG pulAction,
  • trunk/src/emx/src/lib/os2_386/safe/SafeDosQueryFHState.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r827 r828  
    2727
    2828
     29
    2930ULONG APIENTRY SafeDosQueryFHState(HFILE hFile, PULONG pulMode)
    3031{
  • trunk/src/emx/src/lib/os2_386/safe/SafeDosQueryHType.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r827 r828  
    2727
    2828
     29
    2930ULONG APIENTRY SafeDosQueryHType(HFILE hFile, PULONG pulType, PULONG pulAttr)
    3031{
  • trunk/src/emx/src/lib/os2_386/safe/SafeDosQueryNPHState.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r827 r828  
    2727
    2828
     29
    2930ULONG APIENTRY SafeDosQueryNPHState(HPIPE hpipe, PULONG pulState)
    3031{
  • trunk/src/emx/src/lib/os2_386/safe/SafeDosSetDateTime.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r827 r828  
    2828
    2929
     30
    3031ULONG APIENTRY SafeDosSetDateTime(__const__ DATETIME *pdt)
    3132{
  • trunk/src/emx/src/lib/os2_386/safe/SafeDosSetFilePtr.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r827 r828  
    2727
    2828
     29
    2930ULONG APIENTRY SafeDosSetFilePtr(HFILE hFile, LONG lOffset, ULONG ulOrigin, PULONG pulPos)
    3031{
  • trunk/src/emx/src/lib/os2_386/safe/SafeDosSetFilePtrL.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r827 r828  
    2727
    2828
     29
    2930ULONG APIENTRY SafeDosSetFilePtrL(HFILE hFile, LONGLONG llOffset, ULONG ulOrigin, PLONGLONG pllPos)
    3031{
     
    3940    }
    4041
    41     rc = DosSetFilePtr(hFile, llOffset, ulOrigin, pll1);
     42    rc = DosSetFilePtr(hFile, llOffset, ulOrigin, pll1);
    4243
    4344    if (pllPos)
  • trunk/src/emx/src/lib/os2_386/safe/SafeDosWaitChild.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r827 r828  
    2727
    2828
     29
    2930ULONG APIENTRY SafeDosWaitChild(ULONG ulAction, ULONG ulWait, PRESULTCODES pReturnCodes, PPID ppidOut, PID pidIn)
    3031{
  • trunk/src/emx/src/lib/os2_386/safe/SafeDosWaitNPipe.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r827 r828  
    2727#include "safe.h"
    2828
     29
    2930ULONG APIENTRY SafeDosWaitNPipe(PCSZ pszName, ULONG ulTimeout)
    3031{
  • trunk/src/emx/src/lib/process/beginthr.c

    • Property cvs2svn:cvs-rev changed from 1.5 to 1.6
    r827 r828  
    3535struct _thread *_thread_tab[MAX_THREADS+1] = {NULL, &thread_1};
    3636
     37
     38
    3739
    3840struct _thread *__alloc_thread (void)
  • trunk/src/emx/src/lib/process/rmutex.c

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r827 r828  
    147147
    148148
     149
    149150void _rmutex_fork (void)
    150151{
  • trunk/src/emx/src/lib/startup/cleanup.c

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r827 r828  
    22
    33#include <stdio.h>
     4
    45
    56extern int __crtexit1__;
  • trunk/src/emx/src/lib/startup/ctor1.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r827 r828  
    33#include <stdlib.h>
    44
     5
    56void __ctordtorInit1 (int *ptr)
    67{
  • trunk/src/emx/src/lib/startup/dllinit.c

    • Property cvs2svn:cvs-rev changed from 1.9 to 1.10
    r827 r828  
    55
    66#include <emx/startup.h>
     7
    78
    89/**
  • trunk/src/emx/src/lib/startup/dtor1.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r827 r828  
    22
    33#include <stdlib.h>
     4
    45
    56void __ctordtorTerm1 (int *ptr)
  • trunk/src/emx/src/lib/startup/gmon.c

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r827 r828  
    5959#define MSG "No space for profiling buffer(s)\n"
    6060
    61 /* Forward definition */
    62 void moncontrol();
     61/* Forward definition - bird: added prototypes to shut up GCC warnings. */
     62void moncontrol(int mode);
     63void monstartup(char *lowpc, char *highpc);
     64void _mcleanup(void);
     65void _mcount(void);
     66int     profil(char *, int, int, int);
     67
    6368
    6469void
  • trunk/src/emx/src/lib/startup/startup.c

    • Property cvs2svn:cvs-rev changed from 1.5 to 1.6
    r827 r828  
    88#include <emx/io.h>
    99#include <emx/syscalls.h>
     10
    1011
    1112/* See app/iodata.c. */
  • trunk/src/emx/src/lib/str/strerror.c

    • Property cvs2svn:cvs-rev changed from 1.7 to 1.8
    r827 r828  
    33#include "libc-alias.h"
    44#include <stdio.h>
     5
    56#include <string.h>
    67#include <emx/thread.h>
  • trunk/src/emx/src/lib/sys/__exit.c

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r827 r828  
    44#define INCL_FSMACROS
    55#include <os2emx.h>
     6
    67
    78void __exit (int rc)
  • trunk/src/emx/src/lib/sys/__getdrive.c

    • Property cvs2svn:cvs-rev changed from 1.5 to 1.6
    r827 r828  
    66#include <emx/syscalls.h>
    77#include "syscalls.h"
     8
     9
    810
    911char _getdrive (void)
  • trunk/src/emx/src/lib/sys/__init.c

    • Property cvs2svn:cvs-rev changed from 1.9 to 1.10
    r827 r828  
    2323#include <emx/startup.h>
    2424#include <emx/syscalls.h>
     25
    2526#include <alloca.h>
    2627
  • trunk/src/emx/src/lib/sys/__initdll.c

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r827 r828  
    2828#include <emx/startup.h>
    2929#include <emx/syscalls.h>
     30
    3031#include <alloca.h>
    3132
  • trunk/src/emx/src/lib/sys/__newthread.c

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r827 r828  
    77#include <emx/umalloc.h>
    88#include "syscalls.h"
     9
    910
    10 /* Also used by 386/systhrea.s */
    1111
    1212int __sys_newthread (int tid, int *errnop)
  • trunk/src/emx/src/lib/sys/__open.c

    • Property cvs2svn:cvs-rev changed from 1.5 to 1.6
    r827 r828  
    1212#include <limits.h>
    1313#include <emx/syscalls.h>
     14
    1415#include "syscalls.h"
    1516
  • trunk/src/emx/src/lib/sys/brk.c

    • Property cvs2svn:cvs-rev changed from 1.5 to 1.6
    r827 r828  
    44#include <os2emx.h>
    55#include <errno.h>
     6
    67#include <sys/builtin.h>
    78#include <sys/fmutex.h>
  • trunk/src/emx/src/lib/sys/chdrive.c

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r827 r828  
    66#include <emx/syscalls.h>
    77#include "syscalls.h"
     8
     9
     10
    811
    912int _STD(chdrive) (char drive)
  • trunk/src/emx/src/lib/sys/execname.c

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r827 r828  
    55#define INCL_FSMACROS
    66#include <os2emx.h>
     7
    78#include <string.h>
    89#include <emx/syscalls.h>
  • trunk/src/emx/src/lib/sys/filesys.c

    • Property cvs2svn:cvs-rev changed from 1.5 to 1.6
    r827 r828  
    33#include "libc-alias.h"
    44#include <string.h>
     5
    56#include <errno.h>
    67#define INCL_FSMACROS
  • trunk/src/emx/src/lib/sys/fsync.c

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r827 r828  
    44#define INCL_FSMACROS
    55#include <os2emx.h>
     6
    67#include <emx/syscalls.h>
    78#include "syscalls.h"
  • trunk/src/emx/src/lib/sys/getpid.c

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r827 r828  
    22
    33#include "libc-alias.h"
     4
    45#include <os2emx.h>
    56#include "syscalls.h"
  • trunk/src/emx/src/lib/sys/getppid.c

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r827 r828  
    22
    33#include "libc-alias.h"
     4
    45#include <os2emx.h>
    56#include "syscalls.h"
  • trunk/src/emx/src/lib/sys/heapdump.c

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r827 r828  
    44#include "syscalls.h"
    55#include <stdio.h>
     6
     7
    68
    79void _sys_dump_heap_objs (FILE *f)
  • trunk/src/emx/src/lib/sys/remove.c

    • Property cvs2svn:cvs-rev changed from 1.7 to 1.8
    r827 r828  
    77#include <os2safe.h>
    88#include <os2emx.h>
     9
    910#include <emx/syscalls.h>
    1011#include "syscalls.h"
  • trunk/src/emx/src/lib/sys/rename.c

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r827 r828  
    44#define INCL_FSMACROS
    55#include <os2emx.h>
     6
    67#include <emx/syscalls.h>
    78#include "syscalls.h"
  • trunk/src/emx/src/lib/sys/sbrk.c

    • Property cvs2svn:cvs-rev changed from 1.5 to 1.6
    r827 r828  
    88#include <sys/uflags.h>
    99#include <sys/types.h>
     10
    1011#include <emx/syscalls.h>
    1112#include "syscalls.h"
  • trunk/src/emx/src/lib/sys/scrsize.c

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r827 r828  
    55#define INCL_FSMACROS
    66#include <os2emx.h>
     7
    78#include <os2thunk.h>
    89#include <emx/syscalls.h>
  • trunk/src/emx/src/lib/sys/sleep.c

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r827 r828  
    55#define INCL_DOSPROCESS
    66#define INCL_FSMACROS
     7
    78#include <os2emx.h>
    89#include <emx/syscalls.h>
  • trunk/src/emx/src/lib/sys/sleep2.c

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r827 r828  
    55#define INCL_FSMACROS
    66#include <os2emx.h>
     7
    78#include <emx/syscalls.h>
    89#include "syscalls.h"
  • trunk/src/emx/src/lib/sys/syscalls.h

    • Property cvs2svn:cvs-rev changed from 1.6 to 1.7
    r827 r828  
    188188/** @group Init functions
    189189 * @{ */
     190
    190191extern int              __init_dll(int fDefaultHeapInHighMem);
    191192extern void volatile    _sys_init_ret(void *stack);
  • trunk/src/emx/src/lib/sys/uflags.c

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r827 r828  
    22
    33#include "libc-alias.h"
     4
    45#include "syscalls.h"
    56
  • trunk/src/emx/src/lib/sys/umask.c

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r827 r828  
    33#include "libc-alias.h"
    44#include <emx/syscalls.h>
     5
    56#include "syscalls.h"
    67
    7 int _STD(umask) (int pmode)
     8t _STD(umask) (int pmode)
    89{
    9   int old;
     10  t old;
    1011
    1112  old = _sys_umask;
  • trunk/src/emx/src/libiconv/iconv.c

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r827 r828  
    1919#include <errno.h>
    2020#include <alloca.h>
    21 
    22 extern void
    23 __convert_codepage (const char *cp, UniChar *ucp);
     21#include <emx/locale.h>
    2422
    2523iconv_t
  • trunk/src/emx/src/libos2/revision.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r827 r828  
    55
    66static char const revision[] = "60";
     7
     8
     9
    710
    811ULONG emx_revision (PCSZ name, LONG argc, const RXSTRING *argv,
  • trunk/src/emx/src/libos2/safe/SafeDosCreatePipe.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r827 r828  
    2727
    2828
     29
    2930ULONG APIENTRY SafeDosCreatePipe(PHFILE phfReadHandle, PHFILE phfWriteHandle, ULONG ulPipeSize)
    3031{
  • trunk/src/emx/src/libos2/safe/SafeDosDupHandle.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r827 r828  
    2727
    2828
     29
    2930ULONG APIENTRY SafeDosDupHandle(HFILE hFile, PHFILE phFile)
    3031{
    3132    ULONG rc;
    3233    HFILE   hf1;
    33     PHFILE  phf1;
     34    PHFILE  phf1;
    3435
    3536    if (phFile)
  • trunk/src/emx/src/libos2/safe/SafeDosForceDelete.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r827 r828  
    2727#include "safe.h"
    2828
     29
    2930ULONG APIENTRY SafeDosForceDelete(PCSZ pszFileName)
    3031{
  • trunk/src/emx/src/libos2/safe/SafeDosOpenL.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r827 r828  
    2626#include <os2.h>
    2727#include "safe.h"
     28
     29
     30
     31
    2832
    2933ULONG APIENTRY SafeDosOpenL(PCSZ pszFileName, PHFILE phFile, PULONG pulAction,
  • trunk/src/emx/src/libos2/safe/SafeDosQueryFHState.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r827 r828  
    2727
    2828
     29
    2930ULONG APIENTRY SafeDosQueryFHState(HFILE hFile, PULONG pulMode)
    3031{
  • trunk/src/emx/src/libos2/safe/SafeDosQueryHType.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r827 r828  
    2727
    2828
     29
    2930ULONG APIENTRY SafeDosQueryHType(HFILE hFile, PULONG pulType, PULONG pulAttr)
    3031{
  • trunk/src/emx/src/libos2/safe/SafeDosQueryNPHState.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r827 r828  
    2727
    2828
     29
    2930ULONG APIENTRY SafeDosQueryNPHState(HPIPE hpipe, PULONG pulState)
    3031{
  • trunk/src/emx/src/libos2/safe/SafeDosSetDateTime.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r827 r828  
    2828
    2929
     30
    3031ULONG APIENTRY SafeDosSetDateTime(__const__ DATETIME *pdt)
    3132{
  • trunk/src/emx/src/libos2/safe/SafeDosSetFilePtr.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r827 r828  
    2727
    2828
     29
    2930ULONG APIENTRY SafeDosSetFilePtr(HFILE hFile, LONG lOffset, ULONG ulOrigin, PULONG pulPos)
    3031{
  • trunk/src/emx/src/libos2/safe/SafeDosSetFilePtrL.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r827 r828  
    2727
    2828
     29
    2930ULONG APIENTRY SafeDosSetFilePtrL(HFILE hFile, LONGLONG llOffset, ULONG ulOrigin, PLONGLONG pllPos)
    3031{
     
    3940    }
    4041
    41     rc = DosSetFilePtr(hFile, llOffset, ulOrigin, pll1);
     42    rc = DosSetFilePtr(hFile, llOffset, ulOrigin, pll1);
    4243
    4344    if (pllPos)
  • trunk/src/emx/src/libos2/safe/SafeDosWaitChild.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r827 r828  
    2727
    2828
     29
    2930ULONG APIENTRY SafeDosWaitChild(ULONG ulAction, ULONG ulWait, PRESULTCODES pReturnCodes, PPID ppidOut, PID pidIn)
    3031{
  • trunk/src/emx/src/libos2/safe/SafeDosWaitNPipe.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r827 r828  
    2727#include "safe.h"
    2828
     29
    2930ULONG APIENTRY SafeDosWaitNPipe(PCSZ pszName, ULONG ulTimeout)
    3031{
Note: See TracChangeset for help on using the changeset viewer.