Changeset 167 for trunk/include


Ignore:
Timestamp:
Mar 15, 2008, 12:38:20 PM (17 years ago)
Author:
katerina
Message:

First parts of changes for MODI_TXT

Location:
trunk/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/sh_unix.h

    r156 r167  
    9090/* use prelink     */
    9191#define MODI_PREL (1 << 13)
     92/* get content     */
     93#define MODI_TXT (1 << 14)
     94
     95#define SH_TXT_MAX 9200
    9296
    9397#define MASK_ALLIGNORE_  0
     
    140144  time_t           ctime;
    141145
    142   char             linkpath[PATH_MAX];
     146  char           * link_path;
    143147  mode_t           linkmode;
    144148  char             link_c_mode[11];
  • trunk/include/sh_utils.h

    r149 r167  
    190190char * sh_util_basename(const char * fullpath);
    191191
     192/* required size (including terminating NULL) for string of strlen l
     193 */
     194#define SH_B64_SIZ(l)  (1 + ((((l) + 2) / 3) * 4))
     195
     196/* return len of encoded string
     197 */
     198size_t sh_util_base64_enc (unsigned char * out, const unsigned char * instr,
     199                           size_t lin);
     200
     201/* return allocated encoded string in out, return its len
     202 */
     203size_t sh_util_base64_enc_alloc (char **out, const char *in, size_t inlen);
     204
     205/* return len of decoded string
     206 */ 
     207size_t sh_util_base64_dec (unsigned char *out, const unsigned char *in, size_t lin);
     208
     209/* return allocated decoded string in out, return its len
     210 */ 
     211size_t sh_util_base64_dec_alloc (unsigned char **out, const unsigned char *in, size_t lin);
     212
    192213#endif
  • trunk/include/slib.h

    r156 r167  
    2323#include <unistd.h>
    2424#endif
     25
     26#include "sh_string.h"
    2527
    2628/****************
     
    333335  SL_TICKET  sl_open_rdwr_trunc  (const char * fname, int priviledge_mode);
    334336
     337  /* Initialize the content sh_string.
     338   */
     339  int sl_init_content (SL_TICKET ticket, size_t size);
     340
     341  /* Get the (pointer to) the content sh_string.
     342   */
     343  sh_string * sl_get_content (SL_TICKET ticket);
     344
    335345  /* Close file.
    336346   */
Note: See TracChangeset for help on using the changeset viewer.