~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to lib/erl_interface/src/misc/ei_portio.c

  • Committer: Bazaar Package Importer
  • Author(s): Erlang Packagers, Sergei Golovan
  • Date: 2006-12-03 17:07:44 UTC
  • mfrom: (2.1.11 feisty)
  • Revision ID: james.westby@ubuntu.com-20061203170744-rghjwupacqlzs6kv
Tags: 1:11.b.2-4
[ Sergei Golovan ]
Fixed erlang-base and erlang-base-hipe prerm scripts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
295
295
    return (res < 0) ? -1 : res;
296
296
}
297
297
 
298
 
static int ei_write_t(int fd, char* buf, int len, unsigned  ms)
 
298
static int ei_write_t(int fd, const char* buf, int len, unsigned  ms)
299
299
{
300
300
    int res;
301
301
    if (ms != 0) {
345
345
 
346
346
/* write entire buffer on fd  or fail (setting errno)
347
347
 */
348
 
int ei_write_fill_t(int fd, char *buf, int len, unsigned ms)
 
348
int ei_write_fill_t(int fd, const char *buf, int len, unsigned ms)
349
349
{
350
350
    int i,done=0;
351
351
    if (ms != 0U) {
367
367
    return (len);
368
368
}
369
369
 
370
 
int ei_write_fill(int fd, char *buf, int len) 
 
370
int ei_write_fill(int fd, const char *buf, int len) 
371
371
{
372
372
    return ei_write_fill_t(fd, buf, len, 0);
373
373
}