Date: Thu, 28 Jun 2007 08:35:59 GMT From: Roman Divacky <rdivacky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 122463 for review Message-ID: <200706280835.l5S8ZxW4016901@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=122463 Change 122463 by rdivacky@rdivacky_witten on 2007/06/28 08:35:20 Constify arguments to various syscalls as linux/posix does. I need to change the code a little (type-casting to (const char *) and __DECONST in one place). Affected files ... .. //depot/projects/soc2007/rdivacky/linux_at/sys/amd64/linux32/linux32_proto.h#8 edit .. //depot/projects/soc2007/rdivacky/linux_at/sys/amd64/linux32/linux32_syscall.h#8 edit .. //depot/projects/soc2007/rdivacky/linux_at/sys/amd64/linux32/linux32_sysent.c#8 edit .. //depot/projects/soc2007/rdivacky/linux_at/sys/amd64/linux32/syscalls.master#8 edit .. //depot/projects/soc2007/rdivacky/linux_at/sys/compat/linux/linux_file.c#14 edit .. //depot/projects/soc2007/rdivacky/linux_at/sys/compat/linux/linux_util.c#3 edit .. //depot/projects/soc2007/rdivacky/linux_at/sys/compat/linux/linux_util.h#4 edit .. //depot/projects/soc2007/rdivacky/linux_at/sys/i386/linux/linux_proto.h#8 edit .. //depot/projects/soc2007/rdivacky/linux_at/sys/i386/linux/linux_syscall.h#8 edit .. //depot/projects/soc2007/rdivacky/linux_at/sys/i386/linux/linux_sysent.c#8 edit .. //depot/projects/soc2007/rdivacky/linux_at/sys/i386/linux/syscalls.master#8 edit .. //depot/projects/soc2007/rdivacky/linux_at/sys/kern/init_sysent.c#6 edit .. //depot/projects/soc2007/rdivacky/linux_at/sys/kern/syscalls.c#6 edit .. //depot/projects/soc2007/rdivacky/linux_at/sys/kern/syscalls.master#6 edit .. //depot/projects/soc2007/rdivacky/linux_at/sys/kern/systrace_args.c#6 edit .. //depot/projects/soc2007/rdivacky/linux_at/sys/kern/vfs_lookup.c#8 edit .. //depot/projects/soc2007/rdivacky/linux_at/sys/kern/vfs_syscalls.c#33 edit .. //depot/projects/soc2007/rdivacky/linux_at/sys/sys/syscall.h#6 edit .. //depot/projects/soc2007/rdivacky/linux_at/sys/sys/syscall.mk#6 edit .. //depot/projects/soc2007/rdivacky/linux_at/sys/sys/syscallsubr.h#14 edit .. //depot/projects/soc2007/rdivacky/linux_at/sys/sys/sysproto.h#6 edit Differences ... ==== //depot/projects/soc2007/rdivacky/linux_at/sys/amd64/linux32/linux32_proto.h#8 (text+ko) ==== @@ -875,24 +875,24 @@ }; struct linux_openat_args { char dfd_l_[PADL_(l_int)]; l_int dfd; char dfd_r_[PADR_(l_int)]; - char filename_l_[PADL_(char *)]; char * filename; char filename_r_[PADR_(char *)]; + char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)]; char flags_l_[PADL_(l_int)]; l_int flags; char flags_r_[PADR_(l_int)]; char mode_l_[PADL_(l_int)]; l_int mode; char mode_r_[PADR_(l_int)]; }; struct linux_mkdirat_args { char dfd_l_[PADL_(l_int)]; l_int dfd; char dfd_r_[PADR_(l_int)]; - char pathname_l_[PADL_(char *)]; char * pathname; char pathname_r_[PADR_(char *)]; + char pathname_l_[PADL_(const char *)]; const char * pathname; char pathname_r_[PADR_(const char *)]; char mode_l_[PADL_(l_int)]; l_int mode; char mode_r_[PADR_(l_int)]; }; struct linux_mknodat_args { char dfd_l_[PADL_(l_int)]; l_int dfd; char dfd_r_[PADR_(l_int)]; - char filename_l_[PADL_(char *)]; char * filename; char filename_r_[PADR_(char *)]; + char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)]; char mode_l_[PADL_(l_int)]; l_int mode; char mode_r_[PADR_(l_int)]; char dev_l_[PADL_(l_uint)]; l_uint dev; char dev_r_[PADR_(l_uint)]; }; struct linux_fchownat_args { char dfd_l_[PADL_(l_int)]; l_int dfd; char dfd_r_[PADR_(l_int)]; - char filename_l_[PADL_(char *)]; char * filename; char filename_r_[PADR_(char *)]; + char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)]; char uid_l_[PADL_(l_uid16_t)]; l_uid16_t uid; char uid_r_[PADR_(l_uid16_t)]; char gid_l_[PADL_(l_gid16_t)]; l_gid16_t gid; char gid_r_[PADR_(l_gid16_t)]; char flag_l_[PADL_(l_int)]; l_int flag; char flag_r_[PADR_(l_int)]; @@ -910,41 +910,41 @@ }; struct linux_unlinkat_args { char dfd_l_[PADL_(l_int)]; l_int dfd; char dfd_r_[PADR_(l_int)]; - char pathname_l_[PADL_(char *)]; char * pathname; char pathname_r_[PADR_(char *)]; + char pathname_l_[PADL_(const char *)]; const char * pathname; char pathname_r_[PADR_(const char *)]; char flag_l_[PADL_(l_int)]; l_int flag; char flag_r_[PADR_(l_int)]; }; struct linux_renameat_args { char olddfd_l_[PADL_(l_int)]; l_int olddfd; char olddfd_r_[PADR_(l_int)]; - char oldname_l_[PADL_(char *)]; char * oldname; char oldname_r_[PADR_(char *)]; + char oldname_l_[PADL_(const char *)]; const char * oldname; char oldname_r_[PADR_(const char *)]; char newdfd_l_[PADL_(l_int)]; l_int newdfd; char newdfd_r_[PADR_(l_int)]; - char newname_l_[PADL_(char *)]; char * newname; char newname_r_[PADR_(char *)]; + char newname_l_[PADL_(const char *)]; const char * newname; char newname_r_[PADR_(const char *)]; }; struct linux_linkat_args { char olddfd_l_[PADL_(l_int)]; l_int olddfd; char olddfd_r_[PADR_(l_int)]; - char oldname_l_[PADL_(char *)]; char * oldname; char oldname_r_[PADR_(char *)]; + char oldname_l_[PADL_(const char *)]; const char * oldname; char oldname_r_[PADR_(const char *)]; char newdfd_l_[PADL_(l_int)]; l_int newdfd; char newdfd_r_[PADR_(l_int)]; - char newname_l_[PADL_(char *)]; char * newname; char newname_r_[PADR_(char *)]; + char newname_l_[PADL_(const char *)]; const char * newname; char newname_r_[PADR_(const char *)]; char flags_l_[PADL_(l_int)]; l_int flags; char flags_r_[PADR_(l_int)]; }; struct linux_symlinkat_args { - char oldname_l_[PADL_(char *)]; char * oldname; char oldname_r_[PADR_(char *)]; + char oldname_l_[PADL_(const char *)]; const char * oldname; char oldname_r_[PADR_(const char *)]; char newdfd_l_[PADL_(l_int)]; l_int newdfd; char newdfd_r_[PADR_(l_int)]; - char newname_l_[PADL_(char *)]; char * newname; char newname_r_[PADR_(char *)]; + char newname_l_[PADL_(const char *)]; const char * newname; char newname_r_[PADR_(const char *)]; }; struct linux_readlinkat_args { char dfd_l_[PADL_(l_int)]; l_int dfd; char dfd_r_[PADR_(l_int)]; - char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; + char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)]; char bufsiz_l_[PADL_(l_int)]; l_int bufsiz; char bufsiz_r_[PADR_(l_int)]; }; struct linux_fchmodat_args { char dfd_l_[PADL_(l_int)]; l_int dfd; char dfd_r_[PADR_(l_int)]; - char filename_l_[PADL_(char *)]; char * filename; char filename_r_[PADR_(char *)]; + char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)]; char mode_l_[PADL_(l_mode_t)]; l_mode_t mode; char mode_r_[PADR_(l_mode_t)]; }; struct linux_faccessat_args { char dfd_l_[PADL_(l_int)]; l_int dfd; char dfd_r_[PADR_(l_int)]; - char filename_l_[PADL_(char *)]; char * filename; char filename_r_[PADR_(char *)]; + char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)]; char mode_l_[PADL_(l_int)]; l_int mode; char mode_r_[PADR_(l_int)]; }; struct linux_pselect6_args { ==== //depot/projects/soc2007/rdivacky/linux_at/sys/amd64/linux32/linux32_syscall.h#8 (text+ko) ==== ==== //depot/projects/soc2007/rdivacky/linux_at/sys/amd64/linux32/linux32_sysent.c#8 (text+ko) ==== ==== //depot/projects/soc2007/rdivacky/linux_at/sys/amd64/linux32/syscalls.master#8 (text+ko) ==== @@ -463,26 +463,31 @@ 292 AUE_NULL STD { int linux_inotify_add_watch(void); } 293 AUE_NULL STD { int linux_inotify_rm_watch(void); } 294 AUE_NULL STD { int linux_migrate_pages(void); } -295 AUE_OPEN_RWTC STD { int linux_openat(l_int dfd, char *filename, \ +295 AUE_OPEN_RWTC STD { int linux_openat(l_int dfd, const char *filename, \ l_int flags, l_int mode); } -296 AUE_NULL STD { int linux_mkdirat(l_int dfd, char *pathname, l_int mode); } -297 AUE_NULL STD { int linux_mknodat(l_int dfd, char *filename, l_int mode, l_uint dev); } -298 AUE_NULL STD { int linux_fchownat(l_int dfd, char *filename, \ +296 AUE_NULL STD { int linux_mkdirat(l_int dfd, const char *pathname, \ + l_int mode); } +297 AUE_NULL STD { int linux_mknodat(l_int dfd, const char *filename, \ + l_int mode, l_uint dev); } +298 AUE_NULL STD { int linux_fchownat(l_int dfd, const char *filename, \ l_uid16_t uid, l_gid16_t gid, l_int flag); } -299 AUE_NULL STD { int linux_futimesat(l_int dfd, char *filename, struct l_timeval *utimes); } +299 AUE_NULL STD { int linux_futimesat(l_int dfd, char *filename, \ + struct l_timeval *utimes); } 300 AUE_NULL STD { int linux_fstatat64(l_int dfd, char *pathname, \ struct l_stat64 *statbuf, l_int flag); } -301 AUE_NULL STD { int linux_unlinkat(l_int dfd, char *pathname, l_int flag); } -302 AUE_NULL STD { int linux_renameat(l_int olddfd, char *oldname, l_int newdfd, \ - char *newname); } -303 AUE_NULL STD { int linux_linkat(l_int olddfd, char *oldname, \ - l_int newdfd, char *newname, l_int flags); } -304 AUE_NULL STD { int linux_symlinkat(char *oldname, l_int newdfd, char *newname); } -305 AUE_NULL STD { int linux_readlinkat(l_int dfd, char *path, \ +301 AUE_NULL STD { int linux_unlinkat(l_int dfd, const char *pathname, \ + l_int flag); } +302 AUE_NULL STD { int linux_renameat(l_int olddfd, const char *oldname, \ + l_int newdfd, const char *newname); } +303 AUE_NULL STD { int linux_linkat(l_int olddfd, const char *oldname, \ + l_int newdfd, const char *newname, l_int flags); } +304 AUE_NULL STD { int linux_symlinkat(const char *oldname, l_int newdfd, \ + const char *newname); } +305 AUE_NULL STD { int linux_readlinkat(l_int dfd, const char *path, \ char *buf, l_int bufsiz); } -306 AUE_NULL STD { int linux_fchmodat(l_int dfd, char *filename, \ +306 AUE_NULL STD { int linux_fchmodat(l_int dfd, const char *filename, \ l_mode_t mode); } -307 AUE_NULL STD { int linux_faccessat(l_int dfd, char *filename, l_int mode); } +307 AUE_NULL STD { int linux_faccessat(l_int dfd, const char *filename, l_int mode); } 308 AUE_NULL STD { int linux_pselect6(void); } 309 AUE_NULL STD { int linux_ppoll(void); } 310 AUE_NULL STD { int linux_unshare(void); } ==== //depot/projects/soc2007/rdivacky/linux_at/sys/compat/linux/linux_file.c#14 (text+ko) ==== ==== //depot/projects/soc2007/rdivacky/linux_at/sys/compat/linux/linux_util.c#3 (text+ko) ==== @@ -68,7 +68,7 @@ int linux_emul_convpath(td, path, pathseg, pbuf, cflag, dfd) struct thread *td; - char *path; + const char *path; enum uio_seg pathseg; char **pbuf; int cflag; ==== //depot/projects/soc2007/rdivacky/linux_at/sys/compat/linux/linux_util.h#4 (text+ko) ==== @@ -51,7 +51,7 @@ extern const char linux_emul_path[]; -int linux_emul_convpath(struct thread *, char *, enum uio_seg, char **, int, int); +int linux_emul_convpath(struct thread *, const char *, enum uio_seg, char **, int, int); #define LCONVPATH_AT(td, upath, pathp, i, dfd) \ do { \ ==== //depot/projects/soc2007/rdivacky/linux_at/sys/i386/linux/linux_proto.h#8 (text+ko) ==== @@ -894,24 +894,24 @@ }; struct linux_openat_args { char dfd_l_[PADL_(l_int)]; l_int dfd; char dfd_r_[PADR_(l_int)]; - char filename_l_[PADL_(char *)]; char * filename; char filename_r_[PADR_(char *)]; + char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)]; char flags_l_[PADL_(l_int)]; l_int flags; char flags_r_[PADR_(l_int)]; char mode_l_[PADL_(l_int)]; l_int mode; char mode_r_[PADR_(l_int)]; }; struct linux_mkdirat_args { char dfd_l_[PADL_(l_int)]; l_int dfd; char dfd_r_[PADR_(l_int)]; - char pathname_l_[PADL_(char *)]; char * pathname; char pathname_r_[PADR_(char *)]; + char pathname_l_[PADL_(const char *)]; const char * pathname; char pathname_r_[PADR_(const char *)]; char mode_l_[PADL_(l_int)]; l_int mode; char mode_r_[PADR_(l_int)]; }; struct linux_mknodat_args { char dfd_l_[PADL_(l_int)]; l_int dfd; char dfd_r_[PADR_(l_int)]; - char filename_l_[PADL_(char *)]; char * filename; char filename_r_[PADR_(char *)]; + char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)]; char mode_l_[PADL_(l_int)]; l_int mode; char mode_r_[PADR_(l_int)]; char dev_l_[PADL_(l_uint)]; l_uint dev; char dev_r_[PADR_(l_uint)]; }; struct linux_fchownat_args { char dfd_l_[PADL_(l_int)]; l_int dfd; char dfd_r_[PADR_(l_int)]; - char filename_l_[PADL_(char *)]; char * filename; char filename_r_[PADR_(char *)]; + char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)]; char uid_l_[PADL_(l_uid16_t)]; l_uid16_t uid; char uid_r_[PADR_(l_uid16_t)]; char gid_l_[PADL_(l_gid16_t)]; l_gid16_t gid; char gid_r_[PADR_(l_gid16_t)]; char flag_l_[PADL_(l_int)]; l_int flag; char flag_r_[PADR_(l_int)]; @@ -929,41 +929,41 @@ }; struct linux_unlinkat_args { char dfd_l_[PADL_(l_int)]; l_int dfd; char dfd_r_[PADR_(l_int)]; - char pathname_l_[PADL_(char *)]; char * pathname; char pathname_r_[PADR_(char *)]; + char pathname_l_[PADL_(const char *)]; const char * pathname; char pathname_r_[PADR_(const char *)]; char flag_l_[PADL_(l_int)]; l_int flag; char flag_r_[PADR_(l_int)]; }; struct linux_renameat_args { char olddfd_l_[PADL_(l_int)]; l_int olddfd; char olddfd_r_[PADR_(l_int)]; - char oldname_l_[PADL_(char *)]; char * oldname; char oldname_r_[PADR_(char *)]; + char oldname_l_[PADL_(const char *)]; const char * oldname; char oldname_r_[PADR_(const char *)]; char newdfd_l_[PADL_(l_int)]; l_int newdfd; char newdfd_r_[PADR_(l_int)]; - char newname_l_[PADL_(char *)]; char * newname; char newname_r_[PADR_(char *)]; + char newname_l_[PADL_(const char *)]; const char * newname; char newname_r_[PADR_(const char *)]; }; struct linux_linkat_args { char olddfd_l_[PADL_(l_int)]; l_int olddfd; char olddfd_r_[PADR_(l_int)]; - char oldname_l_[PADL_(char *)]; char * oldname; char oldname_r_[PADR_(char *)]; + char oldname_l_[PADL_(const char *)]; const char * oldname; char oldname_r_[PADR_(const char *)]; char newdfd_l_[PADL_(l_int)]; l_int newdfd; char newdfd_r_[PADR_(l_int)]; - char newname_l_[PADL_(char *)]; char * newname; char newname_r_[PADR_(char *)]; + char newname_l_[PADL_(const char *)]; const char * newname; char newname_r_[PADR_(const char *)]; char flags_l_[PADL_(l_int)]; l_int flags; char flags_r_[PADR_(l_int)]; }; struct linux_symlinkat_args { - char oldname_l_[PADL_(char *)]; char * oldname; char oldname_r_[PADR_(char *)]; + char oldname_l_[PADL_(const char *)]; const char * oldname; char oldname_r_[PADR_(const char *)]; char newdfd_l_[PADL_(l_int)]; l_int newdfd; char newdfd_r_[PADR_(l_int)]; - char newname_l_[PADL_(char *)]; char * newname; char newname_r_[PADR_(char *)]; + char newname_l_[PADL_(const char *)]; const char * newname; char newname_r_[PADR_(const char *)]; }; struct linux_readlinkat_args { char dfd_l_[PADL_(l_int)]; l_int dfd; char dfd_r_[PADR_(l_int)]; - char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; + char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)]; char bufsiz_l_[PADL_(l_int)]; l_int bufsiz; char bufsiz_r_[PADR_(l_int)]; }; struct linux_fchmodat_args { char dfd_l_[PADL_(l_int)]; l_int dfd; char dfd_r_[PADR_(l_int)]; - char filename_l_[PADL_(char *)]; char * filename; char filename_r_[PADR_(char *)]; + char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)]; char mode_l_[PADL_(l_mode_t)]; l_mode_t mode; char mode_r_[PADR_(l_mode_t)]; }; struct linux_faccessat_args { char dfd_l_[PADL_(l_int)]; l_int dfd; char dfd_r_[PADR_(l_int)]; - char filename_l_[PADL_(char *)]; char * filename; char filename_r_[PADR_(char *)]; + char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)]; char mode_l_[PADL_(l_int)]; l_int mode; char mode_r_[PADR_(l_int)]; }; struct linux_pselect6_args { ==== //depot/projects/soc2007/rdivacky/linux_at/sys/i386/linux/linux_syscall.h#8 (text+ko) ==== ==== //depot/projects/soc2007/rdivacky/linux_at/sys/i386/linux/linux_sysent.c#8 (text+ko) ==== ==== //depot/projects/soc2007/rdivacky/linux_at/sys/i386/linux/syscalls.master#8 (text+ko) ==== @@ -473,26 +473,31 @@ 292 AUE_NULL STD { int linux_inotify_add_watch(void); } 293 AUE_NULL STD { int linux_inotify_rm_watch(void); } 294 AUE_NULL STD { int linux_migrate_pages(void); } -295 AUE_OPEN_RWTC STD { int linux_openat(l_int dfd, char *filename, \ +295 AUE_OPEN_RWTC STD { int linux_openat(l_int dfd, const char *filename, \ l_int flags, l_int mode); } -296 AUE_NULL STD { int linux_mkdirat(l_int dfd, char *pathname, l_int mode); } -297 AUE_NULL STD { int linux_mknodat(l_int dfd, char *filename, l_int mode, l_uint dev); } -298 AUE_NULL STD { int linux_fchownat(l_int dfd, char *filename, \ +296 AUE_NULL STD { int linux_mkdirat(l_int dfd, const char *pathname, \ + l_int mode); } +297 AUE_NULL STD { int linux_mknodat(l_int dfd, const char *filename, \ + l_int mode, l_uint dev); } +298 AUE_NULL STD { int linux_fchownat(l_int dfd, const char *filename, \ l_uid16_t uid, l_gid16_t gid, l_int flag); } -299 AUE_NULL STD { int linux_futimesat(l_int dfd, char *filename, struct l_timeval *utimes); } +299 AUE_NULL STD { int linux_futimesat(l_int dfd, char *filename, \ + struct l_timeval *utimes); } 300 AUE_NULL STD { int linux_fstatat64(l_int dfd, char *pathname, \ struct l_stat64 *statbuf, l_int flag); } -301 AUE_NULL STD { int linux_unlinkat(l_int dfd, char *pathname, l_int flag); } -302 AUE_NULL STD { int linux_renameat(l_int olddfd, char *oldname, l_int newdfd, \ - char *newname); } -303 AUE_NULL STD { int linux_linkat(l_int olddfd, char *oldname, \ - l_int newdfd, char *newname, l_int flags); } -304 AUE_NULL STD { int linux_symlinkat(char *oldname, l_int newdfd, char *newname); } -305 AUE_NULL STD { int linux_readlinkat(l_int dfd, char *path, \ +301 AUE_NULL STD { int linux_unlinkat(l_int dfd, const char *pathname, \ + l_int flag); } +302 AUE_NULL STD { int linux_renameat(l_int olddfd, const char *oldname, \ + l_int newdfd, const char *newname); } +303 AUE_NULL STD { int linux_linkat(l_int olddfd, const char *oldname, \ + l_int newdfd, const char *newname, l_int flags); } +304 AUE_NULL STD { int linux_symlinkat(const char *oldname, l_int newdfd, \ + const char *newname); } +305 AUE_NULL STD { int linux_readlinkat(l_int dfd, const char *path, \ char *buf, l_int bufsiz); } -306 AUE_NULL STD { int linux_fchmodat(l_int dfd, char *filename, \ +306 AUE_NULL STD { int linux_fchmodat(l_int dfd, const char *filename, \ l_mode_t mode); } -307 AUE_NULL STD { int linux_faccessat(l_int dfd, char *filename, l_int mode); } +307 AUE_NULL STD { int linux_faccessat(l_int dfd, const char *filename, l_int mode); } 308 AUE_NULL STD { int linux_pselect6(void); } 309 AUE_NULL STD { int linux_ppoll(void); } 310 AUE_NULL STD { int linux_unshare(void); } ==== //depot/projects/soc2007/rdivacky/linux_at/sys/kern/init_sysent.c#6 (text+ko) ==== ==== //depot/projects/soc2007/rdivacky/linux_at/sys/kern/syscalls.c#6 (text+ko) ==== ==== //depot/projects/soc2007/rdivacky/linux_at/sys/kern/syscalls.master#6 (text+ko) ==== @@ -835,21 +835,21 @@ 474 AUE_NULL STD { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \ struct sockaddr * from, __socklen_t *fromlenaddr, \ struct sctp_sndrcvinfo *sinfo, int *msg_flags); } -475 AUE_ACCESS STD { int faccessat(int dirfd, char *path, int mode, int flag); } -476 AUE_CHMOD STD { int fchmodat(int dirfd, char *path, mode_t mode, int flag); } -477 AUE_CHOWN STD { int fchownat(int dirfd, char *path, uid_t uid, gid_t gid, int flag); } +475 AUE_ACCESS STD { int faccessat(int dirfd, const char *path, int mode, int flag); } +476 AUE_CHMOD STD { int fchmodat(int dirfd, const char *path, mode_t mode, int flag); } +477 AUE_CHOWN STD { int fchownat(int dirfd, const char *path, uid_t uid, gid_t gid, int flag); } 478 AUE_EXECVE STD { int fexecve(int fd, char **argv, char **envv); } -479 AUE_STAT STD { int fstatat(int fd, char *path, struct stat *buf, int flag); } -480 AUE_UTIMES STD { int futimesat(int fd, char *path, struct timeval *times); } -481 AUE_LINK STD { int linkat(int fd1, char *path1, int fd2, char *path2, int flag); } -482 AUE_MKDIR STD { int mkdirat(int fd, char *path, mode_t mode); } -483 AUE_MKFIFO STD { int mkfifoat(int fd, char *path, mode_t mode); } -484 AUE_MKNOD STD { int mknodat(int fd, char *path, mode_t mode, dev_t dev); } +479 AUE_STAT STD { int fstatat(int fd, const char *path, struct stat *buf, int flag); } +480 AUE_UTIMES STD { int futimesat(int fd, const char *path, const struct timeval *times); } +481 AUE_LINK STD { int linkat(int fd1, const char *path1, int fd2, const char *path2, int flag); } +482 AUE_MKDIR STD { int mkdirat(int fd, const char *path, mode_t mode); } +483 AUE_MKFIFO STD { int mkfifoat(int fd, const char *path, mode_t mode); } +484 AUE_MKNOD STD { int mknodat(int fd, const char *path, mode_t mode, dev_t dev); } ; XXX: see the comment for open -485 AUE_OPEN_RWTC STD { int openat(int fd, char *path, int flag, mode_t mode); } -486 AUE_READLINK STD { ssize_t readlinkat(int fd, char *path, char *buf, size_t bufsize); } -487 AUE_RENAME STD { int renameat(int oldfd, char *old, int newfd, char *new); } -488 AUE_SYMLINK STD { int symlinkat(char *path1, int fd, char *path2); } -489 AUE_UNLINK STD { int unlinkat(int fd, char *path, int flag); } +485 AUE_OPEN_RWTC STD { int openat(int fd, const char *path, int flag, mode_t mode); } +486 AUE_READLINK STD { ssize_t readlinkat(int fd, const char *path, char *buf, size_t bufsize); } +487 AUE_RENAME STD { int renameat(int oldfd, const char *old, int newfd, const char *new); } +488 AUE_SYMLINK STD { int symlinkat(const char *path1, int fd, const char *path2); } +489 AUE_UNLINK STD { int unlinkat(int fd, const char *path, int flag); } ; Please copy any additions and changes to the following compatability tables: ; sys/compat/freebsd32/syscalls.master ==== //depot/projects/soc2007/rdivacky/linux_at/sys/kern/systrace_args.c#6 (text+ko) ==== @@ -2809,7 +2809,7 @@ case 475: { struct faccessat_args *p = params; iarg[0] = p->dirfd; /* int */ - uarg[1] = (intptr_t) p->path; /* char * */ + uarg[1] = (intptr_t) p->path; /* const char * */ iarg[2] = p->mode; /* int */ iarg[3] = p->flag; /* int */ *n_args = 4; @@ -2819,7 +2819,7 @@ case 476: { struct fchmodat_args *p = params; iarg[0] = p->dirfd; /* int */ - uarg[1] = (intptr_t) p->path; /* char * */ + uarg[1] = (intptr_t) p->path; /* const char * */ iarg[2] = p->mode; /* mode_t */ iarg[3] = p->flag; /* int */ *n_args = 4; @@ -2829,7 +2829,7 @@ case 477: { struct fchownat_args *p = params; iarg[0] = p->dirfd; /* int */ - uarg[1] = (intptr_t) p->path; /* char * */ + uarg[1] = (intptr_t) p->path; /* const char * */ uarg[2] = p->uid; /* uid_t */ iarg[3] = p->gid; /* gid_t */ iarg[4] = p->flag; /* int */ @@ -2849,7 +2849,7 @@ case 479: { struct fstatat_args *p = params; iarg[0] = p->fd; /* int */ - uarg[1] = (intptr_t) p->path; /* char * */ + uarg[1] = (intptr_t) p->path; /* const char * */ uarg[2] = (intptr_t) p->buf; /* struct stat * */ iarg[3] = p->flag; /* int */ *n_args = 4; @@ -2859,8 +2859,8 @@ case 480: { struct futimesat_args *p = params; iarg[0] = p->fd; /* int */ - uarg[1] = (intptr_t) p->path; /* char * */ - uarg[2] = (intptr_t) p->times; /* struct timeval * */ + uarg[1] = (intptr_t) p->path; /* const char * */ + uarg[2] = (intptr_t) p->times; /* const struct timeval * */ *n_args = 3; break; } @@ -2868,9 +2868,9 @@ case 481: { struct linkat_args *p = params; iarg[0] = p->fd1; /* int */ - uarg[1] = (intptr_t) p->path1; /* char * */ + uarg[1] = (intptr_t) p->path1; /* const char * */ iarg[2] = p->fd2; /* int */ - uarg[3] = (intptr_t) p->path2; /* char * */ + uarg[3] = (intptr_t) p->path2; /* const char * */ iarg[4] = p->flag; /* int */ *n_args = 5; break; @@ -2879,7 +2879,7 @@ case 482: { struct mkdirat_args *p = params; iarg[0] = p->fd; /* int */ - uarg[1] = (intptr_t) p->path; /* char * */ + uarg[1] = (intptr_t) p->path; /* const char * */ iarg[2] = p->mode; /* mode_t */ *n_args = 3; break; @@ -2888,7 +2888,7 @@ case 483: { struct mkfifoat_args *p = params; iarg[0] = p->fd; /* int */ - uarg[1] = (intptr_t) p->path; /* char * */ + uarg[1] = (intptr_t) p->path; /* const char * */ iarg[2] = p->mode; /* mode_t */ *n_args = 3; break; @@ -2897,7 +2897,7 @@ case 484: { struct mknodat_args *p = params; iarg[0] = p->fd; /* int */ - uarg[1] = (intptr_t) p->path; /* char * */ + uarg[1] = (intptr_t) p->path; /* const char * */ iarg[2] = p->mode; /* mode_t */ iarg[3] = p->dev; /* dev_t */ *n_args = 4; @@ -2907,7 +2907,7 @@ case 485: { struct openat_args *p = params; iarg[0] = p->fd; /* int */ - uarg[1] = (intptr_t) p->path; /* char * */ + uarg[1] = (intptr_t) p->path; /* const char * */ iarg[2] = p->flag; /* int */ iarg[3] = p->mode; /* mode_t */ *n_args = 4; @@ -2917,7 +2917,7 @@ case 486: { struct readlinkat_args *p = params; iarg[0] = p->fd; /* int */ - uarg[1] = (intptr_t) p->path; /* char * */ + uarg[1] = (intptr_t) p->path; /* const char * */ uarg[2] = (intptr_t) p->buf; /* char * */ uarg[3] = p->bufsize; /* size_t */ *n_args = 4; @@ -2927,18 +2927,18 @@ case 487: { struct renameat_args *p = params; iarg[0] = p->oldfd; /* int */ - uarg[1] = (intptr_t) p->old; /* char * */ + uarg[1] = (intptr_t) p->old; /* const char * */ iarg[2] = p->newfd; /* int */ - uarg[3] = (intptr_t) p->new; /* char * */ + uarg[3] = (intptr_t) p->new; /* const char * */ *n_args = 4; break; } /* symlinkat */ case 488: { struct symlinkat_args *p = params; - uarg[0] = (intptr_t) p->path1; /* char * */ + uarg[0] = (intptr_t) p->path1; /* const char * */ iarg[1] = p->fd; /* int */ - uarg[2] = (intptr_t) p->path2; /* char * */ + uarg[2] = (intptr_t) p->path2; /* const char * */ *n_args = 3; break; } @@ -2946,7 +2946,7 @@ case 489: { struct unlinkat_args *p = params; iarg[0] = p->fd; /* int */ - uarg[1] = (intptr_t) p->path; /* char * */ + uarg[1] = (intptr_t) p->path; /* const char * */ iarg[2] = p->flag; /* int */ *n_args = 3; break; ==== //depot/projects/soc2007/rdivacky/linux_at/sys/kern/vfs_lookup.c#8 (text+ko) ==== @@ -1008,7 +1008,7 @@ * the M_TEMP bucket if one is returned. */ int -kern_alternate_path(struct thread *td, const char *prefix, char *path, +kern_alternate_path(struct thread *td, const char *prefix, const char *path, enum uio_seg pathseg, char **pathbuf, int create, int dirfd) { struct nameidata nd, ndroot; ==== //depot/projects/soc2007/rdivacky/linux_at/sys/kern/vfs_syscalls.c#33 (text+ko) ==== @@ -88,7 +88,7 @@ static int kern_get_at(struct thread *td, int dirfd, struct vnode **dir_vn); static int vn_access(struct vnode *vp, int user_flags, struct ucred *cred, struct thread *td); -static int kern_absolute_path(char *path, enum uio_seg pathseg); +static int kern_absolute_path(const char *path, enum uio_seg pathseg); /* * The module initialization routine for POSIX asynchronous I/O will @@ -974,7 +974,7 @@ kern_open(struct thread *td, char *path, enum uio_seg pathseg, int flags, int mode) { - return kern_openat(td, path, pathseg, flags, mode, AT_FDCWD); + return kern_openat(td, (const char *)path, pathseg, flags, mode, AT_FDCWD); } static int @@ -1001,7 +1001,7 @@ } /* Check whether a path is an absolute path. */ -static int kern_absolute_path(char *path, enum uio_seg pathseg) +static int kern_absolute_path(const char *path, enum uio_seg pathseg) { int error; char buf[1]; @@ -1017,7 +1017,7 @@ } int -kern_openat(struct thread *td, char *path, enum uio_seg pathseg, int flags, +kern_openat(struct thread *td, const char *path, enum uio_seg pathseg, int flags, int mode, int dirfd) { struct nameidata nd; @@ -1233,11 +1233,11 @@ kern_mknod(struct thread *td, char *path, enum uio_seg pathseg, int mode, int dev) { - return kern_mknodat(td, path, pathseg, mode, dev, AT_FDCWD); + return kern_mknodat(td, (const char *)path, pathseg, mode, dev, AT_FDCWD); } int -kern_mknodat(struct thread *td, char *path, enum uio_seg pathseg, int mode, +kern_mknodat(struct thread *td, const char *path, enum uio_seg pathseg, int mode, int dev, int dirfd) { struct vnode *vp, *dir_vn = NULL; @@ -1393,11 +1393,11 @@ int kern_mkfifo(struct thread *td, char *path, enum uio_seg pathseg, int mode) { - return kern_mkfifoat(td, path, pathseg, mode, AT_FDCWD); + return kern_mkfifoat(td, (const char *)path, pathseg, mode, AT_FDCWD); } int -kern_mkfifoat(struct thread *td, char *path, enum uio_seg pathseg, int mode, +kern_mkfifoat(struct thread *td, const char *path, enum uio_seg pathseg, int mode, int dirfd) { struct mount *mp; @@ -1561,12 +1561,13 @@ int kern_link(struct thread *td, char *path, char *link, enum uio_seg segflg) { - return kern_linkat(td, path, link, segflg, AT_FDCWD, AT_FDCWD, FOLLOW); + return kern_linkat(td, (const char *)path, (const char *)link, + segflg, AT_FDCWD, AT_FDCWD, FOLLOW); } int -kern_linkat(struct thread *td, char *path, char *link, enum uio_seg segflg, - int olddirfd, int newdirfd, int follow) +kern_linkat(struct thread *td, const char *path, const char *link, + enum uio_seg segflg, int olddirfd, int newdirfd, int follow) { struct nameidata ndp, ndl; int error; @@ -1683,12 +1684,13 @@ int kern_symlink(struct thread *td, char *path, char *link, enum uio_seg segflg) { - return kern_symlinkat(td, path, link, segflg, AT_FDCWD); + return kern_symlinkat(td, (const char *)path, (const char *)link, + segflg, AT_FDCWD); } int -kern_symlinkat(struct thread *td, char *path, char *link, enum uio_seg segflg, - int dirfd) +kern_symlinkat(struct thread *td, const char *path, const char *link, + enum uio_seg segflg, int dirfd) { struct mount *mp; struct vattr vattr; @@ -1699,7 +1701,7 @@ struct vnode *dir_vn = NULL; if (segflg == UIO_SYSSPACE) { - syspath = path; + syspath = __DECONST(char *, path); } else { syspath = uma_zalloc(namei_zone, M_WAITOK); if ((error = copyinstr(path, syspath, MAXPATHLEN, NULL)) != 0) @@ -1862,11 +1864,11 @@ int kern_unlink(struct thread *td, char *path, enum uio_seg pathseg) { - return kern_unlinkat(td, path, pathseg, AT_FDCWD); + return kern_unlinkat(td, (const char *)path, pathseg, AT_FDCWD); } int -kern_unlinkat(struct thread *td, char *path, enum uio_seg pathseg, int dirfd) +kern_unlinkat(struct thread *td, const char *path, enum uio_seg pathseg, int dirfd) { struct mount *mp; struct vnode *vp, *dir_vn = NULL; @@ -2138,11 +2140,12 @@ int kern_access(struct thread *td, char *path, enum uio_seg pathseg, int flags) { - return kern_accessat(td, path, pathseg, flags, AT_FDCWD); + return kern_accessat(td, (const char *)path, pathseg, flags, AT_FDCWD); } int -kern_accessat(struct thread *td, char *path, enum uio_seg pathseg, int flags, int dirfd) +kern_accessat(struct thread *td, const char *path, enum uio_seg pathseg, + int flags, int dirfd) { int error; struct nameidata nd; @@ -2370,11 +2373,11 @@ int kern_stat(struct thread *td, char *path, enum uio_seg pathseg, struct stat *sbp) { - return kern_statat(td, path, pathseg, sbp, AT_FDCWD); + return kern_statat(td, (const char *)path, pathseg, sbp, AT_FDCWD); } int -kern_statat(struct thread *td, char *path, enum uio_seg pathseg, +kern_statat(struct thread *td, const char *path, enum uio_seg pathseg, struct stat *sbp, int dirfd) { struct nameidata nd; @@ -2439,11 +2442,11 @@ int kern_lstat(struct thread *td, char *path, enum uio_seg pathseg, struct stat *sbp) { - return kern_lstatat(td, path, pathseg, sbp, AT_FDCWD); + return kern_lstatat(td, (const char *)path, pathseg, sbp, AT_FDCWD); } int -kern_lstatat(struct thread *td, char *path, enum uio_seg pathseg, +kern_lstatat(struct thread *td, const char *path, enum uio_seg pathseg, struct stat *sbp, int dirfd) { struct nameidata nd; @@ -2645,12 +2648,13 @@ kern_readlink(struct thread *td, char *path, enum uio_seg pathseg, char *buf, enum uio_seg bufseg, int count) { - return kern_readlinkat(td, path, pathseg, buf, bufseg, count, AT_FDCWD); + return kern_readlinkat(td, (const char *)path, pathseg, buf, bufseg, + count, AT_FDCWD); } int -kern_readlinkat(struct thread *td, char *path, enum uio_seg pathseg, char *buf, - enum uio_seg bufseg, int count, int dirfd) +kern_readlinkat(struct thread *td, const char *path, enum uio_seg pathseg, + char *buf, enum uio_seg bufseg, int count, int dirfd) { struct nameidata nd; struct vnode *dir_vn; @@ -2918,11 +2922,11 @@ int kern_chmod(struct thread *td, char *path, enum uio_seg pathseg, int mode) { - return kern_chmodat(td, path, pathseg, mode, AT_FDCWD); + return kern_chmodat(td, (const char *)path, pathseg, mode, AT_FDCWD); } int -kern_chmodat(struct thread *td, char *path, enum uio_seg pathseg, +kern_chmodat(struct thread *td, const char *path, enum uio_seg pathseg, mode_t mode, int dirfd) { struct nameidata nd; @@ -2971,7 +2975,7 @@ int -kern_lchmodat(struct thread *td, char *path, enum uio_seg pathseg, +kern_lchmodat(struct thread *td, const char *path, enum uio_seg pathseg, mode_t mode, int dirfd) { int error; @@ -3108,11 +3112,11 @@ kern_chown(struct thread *td, char *path, enum uio_seg pathseg, int uid, int gid) { - return kern_chownat(td, path, pathseg, uid, gid, AT_FDCWD); + return kern_chownat(td, (const char *)path, pathseg, uid, gid, AT_FDCWD); } int -kern_chownat(struct thread *td, char *path, enum uio_seg pathseg, int uid, +kern_chownat(struct thread *td, const char *path, enum uio_seg pathseg, int uid, int gid, int dirfd) { struct nameidata nd; @@ -3166,11 +3170,11 @@ kern_lchown(struct thread *td, char *path, enum uio_seg pathseg, int uid, int gid) { - return kern_lchownat(td, path, pathseg, uid, gid, AT_FDCWD); + return kern_lchownat(td, (const char *)path, pathseg, uid, gid, AT_FDCWD); } int -kern_lchownat(struct thread *td, char *path, enum uio_seg pathseg, int uid, +kern_lchownat(struct thread *td, const char *path, enum uio_seg pathseg, int uid, int gid, int dirfd) { struct nameidata nd; @@ -3348,12 +3352,13 @@ kern_utimes(struct thread *td, char *path, enum uio_seg pathseg, struct timeval *tptr, enum uio_seg tptrseg) { - return kern_utimesat(td, path, pathseg, tptr, tptrseg, AT_FDCWD); + return kern_utimesat(td, (const char *)path, pathseg, + (const struct timeval *)tptr, tptrseg, AT_FDCWD); } int -kern_utimesat(struct thread *td, char *path, enum uio_seg pathseg, - struct timeval *tptr, enum uio_seg tptrseg, int dirfd) +kern_utimesat(struct thread *td, const char *path, enum uio_seg pathseg, + const struct timeval *tptr, enum uio_seg tptrseg, int dirfd) { struct nameidata nd; struct vnode *dir_vn; @@ -3744,12 +3749,13 @@ int kern_rename(struct thread *td, char *from, char *to, enum uio_seg pathseg) { - return kern_renameat(td, from, to, pathseg, AT_FDCWD, AT_FDCWD); + return kern_renameat(td, (const char *)from, (const char *)to, pathseg, + AT_FDCWD, AT_FDCWD); } int -kern_renameat(struct thread *td, char *from, char *to, enum uio_seg pathseg, - int fdirfd, int tdirfd) +kern_renameat(struct thread *td, const char *from, const char *to, + enum uio_seg pathseg, int fdirfd, int tdirfd) { struct nameidata fromnd, tond; struct vnode *fdir_vn, *tdir_vn; @@ -3915,11 +3921,12 @@ int kern_mkdir(struct thread *td, char *path, enum uio_seg segflg, int mode) { - return kern_mkdirat(td, path, segflg, mode, AT_FDCWD); + return kern_mkdirat(td, (const char *)path, segflg, mode, AT_FDCWD); } int -kern_mkdirat(struct thread *td, char *path, enum uio_seg segflg, int mode, int dirfd) +kern_mkdirat(struct thread *td, const char *path, enum uio_seg segflg, + int mode, int dirfd) { struct mount *mp; struct vnode *vp, *dir_vn = NULL; @@ -4023,11 +4030,11 @@ int kern_rmdir(struct thread *td, char *path, enum uio_seg pathseg) { - return kern_rmdirat(td, path, pathseg, AT_FDCWD); + return kern_rmdirat(td, (const char *)path, pathseg, AT_FDCWD); } int -kern_rmdirat(struct thread *td, char *path, enum uio_seg pathseg, int dirfd) +kern_rmdirat(struct thread *td, const char *path, enum uio_seg pathseg, int dirfd) { struct mount *mp; struct vnode *vp, *dir_vn = NULL; ==== //depot/projects/soc2007/rdivacky/linux_at/sys/sys/syscall.h#6 (text+ko) ==== ==== //depot/projects/soc2007/rdivacky/linux_at/sys/sys/syscall.mk#6 (text+ko) ==== ==== //depot/projects/soc2007/rdivacky/linux_at/sys/sys/syscallsubr.h#14 (text+ko) ==== @@ -56,24 +56,24 @@ socklen_t *namelen, struct file **fp); int kern_access(struct thread *td, char *path, enum uio_seg pathseg, int flags); -int kern_accessat(struct thread *td, char *path, enum uio_seg pathseg, +int kern_accessat(struct thread *td, const char *path, enum uio_seg pathseg, int flags, int dirfd); int kern_adjtime(struct thread *td, struct timeval *delta, struct timeval *olddelta); -int kern_alternate_path(struct thread *td, const char *prefix, char *path, +int kern_alternate_path(struct thread *td, const char *prefix, const char *path, enum uio_seg pathseg, char **pathbuf, int create, int dirfd); int kern_bind(struct thread *td, int fd, struct sockaddr *sa); int kern_chdir(struct thread *td, char *path, enum uio_seg pathseg); int kern_chmod(struct thread *td, char *path, enum uio_seg pathseg, int mode); -int kern_chmodat(struct thread *td, char *path, enum uio_seg pathseg, +int kern_chmodat(struct thread *td, const char *path, enum uio_seg pathseg, mode_t mode, int dirfd); int kern_chown(struct thread *td, char *path, enum uio_seg pathseg, int uid, int gid); -int kern_lchmodat(struct thread *td, char *path, enum uio_seg pathseg, +int kern_chownat(struct thread *td, const char *path, enum uio_seg pathseg, int uid, + int gid, int dirfd); +int kern_lchmodat(struct thread *td, const char *path, enum uio_seg pathseg, mode_t mode, int dirfd); -int kern_chownat(struct thread *td, char *path, enum uio_seg pathseg, int uid, - int gid, int dirfd); int kern_clock_getres(struct thread *td, clockid_t clock_id, struct timespec *ts); int kern_clock_gettime(struct thread *td, clockid_t clock_id, @@ -110,29 +110,29 @@ int kern_kldunload(struct thread *td, int fileid, int flags); int kern_lchown(struct thread *td, char *path, enum uio_seg pathseg, int uid, int gid); -int kern_lchownat(struct thread *td, char *path, enum uio_seg pathseg, +int kern_lchownat(struct thread *td, const char *path, enum uio_seg pathseg, int uid, int gid, int dirfd); int kern_link(struct thread *td, char *path, char *link, enum uio_seg segflg); -int kern_linkat(struct thread *td, char *path, char *link, +int kern_linkat(struct thread *td, const char *path, const char *link, enum uio_seg segflg, int olddfd, int newdfd, int follow); int kern_lstat(struct thread *td, char *path, enum uio_seg pathseg, struct stat *sbp); -int kern_lstatat(struct thread *td, char *path, enum uio_seg pathseg, +int kern_lstatat(struct thread *td, const char *path, enum uio_seg pathseg, struct stat *sbp, int dfd); int kern_lutimes(struct thread *td, char *path, enum uio_seg pathseg, struct timeval *tptr, enum uio_seg tptrseg); int kern_mkdir(struct thread *td, char *path, enum uio_seg segflg, int mode); -int kern_mkdirat(struct thread *td, char *path, enum uio_seg segflg, +int kern_mkdirat(struct thread *td, const char *path, enum uio_seg segflg, int mode, int dirfd); int kern_mkfifo(struct thread *td, char *path, enum uio_seg pathseg, int mode); -int kern_mkfifoat(struct thread *td, char *path, enum uio_seg pathseg, +int kern_mkfifoat(struct thread *td, const char *path, enum uio_seg pathseg, int mode, int dirfd); int kern_mknod(struct thread *td, char *path, enum uio_seg pathseg, int mode, int dev); -int kern_mknodat(struct thread *td, char *path, enum uio_seg pathseg, +int kern_mknodat(struct thread *td, const char *path, enum uio_seg pathseg, int mode, int dev, int dirfd); int kern_msgctl(struct thread *, int, int, struct msqid_ds *); int kern_msgsnd(struct thread *, int, const void *, size_t, int, long); @@ -141,7 +141,7 @@ struct timespec *rmt); int kern_open(struct thread *td, char *path, enum uio_seg pathseg, int flags, int mode); -int kern_openat(struct thread *td, char *path, enum uio_seg pathseg, +int kern_openat(struct thread *td, const char *path, enum uio_seg pathseg, int flags, int mode, int dirfd); int kern_pathconf(struct thread *td, char *path, enum uio_seg pathseg, int name); @@ -151,17 +151,17 @@ int kern_pwritev(struct thread *td, int fd, struct uio *auio, off_t offset); int kern_readlink(struct thread *td, char *path, enum uio_seg pathseg, char *buf, enum uio_seg bufseg, int count); -int kern_readlinkat(struct thread *td, char *path, enum uio_seg pathseg, +int kern_readlinkat(struct thread *td, const char *path, enum uio_seg pathseg, char *buf, enum uio_seg bufseg, int count, int dirfd); int kern_readv(struct thread *td, int fd, struct uio *auio); int kern_recvit(struct thread *td, int s, struct msghdr *mp, enum uio_seg fromseg, struct mbuf **controlp); int kern_rename(struct thread *td, char *from, char *to, enum uio_seg pathseg); -int kern_renameat(struct thread *td, char *from, char *to, +int kern_renameat(struct thread *td, const char *from, const char *to, enum uio_seg pathseg, int fdirfd, int tdirfd); int kern_rmdir(struct thread *td, char *path, enum uio_seg pathseg); -int kern_rmdirat(struct thread *td, char *path, enum uio_seg pathseg, int dirfd); +int kern_rmdirat(struct thread *td, const char *path, enum uio_seg pathseg, int dirfd); int kern_sched_rr_get_interval(struct thread *td, pid_t pid, struct timespec *ts); int kern_semctl(struct thread *td, int semid, int semnum, int cmd, @@ -192,24 +192,24 @@ int kern_sigsuspend(struct thread *td, sigset_t mask); int kern_stat(struct thread *td, char *path, enum uio_seg pathseg, struct stat *sbp); -int kern_statat(struct thread *td, char *path, enum uio_seg pathseg, +int kern_statat(struct thread *td, const char *path, enum uio_seg pathseg, struct stat *sbp, int dfd); int kern_statfs(struct thread *td, char *path, enum uio_seg pathseg, struct statfs *buf); int kern_symlink(struct thread *td, char *path, char *link, enum uio_seg segflg); -int kern_symlinkat(struct thread *td, char *path, char *link, +int kern_symlinkat(struct thread *td, const char *path, const char *link, enum uio_seg segflg, int dirfd); int kern_thr_new(struct thread *td, struct thr_param *param); int kern_thr_suspend(struct thread *td, struct timespec *tsp); int kern_truncate(struct thread *td, char *path, enum uio_seg pathseg, off_t length); int kern_unlink(struct thread *td, char *path, enum uio_seg pathseg); -int kern_unlinkat(struct thread *td, char *path, enum uio_seg pathseg, int dirfd); +int kern_unlinkat(struct thread *td, const char *path, enum uio_seg pathseg, int dirfd); int kern_utimes(struct thread *td, char *path, enum uio_seg pathseg, struct timeval *tptr, enum uio_seg tptrseg); -int kern_utimesat(struct thread *td, char *path, enum uio_seg pathseg, - struct timeval *tptr, enum uio_seg tptrseg, int dirfd); +int kern_utimesat(struct thread *td, const char *path, enum uio_seg pathseg, + const struct timeval *tptr, enum uio_seg tptrseg, int dirfd); int kern_wait(struct thread *td, pid_t pid, int *status, int options, struct rusage *rup); int kern_writev(struct thread *td, int fd, struct uio *auio); ==== //depot/projects/soc2007/rdivacky/linux_at/sys/sys/sysproto.h#6 (text+ko) ==== @@ -1484,19 +1484,19 @@ }; struct faccessat_args { char dirfd_l_[PADL_(int)]; int dirfd; char dirfd_r_[PADR_(int)]; - char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; + char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)]; char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)]; }; struct fchmodat_args { char dirfd_l_[PADL_(int)]; int dirfd; char dirfd_r_[PADR_(int)]; - char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; + char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; char mode_l_[PADL_(mode_t)]; mode_t mode; char mode_r_[PADR_(mode_t)]; char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)]; }; struct fchownat_args { char dirfd_l_[PADL_(int)]; int dirfd; char dirfd_r_[PADR_(int)]; - char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; + char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; char uid_l_[PADL_(uid_t)]; uid_t uid; char uid_r_[PADR_(uid_t)]; char gid_l_[PADL_(gid_t)]; gid_t gid; char gid_r_[PADR_(gid_t)]; char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)]; @@ -1508,64 +1508,64 @@ }; struct fstatat_args { char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; - char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; + char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; char buf_l_[PADL_(struct stat *)]; struct stat * buf; char buf_r_[PADR_(struct stat *)]; char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)]; }; >>> TRUNCATED FOR MAIL (1000 lines) <<<
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706280835.l5S8ZxW4016901>