search for: filepo

Displaying 9 results from an estimated 9 matches for "filepo".

Did you mean: filep
1996 Dec 16
0
Re: vixie-crontab for redhat linux (Fix)
...st possible input but restricting the length a posteriori closes this particular problem: diff -ru vixie-cron-3.0.1~/env.c vixie-cron-3.0.1/env.c --- vixie-cron-3.0.1~/env.c Mon Dec 16 22:42:55 1996 +++ vixie-cron-3.0.1/env.c Mon Dec 16 22:55:52 1996 @@ -115,8 +115,9 @@ { long filepos; int fileline; - char name[MAX_TEMPSTR], val[MAX_ENVSTR]; + char name[MAX_ENVSTR], val[MAX_ENVSTR]; int fields; + int Error = 0; filepos = ftell(f); fileline = LineNumber; @@ -128,8 +129,14 @@ name[0] = val[0] = '...
2010 Jun 27
1
[PATCH] ROSH: Upgraded
...osh_1(const char *cmdstr, const char *pwdstr, const char *ipwdstr) +void rosh_qualify_filestr(char *filestr, const char *ifilstr, + const char *pwdstr) { - ROSH_DEBUG("CMD: '%s'\npwd: '%s'\npwd: '%s'\n", cmdstr, pwdstr, ipwdstr); -} /* rosh_1 */ + int filepos = 0; + if ((filestr) && (pwdstr) && (ifilstr)) { + if (ifilstr[0] != SEP) { + strcpy(filestr, pwdstr); + filepos = strlen(pwdstr); + if (filestr[filepos - 1] != SEP) + filestr[filepos++] = SEP; + } + strcpy(filestr + filepos, ifilstr); + ROSH_DEBUG("--'%s...
2009 Mar 05
0
[PATCH 5/5] COM32/rosh: Improvements
...; +} /* rosh_ls_arg_dir_de */ + +/* Output listing of a regular directory + * filestr directory name to list + * d the open DIR + * optarr Array of options + NOTE:This is where I could use qsort + */ +void rosh_ls_arg_dir(const char *filestr, DIR *d, const int *optarr) +{ + struct dirent *de; + int filepos; + + filepos = 0; + de = readdir(d); + while (de != NULL) { + filepos++; + rosh_ls_arg_dir_de(filestr, de, optarr); + ROSH_FREE_DIRENT(de); + de = readdir(d); + } +} /* rosh_ls_arg_dir */ + /* Simple directory listing for one argument (file/directory) based on * filestr and pwdstr * ifils...
2009 Feb 15
2
COM32 module: Read-Only shell
...nt (file/directory) based on + * filestr and pwdstr + * ifilstr input filename/directory name to list + * pwdstr Present Working Directory string + */ +void rosh_dir_arg(const char *ifilstr, const char *pwdstr) +{ + struct stat fdstat; + int status; + int fd; + char filestr[ROSH_PATH_SZ + 1]; + int filepos; + DIR *d; + struct dirent *de; +#ifdef DO_DEBUG + char filestr2[ROSH_PATH_SZ + 1]; + int fd2, file2pos; +#ifdef __COM32__ +// int inchar; + char ty; +#endif /* __COM32__ */ +#endif /* DO_DEBUG */ + + /* Initialization; make filestr based on leading character of ifilstr + and pwdstr */ + if (ifi...
2007 Aug 16
1
stdio
Hi, I have experimentally done a branch of klibc with buffered stdio support. It seems to add about 1.5K of code (for x86-64), which isn't so bad, except that it means that *every* program now pulls in stdio, which in turn depends on malloc() and some other pieces of code. I have not yet implemented fscanf(), however, which may cause additional bloat. As of this point, I'm a bit
2012 Mar 20
13
[PATCH 0 of 3 v2] PV-GRUB: add support for ext4 and btrfs
Hi, The following patches add support for ext4 and btrfs to PV-GRUB. These patches are taken nearly verbatim from those provided by Fedora and Gentoo. We''ve been using these patches for the PV-GRUB images available in EC2 for some time now with no problems. Changes from v1: - Makefile has been changed to check the exit code from patch - The btrfs patch has been rebased to apply
2009 Mar 06
4
rosh patch
...{ printf("DIR:'%s' %8d %8d\n", d->dd_name, d->dd_fd, d->dd_sect); - de = readdir(d); - while (de != NULL) { + while ( de = readdir(d) ) { filepos++; #ifdef DO_DEBUG // if (strlen(de->d_name) > 25) de->d_name[25] = 0; @@ -438,7 +435,6 @@ // fgets(instr, ROSH_CMD_SZ, stdin); #endif /* DO_DEBUG */ free(de); - de = readdir(d); // if(filepos>15){ d...
2009 Mar 07
3
rosh patch V2
Here is a second version of my patch from last night. It uses the provided ctype function isspace and does the same readdir(). I remove the rosh_issp() function. I admit to being a bit liberal with my use of braces and spaces. We all of the habit of knowing we can invent a more perfect wheel. Let me know if you have any questions. Keith -------------- next part -------------- A non-text
2013 Oct 26
2
[PATCH] 1. changes for vdiskadm on illumos based platform
...- &current_bootfs_obj, mdn, stack))) { + if (errnum = get_objset_mdn(MOS, current_bootfs, + &current_bootfs_obj, mdn, stack)) { grub_memset(current_bootfs, 0, MAXNAMELEN); return (0); } @@ -1515,7 +1769,7 @@ zfs_read(char *buf, int len) */ uint64_t blkid = filepos / blksz; - if ((errnum = dmu_read(DNODE, blkid, file_buf, stack))) + if (errnum = dmu_read(DNODE, blkid, file_buf, stack)) return (0); file_start = blkid * blksz; diff -r 7c12aaa128e3 -r c2e11847cac0 tools/libfsimage/zfs/fsys_zfs.h --- a/tools/libfsimage/zfs/fsys_zfs.h Thu Oct 24 22:4...