search for: mode_t

Displaying 20 results from an estimated 408 matches for "mode_t".

2013 Nov 12
0
[klibc:master] syscalls: Fixup some of the -at syscall declarations
...etions(-) diff --git a/usr/include/sys/stat.h b/usr/include/sys/stat.h index 4850429..c4b378e 100644 --- a/usr/include/sys/stat.h +++ b/usr/include/sys/stat.h @@ -69,8 +69,10 @@ __extern int fstatat(int, const char *, struct stat *, int); __extern int lstat(const char *, struct stat *); __extern mode_t umask(mode_t); __extern int mknod(const char *, mode_t, dev_t); -__extern int mknodat(int, const char *, const char *, mode_t, dev_t); +__extern int mknodat(int, const char *, mode_t, dev_t); __extern int mkfifo(const char *, mode_t); +__extern int utimensat(int, const char *, const struct timesp...
2013 Oct 09
0
[PATCH 1/1] Porting klibc to AArch64
...e st_mtime st_mtim.tv_sec -# define st_ctime st_ctim.tv_sec -#endif __extern int stat(const char *, struct stat *); __extern int fstat(int, struct stat *); @@ -69,7 +63,7 @@ __extern int fstatat(int, const char *, struct stat *, int); __extern int lstat(const char *, struct stat *); __extern mode_t umask(mode_t); __extern int mknod(const char *, mode_t, dev_t); -__extern int mknodat(int, const char *, const char *, mode_t, dev_t); +__extern int mknodat(int, const char *, mode_t, dev_t); __extern int mkfifo(const char *, mode_t); __extern_inline int mkfifo(const char *__p, mode_t __m) diff...
2011 Jan 29
2
another bugfix
Hi, number three, where I first thought it was a GCC bug but is apparently bad code in klibc. Submitted with permission: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47533#c6 Patch attached again (sorry) not just because that is easier with my mail system but also to keep original author intact. bye, //mirabilos -- > emacs als auch vi zum Kotzen finde (joe rules) und pine f?r den einzig >
2013 Nov 12
0
[klibc:master] syscalls: Add syscalls needed by arm64
...int unlink(const char *); <?> int unlinkat(int, const char *, int); int chdir(const char *); int fchdir(int); -int rename(const char *, const char *); +<?> int rename(const char *, const char *); <?> int renameat(int, const char *, int, const char *); -int mknod(const char *, mode_t, dev_t); +<?> int mknod(const char *, mode_t, dev_t); <?> int mknodat(int, const char *, mode_t, dev_t); -int chmod(const char *, mode_t); +<?> int chmod(const char *, mode_t); int fchmod(int, mode_t); <?> int fchmodat(int, const char *, mode_t, int); -int mkdir(const cha...
2013 Nov 08
9
[PATCH 0/3] Introduce arm64 support
Hello, This series introduces arm64 support to klibc. I've rebased the work from Neil Williams and Anil Singhar into the following three patches. Most of the code changes are due to new syscall implementations being needed for arm64 as a only a minimal set of syscalls are defined in the arm64 kernel. This series is to be applied against the latest klibc, just after 25a66fa README.klibc:
2013 Nov 11
5
[PATCH V2 0/3] Introduce arm64 support
Hello, Here is V2 of the arm64 support for klibc patch set. Notable changes since the original series: * fp regs dropped from setjmp/longjmp * chmod, lstat and stat re-implemented with *at functions. * open64 merged into open. As with the original, this series is to be applied against the latest klibc, just after 25a66fa README.klibc: update build information V2 has been tested on x86_64
2008 Jan 07
0
[PATCH] Replaced int with mode_t as requested
...penbsd-compat.h --- openssh/openbsd-compat/openbsd-compat.h 25 Jun 2007 12:15:13 -0000 1.43 +++ openssh/openbsd-compat/openbsd-compat.h 7 Jan 2008 06:58:54 -0000 @@ -84,7 +84,7 @@ int setenv(register const char *name, re #endif #ifndef HAVE_STRMODE -void strmode(int mode, char *p); +void strmode(mode_t mode, char *p); #endif #if !defined(HAVE_MKDTEMP) || defined(HAVE_STRICT_MKSTEMP) Index: openssh/openbsd-compat/strmode.c =================================================================== RCS file: /cvs/openssh/openbsd-compat/strmode.c,v retrieving revision 1.7 diff -u -p -r1.7 strmode.c --- o...
2013 Nov 08
0
[PATCH 2/3] syscalls: Add syscalls needed by arm64
...int unlink(const char *); <?> int unlinkat(int, const char *, int); int chdir(const char *); int fchdir(int); -int rename(const char *, const char *); +<?> int rename(const char *, const char *); <?> int renameat(int, const char *, int, const char *); -int mknod(const char *, mode_t, dev_t); +<?> int mknod(const char *, mode_t, dev_t); <?> int mknodat(int, const char *, mode_t, dev_t); -int chmod(const char *, mode_t); +<?> int chmod(const char *, mode_t); int fchmod(int, mode_t); <?> int fchmodat(int, const char *, mode_t); -int mkdir(const char *,...
2013 Nov 08
1
[PATCH 2/3] syscalls: Add syscalls needed by arm64
...e _KLIBC_IN_OPEN_C > +#include <unistd.h> > +#include <fcntl.h> > +#include <sys/syscall.h> > + > +#if !defined(__NR_open) && _BITSIZE == 64 > + > +__extern int openat(int, const char *, int, ...); > + > +int open(const char *pathname, int flags, mode_t mode) > +{ > + return openat(AT_FDCWD, pathname, flags, mode); > +} > + > +#endif This applies equally to a 32-bit platform that doesn't define __NR_open, except there we need to add O_LARGEFILE to the flags and call __openat in order to not have to pull in openat.c as well. I...
2003 Oct 21
2
Fwd: Re: Bus Error with OpenSSH 3.7.1p2 on Solaris 8, SPARC 64-bit
...8 YASSP and JASS and vigilant/paranoid sysadmins have been known to set a restricitve umask in /etc/default/login. OpenSSH compatibility for Solaris 8 has been spotty at times for sparcv9 targets. This time, when a sparcv9 binary tries to sscanf(3C) the numeric umask as a long octal and put it in a mode_t, SIGBUS happens. What this looks like in real life is: You are running a 64 bit OpenSSH_3.7.1p2 sshd on Solaris 8, and you have enforced UMASK in /etc/default/login. You try to log into this sshd, but after all the authentication and channel setup, just before you get your shell/command executed *...
2008 Mar 04
1
Several changes missing from [HEAD] fileflags.diff
...k sigaction sigprocmask setattrlist > do > as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` > diff -up a/proto.h b/proto.h > --- a/proto.h > +++ b/proto.h > @@ -269,6 +269,8 @@ int read_ndx_and_attrs(int f_in, int *if > void free_sums(struct sum_struct *s); > mode_t dest_mode(mode_t flist_mode, mode_t stat_mode, int dflt_perms, > int exists); > +int make_mutable(const char *fname, mode_t mode, uint32 fileflags, > uint32 iflags); > +int undo_make_mutable(const char *fname, uint32 fileflags); > int set_file_attrs(const char *fname, struct f...
2002 Jan 07
0
rsync-2.5.1 / updated syscall.c "const" patch
...-#if HAVE_LINK -int do_link(char *fname1, char *fname2) +#if SUPPORT_HARD_LINKS +int do_link(const char *fname1, const char *fname2) { if (dry_run) return 0; CHECK_RO @@ -58,8 +61,8 @@ return lchown(path, owner, group); } -#if HAVE_MKNOD -int do_mknod(char *pathname, mode_t mode, dev_t dev) +#ifdef HAVE_MKNOD +int do_mknod(const char *pathname, mode_t mode, dev_t dev) { if (dry_run) return 0; CHECK_RO @@ -67,14 +70,14 @@ } #endif -int do_rmdir(char *pathname) +int do_rmdir(const char *pathname) { if (dry_run) return 0; CHEC...
2001 Feb 21
1
sftp-server and chown
...* notably SSH Communications' Windows client 2.2.0) ! * send bogus bits (world-writable) which is not really ! * acceptable... ! * <appro at fy.chalmers.se> ! */ ! static mode_t u_mask = (mode_t)-1; ! ! if (u_mask == (mode_t)-1) ! if ((u_mask=umask(022)) != 022) umask(u_mask); ! ! ret = chmod(name, a->perm & ~u_mask & 0777); if (ret == -1) status = errno_to_portable(errno...
2003 Sep 29
1
Bus Error with OpenSSH 3.7.1p2 on Solaris 8, SPARC 64-bit, YASSP
I had a problem much like the one that Matthias Koeppe experienced. I would only get the BUS error when running in a YASSP-modified system, though. The binary worked fine on a non-YASSP host. I applied his change to use a long for the mask, and it works now. Cheers, -Thomas __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search
2004 Feb 11
1
udev database is incompatible (klibc libc and mode_t)
Hi, it seems that klibc's mod_t is only unsigned short and libc is unsigned int. So our db format is incompatible between udev's compiled with different c-lib's. What is the right fix for this? I found it cause my db was created with libc-udev and klibc-udev was unable to insert records in the database. thanks, Kay
2004 Sep 11
1
[PATCH] fchdir syscall, opendir function
...:49.000000000 +0200 +++ ./klibc/SYSCALLS.def 2004-09-11 20:46:10.187551992 +0200 @@ -86,6 +86,7 @@ int access(const char *, int) int link(const char *, const char *) int unlink(const char *) int chdir(const char *) +int fchdir(int) int rename(const char *, const char *) int mknod(const char *, mode_t, dev_t) int chmod(const char *, mode_t) diff -purNx linux ../klibc-0.172/klibc/include/dirent.h ./klibc/include/dirent.h --- ../klibc-0.172/klibc/include/dirent.h 2002-08-11 06:35:43.000000000 +0200 +++ ./klibc/include/dirent.h 2004-09-11 20:57:27.268620024 +0200 @@ -16,5 +16,6 @@ typedef struct _...
2016 Apr 13
0
[PATCH 1/1] x32 support
...*/ diff --git a/usr/klibc/SYSCALLS.def b/usr/klibc/SYSCALLS.def index 41cfa17..e62a9e8 100644 --- a/usr/klibc/SYSCALLS.def +++ b/usr/klibc/SYSCALLS.def @@ -157,15 +157,17 @@ int getcwd::__getcwd(char *, size_t); /* * I/O operations */ -<!i386,m68k,64> int open::__open(const char *, int, mode_t); -<?!i386,m68k,64> int openat::__openat(int, const char *, int, mode_t); -<?64> int open(const char *, int, mode_t); -<64> int openat(int, const char *, int, mode_t); +<!i386,m68k,64,x32> int open::__open(const char *, int, mode_t); +<?!i386,m68k,64,x32> int openat::_...
2010 Nov 02
1
SFTP subsystem and umask
...noticed that the -u parameter to the sftp-server or internal-sftp subsystem is not working correctly. For openssh-5.6p1 I believe that the problem lies in this code, starting at line 1414 in sftp-server.c: ---------------------------------------------------------- case 'u': mask = (mode_t)strtonum(optarg, 0, 0777, &errmsg); if (errmsg != NULL) fatal("Invalid umask \"%s\": %s", optarg, errmsg); (void)umask(mask); break; ---------------------------------------------------------- I think that adherence...
2008 Feb 15
4
Revised flags patch
...preserve_links; extern int preserve_hard_links; extern int preserve_devices; extern int preserve_specials; +extern int fileflags_ndx; extern int uid_ndx; extern int gid_ndx; extern int eol_nulls; @@ -344,6 +345,9 @@ static void send_file_entry(int f, struc { static time_t modtime; static mode_t mode; +#ifdef SUPPORT_FLAGS + static uint32 fileflags; +#endif #ifdef SUPPORT_HARD_LINKS static int64 dev; #endif @@ -403,6 +407,12 @@ static void send_file_entry(int f, struc xflags |= XMIT_SAME_MODE; else mode = file->mode; +#ifdef SUPPORT_FLAGS + if (F_FFLAGS(file) == fileflags) +...
2015 Nov 11
1
[PATCH] sparsify: Make the interface between cmdline.ml and sparsify.ml explicit.
...*.cmxa *.o virt-sparsify +SOURCES_MLI = \ + cmdline.mli + SOURCES_ML = \ utils.ml \ cmdline.ml \ diff --git a/sparsify/cmdline.ml b/sparsify/cmdline.ml index 868456f..8f2b721 100644 --- a/sparsify/cmdline.ml +++ b/sparsify/cmdline.ml @@ -25,9 +25,18 @@ open Common_utils open Utils -type mode_t = -| Mode_copying of string * check_t * bool * string option * string option * - string option +type cmdline = { + indisk : string; + format : string option; + ignores : string list; + machine_readable : bool; + zeroes : string list; + mode : mode_t; +} + +and mode_t = +| Mode_copying of +...