Thread: [Libsysio-commit] HEAD: libsysio/include sysio.h
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2003-07-29 21:11:43
|
Update of /cvsroot/libsysio/libsysio/include In directory sc8-pr-cvs1:/tmp/cvs-serv24209/include Modified Files: sysio.h Log Message: It's baaaack! Added access(2) call. Doesn't know a thing about real vs. effective identifiers, of course. It will let the caller know if he could open the file, though. Oh, right, he could just open it, too. What a crock! Index: sysio.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/sysio.h,v retrieving revision 1.7 retrieving revision 1.8 diff -u -w -b -B -p -r1.7 -r1.8 --- sysio.h 26 Mar 2003 00:06:04 -0000 1.7 +++ sysio.h 29 Jul 2003 19:53:33 -0000 1.8 @@ -124,9 +124,7 @@ extern void _sysio_shutdown(void); * but it's not illegal to have multiple externs, so long as they are the * same. It helps when building the library in a standalone fashion. */ -#if 0 extern int access(const char *path, int amode); -#endif extern int chdir(const char *path); extern int chmod(const char *path, mode_t mode); extern int chown(const char *path, uid_t owner, gid_t group); |
From: Lee W. <lw...@us...> - 2003-10-21 14:51:55
|
Update of /cvsroot/libsysio/libsysio/include In directory sc8-pr-cvs1:/tmp/cvs-serv24724/include Modified Files: sysio.h Log Message: Hmmm. Make statvfs/statvfs64 work again. Index: sysio.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/sysio.h,v retrieving revision 1.11 retrieving revision 1.12 diff -u -w -b -B -p -r1.11 -r1.12 --- sysio.h 21 Oct 2003 13:27:43 -0000 1.11 +++ sysio.h 21 Oct 2003 13:38:47 -0000 1.12 @@ -125,6 +125,7 @@ struct stat; #define INTNL_STATVFS_IS_NATURAL 1 #endif struct statvfs; +struct intnl_statvfs; #endif struct iovec; |
From: Lee W. <lw...@us...> - 2003-10-21 15:02:19
|
Update of /cvsroot/libsysio/libsysio/include In directory sc8-pr-cvs1:/tmp/cvs-serv21252 Modified Files: sysio.h Log Message: How did I miss this file? It's _LARGEFILE64_SOURCE, not __USE_LARGEFILE64. Index: sysio.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/sysio.h,v retrieving revision 1.10 retrieving revision 1.11 diff -u -w -b -B -p -r1.10 -r1.11 --- sysio.h 10 Oct 2003 18:50:31 -0000 1.10 +++ sysio.h 21 Oct 2003 13:27:43 -0000 1.11 @@ -79,17 +79,17 @@ typedef void *ioid_t; #define MAX_SYMLINK 250 #endif -#ifndef __USE_LARGEFILE64 +#ifndef _LARGEFILE64_SOURCE /* * Not glibc. Define this ourselves. */ -#define __USE_LARGEFILE64 0 +#define _LARGEFILE64_SOURCE 0 #endif /* * Define internal file-offset type. */ -#if __USE_LARGEFILE64 +#if _LARGEFILE64_SOURCE #define _SYSIO_OFF_T off64_t #else #define _SYSIO_OFF_T off_t @@ -99,7 +99,7 @@ typedef void *ioid_t; * Internally, all directory entries are carried in the 64-bit capable * structure. */ -#if __USE_LARGEFILE64 +#if _LARGEFILE64_SOURCE #define intnl_dirent dirent64 #else #define intnl_dirent dirent @@ -110,7 +110,7 @@ struct dirent; * Internally, all file status is carried in the 64-bit capable * structure. */ -#if __USE_LARGEFILE64 +#if _LARGEFILE64_SOURCE #define intnl_stat stat64 #else #define intnl_stat stat @@ -118,7 +118,7 @@ struct dirent; struct stat; #ifdef _HAVE_STATVFS -#if __USE_LARGEFILE64 +#if _LARGEFILE64_SOURCE #define intnl_statvfs statvfs64 #else #define intnl_statvfs statvfs @@ -159,7 +159,7 @@ extern int fcntl(int fd, int cmd, ...); extern int fstat(int fd, struct stat *buf); extern int fsync(int fd); extern char *getcwd(char *buf, size_t size); -#if __USE_LARGEFILE64 +#if _LARGEFILE64_SOURCE extern off64_t lseek64(int fd, off64_t offset, int whence); #endif extern int lstat(const char *path, struct stat *buf); @@ -167,7 +167,7 @@ extern int lstat(const char *path, struc extern int getdirentries(int fd, char *buf, int nbytes , long *basep); #else extern ssize_t getdirentries(int fd, char *buf, size_t nbytes, off_t *basep); -#if __USE_LARGEFILE64 +#if _LARGEFILE64_SOURCE extern ssize_t getdirentries64(int fd, char *buf, size_t nbytes, @@ -176,33 +176,33 @@ extern ssize_t getdirentries64(int fd, #endif extern int mkdir(const char *path, mode_t mode); extern int open(const char *path, int flag, ...); -#if __USE_LARGEFILE64 +#if _LARGEFILE64_SOURCE extern int open64(const char *path, int flag, ...); #endif extern int creat(const char *path, mode_t mode); -#if __USE_LARGEFILE64 +#if _LARGEFILE64_SOURCE extern int creat64(const char *path, mode_t mode); #endif extern int stat(const char *path, struct stat *buf); -#if __USE_LARGEFILE64 +#if _LARGEFILE64_SOURCE extern int stat64(const char *path, struct stat64 *buf); #endif #ifdef _HAVE_STATVFS extern int statvfs(const char *path, struct statvfs *buf); -#if __USE_LARGEFILE64 +#if _LARGEFILE64_SOURCE extern int statvfs64(const char *path, struct statvfs64 *buf); #endif extern int fstatvfs(int fd, struct statvfs *buf); -#if __USE_LARGEFILE64 +#if _LARGEFILE64_SOURCE extern int fstatvfs64(int fd, struct statvfs64 *buf); #endif #endif extern int truncate(const char *path, off_t length); -#if __USE_LARGEFILE64 +#if _LARGEFILE64_SOURCE extern int truncate64(const char *path, off64_t length); #endif extern int ftruncate(int fd, off_t length); -#if __USE_LARGEFILE64 +#if _LARGEFILE64_SOURCE extern int ftruncate64(int fd, off64_t length); #endif extern int rmdir(const char *path); @@ -222,14 +222,14 @@ extern ioid_t ipread(int fd, void *buf, extern ssize_t preadv(int fd, const struct iovec *iov, size_t count, _SYSIO_OFF_T offset); extern ssize_t pread(int fd, void *buf, size_t count, off_t offset); -#if __USE_LARGEFILE64 +#if _LARGEFILE64_SOURCE extern ssize_t pread64(int fd, void *buf, size_t count, off64_t offset); #endif extern ioid_t ireadv(int fd, const struct iovec *iov, int count); extern ioid_t iread(int fd, void *buf, size_t count); extern ssize_t readv(int fd, const struct iovec *iov, int count); extern ssize_t read(int fd, void *buf, size_t count); -#if __USE_LARGEFILE64 +#if _LARGEFILE64_SOURCE extern ssize_t read64(int fd, void *buf, size_t count); #endif extern ioid_t ipwritev(int fd, const struct iovec *iov, size_t count, @@ -239,14 +239,14 @@ extern ioid_t ipwrite(int fd, const void extern ssize_t pwritev(int fd, const struct iovec *iov, size_t count, _SYSIO_OFF_T offset); extern ssize_t pwrite(int fd, const void *buf, size_t count, off_t offset); -#if __USE_LARGEFILE64 +#if _LARGEFILE64_SOURCE extern ssize_t pwrite64(int fd, const void *buf, size_t count, off64_t offset); #endif extern ioid_t iwritev(int fd, const struct iovec *iov, int count); extern ioid_t iwrite(int fd, const void *buf, size_t count); extern ssize_t writev(int fd, const struct iovec *iov, int count); extern ssize_t write(int fd, const void *buf, size_t count); -#if __USE_LARGEFILE64 +#if _LARGEFILE64_SOURCE extern ssize_t write64(int fd, const void *buf, size_t count); #endif extern int mknod(const char *path, mode_t mode, dev_t dev); |
From: Lee W. <lw...@us...> - 2003-10-29 00:10:47
|
Update of /cvsroot/libsysio/libsysio/include In directory sc8-pr-cvs1:/tmp/cvs-serv12663/include Modified Files: sysio.h Log Message: Add prototype for lseek and fix bug in _sysio_lseek (from Wally Wang) that makes the temporary offset a _SYSIO_OFF_T instead of off_t. Index: sysio.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/sysio.h,v retrieving revision 1.12 retrieving revision 1.13 diff -u -w -b -B -p -r1.12 -r1.13 --- sysio.h 21 Oct 2003 13:38:47 -0000 1.12 +++ sysio.h 29 Oct 2003 00:10:42 -0000 1.13 @@ -160,6 +160,7 @@ extern int fcntl(int fd, int cmd, ...); extern int fstat(int fd, struct stat *buf); extern int fsync(int fd); extern char *getcwd(char *buf, size_t size); +extern off_t lsee4(int fd, off_t offset, int whence); #if _LARGEFILE64_SOURCE extern off64_t lseek64(int fd, off64_t offset, int whence); #endif |
From: Lee W. <lw...@us...> - 2003-10-29 00:26:58
|
Update of /cvsroot/libsysio/libsysio/include In directory sc8-pr-cvs1:/tmp/cvs-serv15603/include Modified Files: sysio.h Log Message: Oops. It's lseek, not lsee4. Index: sysio.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/sysio.h,v retrieving revision 1.13 retrieving revision 1.14 diff -u -w -b -B -p -r1.13 -r1.14 --- sysio.h 29 Oct 2003 00:10:42 -0000 1.13 +++ sysio.h 29 Oct 2003 00:25:53 -0000 1.14 @@ -160,7 +160,7 @@ extern int fcntl(int fd, int cmd, ...); extern int fstat(int fd, struct stat *buf); extern int fsync(int fd); extern char *getcwd(char *buf, size_t size); -extern off_t lsee4(int fd, off_t offset, int whence); +extern off_t lseek(int fd, off_t offset, int whence); #if _LARGEFILE64_SOURCE extern off64_t lseek64(int fd, off64_t offset, int whence); #endif |
From: Lee W. <lw...@us...> - 2004-01-21 14:44:57
|
Update of /cvsroot/libsysio/libsysio/include In directory sc8-pr-cvs1:/tmp/cvs-serv23555/include Modified Files: sysio.h Log Message: A roll-up patch from CFS (Eric Mei <er...@cl...>) - intent.diff small changes on intent related behavior. I simply follow the lustre kernel code here. - open() need to pass down param 'flags'. - 'setattr' related syscalls, like chown/chmod/utime/..., don't need intent during path resolution. - sockets.diff your socket driver. - nativefs.diff only add fcntl code into native driver. not sure whether it's complete, but ok for current testing. - trace.diff this patch add SYSIO_ENTER/SYSIO_LEAVE macros. Index: sysio.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/sysio.h,v retrieving revision 1.14 retrieving revision 1.15 diff -u -w -b -B -p -r1.14 -r1.15 --- sysio.h 29 Oct 2003 00:25:53 -0000 1.14 +++ sysio.h 21 Jan 2004 14:44:53 -0000 1.15 @@ -258,3 +258,42 @@ extern int mount(const char *source, con unsigned long mountflags, const void *data); extern int umount(const char *target); + +/* for debugging */ +#if 1 +#define ASSERT(cond) \ + if (!(cond)) { \ + printf("ASSERTION(" #cond ") failed: " __FILE__ ":" \ + __FUNCTION__ ":%d\n", __LINE__); \ + abort(); \ + } + +#define ERROR(fmt, a...) \ + do { \ + printf("ERROR(" __FILE__ ":%d):" fmt, __LINE__, ##a); \ + while(0) + +#else +#define ERROR(fmt) do{}while(0) +#define ASSERT do{}while(0) +#endif + +/* syscall enter/leave hook functions */ +#if 1 +#define SYSIO_ENTER +#define SYSIO_LEAVE + +#else +extern void _sysio_sysenter(); +extern void _sysio_sysleave(); + +#define SYSIO_ENTER \ + do { \ + _sysio_sysenter(); \ + } while(0) + +#define SYSIO_LEAVE \ + do { \ + _sysio_sysleave(); \ + } while(0) +#endif |
From: Lee W. <lw...@us...> - 2004-02-24 14:18:11
|
Update of /cvsroot/libsysio/libsysio/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19788 Modified Files: sysio.h Log Message: Turned off the local ASSERT/ERROR and SYSIO_{ENTER,LEAVE} for now. Must define these differently. Index: sysio.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/sysio.h,v retrieving revision 1.17 retrieving revision 1.18 diff -u -w -b -B -p -r1.17 -r1.18 --- sysio.h 14 Feb 2004 19:42:58 -0000 1.17 +++ sysio.h 24 Feb 2004 14:03:55 -0000 1.18 @@ -298,7 +298,7 @@ extern int mount(const char *source, con extern int umount(const char *target); /* for debugging */ -#if 1 +#if 0 #define ASSERT(cond) \ if (!(cond)) { \ printf("ASSERTION(" #cond ") failed: " __FILE__ ":" \ @@ -317,11 +317,7 @@ extern int umount(const char *target); #endif /* syscall enter/leave hook functions */ -#if 1 -#define SYSIO_ENTER -#define SYSIO_LEAVE - -#else +#if 0 extern void _sysio_sysenter(); extern void _sysio_sysleave(); @@ -334,4 +330,8 @@ extern void _sysio_sysleave(); do { \ _sysio_sysleave(); \ } while(0) +#else +#define SYSIO_ENTER +#define SYSIO_LEAVE + #endif |
From: Lee W. <lw...@us...> - 2004-03-31 17:55:11
|
Update of /cvsroot/libsysio/libsysio/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26294/include Modified Files: sysio.h Log Message: Kevin Pedretti's changes for RedStorm based on glibc. Index: sysio.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/sysio.h,v retrieving revision 1.18 retrieving revision 1.19 diff -u -w -b -B -p -r1.18 -r1.19 --- sysio.h 24 Feb 2004 14:03:55 -0000 1.18 +++ sysio.h 31 Mar 2004 17:43:17 -0000 1.19 @@ -188,7 +188,7 @@ extern off_t lseek(int fd, off_t offset, extern off64_t lseek64(int fd, off64_t offset, int whence); #endif extern int lstat(const char *path, struct stat *buf); -#if defined(BSD) || defined(REDSTORM) +#ifdef BSD extern int getdirentries(int fd, char *buf, int nbytes , long *basep); #else extern ssize_t getdirentries(int fd, char *buf, size_t nbytes, off_t *basep); |
From: Lee W. <lw...@us...> - 2004-04-28 10:53:13
|
Update of /cvsroot/libsysio/libsysio/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17693 Modified Files: sysio.h Log Message: Work on SYSIO_INTERFACE_{DISPLAY_BLOCK,ENTER,RETURN}: + Cleaned up to parse correctly when expressions are used as args + Formatted to match *most* of the current style + RETURN now *sets* errno on error instead of simply restoring on no error. Index: sysio.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/sysio.h,v retrieving revision 1.20 retrieving revision 1.21 diff -u -w -b -B -p -r1.20 -r1.21 --- sysio.h 27 Apr 2004 22:13:01 -0000 1.20 +++ sysio.h 28 Apr 2004 10:53:01 -0000 1.21 @@ -352,6 +352,15 @@ extern int SYSIO_INTERFACE_NAME(umount)( /* * SYSIO interface frame macros + * + * + DISPLAY_BLOCK; Allocates storage on the stack for use by the set of + * macros. + * + ENTER; Performs entry point work + * + RETURN; Returns a value and performs exit point work + * + * NB: For RETURN, the arguments are the return value and value for errno. + * If the value for errno is non-zero then that value, *negated*, is set + * into errno. */ #define SYSIO_INTERFACE_DISPLAY_BLOCK \ int _saved_errno; @@ -363,7 +372,7 @@ extern int SYSIO_INTERFACE_NAME(umount)( #define SYSIO_INTERFACE_RETURN(rtn, err) \ do { \ SYSIO_LEAVE; \ - if (err == 0) errno = _saved_errno; \ + errno = (err) ? -(err) : _saved_errno; \ return (rtn); \ } while(0) |
From: Ruth K. <rk...@us...> - 2004-04-30 19:25:06
|
Update of /cvsroot/libsysio/libsysio/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19095 Modified Files: sysio.h Log Message: addition of some missing name label macro calls; some style fixes Index: sysio.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/sysio.h,v retrieving revision 1.21 retrieving revision 1.22 diff -u -w -b -B -p -r1.21 -r1.22 |
From: Lee W. <lw...@us...> - 2004-05-28 11:52:02
|
Update of /cvsroot/libsysio/libsysio/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2364/include Modified Files: sysio.h Log Message: Kevin Pedretti wanted readlink(2). Here it is. Index: sysio.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/sysio.h,v retrieving revision 1.22 retrieving revision 1.23 diff -u -w -b -B -p -r1.22 -r1.23 --- sysio.h 30 Apr 2004 19:24:57 -0000 1.22 +++ sysio.h 28 May 2004 11:51:52 -0000 1.23 @@ -9,7 +9,7 @@ * terms of the GNU Lesser General Public License * (see cit/LGPL or http://www.gnu.org/licenses/lgpl.html) * - * Cplant(TM) Copyright 1998-2003 Sandia Corporation. + * Cplant(TM) Copyright 1998-2004 Sandia Corporation. * Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive * license for use of this work by or on behalf of the US Government. * Export of this program may require a license from the United States @@ -249,6 +249,9 @@ extern int SYSIO_INTERFACE_NAME(ftruncat #endif extern int SYSIO_INTERFACE_NAME(rmdir)(const char *path); extern int SYSIO_INTERFACE_NAME(symlink)(const char *path1, const char *path2); +extern int SYSIO_INTERFACE_NAME(readlink)(const char *path, + char *buf, + size_t bufsiz); extern int SYSIO_INTERFACE_NAME(link)(const char *oldpath, const char *newpath); extern int SYSIO_INTERFACE_NAME(unlink)(const char *path); extern int SYSIO_INTERFACE_NAME(rename)(const char *oldpath, |
From: Lee W. <lw...@us...> - 2004-06-16 13:58:35
|
Update of /cvsroot/libsysio/libsysio/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29040/include Modified Files: sysio.h Log Message: Changes from Nik Livic and myself to support accounting on Red Storm. NB: We are tracking chars transferred to/from the underlying driver and not what is moved over the wire. Index: sysio.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/sysio.h,v retrieving revision 1.23 retrieving revision 1.24 diff -u -w -b -B -p -r1.23 -r1.24 --- sysio.h 28 May 2004 11:51:52 -0000 1.23 +++ sysio.h 16 Jun 2004 13:58:26 -0000 1.24 @@ -398,3 +398,18 @@ extern void _sysio_sysleave(); #define SYSIO_LEAVE #endif + +/* accounting for IO stats read and write char count */ +#if defined(REDSTORM) +#define _SYSIO_UPDACCT(w, cc) \ + do { \ + if ((cc) < 0) \ + break; \ + if (!w) \ + _add_iostats(0, (size_t )(cc)) \ + else \ + _add_iostats((size_t )(cc), 0) \ + } while(0) +#else +#define _SYSIO_UPDACCT(w, cc) +#endif |
From: Lee W. <lw...@us...> - 2004-06-24 19:53:39
|
Update of /cvsroot/libsysio/libsysio/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31860/include Modified Files: sysio.h Log Message: From Kevin Pedretti; Some trivial fixes for the latest accounting mods for Red Storm Index: sysio.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/sysio.h,v retrieving revision 1.24 retrieving revision 1.25 diff -u -w -b -B -p -r1.24 -r1.25 --- sysio.h 16 Jun 2004 13:58:26 -0000 1.24 +++ sysio.h 24 Jun 2004 19:53:31 -0000 1.25 @@ -406,9 +406,9 @@ extern void _sysio_sysleave(); if ((cc) < 0) \ break; \ if (!w) \ - _add_iostats(0, (size_t )(cc)) \ + _add_iostats(0, (size_t )(cc)); \ else \ - _add_iostats((size_t )(cc), 0) \ + _add_iostats((size_t )(cc), 0); \ } while(0) #else #define _SYSIO_UPDACCT(w, cc) |
From: Lee W. <lw...@us...> - 2004-07-03 05:47:21
|
Update of /cvsroot/libsysio/libsysio/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11075/include Modified Files: sysio.h Log Message: A new, major change, to .../include/xtio.h. This is intended to be the include file for applications. It prototype all of the extended API available as well as the necessary structures. Other shanges to support this. We now need it most everywhere to build the library as well. Index: sysio.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/sysio.h,v retrieving revision 1.25 retrieving revision 1.26 diff -u -w -b -B -p -r1.25 -r1.26 --- sysio.h 24 Jun 2004 19:53:31 -0000 1.25 +++ sysio.h 3 Jul 2004 05:47:13 -0000 1.26 @@ -48,18 +48,6 @@ #include <limits.h> #include <stdarg.h> -#ifndef _IOID_T_DEFINED -#define _IOID_T_DEFINED -/* - * FIXME: - * - * This section about ioid_t and it's failure belong in <sys/types.h> - */ -typedef void *ioid_t; - -#define IOID_FAIL 0 -#endif - #if !defined(__IS_UNUSED) && defined(__GNUC__) #define __IS_UNUSED __attribute__ ((unused)) #else @@ -259,71 +247,6 @@ extern int SYSIO_INTERFACE_NAME(rename)( extern int SYSIO_INTERFACE_NAME(fdatasync)(int fd); extern int SYSIO_INTERFACE_NAME(ioctl)(int fd, unsigned long request, ...); extern mode_t SYSIO_INTERFACE_NAME(umask)(mode_t mask); -extern int SYSIO_INTERFACE_NAME(iodone)(ioid_t ioid); -extern ssize_t SYSIO_INTERFACE_NAME(iowait)(ioid_t ioid); -extern ioid_t SYSIO_INTERFACE_NAME(ipreadv)(int fd, const struct iovec *iov, - size_t count, off_t offset); -#if _LARGEFILE64_SOURCE -extern ioid_t SYSIO_INTERFACE_NAME(ipread64v)(int fd, const struct iovec *iov, - size_t count, off64_t offset); -#endif -extern ioid_t SYSIO_INTERFACE_NAME(ipread)(int fd, void *buf, size_t count, - off_t offset); -#if _LARGEFILE64_SOURCE -extern ioid_t SYSIO_INTERFACE_NAME(ipread64)(int fd, void *buf, size_t count, - off64_t offset); -#endif -extern ssize_t SYSIO_INTERFACE_NAME(preadv)(int fd, const struct iovec *iov, - size_t count, off_t offset); -#if _LARGEFILE64_SOURCE -extern ssize_t SYSIO_INTERFACE_NAME(pread64v)(int fd, const struct iovec *iov, - size_t count, off64_t offset); -#endif -extern ssize_t SYSIO_INTERFACE_NAME(pread)(int fd, void *buf, size_t count, - off_t offset); -#if _LARGEFILE64_SOURCE -extern ssize_t SYSIO_INTERFACE_NAME(pread64)(int fd, void *buf, size_t count, - off64_t offset); -#endif -extern ioid_t SYSIO_INTERFACE_NAME(ireadv)(int fd, const struct iovec *iov, - int count); -extern ioid_t SYSIO_INTERFACE_NAME(iread)(int fd, void *buf, size_t count); -extern ssize_t SYSIO_INTERFACE_NAME(readv)(int fd, const struct iovec *iov, - int count); -extern ssize_t SYSIO_INTERFACE_NAME(read)(int fd, void *buf, size_t count); -extern ioid_t SYSIO_INTERFACE_NAME(ipwritev)(int fd, const struct iovec *iov, - size_t count, off_t offset); -#if _LARGEFILE64_SOURCE -extern ioid_t SYSIO_INTERFACE_NAME(ipwrite64v)(int fd, const struct iovec *iov, - size_t count, off64_t offset); -#endif -extern ioid_t SYSIO_INTERFACE_NAME(ipwrite)(int fd, const void *buf, - size_t count, off_t offset); -#if _LARGEFILE64_SOURCE -extern ioid_t SYSIO_INTERFACE_NAME(ipwrite64)(int fd, const void *buf, - size_t count, off64_t offset); -#endif -extern ssize_t SYSIO_INTERFACE_NAME(pwritev)(int fd, const struct iovec *iov, - size_t count, off_t offset); -#if _LARGEFILE64_SOURCE -extern ssize_t SYSIO_INTERFACE_NAME(pwrite64v)(int fd, const struct iovec *iov, - size_t count, off64_t offset); -#endif -extern ssize_t SYSIO_INTERFACE_NAME(pwrite)(int fd, const void *buf, - size_t count, off_t offset); -#if _LARGEFILE64_SOURCE -extern ssize_t SYSIO_INTERFACE_NAME(pwrite64)(int fd, const void *buf, - size_t count, off64_t offset); -#endif -extern ioid_t SYSIO_INTERFACE_NAME(iwritev)(int fd, - const struct iovec *iov, - int count); -extern ioid_t SYSIO_INTERFACE_NAME(iwrite)(int fd, const void *buf, - size_t count); -extern ssize_t SYSIO_INTERFACE_NAME(writev)(int fd, const struct iovec *iov, - int count); -extern ssize_t SYSIO_INTERFACE_NAME(write)(int fd, const void *buf, - size_t count); extern int SYSIO_INTERFACE_NAME(mknod)(const char *path, mode_t mode, dev_t dev); extern int SYSIO_INTERFACE_NAME(utime)(const char *path, |
From: Lee W. <lw...@us...> - 2004-11-29 23:55:16
|
Update of /cvsroot/libsysio/libsysio/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1404/include Modified Files: sysio.h Log Message: Ok, round 3 with the _sysio_boot function. Every time I add a new little option, I'm going to break the Cray crt0 build. New deal, then. Now, _sysio_boot takes a name and value pair. We call it repeatedly for different pairs, then. To support legacy, the name/value pairs are: "namespace" and the buffer is the argument "cwd" and the deferred, initial path is the argument Since it's now 2 calls, I suggest "namespace" first, then "cwd" to preserve the older behavior. As previously, _sysio_boot still returns 0 on success or a, negated, error number. Now, though, you know which failed :-) You decide if it's fatal. I've also added a new pair identified by "tracing" that enables tracing if configured for it. The value is a readable string, expected to parse as a number by strtol. Then, it should turn into a 0 or positive. Zero, being off and positive being on. Index: sysio.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/sysio.h,v retrieving revision 1.30 retrieving revision 1.31 diff -u -w -b -B -p -r1.30 -r1.31 --- sysio.h 19 Nov 2004 17:49:54 -0000 1.30 +++ sysio.h 29 Nov 2004 23:54:51 -0000 1.31 @@ -114,17 +114,14 @@ extern mode_t _sysio_umask; extern int _sysio_init(void); extern void _sysio_shutdown(void); +#if 0 struct _sysio_boot_ctl { - const char *buf; -#if DEFER_INIT_CWD - const char *path; -#endif -#if SYSIO_TRACING - int tracing; -#endif + const char *onam; + const char *oarg; }; +#endif -extern int _sysio_boot(struct _sysio_boot_ctl *ctl); +extern int _sysio_boot(const char *opt, const char *arg); /* * Option-value pair information. |
From: Lee W. <lw...@us...> - 2005-02-04 00:17:00
|
Update of /cvsroot/libsysio/libsysio/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8354 Modified Files: sysio.h Log Message: The external declarations for the POSIX standard IO functions read, pread, readv, write, pwrite, and pwritev were lost when the IO path was rewritten. This change reintroduces them. Index: sysio.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/sysio.h,v retrieving revision 1.32 retrieving revision 1.33 diff -u -w -b -B -p -r1.32 -r1.33 --- sysio.h 25 Jan 2005 00:37:09 -0000 1.32 +++ sysio.h 4 Feb 2005 00:16:44 -0000 1.33 @@ -206,6 +206,22 @@ extern int SYSIO_INTERFACE_NAME(stat)(co #if _LARGEFILE64_SOURCE extern int SYSIO_INTERFACE_NAME(stat64)(const char *path, struct stat64 *buf); #endif +extern ssize_t SYSIO_INTERFACE_NAME(read)(int fd, void *buf, size_t count); +extern ssize_t SYSIO_INTERFACE_NAME(pread)(int fd, void *buf, size_t count, + off_t offset); +extern ssize_t SYSIO_INTERFACE_NAME(readv)(int fd, + const struct iovec *iov, + int count); +extern ssize_t SYSIO_INTERFACE_NAME(write)(int fd, + const void *buf, + size_t count); +extern ssize_t SYSIO_INTERFACE_NAME(pwrite)(int fd, + const void *buf, + size_t count, + off_t offset); +extern ssize_t SYSIO_INTERFACE_NAME(writev)(int fd, + const struct iovec *iov, + int count); #ifdef _HAVE_STATVFS extern int SYSIO_INTERFACE_NAME(statvfs)(const char *path, struct statvfs *buf); #if _LARGEFILE64_SOURCE |
From: jaschut <ja...@us...> - 2005-02-23 01:43:18
|
Update of /cvsroot/libsysio/libsysio/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32478 Modified Files: sysio.h Log Message: Add missing prototype for existing function. Index: sysio.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/sysio.h,v retrieving revision 1.33 retrieving revision 1.34 diff -u -w -b -B -p -r1.33 -r1.34 --- sysio.h 4 Feb 2005 00:16:44 -0000 1.33 +++ sysio.h 23 Feb 2005 01:43:08 -0000 1.34 @@ -172,6 +172,9 @@ extern int SYSIO_INTERFACE_NAME(dup)(int extern int SYSIO_INTERFACE_NAME(dup2)(int oldfd, int newfd); extern int SYSIO_INTERFACE_NAME(fcntl)(int fd, int cmd, ...); extern int SYSIO_INTERFACE_NAME(fstat)(int fd, struct stat *buf); +#if _LARGEFILE64_SOURCE +extern int SYSIO_INTERFACE_NAME(fstat64)(int fd, struct stat64 *buf); +#endif extern int SYSIO_INTERFACE_NAME(fsync)(int fd); extern char *SYSIO_INTERFACE_NAME(getcwd)(char *buf, size_t size); extern off_t SYSIO_INTERFACE_NAME(lseek)(int fd, off_t offset, int whence); |
From: Lee W. <lw...@us...> - 2006-03-14 20:13:17
|
Update of /cvsroot/libsysio/libsysio/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23600 Modified Files: sysio.h Log Message: From Jim Schutt at Sandia, we are missing the declaration for lstat64. His patch applied with this rev. Index: sysio.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/sysio.h,v retrieving revision 1.35 retrieving revision 1.36 diff -u -w -b -B -p -r1.35 -r1.36 --- sysio.h 28 Oct 2005 17:59:31 -0000 1.35 +++ sysio.h 14 Mar 2006 20:13:05 -0000 1.36 @@ -175,6 +175,7 @@ extern int SYSIO_INTERFACE_NAME(fcntl64) extern int SYSIO_INTERFACE_NAME(fstat)(int fd, struct stat *buf); #if _LARGEFILE64_SOURCE extern int SYSIO_INTERFACE_NAME(fstat64)(int fd, struct stat64 *buf); +extern int SYSIO_INTERFACE_NAME(lstat64)(const char *path, struct stat64 *buf); #endif extern int SYSIO_INTERFACE_NAME(fsync)(int fd); extern char *SYSIO_INTERFACE_NAME(getcwd)(char *buf, size_t size); |
From: Lee W. <lw...@us...> - 2006-05-03 15:57:35
|
Update of /cvsroot/libsysio/libsysio/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24736/include Modified Files: sysio.h Log Message: Speed up group ID checks a little by keeping memory allocated instead of reallocating every time. Index: sysio.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/sysio.h,v retrieving revision 1.36 retrieving revision 1.37 diff -u -w -b -B -p -r1.36 -r1.37 --- sysio.h 14 Mar 2006 20:13:05 -0000 1.36 +++ sysio.h 3 May 2006 15:57:28 -0000 1.37 @@ -122,6 +122,9 @@ extern mode_t _sysio_umask; extern int _sysio_init(void); extern void _sysio_shutdown(void); +#ifdef ZERO_SUM_MEMORY +extern void _sysio_access_shutdown(void); +#endif #if 0 struct _sysio_boot_ctl { |
From: Lee W. <lw...@us...> - 2006-06-01 21:29:03
|
Update of /cvsroot/libsysio/libsysio/include In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv28393/include Modified Files: sysio.h Log Message: Pave the way for alternate credentials and ready work for strict permission checking. Index: sysio.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/sysio.h,v retrieving revision 1.37 retrieving revision 1.38 diff -u -w -b -B -p -r1.37 -r1.38 --- sysio.h 3 May 2006 15:57:28 -0000 1.37 +++ sysio.h 1 Jun 2006 21:28:57 -0000 1.38 @@ -49,6 +49,7 @@ #include <stdarg.h> #include "sysio-cmn.h" +#include "creds.h" #if defined(_DIRENT_H) && _DIRENT_H /* |
From: Lee W. <lw...@us...> - 2007-01-02 20:44:14
|
Update of /cvsroot/libsysio/libsysio/include In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv2466/include Modified Files: sysio.h Log Message: Fix return type for readlink with newer versions of glibc >From Oleg Drokin at Cluster File Systems: [...] newer glibc version readlink returns ssize_t instead of int, and thus libsysio cannot be compiled anymore due to conflicting declarations. Index: sysio.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/sysio.h,v retrieving revision 1.38 retrieving revision 1.39 diff -u -w -b -B -p -r1.38 -r1.39 --- sysio.h 1 Jun 2006 21:28:57 -0000 1.38 +++ sysio.h 2 Jan 2007 20:44:10 -0000 1.39 @@ -252,7 +252,11 @@ extern int SYSIO_INTERFACE_NAME(ftruncat #endif extern int SYSIO_INTERFACE_NAME(rmdir)(const char *path); extern int SYSIO_INTERFACE_NAME(symlink)(const char *path1, const char *path2); +#ifdef HAVE_POSIX_1003_READLINK +extern ssize_t SYSIO_INTERFACE_NAME(readlink)(const char *path, +#else extern int SYSIO_INTERFACE_NAME(readlink)(const char *path, +#endif char *buf, size_t bufsiz); extern int SYSIO_INTERFACE_NAME(link)(const char *oldpath, const char *newpath); |
From: Lee W. <lw...@us...> - 2007-08-20 16:03:02
|
Update of /cvsroot/libsysio/libsysio/include In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv30003/include Modified Files: sysio.h Log Message: Break cprintf, and friends, out of init.c and put them in their own file. Also, removed the dependency on _SYSIO_TRACING. Index: sysio.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/sysio.h,v retrieving revision 1.42 retrieving revision 1.43 diff -u -w -b -B -p -r1.42 -r1.43 --- sysio.h 9 May 2007 23:16:20 -0000 1.42 +++ sysio.h 20 Aug 2007 16:02:56 -0000 1.43 @@ -152,9 +152,7 @@ extern char * _sysio_get_args(char *buf, extern time_t _sysio_local_time(void); -#ifdef SYSIO_TRACING extern void _sysio_cprintf(const char *fmt, ...); -#endif /* * The following should be defined by the system includes, and probably are, |
From: Lee W. <lw...@us...> - 2008-04-07 18:59:55
|
Update of /cvsroot/libsysio/libsysio/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27524/include Modified Files: sysio.h Log Message: Added routine and global definition for a rudimentary diagnostic printf called _sysio_diag_printf. Index: sysio.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/sysio.h,v retrieving revision 1.43 retrieving revision 1.44 diff -u -w -b -B -p -r1.43 -r1.44 --- sysio.h 20 Aug 2007 16:02:56 -0000 1.43 +++ sysio.h 7 Apr 2008 18:59:48 -0000 1.44 @@ -153,6 +153,7 @@ extern char * _sysio_get_args(char *buf, extern time_t _sysio_local_time(void); extern void _sysio_cprintf(const char *fmt, ...); +extern void _sysio_diag_printf(const char *funidnam, const char *fmt, ...); /* * The following should be defined by the system includes, and probably are, |
From: Lee W. <lw...@us...> - 2008-04-07 19:22:04
|
Update of /cvsroot/libsysio/libsysio/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3950 Modified Files: sysio.h Log Message: Oops. Forgot to declare _sysio_diag_printf only if NDEBUG was not defined. Index: sysio.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/sysio.h,v retrieving revision 1.44 retrieving revision 1.45 diff -u -w -b -B -p -r1.44 -r1.45 --- sysio.h 7 Apr 2008 18:59:48 -0000 1.44 +++ sysio.h 7 Apr 2008 19:22:00 -0000 1.45 @@ -153,7 +153,9 @@ extern char * _sysio_get_args(char *buf, extern time_t _sysio_local_time(void); extern void _sysio_cprintf(const char *fmt, ...); +#ifndef NDEBUG extern void _sysio_diag_printf(const char *funidnam, const char *fmt, ...); +#endif /* * The following should be defined by the system includes, and probably are, |