Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/sbi/src/os/posix.c

    r074444f r23de644  
    2929/** @file POSIX-specific code. */
    3030
    31 #include <libgen.h>
    3231#include <stdio.h>
    3332#include <stdlib.h>
     
    4039
    4140#include "os.h"
    42 
    43 /** Path to executable file via which we have been invoked. */
    44 static char *ef_path;
    4541
    4642/*
     
    7571{
    7672        return strcmp(a, b);
    77 }
    78 
    79 /** Return number of characters in string. */
    80 size_t os_str_length(const char *str)
    81 {
    82         return strlen(str);
    8373}
    8474
     
    156146        return EOK;
    157147}
    158 
    159 /** Store the executable file path via which we were executed. */
    160 void os_store_ef_path(char *path)
    161 {
    162         ef_path = path;
    163 }
    164 
    165 /** Return path to the Sysel library
    166  *
    167  * @return New string. Caller should deallocate it using @c free().
    168  */
    169 char *os_get_lib_path(void)
    170 {
    171         return os_str_acat(dirname(ef_path), "/lib");
    172 }
Note: See TracChangeset for help on using the changeset viewer.