diff options
author | Ulrich Drepper <drepper@gmail.com> | 2012-01-07 23:57:22 -0500 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2012-01-07 23:57:22 -0500 |
commit | a784e502472fb3a1afa4d01a47c66b52d23e00f6 (patch) | |
tree | 5ebaa084119dcffe41671a62e2e799b172c57d24 /include/unistd.h | |
parent | 33808bf1164be2e7c8535bdd5ac398c75c33ed49 (diff) | |
download | glibc-a784e502472fb3a1afa4d01a47c66b52d23e00f6.tar.gz |
Remove pre-ISO C support
No more __const.
Diffstat (limited to 'include/unistd.h')
-rw-r--r-- | include/unistd.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/include/unistd.h b/include/unistd.h index 3231943b02..4664dc2852 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -20,8 +20,8 @@ libc_hidden_proto (tcgetpgrp) libc_hidden_proto (readlinkat) /* Now define the internal interfaces. */ -extern int __access (__const char *__name, int __type); -extern int __euidaccess (__const char *__name, int __type); +extern int __access (const char *__name, int __type); +extern int __euidaccess (const char *__name, int __type); extern __off64_t __lseek64 (int __fd, __off64_t __offset, int __whence); extern __off_t __lseek (int __fd, __off_t __offset, int __whence); libc_hidden_proto (__lseek) @@ -35,31 +35,31 @@ extern ssize_t __pread64 (int __fd, void *__buf, size_t __nbytes, __off64_t __offset); extern ssize_t __libc_pread64 (int __fd, void *__buf, size_t __nbytes, __off64_t __offset); -extern ssize_t __pwrite (int __fd, __const void *__buf, size_t __n, +extern ssize_t __pwrite (int __fd, const void *__buf, size_t __n, __off_t __offset); -extern ssize_t __libc_pwrite (int __fd, __const void *__buf, size_t __n, +extern ssize_t __libc_pwrite (int __fd, const void *__buf, size_t __n, __off_t __offset); -extern ssize_t __pwrite64 (int __fd, __const void *__buf, size_t __n, +extern ssize_t __pwrite64 (int __fd, const void *__buf, size_t __n, __off64_t __offset); libc_hidden_proto (__pwrite64) -extern ssize_t __libc_pwrite64 (int __fd, __const void *__buf, size_t __n, +extern ssize_t __libc_pwrite64 (int __fd, const void *__buf, size_t __n, __off64_t __offset); extern ssize_t __libc_read (int __fd, void *__buf, size_t __n); libc_hidden_proto (__libc_read) -extern ssize_t __libc_write (int __fd, __const void *__buf, size_t __n); +extern ssize_t __libc_write (int __fd, const void *__buf, size_t __n); libc_hidden_proto (__libc_write) extern int __pipe (int __pipedes[2]); libc_hidden_proto (__pipe) extern int __pipe2 (int __pipedes[2], int __flags); extern unsigned int __sleep (unsigned int __seconds); -extern int __chown (__const char *__file, +extern int __chown (const char *__file, __uid_t __owner, __gid_t __group); libc_hidden_proto (__chown) extern int __fchown (int __fd, __uid_t __owner, __gid_t __group); -extern int __lchown (__const char *__file, __uid_t __owner, +extern int __lchown (const char *__file, __uid_t __owner, __gid_t __group); -extern int __chdir (__const char *__path); +extern int __chdir (const char *__path); extern int __fchdir (int __fd); extern char *__getcwd (char *__buf, size_t __size); extern int __rmdir (const char *__path); @@ -72,7 +72,7 @@ extern int __execvpe (const char *file, char *const argv[], NULL, an array is allocated with `malloc'; the array is SIZE bytes long, unless SIZE <= 0, in which case it is as big as necessary. */ -char *__canonicalize_directory_name_internal (__const char *__thisdir, +char *__canonicalize_directory_name_internal (const char *__thisdir, char *__buf, size_t __size) attribute_hidden; @@ -80,9 +80,9 @@ extern int __dup (int __fd); extern int __dup2 (int __fd, int __fd2); libc_hidden_proto (__dup2) libc_hidden_proto (dup3) -extern int __execve (__const char *__path, char *__const __argv[], - char *__const __envp[]); -extern long int __pathconf (__const char *__path, int __name); +extern int __execve (const char *__path, char *const __argv[], + char *const __envp[]); +extern long int __pathconf (const char *__path, int __name); extern long int __fpathconf (int __fd, int __name); extern long int __sysconf (int __name); libc_hidden_proto (__sysconf) @@ -115,10 +115,10 @@ extern __pid_t __vfork (void); libc_hidden_proto (__vfork) extern int __ttyname_r (int __fd, char *__buf, size_t __buflen); extern int __isatty (int __fd); -extern int __link (__const char *__from, __const char *__to); -extern int __symlink (__const char *__from, __const char *__to); -extern ssize_t __readlink (__const char *__path, char *__buf, size_t __len); -extern int __unlink (__const char *__name); +extern int __link (const char *__from, const char *__to); +extern int __symlink (const char *__from, const char *__to); +extern ssize_t __readlink (const char *__path, char *__buf, size_t __len); +extern int __unlink (const char *__name); extern int __gethostname (char *__name, size_t __len); extern int __profil (unsigned short int *__sample_buffer, size_t __size, size_t __offset, unsigned int __scale); @@ -129,7 +129,7 @@ libc_hidden_proto (__close) extern int __libc_close (int __fd); extern ssize_t __read (int __fd, void *__buf, size_t __nbytes); libc_hidden_proto (__read) -extern ssize_t __write (int __fd, __const void *__buf, size_t __n); +extern ssize_t __write (int __fd, const void *__buf, size_t __n); libc_hidden_proto (__write) extern __pid_t __fork (void); libc_hidden_proto (__fork) |