Skip to content

Commit bbd39aa

Browse files
committed
Replace http://man7.org links with https://man7.org links.
I suspect the way http:// dies is that browsers just interpret it as https:// anyway, but there's no reason not to just bulk fix all these at source. Change-Id: I38fa91728846d7c33207ef1bdadd4910eac9e941
1 parent 0aad38d commit bbd39aa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+326
-326
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ users in different projects, and there isn't a more specific higher-level
177177
library that would make more sense as the place to add the wrapper.
178178

179179
In all other cases, you should use
180-
[syscall(3)](http://man7.org/linux/man-pages/man2/syscall.2.html) instead.
180+
[syscall(3)](https://man7.org/linux/man-pages/man2/syscall.2.html) instead.
181181

182182
Adding a system call usually involves:
183183

libc/bionic/spawn.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ static int posix_spawn(pid_t* pid_ptr,
186186
char* const argv[],
187187
char* const env[],
188188
int exec_fn(const char* path, char* const argv[], char* const env[])) {
189-
// See http://man7.org/linux/man-pages/man3/posix_spawn.3.html
189+
// See https://man7.org/linux/man-pages/man3/posix_spawn.3.html
190190
// and http://pubs.opengroup.org/onlinepubs/9699919799/functions/posix_spawn.html
191191

192192
ScopedSignalBlocker ssb;

libc/include/alloca.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#include <sys/cdefs.h>
3737

3838
/**
39-
* [alloca(3)](http://man7.org/linux/man-pages/man3/alloca.3.html) allocates space on the stack.
39+
* [alloca(3)](https://man7.org/linux/man-pages/man3/alloca.3.html) allocates space on the stack.
4040
*
4141
* New code should not use alloca because it cannot report failure.
4242
* Use regular heap allocation instead.

libc/include/android/dlext.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
/**
3131
* \file
3232
* Advanced dynamic library opening support. Most users will want to use
33-
* the standard [dlopen(3)](http://man7.org/linux/man-pages/man3/dlopen.3.html)
33+
* the standard [dlopen(3)](https://man7.org/linux/man-pages/man3/dlopen.3.html)
3434
* functionality in `<dlfcn.h>` instead.
3535
*/
3636

@@ -174,7 +174,7 @@ typedef struct {
174174

175175
/**
176176
* Opens the given library. The `__filename` and `__flags` arguments are
177-
* the same as for [dlopen(3)](http://man7.org/linux/man-pages/man3/dlopen.3.html),
177+
* the same as for [dlopen(3)](https://man7.org/linux/man-pages/man3/dlopen.3.html),
178178
* with the Android-specific flags supplied via the `flags` member of `__info`.
179179
*/
180180
void* _Nullable android_dlopen_ext(const char* _Nullable __filename, int __flags, const android_dlextinfo* _Nullable __info);

libc/include/bits/fcntl.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
__BEGIN_DECLS
3939

4040
/**
41-
* [fcntl(3)](http://man7.org/linux/man-pages/man2/fcntl.2.html) performs various operations
41+
* [fcntl(3)](https://man7.org/linux/man-pages/man2/fcntl.2.html) performs various operations
4242
* on file descriptors.
4343
*
4444
* The return value depends on the operation.

libc/include/bits/getentropy.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
__BEGIN_DECLS
4040

4141
/**
42-
* [getentropy(3)](http://man7.org/linux/man-pages/man3/getentropy.3.html) fills the given buffer
42+
* [getentropy(3)](https://man7.org/linux/man-pages/man3/getentropy.3.html) fills the given buffer
4343
* with random bytes.
4444
*
4545
* Returns 0 on success, and returns -1 and sets `errno` on failure.

libc/include/bits/getopt.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
__BEGIN_DECLS
3434

3535
/**
36-
* [getopt(3)](http://man7.org/linux/man-pages/man3/getopt.3.html) parses command-line options.
36+
* [getopt(3)](https://man7.org/linux/man-pages/man3/getopt.3.html) parses command-line options.
3737
*
3838
* Returns the next option character on success, returns -1 if all options have been parsed, and
3939
* returns `'?'` on error.

libc/include/bits/ioctl.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
__BEGIN_DECLS
3939

4040
/**
41-
* [ioctl(2)](http://man7.org/linux/man-pages/man2/ioctl.2.html) operates on device files.
41+
* [ioctl(2)](https://man7.org/linux/man-pages/man2/ioctl.2.html) operates on device files.
4242
*/
4343
int ioctl(int __fd, int __op, ...);
4444

libc/include/bits/lockf.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
__BEGIN_DECLS
4949

5050
/**
51-
* [lockf(3)](http://man7.org/linux/man-pages/man3/lockf.3.html) manipulates POSIX file locks.
51+
* [lockf(3)](https://man7.org/linux/man-pages/man3/lockf.3.html) manipulates POSIX file locks.
5252
*
5353
* Returns 0 on success, and returns -1 and sets `errno` on failure.
5454
*

libc/include/bits/posix_limits.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
(((__ANDROID_API__) >= (level)) ? _POSIX_VERSION : __BIONIC_POSIX_FEATURE_MISSING)
4141

4242
/* Availability macros. */
43-
/* See http://man7.org/linux/man-pages/man7/posixoptions.7.html for documentation. */
43+
/* See https://man7.org/linux/man-pages/man7/posixoptions.7.html for documentation. */
4444
/* Keep this list sorted by name. */
4545
#define _POSIX_ADVISORY_INFO __BIONIC_POSIX_FEATURE_SINCE(23) /* posix_memadvise arrived late. */
4646
#define _POSIX_ASYNCHRONOUS_IO __BIONIC_POSIX_FEATURE_MISSING

libc/include/bits/seek_constants.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@
4646
* Seek to the first data (non-hole) location in the file
4747
* greater than or equal to the given offset.
4848
*
49-
* See [lseek(2)](http://man7.org/linux/man-pages/man2/lseek.2.html).
49+
* See [lseek(2)](https://man7.org/linux/man-pages/man2/lseek.2.html).
5050
*/
5151
#define SEEK_DATA 3
5252

5353
/**
5454
* Seek to the first hole (non-data) location in the file
5555
* greater than or equal to the given offset.
5656
*
57-
* See [lseek(2)](http://man7.org/linux/man-pages/man2/lseek.2.html).
57+
* See [lseek(2)](https://man7.org/linux/man-pages/man2/lseek.2.html).
5858
*/
5959
#define SEEK_HOLE 4
6060

libc/include/bits/strcasecmp.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
__BEGIN_DECLS
4141

4242
/**
43-
* [strcasecmp(3)](http://man7.org/linux/man-pages/man3/strcasecmp.3.html) compares two strings
43+
* [strcasecmp(3)](https://man7.org/linux/man-pages/man3/strcasecmp.3.html) compares two strings
4444
* ignoring case.
4545
*
4646
* Returns an integer less than, equal to, or greater than zero if the first string is less than,
@@ -54,7 +54,7 @@ int strcasecmp(const char* _Nonnull __s1, const char* _Nonnull __s2) __attribute
5454
int strcasecmp_l(const char* _Nonnull __s1, const char* _Nonnull __s2, locale_t _Nonnull __l) __attribute_pure__ __INTRODUCED_IN(23);
5555

5656
/**
57-
* [strncasecmp(3)](http://man7.org/linux/man-pages/man3/strncasecmp.3.html) compares the first
57+
* [strncasecmp(3)](https://man7.org/linux/man-pages/man3/strncasecmp.3.html) compares the first
5858
* `n` bytes of two strings ignoring case.
5959
*
6060
* Returns an integer less than, equal to, or greater than zero if the first `n` bytes of the

libc/include/byteswap.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,19 @@
3737
#include <sys/endian.h>
3838

3939
/**
40-
* [bswap_16(3)](http://man7.org/linux/man-pages/man3/bswap_16.3.html) swaps the bytes in a
40+
* [bswap_16(3)](https://man7.org/linux/man-pages/man3/bswap_16.3.html) swaps the bytes in a
4141
* 16-bit value.
4242
*/
4343
#define bswap_16(x) __swap16(x)
4444

4545
/**
46-
* [bswap_32(3)](http://man7.org/linux/man-pages/man3/bswap_32.3.html) swaps the bytes in a
46+
* [bswap_32(3)](https://man7.org/linux/man-pages/man3/bswap_32.3.html) swaps the bytes in a
4747
* 32-bit value.
4848
*/
4949
#define bswap_32(x) __swap32(x)
5050

5151
/**
52-
* [bswap_64(3)](http://man7.org/linux/man-pages/man3/bswap_64.3.html) swaps the bytes in a
52+
* [bswap_64(3)](https://man7.org/linux/man-pages/man3/bswap_64.3.html) swaps the bytes in a
5353
* 64-bit value.
5454
*/
5555
#define bswap_64(x) __swap64(x)

libc/include/dirent.h

+15-15
Original file line numberDiff line numberDiff line change
@@ -90,23 +90,23 @@ struct dirent64 { __DIRENT64_BODY };
9090
typedef struct DIR DIR;
9191

9292
/**
93-
* [opendir(3)](http://man7.org/linux/man-pages/man3/opendir.3.html)
93+
* [opendir(3)](https://man7.org/linux/man-pages/man3/opendir.3.html)
9494
* opens a directory stream for the directory at `__path`.
9595
*
9696
* Returns null and sets `errno` on failure.
9797
*/
9898
DIR* _Nullable opendir(const char* _Nonnull __path);
9999

100100
/**
101-
* [fopendir(3)](http://man7.org/linux/man-pages/man3/opendir.3.html)
101+
* [fopendir(3)](https://man7.org/linux/man-pages/man3/opendir.3.html)
102102
* opens a directory stream for the directory at `__dir_fd`.
103103
*
104104
* Returns null and sets `errno` on failure.
105105
*/
106106
DIR* _Nullable fdopendir(int __dir_fd);
107107

108108
/**
109-
* [readdir(3)](http://man7.org/linux/man-pages/man3/readdir.3.html)
109+
* [readdir(3)](https://man7.org/linux/man-pages/man3/readdir.3.html)
110110
* returns the next directory entry in the given directory.
111111
*
112112
* Returns a pointer to a directory entry on success,
@@ -116,7 +116,7 @@ DIR* _Nullable fdopendir(int __dir_fd);
116116
struct dirent* _Nullable readdir(DIR* _Nonnull __dir);
117117

118118
/**
119-
* [readdir64(3)](http://man7.org/linux/man-pages/man3/readdir.3.html)
119+
* [readdir64(3)](https://man7.org/linux/man-pages/man3/readdir.3.html)
120120
* returns the next directory entry in the given directory.
121121
*
122122
* Returns a pointer to a directory entry on success,
@@ -129,21 +129,21 @@ int readdir_r(DIR* _Nonnull __dir, struct dirent* _Nonnull __entry, struct diren
129129
int readdir64_r(DIR* _Nonnull __dir, struct dirent64* _Nonnull __entry, struct dirent64* _Nullable * _Nonnull __buffer) __attribute__((__deprecated__("readdir64_r is deprecated; use readdir64 instead")));
130130

131131
/**
132-
* [closedir(3)](http://man7.org/linux/man-pages/man3/closedir.3.html)
132+
* [closedir(3)](https://man7.org/linux/man-pages/man3/closedir.3.html)
133133
* closes a directory stream.
134134
*
135135
* Returns 0 on success and returns -1 and sets `errno` on failure.
136136
*/
137137
int closedir(DIR* _Nonnull __dir);
138138

139139
/**
140-
* [rewinddir(3)](http://man7.org/linux/man-pages/man3/rewinddir.3.html)
140+
* [rewinddir(3)](https://man7.org/linux/man-pages/man3/rewinddir.3.html)
141141
* rewinds a directory stream to the first entry.
142142
*/
143143
void rewinddir(DIR* _Nonnull __dir);
144144

145145
/**
146-
* [seekdir(3)](http://man7.org/linux/man-pages/man3/seekdir.3.html)
146+
* [seekdir(3)](https://man7.org/linux/man-pages/man3/seekdir.3.html)
147147
* seeks a directory stream to the given entry, which must be a value returned
148148
* by telldir().
149149
*
@@ -152,7 +152,7 @@ void rewinddir(DIR* _Nonnull __dir);
152152
void seekdir(DIR* _Nonnull __dir, long __location) __INTRODUCED_IN(23);
153153

154154
/**
155-
* [telldir(3)](http://man7.org/linux/man-pages/man3/telldir.3.html)
155+
* [telldir(3)](https://man7.org/linux/man-pages/man3/telldir.3.html)
156156
* returns a value representing the current position in the directory
157157
* for use with seekdir().
158158
*
@@ -163,27 +163,27 @@ void seekdir(DIR* _Nonnull __dir, long __location) __INTRODUCED_IN(23);
163163
long telldir(DIR* _Nonnull __dir) __INTRODUCED_IN(23);
164164

165165
/**
166-
* [dirfd(3)](http://man7.org/linux/man-pages/man3/dirfd.3.html)
166+
* [dirfd(3)](https://man7.org/linux/man-pages/man3/dirfd.3.html)
167167
* returns the file descriptor backing the given directory stream.
168168
*
169169
* Returns a file descriptor on success and returns -1 and sets `errno` on failure.
170170
*/
171171
int dirfd(DIR* _Nonnull __dir);
172172

173173
/**
174-
* [alphasort](http://man7.org/linux/man-pages/man3/alphasort.3.html) is a
174+
* [alphasort](https://man7.org/linux/man-pages/man3/alphasort.3.html) is a
175175
* comparator for use with scandir() that uses strcoll().
176176
*/
177177
int alphasort(const struct dirent* _Nonnull * _Nonnull __lhs, const struct dirent* _Nonnull * _Nonnull __rhs);
178178

179179
/**
180-
* [alphasort64](http://man7.org/linux/man-pages/man3/alphasort.3.html) is a
180+
* [alphasort64](https://man7.org/linux/man-pages/man3/alphasort.3.html) is a
181181
* comparator for use with scandir64() that uses strcmp().
182182
*/
183183
int alphasort64(const struct dirent64* _Nonnull * _Nonnull __lhs, const struct dirent64* _Nonnull * _Nonnull __rhs);
184184

185185
/**
186-
* [scandir(3)](http://man7.org/linux/man-pages/man3/scandir.3.html)
186+
* [scandir(3)](https://man7.org/linux/man-pages/man3/scandir.3.html)
187187
* scans all the directory `__path`, filtering entries with `__filter` and
188188
* sorting them with qsort() using the given `__comparator`, and storing them
189189
* into `__name_list`. Passing NULL as the filter accepts all entries.
@@ -195,7 +195,7 @@ int alphasort64(const struct dirent64* _Nonnull * _Nonnull __lhs, const struct d
195195
int scandir(const char* _Nonnull __path, struct dirent* _Nonnull * _Nonnull * _Nonnull __name_list, int (* _Nullable __filter)(const struct dirent* _Nonnull), int (* _Nullable __comparator)(const struct dirent* _Nonnull * _Nonnull, const struct dirent* _Nonnull * _Nonnull));
196196

197197
/**
198-
* [scandir64(3)](http://man7.org/linux/man-pages/man3/scandir.3.html)
198+
* [scandir64(3)](https://man7.org/linux/man-pages/man3/scandir.3.html)
199199
* scans all the directory `__path`, filtering entries with `__filter` and
200200
* sorting them with qsort() using the given `__comparator`, and storing them
201201
* into `__name_list`. Passing NULL as the filter accepts all entries.
@@ -209,7 +209,7 @@ int scandir64(const char* _Nonnull __path, struct dirent64* _Nonnull * _Nonnull
209209
#if defined(__USE_GNU)
210210

211211
/**
212-
* [scandirat64(3)](http://man7.org/linux/man-pages/man3/scandirat.3.html)
212+
* [scandirat64(3)](https://man7.org/linux/man-pages/man3/scandirat.3.html)
213213
* scans all the directory referenced by the pair of `__dir_fd` and `__path`,
214214
* filtering entries with `__filter` and sorting them with qsort() using the
215215
* given `__comparator`, and storing them into `__name_list`. Passing NULL as
@@ -224,7 +224,7 @@ int scandir64(const char* _Nonnull __path, struct dirent64* _Nonnull * _Nonnull
224224
int scandirat64(int __dir_fd, const char* _Nonnull __path, struct dirent64* _Nonnull * _Nonnull * _Nonnull __name_list, int (* _Nullable __filter)(const struct dirent64* _Nonnull), int (* _Nullable __comparator)(const struct dirent64* _Nonnull * _Nonnull, const struct dirent64* _Nonnull * _Nonnull)) __INTRODUCED_IN(24);
225225

226226
/**
227-
* [scandirat(3)](http://man7.org/linux/man-pages/man3/scandirat.3.html)
227+
* [scandirat(3)](https://man7.org/linux/man-pages/man3/scandirat.3.html)
228228
* scans all the directory referenced by the pair of `__dir_fd` and `__path`,
229229
* filtering entries with `__filter` and sorting them with qsort() using the
230230
* given `__comparator`, and storing them into `__name_list`. Passing NULL as

libc/include/dlfcn.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ typedef struct {
4848
} Dl_info;
4949

5050
/**
51-
* [dlopen(3)](http://man7.org/linux/man-pages/man3/dlopen.3.html)
51+
* [dlopen(3)](https://man7.org/linux/man-pages/man3/dlopen.3.html)
5252
* loads the given shared library.
5353
*
5454
* Returns a pointer to an opaque handle for use with other <dlfcn.h> functions
@@ -58,7 +58,7 @@ typedef struct {
5858
void* _Nullable dlopen(const char* _Nullable __filename, int __flag);
5959

6060
/**
61-
* [dlclose(3)](http://man7.org/linux/man-pages/man3/dlclose.3.html)
61+
* [dlclose(3)](https://man7.org/linux/man-pages/man3/dlclose.3.html)
6262
* decrements the reference count for the given shared library (and
6363
* any libraries brought in by that library's DT_NEEDED entries).
6464
*
@@ -84,7 +84,7 @@ void* _Nullable dlopen(const char* _Nullable __filename, int __flag);
8484
int dlclose(void* _Nonnull __handle);
8585

8686
/**
87-
* [dlerror(3)](http://man7.org/linux/man-pages/man3/dlerror.3.html)
87+
* [dlerror(3)](https://man7.org/linux/man-pages/man3/dlerror.3.html)
8888
* returns a human-readable error message describing the most recent
8989
* failure from one of the <dlfcn.h> functions on the calling thread.
9090
*
@@ -97,7 +97,7 @@ int dlclose(void* _Nonnull __handle);
9797
char* _Nullable dlerror(void);
9898

9999
/**
100-
* [dlsym(3)](http://man7.org/linux/man-pages/man3/dlsym.3.html)
100+
* [dlsym(3)](https://man7.org/linux/man-pages/man3/dlsym.3.html)
101101
* returns a pointer to the symbol with the given name in the shared
102102
* library represented by the given handle. The handle may have been
103103
* returned from dlopen(), or can be RTLD_DEFAULT or RTLD_NEXT.
@@ -108,7 +108,7 @@ char* _Nullable dlerror(void);
108108
void* _Nullable dlsym(void* __BIONIC_COMPLICATED_NULLNESS __handle, const char* _Nullable __symbol);
109109

110110
/**
111-
* [dlvsym(3)](http://man7.org/linux/man-pages/man3/dlvsym.3.html)
111+
* [dlvsym(3)](https://man7.org/linux/man-pages/man3/dlvsym.3.html)
112112
* returns a pointer to the symbol with the given name and version in the shared
113113
* library represented by the given handle. The handle may have been
114114
* returned from dlopen(), or can be RTLD_DEFAULT or RTLD_NEXT.
@@ -119,7 +119,7 @@ void* _Nullable dlsym(void* __BIONIC_COMPLICATED_NULLNESS __handle, const char*
119119
void* _Nullable dlvsym(void* __BIONIC_COMPLICATED_NULLNESS __handle, const char* _Nullable __symbol, const char* _Nullable __version) __INTRODUCED_IN(24);
120120

121121
/**
122-
* [dladdr(3)](http://man7.org/linux/man-pages/man3/dladdr.3.html)
122+
* [dladdr(3)](https://man7.org/linux/man-pages/man3/dladdr.3.html)
123123
* returns information about the symbol at the given address.
124124
*
125125
* Returns non-zero on success, and returns 0 on failure. Note that unlike

0 commit comments

Comments
 (0)