예제 #1
0
void testValues() {
    f = 2;
    
    removexattr(anystring(), anystring());

    //@ assert f == 2;
    //@ assert vacuous: \false;
}
void runSuccess() {
    char* argv[] = {anystring(), anystring(), NULL};
    //@ assert \exists int i; (argv[i] == \null);
    FTS* fts = fts_open(argv, anyint(), NULL);
    if (fts != NULL) {
        fts_children(fts, anyint());
    }
}
예제 #3
0
void testValues() {
    f = 2;
    
    char buf[10];
    lsetxattr(anystring(), anystring(), buf, 10, anyint());

    //@ assert f == 2;
    //@ assert vacuous: \false;
}
예제 #4
0
void testValues() {
    f = 2;
    
    struct servent result;
    struct servent * rp;
    char buf[10];
    getservbyname_r(anystring(), anystring(), &result, buf, 10, &rp);

    //@ assert f == 2;
    //@ assert vacuous: \false;
}
void runSuccess() {
    void* handle = dlopen(anystring(), 0);
    if (handle != NULL) {
        Lmid_t lmid;
        dlinfo(handle, RTLD_DI_LMID, &lmid);
    }
}
예제 #6
0
void runFailure1() {
    struct hostent result_buf;
    char buf[] = "s";
    struct hostent * result;
    int h_errnop;
    gethostbyname_r(anystring(), &result_buf, &buf, 50, &result, &h_errnop);
}
예제 #7
0
void runSuccess() {
    struct hostent result_buf;
    char buf[] = "s";
    struct hostent * result;
    int h_errnop;
    gethostbyname_r(anystring(), &result_buf, &buf, 1, &result, &h_errnop);
}
void testValues() {
    f = 2;
    
    char* argv[] = {anystring(), anystring(), NULL};
    //@ assert \exists int i; (argv[i] == \null);
    FTS* fts = fts_open(argv, anyint(), NULL);
    if (fts != NULL) {
        FTSENT* ftsent = fts_children(fts, anyint());
        //@ assert ftsent != \null ==> ftsent->fts_level > -1;
        //@ assert ftsent != \null ==> ftsent->fts_number == 0;
        //@ assert ftsent != \null ==> valid_string(ftsent->fts_path);
        //@ assert ftsent != \null ==> ftsent->fts_link == \null || \valid(ftsent->fts_link);
    }
    
    //@ assert f == 2;
    //@ assert vacuous: \false;
}
void testValues() {
    f = 2;
    
    inet_network(anystring());

    //@ assert f == 2;
    //@ assert vacuous: \false;
}
예제 #10
0
void testValues() {
    f = 2;
    
    inotify_add_watch(anyint(), anystring(), anyint());

    //@ assert f == 2;
    //@ assert vacuous: \false;
}
void testValues() {
    f = 2;
    
    warnx(anystring());

    //@ assert f == 2;
    //@ assert vacuous: \false;
}
void testValues() {
    f = 2;

    initgroups(anystring(), anygid());

    //@ assert f == 2;
    //@ assert vacuous: \false;
}
예제 #13
0
void testValues() {
    f = 2;
    
    mq_open(anystring(), anyint());

    //@ assert f == 2;
    //@ assert vacuous: \false;
}
예제 #14
0
void testValues() {
    f = 2;
    
    char* result = re_comp(anystring());
    //@ assert result == \null || \valid_read(result);

    //@ assert f == 2;
    //@ assert vacuous: \false;
}
예제 #15
0
void testValues() {
    f = 2;
    int result;
    
    gettext(anystring());

    //@ assert f == 2;
    //@ assert vacuous: \false;
}
void testValues() {
    f = 2;
    
    struct fstab * result = getfsfile(anystring());
    //@ assert result == \null || \valid(result);
    
    //@ assert f == 2;
    //@ assert vacuous: \false;
}
예제 #17
0
void testValues() {
    f = 2;
    
    struct spwd * result = sgetspent(anystring());
    //@ assert result != \null ==> \valid_read(result->sp_namp);

    //@ assert f == 2;
    //@ assert vacuous: \false;
}
예제 #18
0
void testValues() {
    f = 2;
    
    struct utimbuf time;
    utime(anystring(), &time);

    //@ assert f == 2;
    //@ assert vacuous: \false;
}
void testValues() {
    f = 2;
    
    Dl_info info;
    int result = dladdr(anystring(), &info);
    //@ assert result != 0 ==> valid_string(info.dli_fname);
    
    //@ assert f == 2;
    //@ assert vacuous: \false;
}
void testValues() {
    f = 2;

    gid_t gids[] = {anygid(),anygid(),anygid()};
    int n = 3;
    getgrouplist(anystring(), anygid(), gids, &n);

    //@ assert f == 2;
    //@ assert vacuous: \false;
}
void testValues() {
    f = 2;

    size_t argz_len = anysize();
    char* argz = anyargz(argz_len, anysize());
    envz_remove(&argz, &argz_len, anystring());

    //@ assert f == 2;
    //@ assert vacuous: \false;
}
예제 #22
0
void testValues() {
    f = 2;
    
    mqd_t mq = mq_open(anystring(), anyint());
    struct mq_attr attrs;
    struct mq_attr oattrs;
    mq_setattr(mq, &attrs, &oattrs);

    //@ assert f == 2;
    //@ assert vacuous: \false;
}
예제 #23
0
void testValues() {
    f = 2;
    
    struct ttyent * result = getttynam(anystring());
    if (result) {
        //@ assert valid_read_string_or_null(result->ty_name);
    }

    //@ assert f == 2;
    //@ assert vacuous: \false;
}
void testValues() {
    f = 2;
    
    void* handle = dlopen(anystring(), 0);
    if (handle != NULL) {
        Lmid_t lmid;
        dlinfo(handle, RTLD_DI_LMID, &lmid);
    }
    
    //@ assert f == 2;
    //@ assert vacuous: \false;
}
예제 #25
0
void testValues() {
    f = 2;
    
    struct hostent result_buf;
    char buf[] = "s";
    struct hostent * result;
    int h_errnop;
    gethostbyname_r(anystring(), &result_buf, &buf, 1, &result, &h_errnop);

    //@ assert f == 2;
    //@ assert vacuous: \false;
}
예제 #26
0
void runSuccess() {
    re_comp(anystring());
}
void runSuccess() {
    warnx(anystring());
}
예제 #28
0
void runSuccess() {
    gettext(anystring());
}
void runSuccess() {
    errx(anyint(), anystring());
}
void runSuccess() {
    inet_network(anystring());
}