summary refs log tree commit diff stats
path: root/lib/posix/posix.nim
Commit message (Collapse)AuthorAgeFilesLines
* Moved ioctl to posix.nimxyz2016-01-171-0/+4
|
* fix rawsockets testAman Gupta2015-10-021-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FAIL: trawsockets.nim Test "tests/cpp/trawsockets.nim" in category "cpp" Failure: reNimcCrash Expected: Gotten: Hint: system [Processing] Hint: trawsockets [Processing] Hint: rawsockets [Processing] Hint: unsigned [Processing] lib/pure/rawsockets.nim(15, 8) Warning: unsigned is deprecated [Deprecated] Hint: os [Processing] Hint: strutils [Processing] Hint: parseutils [Processing] Hint: times [Processing] Hint: posix [Processing] CC: compiler_trawsockets CC: stdlib_system CC: stdlib_rawsockets CC: stdlib_unsigned CC: stdlib_os CC: stdlib_strutils Error: execution of an external compiler program 'clang++ -c -w -I/Users/tmm1/code/nim/lib -o tests/cpp/nimcache/stdlib_rawsockets.o tests/cpp/nimcache/stdlib_rawsockets.cpp' failed with exit code: 256 tests/cpp/nimcache/stdlib_rawsockets.cpp:355:8: error: assigning to 'NCSTRING' (aka 'char *') from incompatible type 'const char *' LOC6 = gai_strerror(gairesult); ^ ~~~~~~~~~~~~~~~~~~~~~~~ tests/cpp/nimcache/stdlib_rawsockets.cpp:499:8: error: assigning to 'NCSTRING' (aka 'char *') from incompatible type 'const char *' LOC5 = hstrerror(h_errno); ^ ~~~~~~~~~~~~~~~~~~ tests/cpp/nimcache/stdlib_rawsockets.cpp:650:8: error: assigning to 'NCSTRING' (aka 'char *') from incompatible type 'const char *' LOC9 = inet_ntop(AF_INET6, ((void*) (addr6)), result->data, ((NI32)chckRange((result ? result->len : 0), ((NI32) (-2147483647 -1)), ((NI32) 2147483647)))); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tests/cpp/nimcache/stdlib_rawsockets.cpp:771:10: error: assigning to 'NCSTRING' (aka 'char *') from incompatible type 'const char *' LOC17 = inet_ntop(name.sin6_family, ((void*) ((&name))), ((NCSTRING) (buf)), ((NI32)chckRange(((NI)sizeof(TY143006)), ((NI32) (-2147483647 -1)), ((NI32) 2147483647)))); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tests/cpp/nimcache/stdlib_rawsockets.cpp:859:10: error: assigning to 'NCSTRING' (aka 'char *') from incompatible type 'const char *' LOC17 = inet_ntop(name.sin6_family, ((void*) ((&name))), ((NCSTRING) (buf)), ((NI32)chckRange(((NI)sizeof(TY143006)), ((NI32) (-2147483647 -1)), ((NI32) 2147483647)))); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5 errors generated.
* wait's input is nullable, and it is discardableBruce Doan2015-09-161-1/+1
|
* Add popen()/pclose() support to posix.nimReimer Behrends2015-07-011-0/+2
|
* Expose INET6_ADDRSTRLEN.Andrew Yourtchenko2015-06-241-0/+2
|
* Update posix.Sockaddr_in6 and posix.Sockaddr_storage, deprecate old T* types.Andrew Yourtchenko2015-06-241-2/+3
|
* lib/posix - Dropped 'T' from typespdw2015-06-041-456/+482
|
* Fixed SIGPIPE on MacOSyglukhov2015-04-081-1/+4
|
* fixes https://github.com/Araq/Nim/issues/2116Jakob Oesterling2015-04-011-1/+2
|
* Fixed Tdirent definition for OS X and BSD.Reimer Behrends2015-03-221-1/+1
| | | | | Entries d_type etc. were disabled on architectures other than Linux, but also used for OS X and BSD in os.nim.
* fixes #2116Araq2015-03-221-4/+5
|
* Add some posix dirent documentationdef2015-02-241-11/+12
|
* Speed up walkDir significantlydef2015-02-241-0/+13
| | | | | | We only know that this works on Linux and Mac OS X, so other systems use the POSIX conforming version still. This removed the lstat call, which is especially expensive on NFS filesystems for me.
* Always use 0x40 for POSIX_SPAWN_USEVFORKdef2015-02-171-6/+4
|
* fixes #2116Araq2015-02-131-11/+4
|
* Fixes parallel build on FreeBSDmodk2015-01-261-8/+8
|
* Add workaround for TCC to make POSIX_SPAWN_USEVFORK availabledef2015-01-061-1/+6
|
* ignore signal SIGPIPE on DarwinAndre2014-12-301-2/+2
|
* Merge branch 'devel' into bigbreakAraq2014-11-031-42/+0
|\ | | | | | | | | | | | | | | Conflicts: lib/impure/db_postgres.nim lib/pure/json.nim lib/pure/math.nim lib/system/atomics.nim
| * Merge pull request #1448 from def-/posix-mathAndreas Rumpf2014-11-031-42/+0
| |\ | | | | | | Add -lm for fesetround and fegetround
| | * Move floating point rounding and exceptions handling to mathdef2014-08-061-45/+0
| | | | | | | | | | | | (it's C99 as well, not just POSIX)
| | * Add -lm for fesetround and fegetrounddef2014-08-051-0/+3
| | |
* | | Fixed FD_SET casingErik O'Leary2014-10-101-1/+1
| | |
* | | 'nimfix' improvements; FdSet is TFdSet againAraq2014-09-081-8/+8
| | |
* | | more tests greenAraq2014-08-311-16/+16
| | |
* | | fixed posix.nimAraq2014-08-301-1/+2
| | |
* | | posix.nim compiles againAraq2014-08-291-34/+34
| | |
* | | Nimrod renamed to NimAraq2014-08-281-3/+3
| | |
* | | big renameAraq2014-08-281-76/+81
| | |
* | | big renameAraq2014-08-281-2/+5
|/ /
* | Merge pull request #1405 from boydgreenfield/add_mmap_map_populateAndreas Rumpf2014-08-121-0/+10
|\ \ | |/ |/| Add mmap map populate
| * Only try to import MAP_POPULATE on Linux, define flag as 0 otherwise.Nick Greenfield2014-07-231-2/+10
| |
| * Add automatic MAP_POPULATE flag for opening read_only (MAP_PRIVATE) and ↵Nick Greenfield2014-07-231-0/+2
| | | | | | | | shared (MAP_SHARED) mmap files.
* | Add "struct" to POSIX flockdef2014-07-311-1/+1
|/
* Fixes missing MSG_NOSIGNAL on Mac OS X.Dominik Picheta2014-07-141-2/+11
|
* Added define check for openBSD around fmtmsg.h stuff, OpenBSD does not ↵Charlie Barto2014-05-041-2/+2
| | | | actually include this header
* New concurrency model: next stepsAraq2014-04-191-0/+2
|
* Merge pull request #927 from gradha/pr_adds_posix_timegmAndreas Rumpf2014-03-031-0/+1
|\ | | | | Adds posix.timegm(), brother of posix.mktime().
| * Adds posix.timegm(), brother of posix.mktime().Grzegorz Adam Hankiewicz2014-02-151-0/+1
| |
* | Merge pull request #917 from zielmicha/vforkAndreas Rumpf2014-02-231-0/+1
|\ \ | | | | | | osproc: Raise exception if execv fails in child process
| * | osproc: make failed execv an exception (when using fork or clone)Michał Zieliński2014-02-151-0/+1
| |/ | | | | | | | | startProcessAuxFork creates a pipe, which is used by a child to pass an error code if execv fails.
* / Implemented selector support for asyncio2.Dominik Picheta2014-02-221-1/+1
|/
* Adds utimes() importc to posix module.Grzegorz Adam Hankiewicz2014-02-021-0/+12
|
* Merge branch 'osproc' into develMichał Zieliński2014-01-201-446/+445
|\ | | | | | | | | | | Conflicts: lib/posix/posix.nim lib/pure/osproc.nim
| * Introduce poEvalCommand, poUsePath, fix remaining quoting issues.Michał Zieliński2013-12-211-2/+1
| | | | | | | | | | | | | | - poUsePath is now an alias for poUseShell. - poEvalCommand should be used when shell evaluation is really needed. It passes `command` directly to shell/winapi. Requires `args` parameter to be empty.
* | case consistency for linuxAraq2013-12-291-234/+234
|/
* Made TSocketHandle distinct and fixed problems it caused for SSL.Dominik Picheta2013-10-231-22/+26
|
* Added a TSocketHandle type to winlean.nim and posix.nimClay Sweetser2013-10-151-0/+3
| | | | Edited sockets.nim and asyncio.nim to use the new TSocketHandle type.
* some fixes for HaikuAraq2013-09-011-45/+49
|
* Removes executable bit for text files.Grzegorz Adam Hankiewicz2013-03-161-0/+0
|
da98e0218df6b551a6cd8e5520255866308'>^
431f739d ^
eee09a56 ^

431f739d ^
eee09a56 ^

431f739d ^
eee09a56 ^

431f739d ^
eee09a56 ^

431f739d ^
eee09a56 ^

431f739d ^
eee09a56 ^



431f739d ^
eee09a56 ^
4524da2b ^
eee09a56 ^
431f739d ^
5f3b3e7a ^
431f739d ^

eee09a56 ^



431f739d ^
5f3b3e7a ^


eee09a56 ^

5f3b3e7a ^
431627b2 ^
431f739d ^

eee09a56 ^

67d8078e ^
8f256f1f ^


eee09a56 ^
8f256f1f ^
67d8078e ^
431f739d ^

431f739d ^



eee09a56 ^
6b64f800 ^
eee09a56 ^
b4c78a59 ^
eee09a56 ^
19e7a418 ^
b4c78a59 ^

19e7a418 ^
b4c78a59 ^
431f739d ^



19e7a418 ^
eee09a56 ^


431f739d ^


eee09a56 ^
431f739d ^

eee09a56 ^
431f739d ^
eee09a56 ^
431f739d ^




3f4bbe9e ^

0f851e48 ^
0e0a9042 ^


3f4bbe9e ^

eee09a56 ^

431f739d ^

eee09a56 ^

431f739d ^



eee09a56 ^

431f739d ^

eee09a56 ^
431f739d ^
99e48220 ^
431f739d ^







eee09a56 ^


431f739d ^


51bf3554 ^
f5fce35e ^
c8da2350 ^
f5fce35e ^
51bf3554 ^
431f739d ^
eee09a56 ^
431f739d ^

eee09a56 ^

f5fce35e ^

eee09a56 ^
f5fce35e ^
431f739d ^




eee09a56 ^
4a943d4e ^

83c67014 ^
4a943d4e ^


eee09a56 ^
4a943d4e ^

431f739d ^



eee09a56 ^
4a943d4e ^

83c67014 ^
4a943d4e ^


eee09a56 ^
4a943d4e ^

431f739d ^
eee09a56 ^
3f4bbe9e ^
eee09a56 ^
c8da2350 ^

431f739d ^
15b98801 ^
eee09a56 ^

c8da2350 ^
431f739d ^

c8da2350 ^
431f739d ^


eee09a56 ^

431f739d ^

eee09a56 ^

431f739d ^



c8da2350 ^






15ebb7eb ^

19e7a418 ^
eee09a56 ^


15ebb7eb ^
eee09a56 ^
15ebb7eb ^


eee09a56 ^
15ebb7eb ^









b4c78a59 ^


eee09a56 ^
b4c78a59 ^

eee09a56 ^
b4c78a59 ^
eee09a56 ^
b4c78a59 ^




eee09a56 ^


431f739d ^

eee09a56 ^


431f739d ^

4a943d4e ^


83c67014 ^
4a943d4e ^








83c67014 ^
4a943d4e ^


eee09a56 ^
4a943d4e ^





83c67014 ^
4a943d4e ^


eee09a56 ^
4a943d4e ^


eee09a56 ^
4a943d4e ^

83c67014 ^
4a943d4e ^


eee09a56 ^
4a943d4e ^


eee09a56 ^
4a943d4e ^

83c67014 ^
4a943d4e ^


eee09a56 ^
4a943d4e ^


eee09a56 ^
4a943d4e ^

83c67014 ^
4a943d4e ^


c8da2350 ^
4a943d4e ^


eee09a56 ^
4a943d4e ^

83c67014 ^
4a943d4e ^


eee09a56 ^
4a943d4e ^


eee09a56 ^
4a943d4e ^

83c67014 ^
4a943d4e ^


eee09a56 ^
4a943d4e ^


eee09a56 ^
4a943d4e ^

83c67014 ^
4a943d4e ^


eee09a56 ^
4a943d4e ^


eee09a56 ^
4a943d4e ^

83c67014 ^
4a943d4e ^


eee09a56 ^
4a943d4e ^





83c67014 ^
4a943d4e ^


eee09a56 ^
4a943d4e ^


eee09a56 ^
4a943d4e ^

83c67014 ^
4a943d4e ^


eee09a56 ^
4a943d4e ^


eee09a56 ^
4a943d4e ^
83c67014 ^
4a943d4e ^







83c67014 ^
4a943d4e ^


eee09a56 ^
4a943d4e ^

51bf3554 ^
431f739d ^

eee09a56 ^
431f739d ^

67d8078e ^
431f739d ^

3f4bbe9e ^
0f851e48 ^
3f4bbe9e ^
431f739d ^

eee09a56 ^
431f739d ^

eee09a56 ^
31e6ed17 ^







eee09a56 ^
31e6ed17 ^





eee09a56 ^
431f739d ^

eee09a56 ^
4a943d4e ^

83c67014 ^

4a943d4e ^

eee09a56 ^
4a943d4e ^

67d8078e ^
9eac9206 ^







67d8078e ^
eee09a56 ^
67d8078e ^
50dcc0c1 ^
67d8078e ^
50dcc0c1 ^
eee09a56 ^









67d8078e ^
126b4144 ^


eee09a56 ^
5c26afb1 ^
eee09a56 ^









126b4144 ^
31e6ed17 ^
eee09a56 ^

31e6ed17 ^



eee09a56 ^

31e6ed17 ^
67d8078e ^
eee09a56 ^

9eac9206 ^
eee09a56 ^
9eac9206 ^




431f739d ^

eee09a56 ^

31e6ed17 ^
eee09a56 ^
31e6ed17 ^






eee09a56 ^

31e6ed17 ^
eee09a56 ^
31e6ed17 ^






0e0a9042 ^







31e6ed17 ^















431f739d ^






13346ddc ^



431f739d ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773