pike.git / src / modules / _Stdio / file.c

version» Context lines:

pike.git/src/modules/_Stdio/file.c:5204:    * when getting a mapped address (::FFFF:a.b.c.d).    */    if ((!strncmp(buffer, "::FFFF:", 7) || !strncmp(buffer, "::ffff:", 7)) &&    !strchr(buffer + 7, ':')) {    push_text(buffer+7);    } else {    push_text(buffer);    }   }    - /*! @decl Stdio.File `<<(string data) -  *! @decl Stdio.File `<<(mixed data) -  *! -  *! Write some data to a file. -  *! -  *! If @[data] is not a string, it is casted to string, and then -  *! written to the file. -  *! -  *! @note -  *! Throws an error if not all data could be written. -  *! -  *! @seealso -  *! @[write()] -  */ - static void file_lsh(INT32 args) - { -  ptrdiff_t len; -  if(args != 1) -  SIMPLE_WRONG_NUM_ARGS_ERROR("`<<", 1); -  -  if(TYPEOF(Pike_sp[-1]) != PIKE_T_STRING) -  { -  ref_push_type_value(string_type_string); -  stack_swap(); -  f_cast(); -  } -  -  len=Pike_sp[-1].u.string->len; -  file_write(1); -  if(len != Pike_sp[-1].u.integer) Pike_error("Stdio.File << failed.\n"); -  pop_stack(); -  -  push_object(this_object()); - } -  +    /*! @decl void create(string filename)    *! @decl void create(string filename, string mode)    *! @decl void create(string filename, string mode, int access)    *! @decl void create(int fd)    *! @decl void create(int fd, string mode)    *!    *! See @[open()].    *!    *! @seealso    *! @[open()]